SHA256
Личный чат: фоны «Затмение» и «Гроза», новая справка о шифровании, плавное сворачивание «Поддержки»
- Фоны «Затмение» и «Гроза» в двух темах. Сообщения, голосовые и поле ввода подхватывают свет фона: общий материал has-dm-glow, у фона только пять цветов на тему. - Срок вложения и время — в одной строке; свечение пузырей не срезается краем ленты. - Справка о шифровании: замок-значок вместо эмодзи, шрифт Source Serif 4 из файлов приложения (OFL). - Карточка «Поддержка» сворачивается мягко и без рывка в конце: анимируется только её добавка к строке. Версия клиента 1.21.18. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -281,7 +281,11 @@
|
||||
|
||||
.dm-chat-screen > .dm-chat-wrap {
|
||||
flex: 1 1 auto;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
/* Прокрутка обрезает всё за своим краем: поля экрана — внутри неё, чтобы свечение и тень пузырей не срезало. */
|
||||
width: calc(100% + 2 * var(--page-gutter));
|
||||
margin-inline: calc(-1 * var(--page-gutter));
|
||||
padding-inline: var(--page-gutter);
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
overflow-y: auto;
|
||||
@@ -338,26 +342,65 @@
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
/* Шрифт справки о шифровании. Файлы свои: приложение не обращается к сторонним серверам, когда открыт личный чат. */
|
||||
@font-face {
|
||||
font-family: 'Source Serif 4';
|
||||
font-weight: 400 600;
|
||||
font-display: swap;
|
||||
src: url("../../assets/fonts/source-serif-4-cyrillic.woff2") format('woff2');
|
||||
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Source Serif 4';
|
||||
font-weight: 400 600;
|
||||
font-display: swap;
|
||||
src: url("../../assets/fonts/source-serif-4-latin.woff2") format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
|
||||
/* Ненавязчивая справка в начале DM-ленты: не является отправленным сообщением. */
|
||||
.dm-security-notice {
|
||||
font-family: 'Source Serif 4', Georgia, serif;
|
||||
width: min(100%, 460px);
|
||||
box-sizing: border-box;
|
||||
justify-self: center;
|
||||
margin: 24px auto 16px;
|
||||
padding: 0 18px;
|
||||
color: var(--text-secondary);
|
||||
font-size: 12px;
|
||||
font-size: .875rem;
|
||||
line-height: 1.55;
|
||||
text-align: center;
|
||||
text-wrap: pretty;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
/* Замок в стеклянном круге, как кнопка голосового; на светящихся фонах — их оттенок (dm-background.css). */
|
||||
.dm-security-notice__icon {
|
||||
--lock-tone: var(--accent);
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
margin: 0 auto 10px;
|
||||
border-radius: 50%;
|
||||
background:
|
||||
radial-gradient(90% 70% at 32% 8%, color-mix(in srgb, var(--dm-light) 30%, transparent), transparent 72%),
|
||||
linear-gradient(165deg, color-mix(in srgb, var(--lock-tone) 40%, transparent), color-mix(in srgb, var(--lock-tone) 13%, transparent));
|
||||
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lock-tone) 52%, transparent), 0 0 18px -5px color-mix(in srgb, var(--lock-tone) 66%, transparent);
|
||||
color: color-mix(in srgb, var(--lock-tone) 34%, var(--text-primary));
|
||||
}
|
||||
.dm-security-notice__icon svg { width: 22px; height: 22px; }
|
||||
|
||||
.dm-security-notice__title {
|
||||
display: block;
|
||||
margin-bottom: 12px;
|
||||
font-size: 13px;
|
||||
color: var(--text-primary);
|
||||
font-size: 1.125rem;
|
||||
line-height: 1.35;
|
||||
font-weight: 600;
|
||||
text-wrap: balance;
|
||||
}
|
||||
.dm-security-notice p strong { color: color-mix(in srgb, var(--text-secondary) 25%, var(--text-primary)); font-weight: 600; }
|
||||
|
||||
.dm-security-notice p {
|
||||
margin: 0;
|
||||
@@ -1283,6 +1326,7 @@
|
||||
.dm-chat-screen .bubble.out { --dm-fill: var(--bubble-out); border-bottom-right-radius: 6px; }
|
||||
.dm-chat-screen :is(.bubble.in, .bubble.out) {
|
||||
background:
|
||||
var(--dm-flash, none),
|
||||
radial-gradient(85% 70% at 74% 112%, var(--dm-glow) 0%, transparent 62%),
|
||||
radial-gradient(75% 95% at 4% -18%, var(--dm-sheen) 0%, transparent 64%),
|
||||
radial-gradient(60% 60% at 96% -6%, var(--dm-sheen-soft) 0%, transparent 70%),
|
||||
@@ -1297,6 +1341,10 @@
|
||||
.dm-chat-screen .bubble-status--read { color: var(--action); }
|
||||
.dm-chat-screen .bubble-status--failed { color: var(--danger); }
|
||||
.dm-chat-screen .bubble-delivery-note { clear: both; }
|
||||
/* Срок вложения и время — в одной строке; не влезают — время переносится под срок. */
|
||||
.dm-chat-screen .dm-attachment-expiry { float: left; line-height: 1rem; }
|
||||
.dm-chat-screen .dm-attachment-expiry ~ .bubble-meta { margin-top: 6px; }
|
||||
.dm-chat-screen .dm-attachment-expiry ~ .bubble-reply-preview { clear: both; }
|
||||
|
||||
.dm-day-separator { display: flex; justify-content: center; margin: 8px 0; }
|
||||
.dm-day-separator span { padding: 3px 10px; border-radius: var(--radius-pill); color: var(--text-secondary); background: var(--surface); border: 1px solid var(--border-subtle); font-size: var(--text-xs); line-height: var(--leading-xs); }
|
||||
|
||||
Reference in New Issue
Block a user