SHA256
597 lines
10 KiB
CSS
597 lines
10 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: 38px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
}
|
|
|
|
|
|
.icon-btn,
|
|
.text-btn,
|
|
.primary-btn,
|
|
.secondary-btn,
|
|
.destructive-btn,
|
|
.ghost-btn {
|
|
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: 1;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
|
|
.card {
|
|
background: linear-gradient(180deg, rgba(31, 44, 67, 0.62), rgba(21, 30, 48, 0.9));
|
|
border: 1px solid rgba(255, 255, 255, 0.06);
|
|
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 rgba(132, 244, 161, 0.35);
|
|
color: #d7ffe3;
|
|
background: rgba(132, 244, 161, 0.09);
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
|
|
.badge.alt {
|
|
border-color: rgba(83, 216, 251, 0.35);
|
|
color: #dff8ff;
|
|
background: rgba(83, 216, 251, 0.11);
|
|
}
|
|
|
|
|
|
.badge.is-no {
|
|
border-color: rgba(170, 180, 205, 0.3);
|
|
color: #c5cedd;
|
|
background: rgba(152, 164, 190, 0.14);
|
|
}
|
|
|
|
|
|
.badge.is-yes-official {
|
|
border-color: rgba(132, 244, 161, 0.5);
|
|
color: #ddffe7;
|
|
background: rgba(132, 244, 161, 0.2);
|
|
}
|
|
|
|
|
|
.badge.is-yes-shine {
|
|
border-color: rgba(183, 122, 255, 0.6);
|
|
color: #f4e7ff;
|
|
background: rgba(176, 102, 255, 0.22);
|
|
}
|
|
|
|
|
|
.field-label {
|
|
color: #b2c2e6;
|
|
font-size: 13px;
|
|
}
|
|
|
|
|
|
.select {
|
|
width: 100%;
|
|
border: 1px solid var(--line);
|
|
border-radius: 12px;
|
|
background: rgba(255, 255, 255, 0.04);
|
|
min-height: 44px;
|
|
padding: 0 12px;
|
|
color: var(--text);
|
|
}
|
|
|
|
|
|
.select:focus {
|
|
outline: none;
|
|
border-color: rgba(83, 216, 251, 0.55);
|
|
box-shadow: 0 0 0 3px rgba(83, 216, 251, 0.12);
|
|
}
|
|
|
|
|
|
.wrap-row {
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
|
|
.status-line {
|
|
font-size: 13px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
|
|
.status-line.is-available {
|
|
color: #8ef0a8;
|
|
}
|
|
|
|
|
|
.status-line.is-unavailable {
|
|
color: #ff8d97;
|
|
}
|
|
|
|
|
|
.help-fab,
|
|
.square-btn {
|
|
width: 42px;
|
|
height: 42px;
|
|
border-radius: 12px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
|
|
.help-fab {
|
|
position: fixed;
|
|
right: max(20px, calc((100vw - min(100vw, 430px)) / 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: rgba(83, 216, 251, 0.08);
|
|
border: 1px solid rgba(83, 216, 251, 0.22);
|
|
color: #d9f8ff;
|
|
}
|
|
|
|
|
|
.checkbox-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
|
|
.key-card {
|
|
padding: 12px;
|
|
border-radius: var(--radius-md);
|
|
background: rgba(255, 255, 255, 0.03);
|
|
border: 1px solid rgba(255, 255, 255, 0.06);
|
|
}
|
|
|
|
|
|
.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 rgba(255, 255, 255, 0.06);
|
|
background: rgba(255, 255, 255, 0.02);
|
|
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: #08212a;
|
|
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: #c5d2f4;
|
|
background: rgba(17, 24, 39, 0.9);
|
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
}
|
|
|
|
|
|
.page-label.is-collapsed {
|
|
width: fit-content;
|
|
padding: 6px;
|
|
}
|
|
|
|
|
|
.page-label-content {
|
|
min-width: 0;
|
|
}
|
|
|
|
|
|
.page-label-hint {
|
|
margin-bottom: 3px;
|
|
color: #8ea2cd;
|
|
font-size: 10px;
|
|
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: #ffffff;
|
|
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: rgba(0, 0, 0, 0.12);
|
|
box-shadow:
|
|
inset 0 3px 8px rgba(0, 0, 0, 0.58),
|
|
inset 0 -1px 2px rgba(255, 255, 255, 0.08);
|
|
transform: translateY(1px) scale(0.97);
|
|
filter: brightness(0.9);
|
|
}
|
|
|
|
.page-label-toggle:focus-visible {
|
|
outline: 2px solid rgba(255, 255, 255, 0.62);
|
|
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(--line);
|
|
border-radius: 12px;
|
|
background: rgba(255, 255, 255, 0.04);
|
|
min-height: 40px;
|
|
padding: 0 12px;
|
|
width: 100%;
|
|
outline: none;
|
|
color: #f3f7ff;
|
|
font-size: 16px;
|
|
line-height: 1.4;
|
|
caret-color: #f1d18a;
|
|
-webkit-text-fill-color: #f3f7ff;
|
|
}
|
|
|
|
|
|
.input:focus {
|
|
border-color: rgba(83, 216, 251, 0.55);
|
|
box-shadow: 0 0 0 3px rgba(83, 216, 251, 0.12);
|
|
}
|
|
|
|
|
|
.input::placeholder {
|
|
color: rgba(190, 206, 238, 0.82);
|
|
}
|
|
|
|
|
|
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: #f3f7ff !important;
|
|
caret-color: #f1d18a;
|
|
border-color: var(--line);
|
|
box-shadow: 0 0 0 1000px rgba(11, 24, 46, 0.96) inset !important;
|
|
transition: background-color 9999s ease-out 0s;
|
|
}
|
|
|
|
|
|
textarea.input {
|
|
padding: 10px 12px;
|
|
min-height: 92px;
|
|
resize: vertical;
|
|
}
|
|
|
|
|
|
.inline-error {
|
|
min-height: 18px;
|
|
}
|
|
|
|
|
|
.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: #dce7ff;
|
|
}
|
|
|
|
|
|
.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: #dbe7ff;
|
|
margin: 4px 2px;
|
|
}
|
|
|
|
|
|
.is-springing {
|
|
animation: spring-tap 0.28s ease;
|
|
}
|
|
|
|
|
|
#about-channel-modal .input,
|
|
#edit-channel-modal .input,
|
|
#reply-modal .input,
|
|
#channel-message-modal .input,
|
|
#channel-edit-description-modal .input,
|
|
#channels-subscribe-modal .input,
|
|
#thread-reply-modal .input {
|
|
background: rgba(255, 255, 255, 0.04);
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
border-radius: 12px;
|
|
color: #ffffff;
|
|
padding: 12px 16px;
|
|
font-size: 14px;
|
|
resize: vertical;
|
|
width: 100%;
|
|
}
|
|
|
|
|
|
#channel-edit-description-counter,
|
|
#channel-edit-description-modal #channel-description-counter {
|
|
color: rgba(255, 255, 255, 0.35);
|
|
font-size: 12px;
|
|
}
|
|
|
|
|
|
#about-channel-modal .secondary-btn,
|
|
#edit-channel-modal .secondary-btn,
|
|
#reply-modal .secondary-btn,
|
|
#channel-message-modal .secondary-btn,
|
|
#channel-edit-description-modal .secondary-btn,
|
|
#channels-subscribe-modal .secondary-btn,
|
|
#thread-reply-modal .secondary-btn {
|
|
border-radius: 12px;
|
|
padding: 13px 24px;
|
|
}
|
|
|
|
|
|
#about-channel-modal .primary-btn,
|
|
#edit-channel-modal .primary-btn,
|
|
#reply-modal .primary-btn,
|
|
#channel-message-modal .primary-btn,
|
|
#channel-edit-description-modal .primary-btn,
|
|
#channels-subscribe-modal .primary-btn,
|
|
#thread-reply-modal .primary-btn {
|
|
border-radius: 12px;
|
|
padding: 13px 24px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
|
|
/* Горизонтальный 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: #D4AF37; }
|
|
100% { filter: blur(0px); opacity: 1; color: #D4AF37; }
|
|
}
|
|
|
|
|
|
/* 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;
|
|
}
|