SHA256
- styles/main.css: роли цветов (по умолчанию «Индиго»), шкала отступов/скруглений/шрифтов, цвета отношений для обеих тем; жёсткие цвета в стилях заменены на роли. - Палитра: пресеты и личные правки, «Оформление» Авто/День/Ночь, долгое нажатие — редактор цветов с экспортом/импортом. - Каналы: пузыри постов автора, плашки дней, строка «Написать в канал…», «О канале», создание канала с адресом из названия; лента открывается на свежих постах. - Чаты: плоский список, чипы-фильтры, пузыри, плашки дней; нижняя панель скрыта в переписке. - Корневые разделы — единая шапка; профиль и чужой профиль — общая карточка; настройки, кошелёк, сеансы — меню-списки. - Нижняя панель: иконки без подписей, бейджи на иконках. - confirmDialog вместо window.confirm/alert; на телефоне диалоги — шторки снизу. - docs/UI-Design/ISSUES-for-dev.md — найденные ошибки сервера/UI. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
607 lines
13 KiB
CSS
607 lines
13 KiB
CSS
/* Shared UI primitives retained from the former components.css. */
|
|
|
|
/* Глобально отключаем синюю tap-подсветку мобильных браузеров/WebView на ВСЕХ элементах
|
|
(Android/Chromium): синего квадрата при нажатии нигде быть не должно. */
|
|
* {
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
|
|
|
|
.icon-btn,
|
|
.text-btn,
|
|
.primary-btn,
|
|
.secondary-btn,
|
|
.destructive-btn,
|
|
.ghost-btn {
|
|
border-radius: var(--radius-sm);
|
|
padding: 9px 12px;
|
|
min-height: 44px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
-webkit-touch-callout: none;
|
|
}
|
|
|
|
|
|
|
|
|
|
.icon-btn:disabled,
|
|
.text-btn:disabled,
|
|
.primary-btn:disabled,
|
|
.secondary-btn:disabled,
|
|
.destructive-btn:disabled,
|
|
.ghost-btn:disabled {
|
|
opacity: .5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
|
|
.card {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border-subtle);
|
|
border-radius: var(--radius-lg);
|
|
padding: 14px;
|
|
}
|
|
|
|
|
|
.row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 10px;
|
|
}
|
|
|
|
|
|
.stack {
|
|
display: grid;
|
|
gap: 10px;
|
|
}
|
|
|
|
|
|
.badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 6px 10px;
|
|
border-radius: 999px;
|
|
border: 1px solid color-mix(in srgb, var(--success) 35%, transparent);
|
|
color: var(--text-primary);
|
|
background: color-mix(in srgb, var(--success) 9%, transparent);
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
|
|
.badge.alt {
|
|
border-color: color-mix(in srgb, var(--accent) 35%, transparent);
|
|
color: var(--text-primary);
|
|
background: color-mix(in srgb, var(--accent) 11%, transparent);
|
|
}
|
|
|
|
|
|
.badge.is-no {
|
|
border-color: color-mix(in srgb, var(--accent) 30%, transparent);
|
|
color: var(--accent);
|
|
background: color-mix(in srgb, var(--text-primary) 14%, transparent);
|
|
}
|
|
|
|
|
|
.badge.is-yes-official {
|
|
border-color: color-mix(in srgb, var(--success) 50%, transparent);
|
|
color: var(--text-primary);
|
|
background: color-mix(in srgb, var(--success) 20%, transparent);
|
|
}
|
|
|
|
|
|
.badge.is-yes-shine {
|
|
border-color: color-mix(in srgb, var(--rel-contact) 60%, transparent);
|
|
color: var(--text-primary);
|
|
background: color-mix(in srgb, var(--rel-contact) 22%, transparent);
|
|
}
|
|
|
|
|
|
.field-label,
|
|
.form-field > label,
|
|
label.meta-muted[for] {
|
|
color: var(--text-secondary);
|
|
font-size: var(--text-sm);
|
|
line-height: var(--leading-sm);
|
|
font-weight: var(--weight-medium);
|
|
}
|
|
|
|
|
|
.select {
|
|
width: 100%;
|
|
border: 1px solid var(--border-control);
|
|
border-radius: 12px;
|
|
background-color: var(--surface);
|
|
min-height: 44px;
|
|
padding: 0 40px 0 12px;
|
|
color: var(--text-primary);
|
|
font-size: 16px;
|
|
appearance: none;
|
|
-webkit-appearance: none;
|
|
background-image: linear-gradient(45deg, transparent 50%, var(--text-secondary) 50%), linear-gradient(135deg, var(--text-secondary) 50%, transparent 50%);
|
|
background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
|
|
background-size: 5px 5px, 5px 5px;
|
|
background-repeat: no-repeat;
|
|
cursor: pointer;
|
|
}
|
|
|
|
|
|
.select:focus-visible {
|
|
outline: none;
|
|
border-color: var(--focus-ring);
|
|
box-shadow: 0 0 0 1px var(--focus-ring);
|
|
}
|
|
|
|
|
|
.wrap-row {
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
|
|
.status-line {
|
|
font-size: 13px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
|
|
.status-line.is-available {
|
|
color: var(--success);
|
|
}
|
|
|
|
|
|
.status-line.is-unavailable {
|
|
color: var(--danger);
|
|
}
|
|
|
|
|
|
.help-fab,
|
|
.square-btn {
|
|
width: 42px;
|
|
height: 42px;
|
|
border-radius: 12px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
|
|
.help-fab {
|
|
position: fixed;
|
|
right: max(20px, calc((100vw - min(100vw, var(--shell-content-width, 640px))) / 2 + 20px));
|
|
bottom: calc(20px + env(safe-area-inset-bottom));
|
|
z-index: 12;
|
|
}
|
|
|
|
|
|
.inline-input-row {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
gap: 8px;
|
|
align-items: center;
|
|
}
|
|
|
|
|
|
.link-card {
|
|
display: block;
|
|
padding: 14px;
|
|
border-radius: var(--radius-md);
|
|
background: color-mix(in srgb, var(--accent) 8%, transparent);
|
|
border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
|
|
.checkbox-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
|
|
.key-card {
|
|
padding: 12px;
|
|
border-radius: var(--radius-md);
|
|
background: color-mix(in srgb, var(--text-primary) 3%, transparent);
|
|
border: 1px solid var(--border-subtle);
|
|
}
|
|
|
|
|
|
.list-item {
|
|
display: grid;
|
|
grid-template-columns: 44px 1fr auto;
|
|
gap: 10px;
|
|
align-items: center;
|
|
padding: 11px;
|
|
border-radius: var(--radius-md);
|
|
border: 1px solid var(--border-subtle);
|
|
background: color-mix(in srgb, var(--text-primary) 2%, transparent);
|
|
cursor: pointer;
|
|
}
|
|
|
|
|
|
.meta-muted {
|
|
color: var(--text-muted);
|
|
font-size: 13px;
|
|
}
|
|
|
|
|
|
.unread {
|
|
min-width: 20px;
|
|
height: 20px;
|
|
border-radius: 999px;
|
|
display: grid;
|
|
place-items: center;
|
|
background: var(--accent);
|
|
color: var(--accent);
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
padding: 0 6px;
|
|
}
|
|
|
|
|
|
.page-label {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 10px;
|
|
border-radius: 10px;
|
|
padding: 8px 10px;
|
|
color: var(--text-primary);
|
|
background: var(--surface);
|
|
border: 1px solid var(--border-subtle);
|
|
}
|
|
|
|
|
|
.page-label.is-collapsed {
|
|
width: fit-content;
|
|
padding: 6px;
|
|
}
|
|
|
|
|
|
.page-label-content {
|
|
min-width: 0;
|
|
}
|
|
|
|
|
|
.page-label-hint {
|
|
margin-bottom: 3px;
|
|
color: var(--accent);
|
|
font-size: 11px;
|
|
line-height: 1;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
|
|
.page-label-caption {
|
|
font-size: 12px;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
|
|
.page-label-toggle {
|
|
width: 16px;
|
|
height: 16px;
|
|
flex: 0 0 16px;
|
|
border-radius: 4px;
|
|
color: var(--text-primary);
|
|
background: transparent;
|
|
border: 0;
|
|
box-shadow: none;
|
|
cursor: pointer;
|
|
transition:
|
|
transform 90ms ease,
|
|
box-shadow 90ms ease,
|
|
background-color 90ms ease,
|
|
filter 120ms ease;
|
|
}
|
|
|
|
|
|
.page-label-toggle::before,
|
|
.page-label-toggle::after {
|
|
background: transparent;
|
|
background-image: none;
|
|
border-color: transparent;
|
|
box-shadow: none;
|
|
}
|
|
|
|
|
|
.page-label-toggle:hover {
|
|
background: transparent;
|
|
filter: brightness(1.12);
|
|
}
|
|
|
|
.page-label-toggle:active {
|
|
background: color-mix(in srgb, var(--surface) 12%, transparent);
|
|
box-shadow:
|
|
inset 0 3px 8px rgba(0, 0, 0, 0.58),
|
|
inset 0 -1px 2px color-mix(in srgb, var(--text-primary) 8%, transparent);
|
|
transform: translateY(1px) scale(0.97);
|
|
filter: brightness(0.9);
|
|
}
|
|
|
|
.page-label-toggle:focus-visible {
|
|
outline: 2px solid var(--border-control);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
|
|
.chat-wrap {
|
|
display: grid;
|
|
grid-template-rows: 1fr auto;
|
|
gap: 10px;
|
|
min-height: calc(100dvh - 210px);
|
|
}
|
|
|
|
|
|
.messages-log {
|
|
display: grid;
|
|
gap: 8px;
|
|
align-content: start;
|
|
}
|
|
|
|
|
|
.chat-input {
|
|
display: grid;
|
|
grid-template-columns: 1fr auto;
|
|
gap: 8px;
|
|
}
|
|
|
|
|
|
.input {
|
|
border: 1px solid var(--border-control);
|
|
border-radius: 12px;
|
|
background: var(--surface);
|
|
min-height: 44px;
|
|
padding: 0 12px;
|
|
width: 100%;
|
|
outline: none;
|
|
color: var(--text-primary);
|
|
font-size: 16px;
|
|
line-height: 1.4;
|
|
caret-color: var(--accent);
|
|
}
|
|
|
|
|
|
.input:focus {
|
|
border-color: var(--focus-ring);
|
|
box-shadow: 0 0 0 1px var(--focus-ring);
|
|
}
|
|
|
|
.input:disabled,
|
|
.select:disabled {
|
|
opacity: .6;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
|
|
.input::placeholder,
|
|
textarea::placeholder {
|
|
color: color-mix(in srgb, var(--text-secondary) 62%, var(--surface));
|
|
-webkit-text-fill-color: color-mix(in srgb, var(--text-secondary) 62%, var(--surface));
|
|
opacity: 1;
|
|
}
|
|
|
|
|
|
input.input:-webkit-autofill,
|
|
input.input:-webkit-autofill:hover,
|
|
input.input:-webkit-autofill:focus,
|
|
textarea.input:-webkit-autofill,
|
|
textarea.input:-webkit-autofill:hover,
|
|
textarea.input:-webkit-autofill:focus {
|
|
-webkit-text-fill-color: var(--text-primary) !important;
|
|
caret-color: var(--accent);
|
|
border-color: var(--border-control);
|
|
box-shadow: 0 0 0 1000px var(--surface) inset !important;
|
|
transition: background-color 9999s ease-out 0s;
|
|
}
|
|
|
|
|
|
textarea.input {
|
|
padding: 10px 12px;
|
|
min-height: 92px;
|
|
resize: vertical;
|
|
}
|
|
|
|
|
|
.inline-error {
|
|
color: var(--danger);
|
|
font-size: .8125rem;
|
|
line-height: 1.125rem;
|
|
}
|
|
|
|
.inline-error:empty { display: none; }
|
|
|
|
.form-field { display: grid; gap: 6px; min-width: 0; }
|
|
.form-field__optional { font-weight: 400; color: var(--text-secondary); }
|
|
.form-field__hint { font-size: .75rem; line-height: 1.125rem; color: var(--text-secondary); overflow-wrap: anywhere; }
|
|
.form-field__hint[hidden] { display: none; }
|
|
.form-field__meta { display: flex; justify-content: space-between; gap: 8px; min-height: 18px; }
|
|
.form-field__counter { margin-left: auto; font-size: .75rem; line-height: 1.125rem; color: var(--text-secondary); }
|
|
|
|
|
|
.form-actions-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 10px;
|
|
}
|
|
|
|
|
|
.mono-cell {
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
|
|
.small-btn {
|
|
padding: 6px 10px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
|
|
.key-value {
|
|
font-family: "IBM Plex Mono", "Fira Code", monospace;
|
|
font-size: 13px;
|
|
line-height: 1.35;
|
|
word-break: break-all;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
|
|
.key-value--compact {
|
|
font-size: 11px;
|
|
line-height: 1.25;
|
|
}
|
|
|
|
|
|
.key-input {
|
|
font-family: "IBM Plex Mono", "Fira Code", monospace;
|
|
font-size: 12px;
|
|
letter-spacing: 0;
|
|
}
|
|
|
|
|
|
.key-toggle-btn {
|
|
width: 36px;
|
|
height: 36px;
|
|
min-height: 36px;
|
|
min-width: 36px;
|
|
padding: 0;
|
|
display: grid;
|
|
place-items: center;
|
|
flex: 0 0 auto;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
|
|
.key-toggle-icon {
|
|
width: 18px;
|
|
height: 18px;
|
|
display: block;
|
|
}
|
|
|
|
|
|
.boot-error-menu-shell {
|
|
z-index: 1000000;
|
|
}
|
|
|
|
|
|
.boot-error-menu-card {
|
|
gap: 10px;
|
|
}
|
|
|
|
|
|
.boot-error-menu-message {
|
|
white-space: pre-wrap;
|
|
overflow-wrap: anywhere;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
|
|
.node {
|
|
position: absolute;
|
|
transform: translate(-50%, -50%);
|
|
width: 126px;
|
|
border: 0;
|
|
background: transparent;
|
|
padding: 0;
|
|
text-align: center;
|
|
color: inherit;
|
|
cursor: pointer;
|
|
z-index: 1;
|
|
}
|
|
|
|
|
|
.section-title {
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
margin: 4px 2px;
|
|
}
|
|
|
|
|
|
.is-springing {
|
|
animation: spring-tap 0.28s ease;
|
|
}
|
|
|
|
|
|
/* Горизонтальный overflow: орб-ореол .dm-screen::before выходит на 12px по бокам (inset -12px) и
|
|
даёт лишний скролл. Фон НЕ меняем — клиппим overflow на уровне страницы (как просит ТЗ, п.4). */
|
|
html,
|
|
body { overflow-x: hidden; }
|
|
|
|
|
|
/* ===== Final microinteractions: breathe cards + static energy buttons ===== */
|
|
@keyframes breatheCard {
|
|
0%, 100% { transform: translateY(0px); }
|
|
50% { transform: translateY(-3px); }
|
|
}
|
|
|
|
|
|
@keyframes glareSweep {
|
|
0% { left: -150%; }
|
|
100% { left: 150%; }
|
|
}
|
|
|
|
|
|
@keyframes blurRevealMedium {
|
|
0% { filter: blur(0px); opacity: 1; color: inherit; }
|
|
40% { filter: blur(5px); opacity: 0; color: var(--warning); }
|
|
100% { filter: blur(0px); opacity: 1; color: var(--warning); }
|
|
}
|
|
|
|
|
|
/* 3) Medium blur-reveal for stats/counters */
|
|
.stat-blur-reveal {
|
|
animation: blurRevealMedium 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
|
|
display: inline-block;
|
|
}
|
|
|
|
|
|
/* Use the shared application canvas for every primary navigation screen. */
|
|
.dm-screen,
|
|
.profile-screen,
|
|
.notifications-screen {
|
|
background: transparent;
|
|
}
|
|
|
|
/* Текст только для экранного диктора. */
|
|
.sr-only {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
padding: 0;
|
|
margin: -1px;
|
|
overflow: hidden;
|
|
clip: rect(0, 0, 0, 0);
|
|
white-space: nowrap;
|
|
border: 0;
|
|
}
|
|
|
|
.search-field {
|
|
min-height: var(--control-height);
|
|
padding: 0 6px 0 12px;
|
|
display: grid;
|
|
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
border: 1px solid var(--border-control);
|
|
border-radius: var(--radius-md);
|
|
background: var(--surface);
|
|
color: var(--text-secondary);
|
|
}
|
|
.search-field:focus-within { border-color: var(--focus-ring); box-shadow: 0 0 0 1px var(--focus-ring); }
|
|
.search-field__icon { display: inline-flex; }
|
|
.search-field__icon svg { width: 20px; height: 20px; }
|
|
.search-field__input { width: 100%; min-width: 0; height: 42px; border: 0; outline: 0; color: var(--text-primary); background: transparent; font-size: 16px; }
|
|
.search-field__input::placeholder { color: color-mix(in srgb, var(--text-secondary) 62%, var(--surface)); }
|
|
.search-field__action { min-height: 36px; padding: 0 12px; border: 0; border-radius: var(--radius-sm); color: var(--accent); background: transparent; font: inherit; font-size: var(--text-sm); font-weight: var(--weight-bold); cursor: pointer; }
|
|
.search-field__action:hover { background: var(--surface-selected); }
|
|
.search-field__action:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 0; }
|
|
|
|
.empty-note { padding: var(--space-5) var(--space-4); text-align: center; color: var(--text-secondary); font-size: var(--text-sm); line-height: var(--leading-sm, 1.45); }
|
|
|
|
.action-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
|