SHA256
Палитра «Сияние» по умолчанию, новые роли цветов. Лента канала: плоские записи, ряд действий с равным шагом иконок, дата у записи. Обсуждение со строкой ввода, личный чат, шторки. Вход и регистрация: стартовый экран (надпись «СИЯНИЕ», сияние мандалы), настройки входа со статусами серверов, статус логина в одну строку, вход с другого устройства (код, таймер, шаги), сохранение ключей с переключателями. Корневые разделы – заголовок по центру; фильтр чатов – переключатель; уведомления – список как в чатах; фото – просмотр на весь экран. Общее: один зазор под шапкой (--page-top-gap), переключатели высотой с поле ввода, второстепенные кнопки по одной роли (в том числе на экранах устройств и серверов), иконки только из ui-icon.js, полоса прокрутки скрыта, среднее тире в текстах интерфейса. Что нужно от сервера и разработчика – docs/UI-Design/UI-v4-for-dev.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
64 lines
4.8 KiB
CSS
64 lines
4.8 KiB
CSS
/* Общие диалоги, уведомления и загрузка. */
|
|
.modal-title { font-size: 1rem; line-height: 1.5rem; font-weight: 600; color: var(--text-primary); }
|
|
.modal-shell[hidden] { display: none; }
|
|
.modal-shell { position: fixed; inset: 0; z-index: 60; }
|
|
.modal-backdrop { position: absolute; inset: 0; background: var(--scrim); }
|
|
.modal-dialog { position: absolute; left: 16px; right: 16px; bottom: 24px; display: grid; gap: 12px; box-shadow: var(--shadow); }
|
|
.modal { position: fixed; inset: 0; background: var(--scrim); display: grid; place-items: center; padding: 16px; z-index: 60; }
|
|
.modal-card { width: min(100%, 560px); max-height: calc(100dvh - 32px); overflow-y: auto; color: var(--text-primary); background: var(--surface); border: 1px solid var(--border-subtle); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); }
|
|
.toast-host { position: fixed; left: 0; right: 0; bottom: calc(18px + env(safe-area-inset-bottom)); display: grid; justify-items: center; gap: 8px; z-index: 140; pointer-events: none; }
|
|
.toast { max-width: min(92vw,420px); padding: 12px 16px; border-radius: 12px; color: var(--text-primary); background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--border-subtle); opacity: 0; transition: opacity 160ms; }
|
|
.toast.is-visible { opacity: 1; }
|
|
.toast.is-hiding { opacity: 0; }
|
|
.toast.toast--error { color: var(--danger); }
|
|
.skeleton-card { display: grid; gap: 12px; }
|
|
.skeleton-line { height: 12px; border-radius: 6px; background: var(--surface-selected); animation: skeleton-pulse 1.2s ease-in-out infinite alternate; }
|
|
.skeleton-line.w-40 { width: 40%; }
|
|
.skeleton-line.w-70 { width: 70%; }
|
|
.skeleton-line.w-90 { width: 90%; }
|
|
@keyframes skeleton-pulse { to { opacity: .4; } }
|
|
@media (prefers-reduced-motion: reduce) { .skeleton-line, .toast { animation: none; transition: none; } }
|
|
|
|
@media (max-width: 599px) {
|
|
.modal { place-items: end stretch; padding: 0; }
|
|
.modal > .modal-card {
|
|
width: 100%;
|
|
max-width: 100%;
|
|
max-height: calc(100dvh - 48px - env(safe-area-inset-top));
|
|
border-width: 1px 0 0;
|
|
border-radius: 20px 20px 0 0;
|
|
padding-bottom: calc(20px + env(safe-area-inset-bottom));
|
|
animation: modal-sheet-in 180ms ease-out;
|
|
}
|
|
}
|
|
@keyframes modal-sheet-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
|
|
@media (prefers-reduced-motion: reduce) { .modal-card { animation: none; } }
|
|
|
|
/* Общий диалог подтверждения (js/components/confirm-dialog.js). */
|
|
.confirm-dialog__card { width: min(100%, 400px); display: grid; gap: 12px; }
|
|
.confirm-dialog__text { margin: 0; color: var(--text-secondary); font-size: .9375rem; line-height: 1.375rem; overflow-wrap: anywhere; }
|
|
.confirm-dialog__danger { color: #fff; background: var(--danger); }
|
|
:root[data-theme='dark'] .confirm-dialog__danger { color: var(--background); }
|
|
|
|
/* Шторка с заголовком (js/components/sheet.js) */
|
|
.sheet__card { display: grid; gap: 0; padding: 12px 16px 18px; border-radius: 22px; }
|
|
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
|
|
.sheet__title { margin: 0; font-size: 1rem; }
|
|
.sheet__close { width: 36px; height: 36px; min-width: 36px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--text-secondary); }
|
|
.sheet__close svg { width: 22px; height: 22px; }
|
|
.sheet__close:hover { background: var(--surface-raised); color: var(--text-primary); }
|
|
.sheet__body { display: grid; gap: 12px; font-size: .875rem; line-height: 1.3125rem; }
|
|
.sheet__body > p { margin: 0; }
|
|
.sheet__footer { display: flex; gap: 8px; margin-top: 18px; }
|
|
.sheet__footer > button { flex: 1; min-height: 44px; }
|
|
|
|
/* «Поделиться» (js/components/share-sheet.js) */
|
|
.share-sheet__content { display: grid; gap: 12px; }
|
|
.share-sheet__preview { padding: 12px; border-radius: 12px; background: var(--background); font-size: .875rem; line-height: 1.3125rem; }
|
|
.share-sheet__preview strong { display: block; margin-bottom: 5px; color: var(--text-secondary); font-size: .75rem; font-weight: 500; }
|
|
.share-sheet__preview p { margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
|
|
.share-sheet__label { display: grid; gap: 5px; color: var(--text-secondary); font-size: .75rem; }
|
|
.share-sheet__link { min-height: 44px; padding: 9px 10px; border: 1px solid var(--border-control); border-radius: 10px; background: var(--surface-raised); color: var(--text-primary); font: inherit; font-size: .875rem; }
|
|
.share-sheet__copy, .share-sheet__system { width: 100%; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
|
|
.share-sheet__copy svg, .share-sheet__system svg { width: 20px; height: 20px; }
|