UI: новый общий стиль, тёмная/светлая тема, настраиваемая палитра

- 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>
This commit is contained in:
q
2026-09-26 10:05:26 +03:00
co-authored by Claude Opus 5.5
parent 6e5b57fd7c
commit f8900e531a
94 changed files with 3337 additions and 2432 deletions
+69 -12
View File
@@ -14,7 +14,7 @@
.message-attachment-carousel-viewport {
align-items: center;
background: var(--surface);
background: transparent;
border: 1px solid var(--border-subtle);
border-radius: 14px;
display: grid;
@@ -155,11 +155,31 @@
.message-attachment-media-frame > .message-attachment-download {
bottom: 0.75rem;
bottom: 0.5rem;
position: absolute;
right: 0.75rem;
right: 0.5rem;
}
.message-attachment-download--icon {
width: 36px;
min-height: 36px;
height: 36px;
padding: 0;
justify-content: center;
border-radius: 50%;
color: #fff;
background: rgba(0, 0, 0, 0.45);
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
}
.message-attachment-download--icon svg { width: 18px; height: 18px; }
.message-attachment-download--icon:hover { background: rgba(0, 0, 0, 0.6); }
.message-attachment-media-frame:not(.is-loaded) { background: var(--surface-selected); animation: attachment-loading 1.2s ease-in-out infinite alternate; }
.message-attachment-media-frame.is-loaded { background: transparent; }
@keyframes attachment-loading { from { opacity: 1; } to { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .message-attachment-media-frame:not(.is-loaded) { animation: none; } }
.message-attachment-file-card {
align-items: center;
@@ -342,8 +362,48 @@
.ar-attachment-manager-card {
max-width: min(92vw, 34rem);
gap: 16px;
}
.ar-attachment-manager-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ar-attachment-manager-close { width: 44px; min-width: 44px; padding: 0; font-size: 18px; color: var(--text-secondary); }
.ar-attachment-note { margin: 0; font-size: .8125rem; line-height: 1.25rem; color: var(--text-secondary); }
.ar-attachment-alt-sources { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.ar-attachment-link { min-height: 44px; padding: 0; justify-self: start; color: var(--accent); background: transparent; font-weight: 500; }
.ar-attachment-file-picker {
min-height: 56px;
padding: 8px;
display: flex;
align-items: center;
gap: 12px;
border: 1px dashed var(--border-control);
border-radius: 12px;
background: var(--surface);
cursor: pointer;
}
.ar-attachment-file-picker:hover { border-color: var(--accent); }
.ar-attachment-file-picker:focus-within { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.ar-attachment-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ar-attachment-file-btn {
flex-shrink: 0;
min-height: 40px;
padding: 0 14px;
display: inline-flex;
align-items: center;
border-radius: 10px;
color: var(--on-accent);
background: var(--accent);
font-weight: 600;
}
.ar-attachment-file-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-secondary); font-size: .875rem; }
.ar-attachment-summary { color: var(--text-primary); font-size: .875rem; }
.ar-attachment-ok { color: var(--success); font-weight: 600; }
.ar-attachment-details { color: var(--text-secondary); font-size: .8125rem; line-height: 1.25rem; }
.ar-attachment-details summary { min-height: 36px; display: flex; align-items: center; color: var(--accent); cursor: pointer; }
.ar-attachment-details > div { overflow-wrap: anywhere; }
.ar-attachment-manager-card--wide {
max-width: min(96vw, 58rem);
@@ -359,10 +419,7 @@
}
.ar-attachment-wallet-select,
.ar-attachment-wallet-select option {
color: var(--accent);
}
.ar-attachment-wallet-select option { color: var(--text-primary); background: var(--surface); }
.ar-attachment-history-table-wrap {
@@ -494,7 +551,7 @@
border-radius: 999px;
bottom: 0.42rem;
color: var(--text-primary);
font-size: 0.62rem;
font-size: 0.6875rem;
left: 0.42rem;
padding: 0.2rem 0.46rem;
position: absolute;
@@ -533,7 +590,7 @@
color: var(--text-secondary);
display: flex;
flex-wrap: wrap;
font-size: 0.6rem;
font-size: 0.6875rem;
gap: 0.22rem;
line-height: 1.05;
min-width: 0;
@@ -544,7 +601,7 @@
background: var(--border-subtle);
border-radius: 0.34rem;
color: var(--text-secondary);
font-size: 0.56rem;
font-size: 0.6875rem;
line-height: 1.05;
max-width: 100%;
min-width: 0;
@@ -558,7 +615,7 @@
.ar-attachment-status {
border-radius: 999px;
flex: 0 0 auto;
font-size: 0.58rem;
font-size: 0.6875rem;
font-weight: 800;
line-height: 1;
padding: 0.2rem 0.32rem;
@@ -588,7 +645,7 @@
border-radius: 999px;
color: var(--accent);
flex: 0 0 auto;
font-size: 0.58rem;
font-size: 0.6875rem;
font-weight: 800;
line-height: 1;
padding: 0.2rem 0.32rem;