SHA256
- шапка 52 px вместо 56, заголовок корневых разделов 22 px вместо 24; - одинаковое «•••» меню во всех шапках (в «Каналах» и ленте канала было «⋮»); - «Чаты»: лупа – мгновенный поиск по своим чатам и контактам (была – переход на поиск человека), «Новый чат» – отдельной кнопкой; - «Уведомления»: «Прочитать все» в шапке; список рисуется сразу, профили авторов и счётчики догружаются в фоне (раньше экран ждал профиль каждого автора); пустые вкладки и ошибка – общим видом, ошибка с «Повторить»; - «Профиль»: «Поделиться профилем» (ссылка), загрузка – спиннер с задержкой вместо «Загрузка профиля...», ошибка с «Повторить»; - лента канала: при наведении (на телефоне – после касания) аватар записи прыгал на текст – общий :hover кнопок с filter делал плитку автора контейнером для аватара; - атрибут hidden снова скрывает переключатели и ряды чипов.
47 lines
5.4 KiB
CSS
47 lines
5.4 KiB
CSS
:root { --app-topbar-base-height: 52px; --app-topbar-title-size: 1.0625rem; --app-topbar-bg: var(--background); --app-topbar-fg: var(--text-primary); --app-topbar-gold: var(--text-primary); --app-topbar-blue-glow: transparent; --app-topbar-blue-glow-soft: transparent; }
|
|
.topbar { width: 100%; min-height: calc(var(--app-topbar-base-height) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 0 0; display: grid; grid-template-columns: minmax(44px, 1fr) minmax(0, auto) minmax(44px, 1fr); align-items: center; gap: 4px; background: var(--surface); border-bottom: 1px solid var(--border-subtle); }
|
|
.topbar__left, .topbar__center, .topbar__right { display: flex; min-width: 0; align-items: center; }
|
|
.topbar__center { justify-content: center; }
|
|
.topbar__right { justify-content: flex-end; }
|
|
.topbar__title { margin: 0; min-width: 0; font-size: var(--app-topbar-title-size); line-height: 1.375rem; font-weight: 600; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.topbar__left-label { font-size: .75rem; color: var(--text-secondary); }
|
|
.topbar__back, .topbar__action { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 6px; border: 0; border-radius: 12px; background: transparent; color: var(--text-primary); font-size: 22px; cursor: pointer; }
|
|
.topbar__center .app-topbar-title-action, .topbar__center .channels-top-title, .topbar__center .dm-head-filter-title { display: flex; flex-direction: column; justify-content: center; max-width: 100%; min-width: 0; min-height: 44px; padding: 0 4px; border: 0; background: transparent; color: var(--text-primary); font-size: var(--app-topbar-title-size); font-weight: 600; text-align: center; overflow: hidden; }
|
|
.topbar__back:hover, .topbar__action:hover, .topbar__center button:hover { color: var(--accent); background: var(--surface); }
|
|
.topbar button:active, .topbar button[aria-expanded='true'] { background: var(--surface-selected); }
|
|
.topbar button:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
|
|
.topbar button:disabled { color: var(--text-secondary); cursor: default; }
|
|
.topbar--profile .topbar__left { visibility: hidden; }
|
|
.header-icon-svg { display: block; width: 22px; height: 22px; }
|
|
.topbar__back svg { width: 24px; height: 24px; stroke-width: 2.2; }
|
|
.topbar__action svg { width: 22px; height: 22px; }
|
|
/* Корневые разделы (Чаты, Каналы, Связи, Уведомления, Профиль) – заголовок по центру, как на всех экранах, но крупнее. */
|
|
.topbar--root .topbar__title { font-size: 1.375rem; line-height: 1.75rem; font-weight: 700; letter-spacing: -0.01em; }
|
|
|
|
/* Шапка-визитка: аватар и две строки слева (канал, собеседник) */
|
|
.topbar--identity { grid-template-columns: auto minmax(0, 1fr) auto; }
|
|
.topbar--identity .topbar__center { justify-content: flex-start; }
|
|
.topbar-identity { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; min-height: 44px; padding: 0 4px; border: 0; border-radius: 12px; background: transparent; color: var(--text-primary); font: inherit; text-align: left; cursor: pointer; }
|
|
.topbar-identity:disabled { cursor: default; }
|
|
.topbar-identity__text { display: grid; min-width: 0; }
|
|
.topbar-identity__title { font-size: 1.0625rem; line-height: 1.3; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.topbar-identity__sub { margin-top: 0; color: var(--text-secondary); font-size: .75rem; line-height: 1rem; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
|
|
/* Шапка-строка поиска (createSearchTopBar): «назад», поле во всю ширину, действия справа. */
|
|
.topbar--search { grid-template-columns: auto minmax(0, 1fr) auto; }
|
|
.topbar--search .topbar__center { justify-content: stretch; }
|
|
.topbar--search .topbar__action { min-width: 38px; padding: 4px; }
|
|
.topbar-search { display: flex; align-items: center; gap: 6px; width: 100%; min-width: 0; height: 40px; padding: 0 4px 0 12px; border: 1px solid var(--border-control); border-radius: var(--radius-pill); background: var(--background); color: var(--text-secondary); }
|
|
.topbar-search:focus-within { border-color: var(--accent); }
|
|
.topbar-search__icon { display: inline-flex; flex: 0 0 auto; }
|
|
.topbar-search__icon svg { width: 18px; height: 18px; }
|
|
.topbar-search__input { flex: 1 1 auto; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: var(--text-primary); font: inherit; font-size: 16px; }
|
|
.topbar-search__input::placeholder { color: color-mix(in srgb, var(--text-secondary) 70%, transparent); }
|
|
.topbar-search__input::-webkit-search-cancel-button { display: none; }
|
|
.topbar-search__counter { flex: 0 0 auto; padding-right: 4px; font-size: var(--text-xs); white-space: nowrap; font-variant-numeric: tabular-nums; }
|
|
.topbar-search__counter.is-empty { color: var(--danger); }
|
|
.topbar .topbar-search__clear { flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--text-secondary); cursor: pointer; }
|
|
.topbar .topbar-search__clear:hover { color: var(--text-primary); background: var(--surface-selected); }
|
|
.topbar-search__clear svg { width: 16px; height: 16px; }
|
|
.topbar-search__clear[hidden] { display: none; }
|