SHA256
CORE/CONTENT test5593 и адаптация UI
This commit is contained in:
@@ -0,0 +1,690 @@
|
||||
/* Shared attachment UI styles. */
|
||||
.message-attachments {
|
||||
display: grid;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
|
||||
.message-attachment-carousel {
|
||||
gap: 0.35rem;
|
||||
margin: 0.5rem 0 0.4rem;
|
||||
max-width: min(100%, 34rem);
|
||||
}
|
||||
|
||||
/* Одинаковая ширина медиа в публичных постах и зашифрованных DM. */
|
||||
.message-attachment-list {
|
||||
max-width: min(100%, 34rem);
|
||||
}
|
||||
|
||||
.message-attachment-item {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.message-attachment-list .message-attachment-media-frame {
|
||||
border: 1px solid var(--border-subtle);
|
||||
border-radius: 0.8rem;
|
||||
}
|
||||
|
||||
|
||||
.message-attachment-carousel-viewport {
|
||||
align-items: center;
|
||||
background: transparent;
|
||||
border: 1px solid var(--border-subtle);
|
||||
border-radius: 14px;
|
||||
display: grid;
|
||||
min-height: 12rem;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
touch-action: pan-y;
|
||||
}
|
||||
|
||||
|
||||
.message-attachment-carousel-viewport.has-landscape-media {
|
||||
align-items: start;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
|
||||
.message-attachment-slide {
|
||||
align-items: stretch;
|
||||
display: grid;
|
||||
min-height: 12rem;
|
||||
}
|
||||
|
||||
|
||||
.message-attachment-slide.has-landscape-media {
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
|
||||
.message-attachment-arrow {
|
||||
align-items: center;
|
||||
border-radius: 999px;
|
||||
cursor: pointer;
|
||||
display: inline-flex;
|
||||
font-size: 1.85rem;
|
||||
height: 44px;
|
||||
justify-content: center;
|
||||
line-height: 1;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
width: 44px;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
|
||||
.message-attachment-arrow[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
.message-attachment-arrow:disabled {
|
||||
cursor: default;
|
||||
opacity: 0.28;
|
||||
}
|
||||
|
||||
|
||||
.message-attachment-arrow--prev {
|
||||
left: 0.55rem;
|
||||
}
|
||||
|
||||
|
||||
.message-attachment-arrow--next {
|
||||
right: 0.55rem;
|
||||
}
|
||||
|
||||
|
||||
.message-attachment-counter {
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.78rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
||||
.message-attachment-media-frame {
|
||||
align-items: center;
|
||||
background: var(--surface);
|
||||
cursor: zoom-in;
|
||||
display: grid;
|
||||
min-height: 12rem;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
|
||||
.message-attachment-media-frame.is-landscape {
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
|
||||
.message-attachment-media {
|
||||
display: block;
|
||||
height: min(52vh, 20rem);
|
||||
max-height: 20rem;
|
||||
object-fit: contain;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
|
||||
.message-attachment-media.is-landscape {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
|
||||
.message-attachment-video-info {
|
||||
position: absolute;
|
||||
top: 0.65rem;
|
||||
right: 0.65rem;
|
||||
z-index: 1;
|
||||
max-width: calc(100% - 1.3rem);
|
||||
padding: 0.3rem 0.55rem;
|
||||
border-radius: 0.5rem;
|
||||
background: rgb(0 0 0 / 70%);
|
||||
color: #fff;
|
||||
font-size: 0.75rem;
|
||||
font-variant-numeric: tabular-nums;
|
||||
line-height: 1.2;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.message-attachment-play {
|
||||
align-items: center;
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border-subtle);
|
||||
border-radius: 999px;
|
||||
color: var(--text-primary);
|
||||
display: inline-flex;
|
||||
font-size: 1.7rem;
|
||||
height: 4rem;
|
||||
justify-content: center;
|
||||
left: 50%;
|
||||
padding-left: 0.18rem;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
width: 4rem;
|
||||
}
|
||||
|
||||
|
||||
.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;
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border-subtle);
|
||||
border-radius: 0.8rem;
|
||||
color: var(--text-primary);
|
||||
cursor: pointer;
|
||||
display: grid;
|
||||
gap: 0.55rem;
|
||||
grid-template-columns: auto minmax(0, 1fr);
|
||||
min-height: 3.25rem;
|
||||
padding: 0.55rem 0.7rem;
|
||||
}
|
||||
|
||||
|
||||
.message-attachment-file-ext {
|
||||
align-items: center;
|
||||
background: var(--accent);
|
||||
border-radius: 999px;
|
||||
color: var(--on-accent);
|
||||
display: inline-flex;
|
||||
font-size: 0.72rem;
|
||||
font-weight: 800;
|
||||
height: 1.7rem;
|
||||
justify-content: center;
|
||||
min-width: 3.25rem;
|
||||
padding: 0 0.55rem;
|
||||
}
|
||||
|
||||
|
||||
.message-attachment-file-main {
|
||||
display: grid;
|
||||
gap: 0.08rem;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
|
||||
.message-attachment-file-main .message-attachment-meta {
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
|
||||
.message-attachment-unavailable {
|
||||
align-items: center;
|
||||
background: var(--surface);
|
||||
color: var(--danger);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
font-weight: 700;
|
||||
justify-content: center;
|
||||
min-height: 12rem;
|
||||
padding: 1.25rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.message-attachment-debug {
|
||||
width: 100%;
|
||||
margin: 10px 0 0;
|
||||
padding: 8px;
|
||||
overflow-x: auto;
|
||||
white-space: pre-wrap;
|
||||
word-break: break-all;
|
||||
border: 1px solid var(--border-subtle);
|
||||
border-radius: 8px;
|
||||
color: var(--text-secondary);
|
||||
font-size: 11px;
|
||||
font-weight: 500;
|
||||
line-height: 1.35;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
|
||||
.message-attachment-card {
|
||||
align-items: center;
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border-subtle);
|
||||
border-radius: 1rem;
|
||||
color: var(--text-primary);
|
||||
display: flex;
|
||||
gap: 0.7rem;
|
||||
padding: 0.75rem 0.85rem;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
|
||||
.message-attachment-icon {
|
||||
align-items: center;
|
||||
background: var(--surface);
|
||||
border-radius: 0.8rem;
|
||||
color: var(--text-primary);
|
||||
display: inline-flex;
|
||||
flex: 0 0 auto;
|
||||
height: 2.1rem;
|
||||
justify-content: center;
|
||||
width: 2.1rem;
|
||||
}
|
||||
|
||||
|
||||
.message-attachment-main {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
|
||||
.message-attachment-name {
|
||||
font-weight: 700;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
|
||||
.message-attachment-meta {
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.78rem;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.message-attachment-carousel {
|
||||
max-width: 100%;
|
||||
}
|
||||
.message-attachment-carousel-viewport,
|
||||
.message-attachment-slide,
|
||||
.message-attachment-media-frame,
|
||||
.message-attachment-unavailable {
|
||||
min-height: 10rem;
|
||||
}
|
||||
.message-attachment-media {
|
||||
height: min(42vh, 16rem);
|
||||
}
|
||||
.message-attachment-file-card {
|
||||
grid-template-columns: auto minmax(0, 1fr);
|
||||
}
|
||||
}
|
||||
.ar-attachment-manager-root .modal { z-index: 120; }
|
||||
|
||||
.ar-attachment-manager-card {
|
||||
max-width: min(92vw, 34rem);
|
||||
gap: var(--space-3);
|
||||
}
|
||||
|
||||
/* Пустые служебные блоки (сумма, превью, ошибка) не должны давать промежутков. */
|
||||
.ar-attachment-manager-card :is(.ar-attachment-meta, .inline-error):empty,
|
||||
.ar-attachment-manager-card [hidden] { display: none; }
|
||||
|
||||
.ar-attachment-manager-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
|
||||
.ar-attachment-manager-close { display: grid; place-items: center; width: 44px; min-width: 44px; padding: 0; color: var(--text-secondary); }
|
||||
.ar-attachment-manager-close svg { width: 20px; height: 20px; }
|
||||
.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: 0 var(--space-4); }
|
||||
.ar-attachment-link { min-height: 36px; padding: 0; justify-self: start; color: var(--action); background: transparent; font-size: var(--text-sm); font-weight: var(--weight-medium); }
|
||||
|
||||
/* Та же высота, что у поля ввода (44), кнопка внутри – как в переключателе (34). */
|
||||
.ar-attachment-file-picker {
|
||||
min-height: var(--control-height);
|
||||
padding: 4px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-3);
|
||||
border: 1px dashed var(--border-control);
|
||||
border-radius: 12px;
|
||||
background: var(--surface);
|
||||
cursor: pointer;
|
||||
}
|
||||
.ar-attachment-file-picker:active { border-color: var(--accent); }
|
||||
@media (hover: hover) { .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: 34px;
|
||||
padding: 0 14px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
border-radius: 8px;
|
||||
font-size: var(--text-md);
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
.ar-attachment-meta {
|
||||
color: var(--text-secondary);
|
||||
display: grid;
|
||||
font-size: 0.86rem;
|
||||
gap: 0.25rem;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
|
||||
.ar-attachment-wallet-select option { color: var(--text-primary); background: var(--surface); }
|
||||
|
||||
|
||||
.ar-attachment-history-table-wrap {
|
||||
max-height: 55vh;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
|
||||
.ar-attachment-history-table {
|
||||
border-collapse: collapse;
|
||||
font-size: 0.84rem;
|
||||
min-width: 48rem;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
|
||||
.ar-attachment-history-table th,
|
||||
.ar-attachment-history-table td {
|
||||
border-bottom: 1px solid var(--border-subtle);
|
||||
padding: 0.55rem;
|
||||
text-align: left;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
|
||||
.ar-attachment-history-table th {
|
||||
color: var(--text-secondary);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
|
||||
.ar-attachment-history-tiles {
|
||||
align-content: start;
|
||||
box-sizing: border-box;
|
||||
display: grid;
|
||||
gap: 0.28rem;
|
||||
grid-auto-rows: min-content;
|
||||
max-height: 58vh;
|
||||
max-width: 100%;
|
||||
min-width: 0;
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
padding: 0.35rem;
|
||||
scrollbar-color: var(--border-control) var(--border-subtle);
|
||||
scrollbar-width: thin;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
|
||||
.ar-attachment-history-tiles::-webkit-scrollbar {
|
||||
display: block;
|
||||
height: 4px;
|
||||
width: 4px;
|
||||
}
|
||||
|
||||
|
||||
.ar-attachment-history-tiles::-webkit-scrollbar-track {
|
||||
background: var(--border-subtle);
|
||||
}
|
||||
|
||||
|
||||
.ar-attachment-history-tiles::-webkit-scrollbar-thumb {
|
||||
background: var(--border-control);
|
||||
border-radius: 999px;
|
||||
}
|
||||
|
||||
|
||||
.ar-attachment-history-tiles::-webkit-scrollbar-thumb:hover {
|
||||
background: var(--border-control);
|
||||
}
|
||||
|
||||
|
||||
.ar-attachment-history-tile {
|
||||
background: var(--surface);
|
||||
border: 1px solid transparent;
|
||||
border-radius: 0.52rem;
|
||||
box-sizing: border-box;
|
||||
color: var(--text-primary);
|
||||
display: grid;
|
||||
gap: 0.12rem;
|
||||
max-width: 100%;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
padding: 0.28rem 0.42rem;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
|
||||
.ar-attachment-history-tile.is-selected {
|
||||
border-color: var(--success);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
|
||||
.ar-attachment-history-tile--page {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
|
||||
.ar-attachment-history-tile-head {
|
||||
align-items: flex-start;
|
||||
display: flex;
|
||||
gap: 0.65rem;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
|
||||
.ar-attachment-history-name {
|
||||
display: block;
|
||||
font-size: 0.78rem;
|
||||
line-height: 1.08;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
|
||||
.ar-attachment-history-tile-head strong {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
|
||||
.ar-attachment-history-meta-row {
|
||||
align-items: center;
|
||||
color: var(--text-secondary);
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
font-size: 0.6875rem;
|
||||
gap: 0.22rem;
|
||||
line-height: 1.05;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
|
||||
.ar-attachment-history-txid {
|
||||
background: var(--border-subtle);
|
||||
border-radius: 0.34rem;
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.6875rem;
|
||||
line-height: 1.05;
|
||||
max-width: 100%;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
padding: 0.14rem 0.24rem;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
|
||||
.ar-attachment-status {
|
||||
border-radius: 999px;
|
||||
flex: 0 0 auto;
|
||||
font-size: 0.6875rem;
|
||||
font-weight: 800;
|
||||
line-height: 1;
|
||||
padding: 0.2rem 0.32rem;
|
||||
}
|
||||
|
||||
|
||||
.ar-attachment-status--available {
|
||||
background: var(--surface-selected);
|
||||
color: var(--success);
|
||||
}
|
||||
|
||||
|
||||
.ar-attachment-status--pending {
|
||||
background: var(--surface-selected);
|
||||
color: var(--warning);
|
||||
}
|
||||
|
||||
|
||||
.ar-attachment-status--unavailable {
|
||||
background: var(--surface-selected);
|
||||
color: var(--danger);
|
||||
}
|
||||
|
||||
|
||||
.ar-attachment-placement-flag {
|
||||
background: var(--surface-selected);
|
||||
border-radius: 999px;
|
||||
color: var(--accent);
|
||||
flex: 0 0 auto;
|
||||
font-size: 0.6875rem;
|
||||
font-weight: 800;
|
||||
line-height: 1;
|
||||
padding: 0.2rem 0.32rem;
|
||||
}
|
||||
|
||||
/* ===== Public / Arweave attachment source picker ===== */
|
||||
.public-attachment-manager-root {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 1200;
|
||||
}
|
||||
|
||||
.public-attachment-manager {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
padding: 20px;
|
||||
background: var(--scrim);
|
||||
}
|
||||
|
||||
.public-attachment-manager__card {
|
||||
width: min(620px, 100%);
|
||||
max-height: min(820px, calc(100dvh - 40px));
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.public-attachment-manager__header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.public-attachment-manager__sources {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.public-attachment-manager__source {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 10px;
|
||||
padding: 14px;
|
||||
border: 1px solid var(--border-control);
|
||||
border-radius: var(--radius-md);
|
||||
background: var(--surface);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.public-attachment-manager__source.is-selected {
|
||||
border-color: var(--accent);
|
||||
background: var(--accent-soft);
|
||||
}
|
||||
|
||||
.public-attachment-manager__source input { margin-top: 3px; }
|
||||
.public-attachment-manager__source span { display: grid; gap: 3px; }
|
||||
.public-attachment-manager__source small { color: var(--text-secondary); line-height: 1.35; }
|
||||
|
||||
.public-attachment-manager__server,
|
||||
.public-attachment-manager__arweave {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
/* The two storage modes are mutually exclusive. Keep this explicit because
|
||||
the author-level display:grid above otherwise overrides the browser's
|
||||
default [hidden] rule in some engines. */
|
||||
.public-attachment-manager__server[hidden],
|
||||
.public-attachment-manager__arweave[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.public-attachment-manager__notice {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
padding: 14px;
|
||||
border: 1px solid var(--border-subtle);
|
||||
border-radius: var(--radius-md);
|
||||
background: var(--quote-bg);
|
||||
color: var(--text-secondary);
|
||||
font-size: var(--text-sm);
|
||||
line-height: var(--leading-sm);
|
||||
}
|
||||
|
||||
.public-attachment-manager__notice strong { color: var(--text-primary); }
|
||||
.public-attachment-manager__notice p { margin: 0; }
|
||||
.public-attachment-manager__status { min-height: 1.25rem; }
|
||||
.public-attachment-manager__error { min-height: 1.25rem; }
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.public-attachment-manager { padding: 10px; place-items: end center; }
|
||||
.public-attachment-manager__card { width: 100%; max-height: calc(100dvh - 20px); }
|
||||
.public-attachment-manager__sources { grid-template-columns: 1fr; }
|
||||
}
|
||||
|
||||
/* Unified storage picker / balance dialogs */
|
||||
.public-attachment-manager__file-picker { width: 100%; box-sizing: border-box; }
|
||||
.public-attachment-manager__file-picker .ar-attachment-file-name { flex: 1; text-align: center; }
|
||||
.ar-balance-modal { z-index: 1400; }
|
||||
.ar-balance-modal__card { width: min(92vw, 32rem); }
|
||||
.ar-balance-grid { display: grid; gap: 8px; }
|
||||
.ar-balance-grid > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 12px; border: 1px solid var(--border-subtle); border-radius: 10px; }
|
||||
.ar-balance-grid span { color: var(--text-secondary); }
|
||||
.ar-wallet-address { padding: 12px; border: 1px solid var(--border-control); border-radius: 10px; background: var(--quote-bg); overflow-wrap: anywhere; user-select: all; }
|
||||
.ar-attachment-manager-card .form-actions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
||||
|
||||
/* Arweave manager embedded inside the unified server / Arweave picker. */
|
||||
.ar-attachment-manager-embedded-root { min-width: 0; }
|
||||
.ar-attachment-manager-card--embedded {
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
@@ -0,0 +1,344 @@
|
||||
/* Shared avatar component styles. */
|
||||
|
||||
.avatar-preview-circle {
|
||||
width: 124px;
|
||||
height: 124px;
|
||||
margin: 0 auto;
|
||||
border-radius: 50%;
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--border-control);
|
||||
background: var(--surface);
|
||||
}
|
||||
|
||||
|
||||
.avatar-preview-circle img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
object-position: center;
|
||||
display: block;
|
||||
}
|
||||
|
||||
|
||||
.avatar-wizard-preview {
|
||||
width: 140px;
|
||||
height: 140px;
|
||||
}
|
||||
|
||||
|
||||
.avatar-wizard-meta {
|
||||
font-size: 13px;
|
||||
line-height: 1.35;
|
||||
color: var(--text-secondary);
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
|
||||
.avatar-wizard-error {
|
||||
min-height: 18px;
|
||||
font-size: 13px;
|
||||
color: var(--danger);
|
||||
}
|
||||
|
||||
|
||||
.avatar-wizard-actions {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
|
||||
.avatar-wizard-choice-grid {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
|
||||
.avatar {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
min-width: 40px;
|
||||
min-height: 40px;
|
||||
flex: 0 0 auto;
|
||||
aspect-ratio: 1 / 1;
|
||||
border-radius: 50%;
|
||||
background: var(--surface-selected);
|
||||
display: grid;
|
||||
place-items: center;
|
||||
font-weight: 600;
|
||||
color: var(--accent);
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
|
||||
.avatar.avatar-xs,
|
||||
.avatar.xs {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
min-width: 20px;
|
||||
min-height: 20px;
|
||||
font-size: 9px;
|
||||
}
|
||||
|
||||
|
||||
.avatar.avatar-sm,
|
||||
.avatar.small {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
min-width: 28px;
|
||||
min-height: 28px;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
|
||||
.avatar.avatar-md,
|
||||
.avatar.medium {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
min-width: 40px;
|
||||
min-height: 40px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
|
||||
.avatar.avatar-lg,
|
||||
.avatar.big {
|
||||
width: 56px;
|
||||
height: 56px;
|
||||
min-width: 56px;
|
||||
min-height: 56px;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
|
||||
.avatar.avatar-xl,
|
||||
.avatar.large,
|
||||
.avatar.xlarge {
|
||||
width: 96px;
|
||||
height: 96px;
|
||||
min-width: 96px;
|
||||
min-height: 96px;
|
||||
font-size: 26px;
|
||||
}
|
||||
|
||||
|
||||
.avatar-image {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
}
|
||||
|
||||
|
||||
.avatar-image > .avatar-fallback,
|
||||
.avatar-image > img {
|
||||
grid-area: 1 / 1;
|
||||
}
|
||||
|
||||
|
||||
.avatar-fallback {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
opacity: 1;
|
||||
transition: opacity 120ms ease;
|
||||
}
|
||||
|
||||
|
||||
.avatar-image img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
object-position: center;
|
||||
border-radius: 50%;
|
||||
display: block;
|
||||
opacity: 0;
|
||||
transition: opacity 120ms ease;
|
||||
}
|
||||
|
||||
|
||||
.avatar-image.has-image img {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
|
||||
.avatar-image.has-image .avatar-fallback {
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
}
|
||||
.avatar img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: block;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
|
||||
/* ===== Единый шаблон аватаров (2026-08-22) =====
|
||||
* Базовая аватарка повторяет принцип орбов экрана «Связи»:
|
||||
* - fallback: нейтральный серый круг + белые инициалы;
|
||||
* - фото занимает тот же внутренний круг;
|
||||
* - стеклянный внешний круг остаётся поверх всегда, независимо от наличия фото;
|
||||
* - усиленное свечение включается модификатором .avatar-glow, не меняя геометрию аватара.
|
||||
*/
|
||||
.avatar.avatar-image.avatar-framed {
|
||||
position: relative;
|
||||
overflow: visible;
|
||||
isolation: isolate;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: var(--text-primary);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
|
||||
.avatar.avatar-image.avatar-framed > .avatar-fallback,
|
||||
.avatar.avatar-image.avatar-framed > .avatar-photo {
|
||||
grid-area: 1 / 1;
|
||||
place-self: center;
|
||||
width: 92.5%;
|
||||
height: 92.5%;
|
||||
border-radius: 50%;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
|
||||
.avatar.avatar-image.avatar-framed > .avatar-fallback {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
overflow: hidden;
|
||||
background: var(--surface-selected);
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
|
||||
.avatar.avatar-image.avatar-framed > .avatar-photo {
|
||||
display: block;
|
||||
object-fit: cover;
|
||||
object-position: center;
|
||||
opacity: 0;
|
||||
transition: opacity 120ms ease;
|
||||
}
|
||||
|
||||
|
||||
.avatar.avatar-image.avatar-framed.has-image > .avatar-photo {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
|
||||
.avatar.avatar-image.avatar-framed.has-image > .avatar-fallback {
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
|
||||
/* Второй круг — тот же стеклянный overlay, который используется в «Связях». */
|
||||
.avatar.avatar-image.avatar-framed::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 50% auto auto 50%;
|
||||
width: 119%;
|
||||
height: 119%;
|
||||
transform: translate(-50%, -50%);
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
background: url("../../assets/glass_overlay_faithful.png") center / contain no-repeat;
|
||||
box-shadow: none;
|
||||
opacity: 1;
|
||||
pointer-events: none;
|
||||
z-index: 3;
|
||||
}
|
||||
|
||||
|
||||
/* Опциональный усиленный ореол для состояний «сияющий» и будущих экранов. */
|
||||
.avatar.avatar-image.avatar-framed.avatar-glow::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: -16%;
|
||||
border-radius: 50%;
|
||||
background: radial-gradient(circle, rgba(139, 232, 255, 0.36) 0%, rgba(116, 217, 255, 0.14) 48%, rgba(116, 217, 255, 0) 74%);
|
||||
filter: blur(3px);
|
||||
pointer-events: none;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
/* Единый знак официального пользователя. Левый и нижний края зафиксированы,
|
||||
а сам знак растёт вправо и вверх вместе с аватаром. */
|
||||
.avatar.avatar-image.avatar-framed > .avatar-official-badge {
|
||||
position: absolute;
|
||||
left: -2%;
|
||||
bottom: -1%;
|
||||
width: 32%;
|
||||
height: 32%;
|
||||
min-width: 18px;
|
||||
min-height: 18px;
|
||||
object-fit: contain;
|
||||
object-position: center;
|
||||
display: block;
|
||||
opacity: 1;
|
||||
border-radius: 0;
|
||||
pointer-events: none;
|
||||
z-index: 4;
|
||||
filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.42));
|
||||
}
|
||||
|
||||
/* Спокойный вариант для текстовых лент; фото остаётся без фильтров. */
|
||||
.avatar.avatar-image.avatar-plain { overflow: hidden; background: var(--surface-selected); color: var(--accent); }
|
||||
.avatar.avatar-image.avatar-plain::after { content: none; }
|
||||
.avatar.avatar-image.avatar-plain > .avatar-fallback,
|
||||
.avatar.avatar-image.avatar-plain > .avatar-photo { width: 100%; height: 100%; box-shadow: none; text-shadow: none; }
|
||||
.avatar.avatar-image.avatar-plain > .avatar-fallback { background: var(--surface-selected); color: var(--accent); }
|
||||
|
||||
/* Просмотр фото профиля: без повторной загрузки картинки и без масштабирования PWA. */
|
||||
.user-profile-avatar-trigger {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
border-radius: 50%;
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
cursor: zoom-in;
|
||||
touch-action: manipulation;
|
||||
}
|
||||
.user-profile-avatar-trigger:focus-visible {
|
||||
outline: 2px solid var(--focus-ring);
|
||||
outline-offset: 6px;
|
||||
}
|
||||
.profile-avatar-preview {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 140;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
padding: 20px;
|
||||
background: rgb(0 0 0 / 90%);
|
||||
-webkit-backdrop-filter: blur(10px);
|
||||
backdrop-filter: blur(10px);
|
||||
touch-action: none;
|
||||
}
|
||||
.profile-avatar-preview__image {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: min(82vw, 430px, calc(100dvh - 96px));
|
||||
aspect-ratio: 1;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
border-radius: 50%;
|
||||
background: transparent;
|
||||
cursor: zoom-out;
|
||||
}
|
||||
.profile-avatar-preview__image > .avatar.avatar-image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
font-size: clamp(44px, 22vw, 128px);
|
||||
}
|
||||
.profile-avatar-preview__image:focus-visible { outline: 2px solid #fff; outline-offset: 8px; }
|
||||
@@ -0,0 +1,523 @@
|
||||
/* Shared call UI styles. */
|
||||
|
||||
.call-overlay[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
.call-ui-root[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
.call-ui-root {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: 80;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
|
||||
.call-minimized-bar {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
min-height: 44px;
|
||||
padding: calc(8px + env(safe-area-inset-top)) 14px 8px;
|
||||
border-bottom: 1px solid color-mix(in srgb, var(--success) 28%, transparent);
|
||||
background: linear-gradient(180deg, var(--success), var(--surface));
|
||||
box-shadow: 0 10px 24px rgba(5, 30, 16, 0.28);
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
|
||||
.call-minimized-bar-text {
|
||||
flex: 1 1 auto;
|
||||
min-width: 0;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
background-image: none;
|
||||
box-shadow: none;
|
||||
color: var(--text-primary);
|
||||
text-shadow: none;
|
||||
backdrop-filter: none;
|
||||
-webkit-backdrop-filter: none;
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
line-height: 1.2;
|
||||
text-align: left;
|
||||
padding: 0;
|
||||
cursor: pointer;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
transition: transform 90ms ease, box-shadow 90ms ease, background-color 90ms ease, filter 120ms ease;
|
||||
}
|
||||
|
||||
|
||||
@media (hover: hover) {
|
||||
.call-minimized-bar-text:hover {
|
||||
color: var(--text-primary);
|
||||
filter: brightness(1.12);
|
||||
}
|
||||
}
|
||||
|
||||
.call-minimized-bar-text:active {
|
||||
color: var(--text-primary);
|
||||
background: color-mix(in srgb, var(--surface) 12%, transparent);
|
||||
box-shadow:
|
||||
inset 0 3px 8px rgba(0, 0, 0, 0.58),
|
||||
inset 0 -1px 2px color-mix(in srgb, var(--text-primary) 8%, transparent);
|
||||
transform: translateY(1px) scale(0.97);
|
||||
filter: brightness(0.9);
|
||||
}
|
||||
|
||||
.call-minimized-bar-text:focus-visible {
|
||||
outline: 2px solid var(--border-control);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
.call-minimized-bar-text::before,
|
||||
.call-minimized-bar-text::after {
|
||||
background: transparent;
|
||||
background-image: none;
|
||||
border-color: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
|
||||
.call-minimized-bar-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
|
||||
.call-icon-btn {
|
||||
width: 40px;
|
||||
min-width: 40px;
|
||||
height: 40px;
|
||||
padding: 0;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border: 0;
|
||||
border-radius: 12px;
|
||||
background: transparent;
|
||||
background-image: none;
|
||||
box-shadow: none;
|
||||
color: var(--text-primary);
|
||||
text-shadow: none;
|
||||
backdrop-filter: none;
|
||||
-webkit-backdrop-filter: none;
|
||||
cursor: pointer;
|
||||
transition: transform 90ms ease, box-shadow 90ms ease, background-color 90ms ease, filter 120ms ease;
|
||||
}
|
||||
|
||||
|
||||
@media (hover: hover) {
|
||||
.call-icon-btn:hover {
|
||||
color: var(--text-primary);
|
||||
background: transparent;
|
||||
border: 0;
|
||||
box-shadow: none;
|
||||
transform: translateY(-1px);
|
||||
filter: brightness(1.12);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.call-icon-btn:active {
|
||||
color: var(--text-primary);
|
||||
background: color-mix(in srgb, var(--surface) 12%, transparent);
|
||||
border: 0;
|
||||
box-shadow:
|
||||
inset 0 3px 8px rgba(0, 0, 0, 0.58),
|
||||
inset 0 -1px 2px color-mix(in srgb, var(--text-primary) 8%, transparent);
|
||||
transform: translateY(1px) scale(0.97);
|
||||
filter: brightness(0.9);
|
||||
}
|
||||
|
||||
|
||||
.call-icon-btn:disabled {
|
||||
opacity: 1;
|
||||
color: var(--text-secondary);
|
||||
background: transparent;
|
||||
border: 0;
|
||||
box-shadow: none;
|
||||
cursor: not-allowed;
|
||||
transform: none;
|
||||
filter: none;
|
||||
}
|
||||
|
||||
|
||||
.call-icon-btn:focus-visible {
|
||||
outline: 2px solid var(--border-control);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
|
||||
.call-icon-btn::before,
|
||||
.call-icon-btn::after {
|
||||
background: transparent;
|
||||
background-image: none;
|
||||
border-color: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
|
||||
.call-icon-btn svg {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
|
||||
/* secondary/danger visual shells were never observable in Stage 3.1; only geometry variants remain. */
|
||||
|
||||
|
||||
.call-icon-btn--bar {
|
||||
width: 34px;
|
||||
min-width: 34px;
|
||||
height: 34px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
|
||||
.call-icon-btn--bar svg {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
}
|
||||
|
||||
|
||||
.call-overlay {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: var(--surface);
|
||||
backdrop-filter: blur(8px);
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
|
||||
.call-overlay-panel {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
background:
|
||||
radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 34%),
|
||||
linear-gradient(180deg, var(--surface), var(--surface));
|
||||
}
|
||||
|
||||
|
||||
.call-overlay-panel--remote-video {
|
||||
background: var(--surface);
|
||||
}
|
||||
|
||||
|
||||
.call-overlay-head {
|
||||
position: absolute;
|
||||
top: calc(12px + env(safe-area-inset-top));
|
||||
left: 14px;
|
||||
right: 14px;
|
||||
z-index: 4;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 10px;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
|
||||
.call-overlay-title {
|
||||
margin: 0;
|
||||
min-height: 22px;
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
color: var(--text-primary);
|
||||
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.44);
|
||||
}
|
||||
|
||||
|
||||
.call-overlay-minimize-btn {
|
||||
flex: 0 0 auto;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
|
||||
.call-overlay-status {
|
||||
position: absolute;
|
||||
left: 18px;
|
||||
right: 18px;
|
||||
bottom: calc(12px + env(safe-area-inset-bottom));
|
||||
z-index: 4;
|
||||
text-align: center;
|
||||
color: var(--text-primary);
|
||||
font-size: 13px;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
|
||||
.call-video-stage {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
overflow: hidden;
|
||||
background:
|
||||
radial-gradient(circle at 50% 24%, color-mix(in srgb, var(--accent) 48%, transparent), transparent 30%),
|
||||
linear-gradient(180deg, var(--surface), var(--surface));
|
||||
}
|
||||
|
||||
|
||||
.call-video-stage--remote-video {
|
||||
background: var(--surface);
|
||||
}
|
||||
|
||||
|
||||
.call-remote-video,
|
||||
.call-local-video {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
background: var(--surface);
|
||||
}
|
||||
|
||||
|
||||
.call-remote-video[hidden],
|
||||
.call-local-preview[hidden],
|
||||
.call-hero[hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
|
||||
.call-hero {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: clamp(8vh, 16vh, 19vh);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 14px;
|
||||
padding: 0 24px;
|
||||
text-align: center;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
|
||||
.call-peer-avatar-slot {
|
||||
width: min(42vw, 168px);
|
||||
height: min(42vw, 168px);
|
||||
display: grid;
|
||||
place-items: center;
|
||||
}
|
||||
|
||||
|
||||
.call-peer-avatar-slot .call-peer-avatar {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
min-width: 100%;
|
||||
min-height: 100%;
|
||||
border-radius: 999px;
|
||||
border: 2px solid var(--border-subtle);
|
||||
background: linear-gradient(180deg, var(--surface), var(--surface));
|
||||
box-shadow: 0 24px 48px rgba(0, 0, 0, 0.34);
|
||||
}
|
||||
|
||||
|
||||
.call-peer-avatar-slot .call-peer-avatar .avatar-fallback {
|
||||
font-size: clamp(34px, 9vw, 58px);
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
|
||||
.call-peer-login {
|
||||
max-width: 86vw;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
color: var(--text-primary);
|
||||
font-size: clamp(20px, 5.8vw, 28px);
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
|
||||
|
||||
.call-kind {
|
||||
color: var(--text-primary);
|
||||
font-size: clamp(27px, 8vw, 40px);
|
||||
font-weight: 800;
|
||||
letter-spacing: 0.05em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
|
||||
.call-hero-status {
|
||||
max-width: 88vw;
|
||||
color: var(--text-primary);
|
||||
font-size: 14px;
|
||||
line-height: 1.35;
|
||||
}
|
||||
|
||||
|
||||
.call-local-preview {
|
||||
position: absolute;
|
||||
right: 16px;
|
||||
bottom: calc(18px + env(safe-area-inset-bottom));
|
||||
z-index: 4;
|
||||
width: min(30vw, 130px);
|
||||
aspect-ratio: 3 / 4;
|
||||
border-radius: 14px;
|
||||
overflow: hidden;
|
||||
border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
|
||||
background: var(--surface);
|
||||
box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
|
||||
cursor: grab;
|
||||
touch-action: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
|
||||
.call-local-preview:active {
|
||||
cursor: grabbing;
|
||||
}
|
||||
|
||||
|
||||
.call-overlay-controls {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
bottom: calc(env(safe-area-inset-bottom) + clamp(54px, 16vh, 112px));
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
gap: 18px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: min(92vw, 520px);
|
||||
z-index: 4;
|
||||
}
|
||||
|
||||
|
||||
.call-overlay-controls[hidden],
|
||||
.call-overlay-controls--incoming[hidden],
|
||||
.call-overlay-controls--active[hidden],
|
||||
.call-icon-btn[hidden],
|
||||
.call-accept-btn[hidden],
|
||||
.call-decline-btn[hidden],
|
||||
.call-minimized-bar-actions[hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
|
||||
.call-overlay-controls--incoming {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
|
||||
.call-overlay-controls--active {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
.call-decline-btn {
|
||||
min-width: 132px;
|
||||
}
|
||||
|
||||
|
||||
.call-accept-btn {
|
||||
min-width: 132px;
|
||||
min-height: 38px;
|
||||
padding: 9px 12px;
|
||||
border: 0;
|
||||
border-radius: var(--radius-sm);
|
||||
background: transparent;
|
||||
background-image: none;
|
||||
box-shadow: none;
|
||||
color: var(--text-primary);
|
||||
text-shadow: none;
|
||||
backdrop-filter: none;
|
||||
-webkit-backdrop-filter: none;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
transition: transform 90ms ease, box-shadow 90ms ease, background-color 90ms ease, filter 120ms ease;
|
||||
}
|
||||
|
||||
|
||||
@media (hover: hover) {
|
||||
.call-accept-btn:hover {
|
||||
color: var(--text-primary);
|
||||
background: transparent;
|
||||
border: 0;
|
||||
box-shadow: none;
|
||||
transform: translateY(-1px);
|
||||
filter: brightness(1.12);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.call-accept-btn:active {
|
||||
color: var(--text-primary);
|
||||
background: color-mix(in srgb, var(--surface) 12%, transparent);
|
||||
border: 0;
|
||||
box-shadow:
|
||||
inset 0 3px 8px rgba(0, 0, 0, 0.58),
|
||||
inset 0 -1px 2px color-mix(in srgb, var(--text-primary) 8%, transparent);
|
||||
transform: translateY(1px) scale(0.97);
|
||||
filter: brightness(0.9);
|
||||
}
|
||||
|
||||
|
||||
.call-accept-btn:disabled {
|
||||
opacity: 1;
|
||||
color: var(--text-secondary);
|
||||
background: transparent;
|
||||
border: 0;
|
||||
box-shadow: none;
|
||||
cursor: not-allowed;
|
||||
transform: none;
|
||||
filter: none;
|
||||
}
|
||||
|
||||
|
||||
.call-accept-btn:focus-visible {
|
||||
outline: 2px solid var(--border-control);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
|
||||
.call-accept-btn::before,
|
||||
.call-accept-btn::after {
|
||||
background: transparent;
|
||||
background-image: none;
|
||||
border-color: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
|
||||
@media (max-width: 420px) {
|
||||
.call-overlay-controls {
|
||||
gap: 16px;
|
||||
bottom: calc(env(safe-area-inset-bottom) + clamp(48px, 14vh, 96px));
|
||||
}
|
||||
.call-icon-btn {
|
||||
width: 46px;
|
||||
min-width: 46px;
|
||||
height: 46px;
|
||||
border-radius: 14px;
|
||||
}
|
||||
.call-icon-btn svg {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
}
|
||||
.call-accept-btn,
|
||||
.call-decline-btn {
|
||||
min-width: 124px;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,259 @@
|
||||
.channel-editor-overlay {
|
||||
position: fixed;
|
||||
top: var(--editor-top, 0px);
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: var(--editor-height, 100dvh);
|
||||
z-index: 90;
|
||||
display: grid;
|
||||
background: var(--scrim);
|
||||
}
|
||||
|
||||
.channel-editor {
|
||||
width: min(100%, 640px);
|
||||
height: 100%;
|
||||
min-height: 0;
|
||||
margin-inline: auto;
|
||||
display: grid;
|
||||
grid-template-rows: auto minmax(0, 1fr) auto;
|
||||
overflow: hidden;
|
||||
color: var(--text-primary);
|
||||
background: var(--background);
|
||||
}
|
||||
|
||||
.channel-editor__header {
|
||||
min-height: calc(56px + env(safe-area-inset-top));
|
||||
padding: env(safe-area-inset-top) 14px 0 6px;
|
||||
display: grid;
|
||||
grid-template-columns: 44px minmax(0, 1fr) auto;
|
||||
gap: 6px;
|
||||
align-items: center;
|
||||
border-bottom: 1px solid var(--border-subtle);
|
||||
background: var(--surface);
|
||||
}
|
||||
|
||||
.channel-editor__header h2 {
|
||||
font-size: 16px;
|
||||
line-height: 24px;
|
||||
font-weight: 600;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.channel-editor__close {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
padding: 0;
|
||||
font-size: 28px;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.channel-editor__body {
|
||||
min-height: 0;
|
||||
padding: 16px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.channel-editor__context {
|
||||
padding-left: 12px;
|
||||
border-left: 2px solid var(--accent);
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.channel-editor__context strong {
|
||||
display: block;
|
||||
margin-bottom: 4px;
|
||||
color: var(--text-primary);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.channel-editor__context p {
|
||||
display: -webkit-box;
|
||||
overflow: hidden;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 2;
|
||||
font-size: 13px;
|
||||
line-height: 18px;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.channel-editor__context.is-expanded p { display: block; }
|
||||
|
||||
.channel-editor__context-toggle,
|
||||
.channel-editor__clear {
|
||||
min-height: 44px;
|
||||
padding: 6px 0;
|
||||
color: var(--accent);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.channel-editor__input {
|
||||
flex: 1 0 auto;
|
||||
overflow-y: hidden;
|
||||
width: 100%;
|
||||
min-height: 160px;
|
||||
padding: 12px 14px;
|
||||
resize: none;
|
||||
border: 1px solid var(--border-subtle);
|
||||
border-radius: 14px;
|
||||
outline: 0;
|
||||
color: var(--text-primary);
|
||||
background: var(--surface);
|
||||
transition: border-color 160ms ease;
|
||||
font: inherit;
|
||||
font-size: 16px;
|
||||
line-height: 24px;
|
||||
caret-color: var(--accent);
|
||||
}
|
||||
|
||||
.channel-editor__input::placeholder { color: color-mix(in srgb, var(--text-secondary) 62%, var(--background)); opacity: 1; }
|
||||
|
||||
.channel-editor__type {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
color: var(--text-secondary);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.channel-editor__input:focus-visible { outline: 0; border-color: var(--accent); }
|
||||
|
||||
.channel-editor__attachments { display: grid; gap: 8px; }
|
||||
.channel-editor__author { display: flex; align-items: center; gap: 12px; font-size: .875rem; }
|
||||
.channel-editor__author .avatar { width: 40px; height: 40px; min-width: 40px; min-height: 40px; }
|
||||
.channel-editor__context-toggle[hidden] { display: none; }
|
||||
.channel-editor__chain { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
|
||||
.channel-editor__chain-item { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; padding-bottom: 16px; }
|
||||
/* Линия от аватара вниз – к следующему звену и к автору ответа. */
|
||||
.channel-editor__chain-item::after { content: ''; position: absolute; top: 44px; bottom: -2px; left: 19px; border-left: 2px solid var(--border-control); }
|
||||
.channel-editor__chain-item .avatar.channel-editor__chain-avatar { width: 40px; height: 40px; min-width: 40px; min-height: 40px; }
|
||||
.channel-editor__chain-main { min-width: 0; }
|
||||
.channel-editor__chain-head { display: flex; align-items: baseline; gap: 6px; min-height: 22px; }
|
||||
.channel-editor__chain-head strong { font-size: .9375rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.channel-editor__chain-head span { flex-shrink: 0; color: var(--text-secondary); font-size: .875rem; }
|
||||
.channel-editor__chain-main p { margin: 2px 0 0; color: var(--text-primary); font-size: .9375rem; line-height: 1.4375rem; white-space: pre-wrap; overflow-wrap: anywhere; }
|
||||
.channel-editor__author.is-chained { margin-top: -4px; }
|
||||
.channel-editor__attach[hidden], .channel-editor__clear[hidden] { display: none; }
|
||||
|
||||
.channel-editor__attachment {
|
||||
min-height: 44px;
|
||||
padding: 6px 8px 6px 12px;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 44px;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
border: 1px solid var(--border-subtle);
|
||||
border-radius: 12px;
|
||||
background: var(--surface);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.channel-editor__attachment span {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.channel-editor__attachment button { min-width: 44px; min-height: 44px; color: var(--text-secondary); }
|
||||
|
||||
.channel-editor__error {
|
||||
min-height: 18px;
|
||||
color: var(--danger);
|
||||
font-size: 13px;
|
||||
line-height: 18px;
|
||||
}
|
||||
|
||||
.channel-editor__footer {
|
||||
min-height: calc(68px + env(safe-area-inset-bottom));
|
||||
padding: 12px 16px calc(12px + env(safe-area-inset-bottom)) 8px;
|
||||
display: grid;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
border-top: 1px solid var(--border-subtle);
|
||||
background: var(--background);
|
||||
}
|
||||
|
||||
.channel-editor__submit {
|
||||
min-height: 44px;
|
||||
padding: 0 18px;
|
||||
border-radius: 22px;
|
||||
}
|
||||
|
||||
.channel-editor__submit {
|
||||
color: var(--on-accent);
|
||||
background: var(--accent);
|
||||
}
|
||||
|
||||
.channel-editor__submit:disabled {
|
||||
opacity: 1;
|
||||
color: var(--text-secondary);
|
||||
background: var(--surface-selected);
|
||||
}
|
||||
|
||||
.channel-editor__type { display: block; min-width: 0; }
|
||||
.channel-editor__type-select { min-height: 44px; width: auto; max-width: 9.5rem; padding-left: 12px; border-radius: 12px; font-size: .875rem; }
|
||||
|
||||
.channel-editor__counter {
|
||||
min-width: 0;
|
||||
color: var(--text-secondary);
|
||||
font-size: 12px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.channel-editor__counter.is-near-limit { color: var(--warning); }
|
||||
|
||||
@media (min-width: 680px) {
|
||||
.channel-editor-overlay { place-items: center; padding: 24px; }
|
||||
.channel-editor {
|
||||
height: min(760px, 100%);
|
||||
border: 1px solid var(--border-subtle);
|
||||
border-radius: 20px;
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 400px) {
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.channel-editor-overlay, .channel-editor { animation: none; transition: none; }
|
||||
}
|
||||
.channel-editor__author-text { display: grid; gap: 1px; min-width: 0; }
|
||||
.channel-editor__author-text small { color: var(--text-secondary); font-size: .75rem; }
|
||||
.channel-editor__draft { justify-self: end; color: var(--text-secondary); font-size: .75rem; }
|
||||
.channel-editor__close svg { width: 24px; height: 24px; }
|
||||
|
||||
/* Поле ввода как в Threads: без рамки, в колонке справа от аватара – под именем (и строкой «В канал …»); вложения – ниже текста. */
|
||||
.channel-editor__author { align-items: flex-start; }
|
||||
.channel-editor__author-text { flex: 1; padding-top: 1px; }
|
||||
.channel-editor__compose { display: grid; gap: 8px; margin-top: 4px; }
|
||||
.channel-editor__compose .channel-editor__input { flex: none; min-height: 24px; padding: 0; border: 0; border-radius: 0; background: transparent; line-height: 24px; }
|
||||
.channel-editor__compose .channel-editor__input:focus-visible { border: 0; }
|
||||
.channel-editor__compose .channel-editor__error:empty { display: none; }
|
||||
/* Нижняя панель: «прикрепить» и тип записи слева, счётчик (только у предела) и отправка – справа; ничего не вылезает за край. */
|
||||
.channel-editor__footer { display: flex; align-items: center; gap: 8px; }
|
||||
.channel-editor__footer .channel-editor__attach { flex: none; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--accent); }
|
||||
.channel-editor__footer .channel-editor__attach:active { background: var(--surface-selected); }
|
||||
@media (hover: hover) { .channel-editor__footer .channel-editor__attach:hover { background: var(--surface-selected); } }
|
||||
.channel-editor__footer .channel-editor__attach svg { width: 24px; height: 24px; }
|
||||
.channel-editor__footer .channel-editor__type { flex: 0 1 auto; min-width: 0; }
|
||||
.channel-editor__footer .channel-editor__type-select { width: 100%; max-width: 9.5rem; min-width: 0; text-overflow: ellipsis; }
|
||||
/* Колонка редактора не должна раздуваться содержимым шире экрана. */
|
||||
.channel-editor { grid-template-columns: minmax(0, 1fr); }
|
||||
.channel-editor__footer, .channel-editor__body { min-width: 0; }
|
||||
.channel-editor__footer .channel-editor__counter { margin-left: auto; }
|
||||
.channel-editor__footer .channel-editor__counter.is-hidden { display: none; }
|
||||
.channel-editor__footer .channel-editor__counter.is-hidden + .channel-editor__submit { margin-left: auto; }
|
||||
.channel-editor__footer .channel-editor__submit { flex: none; }
|
||||
/* Миниатюры картинок и видео – лентой, крестик в углу. */
|
||||
.channel-editor__compose .channel-editor__attachments { display: flex; flex-wrap: wrap; gap: 8px; }
|
||||
.channel-editor__compose .channel-editor__attachment { flex: 1 1 100%; }
|
||||
.channel-editor__thumb { position: relative; width: 120px; height: 150px; overflow: hidden; border: 1px solid var(--border-subtle); border-radius: 12px; background: var(--surface-selected); }
|
||||
.channel-editor__thumb img, .channel-editor__thumb video { display: block; width: 100%; height: 100%; object-fit: cover; }
|
||||
.channel-editor__thumb-remove { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgb(0 0 0 / .6); color: #fff; cursor: pointer; }
|
||||
.channel-editor__thumb-remove svg { width: 16px; height: 16px; }
|
||||
.channel-editor__thumb--video::after { content: ''; position: absolute; left: 8px; bottom: 8px; width: 24px; height: 24px; border-radius: 50%; background: rgb(0 0 0 / .6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7v10l8-5z' fill='white'/%3E%3C/svg%3E") center / 18px no-repeat; pointer-events: none; }
|
||||
.channel-editor__header-end { justify-self: end; display: flex; align-items: center; }
|
||||
.channel-editor__header-end .channel-editor__clear { min-height: 44px; padding: 0 4px; }
|
||||
.channel-editor__header-end [hidden] { display: none; }
|
||||
@@ -0,0 +1,58 @@
|
||||
/* Чипы-фильтры: ряд над списком («Все / Близкие / …»), как папки в мессенджерах.
|
||||
* Выбранный чип выглядит так же, как выбранная вкладка (.tab-btn[aria-checked]). */
|
||||
.chip-row {
|
||||
display: flex;
|
||||
gap: var(--space-2);
|
||||
overflow-x: auto;
|
||||
padding: var(--space-1) 0;
|
||||
scrollbar-width: none;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
.chip-row::-webkit-scrollbar { display: none; }
|
||||
.chip-row[hidden] { display: none; }
|
||||
|
||||
.chip,
|
||||
.fg-filter-chip {
|
||||
flex-shrink: 0;
|
||||
min-height: 36px;
|
||||
padding: 0 14px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
border: 1px solid var(--border-subtle);
|
||||
border-radius: var(--radius-pill);
|
||||
color: var(--text-secondary);
|
||||
background: var(--surface);
|
||||
font: inherit;
|
||||
font-size: var(--text-sm);
|
||||
font-weight: var(--weight-medium);
|
||||
line-height: 1;
|
||||
white-space: nowrap;
|
||||
cursor: pointer;
|
||||
box-shadow: none;
|
||||
backdrop-filter: none;
|
||||
-webkit-backdrop-filter: none;
|
||||
transition: background-color var(--duration-fast) ease, color var(--duration-fast) ease, border-color var(--duration-fast) ease;
|
||||
}
|
||||
.chip:active,
|
||||
.fg-filter-chip:active { color: var(--text-primary); }
|
||||
@media (hover: hover) {
|
||||
.chip:hover,
|
||||
.fg-filter-chip:hover { color: var(--text-primary); }
|
||||
}
|
||||
.chip[aria-pressed='true'],
|
||||
.chip.is-active,
|
||||
.fg-filter-chip.is-active {
|
||||
color: var(--text-primary);
|
||||
background: var(--surface-selected);
|
||||
border-color: color-mix(in srgb, var(--accent) 55%, var(--border-control));
|
||||
font-weight: var(--weight-bold);
|
||||
box-shadow: none;
|
||||
}
|
||||
.chip:focus-visible,
|
||||
.fg-filter-chip:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
|
||||
|
||||
.chip[hidden] { display: none; }
|
||||
|
||||
/* Значок в чипе – по размеру текста, что бы ни задала страница. */
|
||||
.chip svg { flex: 0 0 auto; width: 16px; height: 16px; }
|
||||
@@ -0,0 +1,14 @@
|
||||
/* Строка ввода внизу экрана (обсуждение; тот же рисунок у чата): капсула с полем и эмодзи + круглая отправка */
|
||||
.compose-row { display: flex; gap: 6px; align-items: flex-end; }
|
||||
.compose-field { flex: 1; min-width: 0; display: flex; align-items: flex-end; padding: 0 6px 0 12px; border: 1px solid var(--border-control); border-radius: 22px; background: var(--surface-raised); }
|
||||
.compose-field:focus-within { border-color: var(--accent); }
|
||||
.compose-field__input { flex: 1; min-width: 0; min-height: 44px; max-height: 132px; padding: 10px 0; border: 0; background: transparent; color: var(--text-primary); font: inherit; font-size: 1rem; line-height: 1.375rem; resize: none; field-sizing: content; outline: none; }
|
||||
.compose-field__input::placeholder { color: var(--text-secondary); }
|
||||
.compose-field__emoji { width: 32px; min-width: 32px; height: 44px; padding: 0; display: grid; place-items: center; border: 0; background: transparent; color: var(--text-secondary); cursor: pointer; }
|
||||
.compose-field__emoji svg { width: 22px; height: 22px; }
|
||||
.compose-send { width: 44px; height: 44px; min-width: 44px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--accent); color: var(--on-accent); cursor: pointer; }
|
||||
.compose-send svg { width: 22px; height: 22px; stroke-width: 2.2; }
|
||||
@media (hover: hover) { .compose-send:hover:not(:disabled) { background: var(--accent-hover); } }
|
||||
.compose-send:active:not(:disabled) { background: var(--accent-pressed); }
|
||||
.compose-send:disabled { background: var(--disabled-bg); color: var(--disabled-text); cursor: default; }
|
||||
.compose-send:focus-visible, .compose-field__emoji:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
|
||||
@@ -0,0 +1,20 @@
|
||||
:root { --z-overlay: 100; --z-dropdown: 110; --z-modal: 120; }
|
||||
.dropdown-portal { pointer-events: none; }
|
||||
.dropdown-backdrop { position: fixed; inset: 0; z-index: var(--z-overlay); pointer-events: auto; background: var(--scrim); }
|
||||
.dropdown-menu { position: fixed; z-index: var(--z-dropdown); display: grid; gap: 2px; padding: 6px; min-width: 196px; max-width: calc(100vw - 20px); max-height: calc(100dvh - 20px); overflow-y: auto; border: 1px solid var(--border-control); border-radius: 14px; background: var(--surface); color: var(--text-primary); box-shadow: var(--shadow); pointer-events: auto; }
|
||||
.dropdown-menu__item { width: 100%; min-height: 44px; padding: 8px 10px; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 8px; background: transparent; color: var(--text-primary); font: inherit; font-size: .875rem; line-height: 1.4; text-align: left; cursor: pointer; }
|
||||
@media (hover: hover) { .dropdown-menu__item:hover { background: var(--surface-raised); } }
|
||||
.dropdown-menu__item.is-selected { background: var(--surface-selected); }
|
||||
.dropdown-menu__item:active { background: var(--surface-selected); }
|
||||
.dropdown-menu__item:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
|
||||
.dropdown-menu__item.is-danger { color: var(--danger); }
|
||||
.dropdown-menu__item:disabled { opacity: .5; cursor: not-allowed; }
|
||||
.dropdown-menu__icon, .dropdown-menu__icon svg, .dropdown-menu__item > img { width: 21px; height: 21px; flex: 0 0 21px; object-fit: contain; }
|
||||
.dropdown-menu__icon { color: var(--text-secondary); }
|
||||
.dropdown-menu__item.is-danger .dropdown-menu__icon { color: var(--danger); }
|
||||
.dropdown-menu__divider { height: 1px; margin: 5px 8px; background: var(--border-subtle); }
|
||||
.dropdown-menu__text { min-width: 0; display: grid; gap: 1px; }
|
||||
.dropdown-menu__hint { color: var(--text-secondary); font-size: .75rem; line-height: 1.3; }
|
||||
.dropdown-menu__chevron { margin-left: auto; padding-left: 6px; display: inline-flex; color: var(--text-secondary); }
|
||||
.dropdown-menu__chevron svg { width: 16px; height: 16px; }
|
||||
.dropdown-menu__back { min-height: 40px; color: var(--text-secondary); font-weight: 600; }
|
||||
@@ -0,0 +1,180 @@
|
||||
/* Emoji picker and Twemoji UI styles. */
|
||||
|
||||
.emoji-picker-slot {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
|
||||
.emoji-picker-slot[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
.emoji-picker {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
max-height: min(40vh, 292px);
|
||||
overflow-y: auto;
|
||||
scrollbar-width: none;
|
||||
-ms-overflow-style: none;
|
||||
padding: 10px;
|
||||
border-radius: 14px;
|
||||
background: var(--surface);
|
||||
box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
|
||||
.emoji-picker::-webkit-scrollbar,
|
||||
.emoji-picker-tabs::-webkit-scrollbar {
|
||||
width: 0;
|
||||
height: 0;
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
.emoji-picker-section {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
|
||||
.emoji-picker-section-title {
|
||||
color: var(--text-primary);
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
|
||||
.emoji-picker-tabs {
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
overflow-x: auto;
|
||||
padding-bottom: 2px;
|
||||
scrollbar-width: none;
|
||||
-ms-overflow-style: none;
|
||||
}
|
||||
|
||||
|
||||
.emoji-picker-tab {
|
||||
flex: 0 0 38px;
|
||||
width: 38px;
|
||||
}
|
||||
|
||||
|
||||
.emoji-picker-tab,
|
||||
.emoji-picker-item {
|
||||
border: 0;
|
||||
background: transparent;
|
||||
background-image: none;
|
||||
box-shadow: none;
|
||||
color: var(--text-primary);
|
||||
text-shadow: none;
|
||||
backdrop-filter: none;
|
||||
-webkit-backdrop-filter: none;
|
||||
cursor: pointer;
|
||||
appearance: none;
|
||||
-webkit-appearance: none;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
transition:
|
||||
transform 90ms ease,
|
||||
box-shadow 90ms ease,
|
||||
background-color 90ms ease,
|
||||
filter 120ms ease;
|
||||
}
|
||||
|
||||
|
||||
.emoji-picker-tab {
|
||||
min-height: 34px;
|
||||
border-radius: 8px;
|
||||
font-size: 19px;
|
||||
}
|
||||
|
||||
|
||||
.emoji-picker-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(7, minmax(0, 1fr));
|
||||
gap: 3px;
|
||||
}
|
||||
|
||||
|
||||
.emoji-picker-item {
|
||||
min-height: 38px;
|
||||
border-radius: 8px;
|
||||
font-size: 24px;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
|
||||
@media (hover: hover) {
|
||||
.emoji-picker-tab:hover,
|
||||
.emoji-picker-item:hover {
|
||||
color: var(--text-primary);
|
||||
background: transparent;
|
||||
border: 0;
|
||||
box-shadow: none;
|
||||
filter: brightness(1.12);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.emoji-picker-tab:focus,
|
||||
.emoji-picker-item:focus {
|
||||
outline: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
|
||||
.emoji-picker-tab:active,
|
||||
.emoji-picker-item:active {
|
||||
color: var(--text-primary);
|
||||
background: color-mix(in srgb, var(--surface) 12%, transparent);
|
||||
border: 0;
|
||||
box-shadow:
|
||||
inset 0 3px 8px rgba(0, 0, 0, 0.58),
|
||||
inset 0 -1px 2px color-mix(in srgb, var(--text-primary) 8%, transparent);
|
||||
transform: translateY(1px) scale(0.97);
|
||||
filter: brightness(0.9);
|
||||
}
|
||||
|
||||
|
||||
.emoji-picker-tab:focus-visible,
|
||||
.emoji-picker-item:focus-visible {
|
||||
outline: 2px solid var(--border-control);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
|
||||
.emoji-picker-tab::before,
|
||||
.emoji-picker-tab::after,
|
||||
.emoji-picker-item::before,
|
||||
.emoji-picker-item::after {
|
||||
background: transparent;
|
||||
background-image: none;
|
||||
border-color: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
|
||||
.twemoji,
|
||||
.emoji-picker-preview {
|
||||
display: inline-grid;
|
||||
place-items: center;
|
||||
width: 1em;
|
||||
height: 1em;
|
||||
vertical-align: -0.12em;
|
||||
}
|
||||
|
||||
|
||||
.twemoji-image {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
|
||||
.twemoji.is-error .twemoji-image,
|
||||
.emoji-picker-preview.is-error .twemoji-image {
|
||||
visibility: hidden;
|
||||
}
|
||||
@@ -0,0 +1,182 @@
|
||||
/* Общие состояния экрана (js/components/feedback.js): спиннер, загрузка с задержкой,
|
||||
* «пусто» и ошибка с «Повторить». */
|
||||
|
||||
.spinner {
|
||||
display: inline-block;
|
||||
flex: 0 0 auto;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 50%;
|
||||
border: 2px solid color-mix(in srgb, var(--text-secondary) 26%, transparent);
|
||||
border-top-color: var(--accent);
|
||||
animation: spinner-spin 0.8s linear infinite;
|
||||
}
|
||||
|
||||
.spinner--sm { width: 16px; height: 16px; }
|
||||
.spinner--lg { width: 28px; height: 28px; border-width: 2.5px; }
|
||||
|
||||
@keyframes spinner-spin {
|
||||
to { transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
/* Появляется только если ждать дольше --loading-delay: быстрые загрузки не мелькают. */
|
||||
.loading-state {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: var(--space-6) 0;
|
||||
opacity: 0;
|
||||
animation: loading-state-in 180ms ease forwards;
|
||||
animation-delay: var(--loading-delay, 350ms);
|
||||
}
|
||||
|
||||
@keyframes loading-state-in {
|
||||
to { opacity: 1; }
|
||||
}
|
||||
|
||||
.state-message {
|
||||
display: grid;
|
||||
justify-items: center;
|
||||
gap: var(--space-2);
|
||||
max-width: 340px;
|
||||
margin: 0 auto;
|
||||
padding: var(--space-6) var(--space-4);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.state-message__icon {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 52px;
|
||||
height: 52px;
|
||||
margin-bottom: var(--space-1);
|
||||
border-radius: 50%;
|
||||
color: var(--text-secondary);
|
||||
background: var(--surface-raised);
|
||||
}
|
||||
|
||||
.state-message__icon svg {
|
||||
width: 26px;
|
||||
height: 26px;
|
||||
}
|
||||
|
||||
.state-message--error .state-message__icon {
|
||||
color: var(--danger);
|
||||
background: color-mix(in srgb, var(--danger) 13%, transparent);
|
||||
}
|
||||
|
||||
.state-message__title {
|
||||
margin: 0;
|
||||
color: var(--text-primary);
|
||||
font-size: var(--text-md);
|
||||
font-weight: var(--weight-bold);
|
||||
}
|
||||
|
||||
.state-message__text {
|
||||
margin: 0;
|
||||
color: var(--text-secondary);
|
||||
font-size: var(--text-sm);
|
||||
line-height: var(--leading-sm, 1.45);
|
||||
}
|
||||
|
||||
.state-message__action {
|
||||
margin-top: var(--space-2);
|
||||
min-width: 160px;
|
||||
}
|
||||
|
||||
/* Короткие сообщения внизу (showToast в services/channels-ux.js): над нижним меню и полем
|
||||
* ввода (bottom задаёт JS), значок по смыслу, касание закрывает. */
|
||||
.toast-host {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: calc(90px + env(safe-area-inset-bottom));
|
||||
z-index: 140;
|
||||
display: grid;
|
||||
justify-items: center;
|
||||
gap: 8px;
|
||||
padding: 0 var(--page-gutter);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.toast {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
max-width: min(100%, 440px);
|
||||
min-height: 44px;
|
||||
padding: 10px 14px;
|
||||
border: 1px solid var(--border-subtle);
|
||||
border-radius: 14px;
|
||||
background: var(--surface-raised);
|
||||
box-shadow: var(--shadow);
|
||||
color: var(--text-primary);
|
||||
font-size: var(--text-sm);
|
||||
line-height: 1.35;
|
||||
pointer-events: auto;
|
||||
cursor: default;
|
||||
opacity: 0;
|
||||
transform: translateY(8px) scale(0.98);
|
||||
transition: opacity 180ms ease, transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
|
||||
}
|
||||
|
||||
.toast.is-visible {
|
||||
opacity: 1;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
.toast.is-hiding {
|
||||
opacity: 0;
|
||||
transform: translateY(4px);
|
||||
}
|
||||
|
||||
.toast__icon {
|
||||
flex: 0 0 auto;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
color: var(--success);
|
||||
}
|
||||
|
||||
.toast__icon svg {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
.toast--error .toast__icon { color: var(--danger); }
|
||||
.toast--info .toast__icon { color: var(--accent); }
|
||||
|
||||
.toast__text {
|
||||
flex: 1 1 auto;
|
||||
min-width: 0;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.toast__action {
|
||||
flex: 0 0 auto;
|
||||
margin: -6px -6px -6px 2px;
|
||||
padding: 8px 8px;
|
||||
border: 0;
|
||||
border-radius: 10px;
|
||||
background: none;
|
||||
color: var(--accent);
|
||||
font: inherit;
|
||||
font-weight: var(--weight-bold);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.toast__action:active {
|
||||
background: var(--surface-selected);
|
||||
}
|
||||
@media (hover: hover) {
|
||||
.toast__action:hover {
|
||||
background: var(--surface-selected);
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.spinner { animation-duration: 1.6s; }
|
||||
.loading-state { animation: none; opacity: 1; }
|
||||
.toast { transition: none; transform: none; }
|
||||
}
|
||||
@@ -0,0 +1,108 @@
|
||||
/* Полноэкранный просмотр фото и видео (js/components/media-viewer.js). Чёрный фон в обеих темах – как в галереях. */
|
||||
.media-viewer {
|
||||
--viewer-dim: 1;
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 130;
|
||||
display: grid;
|
||||
/* Слегка прозрачный фон; размытие не даёт ленте за ним отвлекать. */
|
||||
background: rgb(0 0 0 / calc(0.88 * var(--viewer-dim)));
|
||||
-webkit-backdrop-filter: blur(10px);
|
||||
backdrop-filter: blur(10px);
|
||||
color: #fff;
|
||||
touch-action: none;
|
||||
animation: media-viewer-in 160ms ease-out;
|
||||
}
|
||||
|
||||
/* Фото и под ним ряд «1/3 ↓» – одной группой по центру экрана. */
|
||||
.media-viewer__stage {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: var(--space-3);
|
||||
min-height: 0;
|
||||
padding: calc(56px + env(safe-area-inset-top)) 0 calc(var(--space-4) + env(safe-area-inset-bottom));
|
||||
transition: transform 160ms ease-out;
|
||||
}
|
||||
|
||||
.media-viewer__frame { display: grid; place-items: center; min-height: 0; max-width: 100%; }
|
||||
|
||||
.media-viewer__media {
|
||||
display: block;
|
||||
max-width: 100vw;
|
||||
max-height: calc(100dvh - 56px - 72px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
|
||||
object-fit: contain;
|
||||
user-select: none;
|
||||
-webkit-user-drag: none;
|
||||
}
|
||||
|
||||
.media-viewer__controls { display: flex; align-items: center; justify-content: center; gap: var(--space-4); min-height: 44px; }
|
||||
.media-viewer__counter { color: rgb(255 255 255 / 85%); font-size: var(--text-md); font-variant-numeric: tabular-nums; }
|
||||
.media-viewer__counter[hidden] { display: none; }
|
||||
|
||||
.media-viewer__bar {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
min-height: calc(56px + env(safe-area-inset-top));
|
||||
padding: env(safe-area-inset-top) var(--space-1) 0;
|
||||
transition: opacity 160ms ease;
|
||||
}
|
||||
|
||||
.media-viewer__btn,
|
||||
.media-viewer__nav {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
border-radius: var(--radius-pill);
|
||||
background: transparent;
|
||||
color: #fff;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.media-viewer__btn svg { width: 22px; height: 22px; }
|
||||
.media-viewer__btn:active { background: rgb(255 255 255 / 12%); }
|
||||
@media (hover: hover) { .media-viewer__btn:hover { background: rgb(255 255 255 / 12%); } }
|
||||
.media-viewer__btn--round { background: rgb(255 255 255 / 16%); }
|
||||
.media-viewer__btn--round:active { background: rgb(255 255 255 / 26%); }
|
||||
@media (hover: hover) { .media-viewer__btn--round:hover { background: rgb(255 255 255 / 26%); } }
|
||||
.media-viewer__btn:focus-visible,
|
||||
.media-viewer__nav:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
|
||||
|
||||
/* Стрелки листания – для компьютера; на телефоне листают смахиванием. */
|
||||
.media-viewer__nav {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
z-index: 1;
|
||||
background: rgb(255 255 255 / 14%);
|
||||
transform: translateY(-50%);
|
||||
transition: opacity 160ms ease;
|
||||
}
|
||||
|
||||
.media-viewer__nav svg { width: 22px; height: 22px; }
|
||||
.media-viewer__nav--prev { left: var(--space-3); }
|
||||
.media-viewer__nav--next { right: var(--space-3); }
|
||||
.media-viewer__nav[hidden] { display: none; }
|
||||
|
||||
@media (hover: none) {
|
||||
.media-viewer__nav { display: none; }
|
||||
}
|
||||
|
||||
/* Нажатие на фото прячет панель – смотреть без помех. */
|
||||
.media-viewer.is-bare :is(.media-viewer__bar, .media-viewer__nav, .media-viewer__controls) { opacity: 0; pointer-events: none; }
|
||||
.media-viewer__controls { transition: opacity 160ms ease; }
|
||||
|
||||
@keyframes media-viewer-in { from { opacity: 0; } }
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.media-viewer { animation: none; }
|
||||
.media-viewer__stage { transition: none; }
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
/* Общие диалоги, уведомления и загрузка. */
|
||||
.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); }
|
||||
.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%; }
|
||||
.skeleton-rows { display: grid; }
|
||||
.skeleton-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border-subtle); }
|
||||
.skeleton-rows--post .skeleton-row { align-items: start; padding: 16px 0; }
|
||||
.skeleton-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--surface-selected); animation: skeleton-pulse 1.2s ease-in-out infinite alternate; }
|
||||
.skeleton-rows--post .skeleton-avatar { width: 36px; height: 36px; }
|
||||
.skeleton-body { display: grid; gap: 10px; }
|
||||
.skeleton-body .skeleton-line { display: block; }
|
||||
@keyframes skeleton-pulse { to { opacity: .4; } }
|
||||
@media (prefers-reduced-motion: reduce) { .skeleton-line { 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); }
|
||||
|
||||
.confirm-dialog--above-editor { z-index: 100; }
|
||||
|
||||
/* Шторка с заголовком (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:active { background: var(--surface-raised); color: var(--text-primary); }
|
||||
@media (hover: hover) { .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; }
|
||||
|
||||
/* Единое окно лайков в ленте и обсуждениях. */
|
||||
.like-consent { gap: 14px; }
|
||||
.like-consent > p { margin: 0; color: var(--text-secondary); line-height: 1.45; }
|
||||
.like-consent-counters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
|
||||
.like-consent-count { display: grid; justify-items: center; align-content: center; gap: 5px; min-width: 0; padding: 12px 6px; border: 1px solid var(--border-control); border-radius: 12px; color: var(--text-primary); background: var(--surface-raised); text-align: center; font: inherit; }
|
||||
.like-consent-count > strong { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
|
||||
.like-consent-count > span { font-size: .73rem; line-height: 1.3; color: var(--text-secondary); }
|
||||
button.like-consent-count { cursor: pointer; }
|
||||
button.like-consent-count:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
||||
.like-consent-sheet .sheet__card { width: min(100%, 420px); }
|
||||
|
||||
/* Опциональный запоминаемый выбор под предупреждением, по умолчанию пуст. */
|
||||
.confirm-dialog__remember { display: flex; align-items: flex-start; gap: 10px; font-size: .84rem; line-height: 1.4; color: var(--text-secondary); cursor: pointer; }
|
||||
.confirm-dialog__remember input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
|
||||
@@ -0,0 +1,56 @@
|
||||
/* Меню-список: группа строк «название / подсказка / ›» — для переходов по разделам
|
||||
* (кошелёк, настройки разработчика и т. п.). Для действий без перехода — обычные кнопки. */
|
||||
.nav-list { display: grid; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
|
||||
.nav-list[hidden] { display: none; }
|
||||
.nav-list__title { margin: var(--space-2) 0 var(--space-1); color: var(--text-secondary); font-size: var(--text-xs); line-height: var(--leading-xs); font-weight: var(--weight-bold); }
|
||||
.nav-row {
|
||||
width: 100%;
|
||||
min-height: 56px;
|
||||
padding: 10px 40px 10px 14px;
|
||||
position: relative;
|
||||
display: grid;
|
||||
align-content: center;
|
||||
gap: 2px;
|
||||
border: 0;
|
||||
border-top: 1px solid var(--border-subtle);
|
||||
border-radius: 0;
|
||||
color: var(--text-primary);
|
||||
background: transparent;
|
||||
font: inherit;
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
}
|
||||
.nav-row:first-child { border-top: 0; }
|
||||
.nav-row::after { content: '›'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--text-secondary); font-size: 22px; line-height: 1; }
|
||||
.nav-row:active { background: var(--surface-selected); }
|
||||
@media (hover: hover) { .nav-row:hover { background: var(--surface-selected); } }
|
||||
.nav-row:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
|
||||
.nav-row__label { font-size: var(--text-md); line-height: var(--leading-md); font-weight: var(--weight-medium); }
|
||||
.nav-row__hint { color: var(--text-secondary); font-size: var(--text-xs); line-height: var(--leading-xs); }
|
||||
.nav-row--danger .nav-row__label { color: var(--danger); }
|
||||
.nav-row--danger::after { content: none; }
|
||||
.nav-row__label.is-empty { color: var(--text-secondary); font-weight: 400; }
|
||||
|
||||
.nav-list > .nav-row.profile-param-item { margin: 0; border-radius: 0; background: transparent; box-shadow: none; }
|
||||
.nav-list > .nav-row.profile-param-item:active { background: var(--surface-selected); }
|
||||
@media (hover: hover) { .nav-list > .nav-row.profile-param-item:hover { background: var(--surface-selected); } }
|
||||
|
||||
.language-row::after { content: none; }
|
||||
.language-row[aria-checked='true']::after { content: '✓'; color: var(--accent); font-size: 18px; font-weight: var(--weight-bold); }
|
||||
|
||||
/* Строка с переключателем (<label class="nav-row nav-row--switch">): подпись слева,
|
||||
* .switch справа, без «›». */
|
||||
.nav-row--switch { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; padding-right: 14px; }
|
||||
.nav-row--switch::after { content: none; }
|
||||
.nav-row__text { display: grid; gap: 2px; min-width: 0; }
|
||||
/* Строка-сведение без перехода (версия, состояние разрешения). */
|
||||
.nav-row--static { cursor: default; padding-right: 14px; }
|
||||
.nav-row--static::after { content: none; }
|
||||
.nav-row--static:active { background: transparent; }
|
||||
@media (hover: hover) { .nav-row--static:hover { background: transparent; } }
|
||||
/* Строка с кнопкой справа («Разрешить», «Включить звук»). */
|
||||
.nav-row--action { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; padding-right: 10px; cursor: default; }
|
||||
.nav-row--action::after { content: none; }
|
||||
.nav-row--action:active { background: transparent; }
|
||||
@media (hover: hover) { .nav-row--action:hover { background: transparent; } }
|
||||
.nav-row__button { min-height: 36px; padding: 0 14px; border-radius: var(--radius-pill); font-size: var(--text-sm); font-weight: var(--weight-bold); }
|
||||
@@ -0,0 +1,40 @@
|
||||
/* Shared overflow-dots trigger. */
|
||||
|
||||
/* ===== UI cleanup: main tabs, shared overflow menu and DM list (2026-08-22) ===== */
|
||||
/* Единое горизонтальное троеточие для всех overflow/menu-кнопок (как иконка more в ui-icon.js). */
|
||||
.app-overflow-dots {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
display: inline-flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 4.8px;
|
||||
color: inherit;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
|
||||
.app-overflow-dots i {
|
||||
display: block;
|
||||
width: 3.2px;
|
||||
height: 3.2px;
|
||||
flex: 0 0 3.2px;
|
||||
border-radius: 50%;
|
||||
background: currentColor;
|
||||
}
|
||||
|
||||
|
||||
/* Vertical dots only where explicitly selected (e.g. private chat actions). */
|
||||
.app-overflow-dots--vertical {
|
||||
flex-direction: column;
|
||||
gap: 3px;
|
||||
}
|
||||
|
||||
/* Явный вариант для шапок, где overflow-кнопку нужно выровнять по эталонной
|
||||
* позиции экрана «Связи». Поднимаем кнопку вместе с зоной нажатия и якорем
|
||||
* выпадающего меню, не меняя базовый TopBar для остальных экранов. */
|
||||
.topbar-overflow-action--raised {
|
||||
position: relative;
|
||||
top: -2px;
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
/* Скрытый редактор палитры (js/components/palette-editor.js). */
|
||||
.palette-editor__card { display: grid; gap: 16px; }
|
||||
.palette-editor__presets { width: 100%; min-height: 48px; padding: 0 40px 0 14px; color: var(--text-primary); background-color: var(--surface); }
|
||||
.palette-editor__presets option { color: var(--text-primary); background: var(--surface); }
|
||||
.palette-editor__preview { display: flex; gap: 8px; }
|
||||
.palette-editor__preview span { width: 30px; height: 20px; border: 1px solid var(--border-control); border-radius: 4px; }
|
||||
.palette-editor__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
|
||||
.palette-editor__close { width: 44px; min-width: 44px; padding: 0; font-size: 18px; color: var(--text-secondary); }
|
||||
.palette-editor__section { display: grid; gap: 8px; }
|
||||
.palette-editor__label { font-size: .75rem; line-height: 1.125rem; color: var(--text-secondary); }
|
||||
.palette-editor__hint { margin: 0; font-size: .75rem; line-height: 1.125rem; color: var(--text-secondary); }
|
||||
.palette-editor__roles { display: grid; gap: 2px; }
|
||||
.palette-editor__role {
|
||||
display: grid;
|
||||
grid-template-columns: 44px minmax(0, 1fr) auto;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
min-height: 48px;
|
||||
padding: 2px 4px;
|
||||
border-radius: 12px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.palette-editor__role:active { background: var(--surface-selected); }
|
||||
@media (hover: hover) { .palette-editor__role:hover { background: var(--surface-selected); } }
|
||||
.palette-editor__role input[type='color'] {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
padding: 0;
|
||||
border: 1px solid var(--border-control);
|
||||
border-radius: 50%;
|
||||
background: transparent;
|
||||
cursor: pointer;
|
||||
}
|
||||
.palette-editor__role input[type='color']::-webkit-color-swatch-wrapper { padding: 0; }
|
||||
.palette-editor__role input[type='color']::-webkit-color-swatch { border: 0; border-radius: 50%; }
|
||||
.palette-editor__role input[type='color']::-moz-color-swatch { border: 0; border-radius: 50%; }
|
||||
.palette-editor__role input[type='color']:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
|
||||
.palette-editor__role-name { min-width: 0; font-size: .875rem; line-height: 1.25rem; color: var(--text-primary); }
|
||||
.palette-editor__changed { margin-left: 4px; font-size: .75rem; color: var(--accent); }
|
||||
.palette-editor__role-value { font-size: .75rem; color: var(--text-secondary); }
|
||||
.palette-editor__share { display: grid; gap: 8px; }
|
||||
.palette-editor__share summary { min-height: 44px; display: flex; align-items: center; color: var(--accent); cursor: pointer; }
|
||||
.palette-editor__share[open] { gap: 8px; }
|
||||
.palette-editor__json { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .75rem; line-height: 1.125rem; resize: vertical; }
|
||||
.palette-editor__error { margin: 0; color: var(--danger); font-size: .8125rem; }
|
||||
.palette-editor__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
|
||||
@@ -0,0 +1,114 @@
|
||||
/* Заметка о человеке (js/components/person-note-sheet.js): шторка редактирования
|
||||
и короткий блок с текстом заметки на карте связей и в профиле. */
|
||||
|
||||
:root {
|
||||
--note-mark-green: #5cd68c;
|
||||
--note-mark-yellow: #f5cd50;
|
||||
--note-mark-red: #ff6868;
|
||||
--note-mark-blue: #60aaff;
|
||||
--note-mark-violet: #be8cff;
|
||||
}
|
||||
|
||||
:root[data-theme='light'] {
|
||||
--note-mark-green: #248c52;
|
||||
--note-mark-yellow: #be8c0a;
|
||||
--note-mark-red: #c8303c;
|
||||
--note-mark-blue: #2864d2;
|
||||
--note-mark-violet: #7846d2;
|
||||
}
|
||||
|
||||
.person-note__hint {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.person-note__text {
|
||||
width: 100%;
|
||||
min-height: 110px;
|
||||
resize: vertical;
|
||||
font: inherit;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.person-note__label {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.person-note__marks {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.person-note__mark {
|
||||
position: relative;
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
padding: 0;
|
||||
border: 2px solid var(--border-control);
|
||||
border-radius: 50%;
|
||||
background: var(--surface);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* «Без метки» – перечёркнутый круг. */
|
||||
.person-note__mark[data-mark='']::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 4px;
|
||||
bottom: 4px;
|
||||
width: 2px;
|
||||
background: var(--border-control);
|
||||
transform: translateX(-50%) rotate(45deg);
|
||||
}
|
||||
|
||||
.person-note__mark[data-mark='green'] { background: var(--note-mark-green); border-color: var(--note-mark-green); }
|
||||
.person-note__mark[data-mark='yellow'] { background: var(--note-mark-yellow); border-color: var(--note-mark-yellow); }
|
||||
.person-note__mark[data-mark='red'] { background: var(--note-mark-red); border-color: var(--note-mark-red); }
|
||||
.person-note__mark[data-mark='blue'] { background: var(--note-mark-blue); border-color: var(--note-mark-blue); }
|
||||
.person-note__mark[data-mark='violet'] { background: var(--note-mark-violet); border-color: var(--note-mark-violet); }
|
||||
|
||||
.person-note__mark[aria-checked='true'] {
|
||||
box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--accent);
|
||||
}
|
||||
|
||||
.person-note__mark:focus-visible {
|
||||
outline: 2px solid var(--focus-ring);
|
||||
outline-offset: 4px;
|
||||
}
|
||||
|
||||
.person-note-preview {
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 3;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
padding: 8px 10px;
|
||||
border: 0;
|
||||
border-left: 3px solid var(--border-control);
|
||||
border-radius: 4px 10px 10px 4px;
|
||||
background: var(--surface-raised);
|
||||
color: var(--text-primary);
|
||||
font: inherit;
|
||||
font-size: 13.5px;
|
||||
line-height: 1.35;
|
||||
text-align: left;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
button.person-note-preview {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
button.person-note-preview:focus-visible {
|
||||
outline: 2px solid var(--focus-ring);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
.person-note-preview[data-mark='green'] { border-left-color: var(--note-mark-green); }
|
||||
.person-note-preview[data-mark='yellow'] { border-left-color: var(--note-mark-yellow); }
|
||||
.person-note-preview[data-mark='red'] { border-left-color: var(--note-mark-red); }
|
||||
.person-note-preview[data-mark='blue'] { border-left-color: var(--note-mark-blue); }
|
||||
.person-note-preview[data-mark='violet'] { border-left-color: var(--note-mark-violet); }
|
||||
@@ -0,0 +1,217 @@
|
||||
/* Строка человека в списках (js/components/person-row.js) – как строка списка чатов:
|
||||
* аватар 48 px, имя, строка под ним, разделитель от текста, действия справа. */
|
||||
|
||||
.person-row {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
min-height: 68px;
|
||||
background: linear-gradient(var(--border-subtle), var(--border-subtle)) right bottom / calc(100% - 64px) 1px no-repeat;
|
||||
/* Строки за экраном не отрисовываются – список на сотни людей остаётся лёгким. */
|
||||
content-visibility: auto;
|
||||
contain-intrinsic-size: auto 68px;
|
||||
}
|
||||
|
||||
.person-row:last-child {
|
||||
background: none;
|
||||
}
|
||||
|
||||
.person-row__main {
|
||||
flex: 1 1 auto;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
min-height: 68px;
|
||||
/* Слева запас под кольцо аватара: content-visibility обрезает всё, что за краем строки. */
|
||||
padding: 10px 0 10px 4px;
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
color: var(--text-primary);
|
||||
font: inherit;
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
transition: background-color var(--duration-fast) ease;
|
||||
}
|
||||
|
||||
@media (hover: hover) {
|
||||
.person-row__main:hover {
|
||||
background-color: color-mix(in srgb, var(--surface) 66%, transparent);
|
||||
}
|
||||
}
|
||||
|
||||
.person-row__main:active {
|
||||
background-color: var(--surface-selected);
|
||||
}
|
||||
|
||||
.person-row__main:focus-visible {
|
||||
outline: 2px solid var(--focus-ring);
|
||||
outline-offset: -2px;
|
||||
}
|
||||
|
||||
.person-row__avatar {
|
||||
position: relative;
|
||||
flex: 0 0 48px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
}
|
||||
|
||||
.person-row__avatar .avatar.avatar-md {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
min-width: 48px;
|
||||
min-height: 48px;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
/* Близкие и сияющие – цветное кольцо, как на карте связей и в чатах. */
|
||||
.person-row--close .person-row__avatar .avatar {
|
||||
border-radius: 50%;
|
||||
box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--rel-family);
|
||||
}
|
||||
|
||||
.person-row--shining .person-row__avatar .avatar {
|
||||
border-radius: 50%;
|
||||
box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--rel-shining);
|
||||
}
|
||||
|
||||
.person-row__mark {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
z-index: 5;
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
border-radius: 50%;
|
||||
border: 2px solid var(--background);
|
||||
background: var(--note-mark-green);
|
||||
}
|
||||
|
||||
.person-row__mark[data-mark='yellow'] { background: var(--note-mark-yellow); }
|
||||
.person-row__mark[data-mark='red'] { background: var(--note-mark-red); }
|
||||
.person-row__mark[data-mark='blue'] { background: var(--note-mark-blue); }
|
||||
.person-row__mark[data-mark='violet'] { background: var(--note-mark-violet); }
|
||||
.person-row__mark[data-mark='note'] {
|
||||
background: var(--background);
|
||||
box-shadow: inset 0 0 0 2px var(--text-secondary);
|
||||
}
|
||||
|
||||
.person-row__text {
|
||||
flex: 1 1 auto;
|
||||
min-width: 0;
|
||||
display: grid;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.person-row__name {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 8px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.person-row__name-text {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
font-size: var(--text-md);
|
||||
font-weight: var(--weight-bold);
|
||||
}
|
||||
|
||||
.person-row__tag {
|
||||
color: var(--accent);
|
||||
font-weight: var(--weight-medium);
|
||||
}
|
||||
|
||||
.person-row__sub,
|
||||
.person-row__note {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
color: var(--text-secondary);
|
||||
font-size: var(--text-sm);
|
||||
}
|
||||
|
||||
.person-row__note {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.person-row__action {
|
||||
flex: 0 0 auto;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
margin-left: 2px;
|
||||
border-radius: 50%;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.person-row__action:active {
|
||||
color: var(--accent);
|
||||
background: var(--surface);
|
||||
}
|
||||
@media (hover: hover) {
|
||||
.person-row__action:hover {
|
||||
color: var(--accent);
|
||||
background: var(--surface);
|
||||
}
|
||||
}
|
||||
|
||||
.person-row__action svg {
|
||||
width: 21px;
|
||||
height: 21px;
|
||||
}
|
||||
|
||||
/* Главное действие строки («Дружить в ответ») – цветом, чтобы его было видно среди прочих. */
|
||||
.person-row__action--primary {
|
||||
color: var(--accent);
|
||||
background: color-mix(in srgb, var(--accent) 14%, transparent);
|
||||
}
|
||||
|
||||
.person-row__action:disabled {
|
||||
cursor: progress;
|
||||
}
|
||||
|
||||
.person-list-section {
|
||||
padding: var(--space-4) 0 var(--space-1) 4px;
|
||||
color: var(--text-secondary);
|
||||
font-size: var(--text-xs);
|
||||
line-height: var(--leading-xs);
|
||||
font-weight: var(--weight-bold);
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
|
||||
/* «Показать всех · 40» под свёрнутым разделом списка. */
|
||||
.list-more {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
min-height: 52px;
|
||||
padding: 0 0 0 4px;
|
||||
border: 0;
|
||||
background: none;
|
||||
color: var(--accent);
|
||||
font: inherit;
|
||||
font-size: var(--text-sm);
|
||||
font-weight: var(--weight-bold);
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.list-more svg {
|
||||
flex: 0 0 auto;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
margin: 0 26px 0 14px;
|
||||
}
|
||||
|
||||
.list-more:focus-visible {
|
||||
outline: 2px solid var(--focus-ring);
|
||||
outline-offset: -2px;
|
||||
}
|
||||
@@ -0,0 +1,706 @@
|
||||
/* 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: 44px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
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: .5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
|
||||
.card {
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border-subtle);
|
||||
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 color-mix(in srgb, var(--success) 35%, transparent);
|
||||
color: var(--text-primary);
|
||||
background: color-mix(in srgb, var(--success) 9%, transparent);
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
|
||||
.badge.alt {
|
||||
border-color: color-mix(in srgb, var(--accent) 35%, transparent);
|
||||
color: var(--text-primary);
|
||||
background: color-mix(in srgb, var(--accent) 11%, transparent);
|
||||
}
|
||||
|
||||
|
||||
.badge.is-no {
|
||||
border-color: color-mix(in srgb, var(--accent) 30%, transparent);
|
||||
color: var(--accent);
|
||||
background: color-mix(in srgb, var(--text-primary) 14%, transparent);
|
||||
}
|
||||
|
||||
|
||||
.badge.is-yes-official {
|
||||
border-color: color-mix(in srgb, var(--success) 50%, transparent);
|
||||
color: var(--text-primary);
|
||||
background: color-mix(in srgb, var(--success) 20%, transparent);
|
||||
}
|
||||
|
||||
|
||||
.badge.is-yes-shine {
|
||||
border-color: color-mix(in srgb, var(--rel-contact) 60%, transparent);
|
||||
color: var(--text-primary);
|
||||
background: color-mix(in srgb, var(--rel-contact) 22%, transparent);
|
||||
}
|
||||
|
||||
|
||||
.field-label,
|
||||
.form-field > label,
|
||||
label.meta-muted[for] {
|
||||
color: var(--text-secondary);
|
||||
font-size: var(--text-sm);
|
||||
line-height: var(--leading-sm);
|
||||
font-weight: var(--weight-medium);
|
||||
}
|
||||
|
||||
|
||||
.select {
|
||||
width: 100%;
|
||||
border: 1px solid var(--border-control);
|
||||
border-radius: 12px;
|
||||
background-color: var(--surface);
|
||||
min-height: 44px;
|
||||
padding: 0 40px 0 12px;
|
||||
color: var(--text-primary);
|
||||
font-size: 16px;
|
||||
appearance: none;
|
||||
-webkit-appearance: none;
|
||||
background-image: linear-gradient(45deg, transparent 50%, var(--text-secondary) 50%), linear-gradient(135deg, var(--text-secondary) 50%, transparent 50%);
|
||||
background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
|
||||
background-size: 5px 5px, 5px 5px;
|
||||
background-repeat: no-repeat;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
|
||||
.select:focus-visible {
|
||||
outline: none;
|
||||
border-color: var(--focus-ring);
|
||||
box-shadow: 0 0 0 1px var(--focus-ring);
|
||||
}
|
||||
|
||||
|
||||
.wrap-row {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
|
||||
.status-line {
|
||||
font-size: 13px;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
|
||||
/* Итог действия в форме: ошибка и успех – плашкой со значком (как тосты), не просто
|
||||
* цветным текстом; пустая строка места не занимает. */
|
||||
.status-line.is-available,
|
||||
.status-line.is-unavailable {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 8px;
|
||||
padding: 10px 12px;
|
||||
border-radius: var(--radius-md);
|
||||
color: var(--text-primary);
|
||||
line-height: 1.4;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.status-line.is-available {
|
||||
background: color-mix(in srgb, var(--success) 12%, transparent);
|
||||
}
|
||||
|
||||
.status-line.is-unavailable {
|
||||
background: color-mix(in srgb, var(--danger) 12%, transparent);
|
||||
}
|
||||
|
||||
.status-line.is-available::before,
|
||||
.status-line.is-unavailable::before {
|
||||
content: "";
|
||||
flex: 0 0 auto;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
margin-top: 0.5px;
|
||||
background: currentColor;
|
||||
-webkit-mask: var(--status-line-icon) center / contain no-repeat;
|
||||
mask: var(--status-line-icon) center / contain no-repeat;
|
||||
}
|
||||
|
||||
.status-line.is-available::before {
|
||||
color: var(--success);
|
||||
--status-line-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
|
||||
}
|
||||
|
||||
.status-line.is-unavailable::before {
|
||||
color: var(--danger);
|
||||
--status-line-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.4v.1'/%3E%3C/svg%3E");
|
||||
}
|
||||
|
||||
.status-line:empty {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
.help-fab,
|
||||
.square-btn {
|
||||
width: 42px;
|
||||
height: 42px;
|
||||
border-radius: 12px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
|
||||
.help-fab {
|
||||
position: fixed;
|
||||
right: max(20px, calc((100vw - min(100vw, var(--shell-content-width, 640px))) / 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: color-mix(in srgb, var(--accent) 8%, transparent);
|
||||
border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
|
||||
.checkbox-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
|
||||
.key-card {
|
||||
padding: 12px;
|
||||
border-radius: var(--radius-md);
|
||||
background: color-mix(in srgb, var(--text-primary) 3%, transparent);
|
||||
border: 1px solid var(--border-subtle);
|
||||
}
|
||||
|
||||
|
||||
.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 var(--border-subtle);
|
||||
background: color-mix(in srgb, var(--text-primary) 2%, transparent);
|
||||
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: var(--accent);
|
||||
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: var(--text-primary);
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border-subtle);
|
||||
}
|
||||
|
||||
|
||||
.page-label.is-collapsed {
|
||||
width: fit-content;
|
||||
padding: 6px;
|
||||
}
|
||||
|
||||
|
||||
.page-label-content {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
|
||||
.page-label-hint {
|
||||
margin-bottom: 3px;
|
||||
color: var(--accent);
|
||||
font-size: 11px;
|
||||
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: var(--text-primary);
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
@media (hover: hover) {
|
||||
.page-label-toggle:hover {
|
||||
background: transparent;
|
||||
filter: brightness(1.12);
|
||||
}
|
||||
}
|
||||
|
||||
.page-label-toggle:active {
|
||||
background: color-mix(in srgb, var(--surface) 12%, transparent);
|
||||
box-shadow:
|
||||
inset 0 3px 8px rgba(0, 0, 0, 0.58),
|
||||
inset 0 -1px 2px color-mix(in srgb, var(--text-primary) 8%, transparent);
|
||||
transform: translateY(1px) scale(0.97);
|
||||
filter: brightness(0.9);
|
||||
}
|
||||
|
||||
.page-label-toggle:focus-visible {
|
||||
outline: 2px solid var(--border-control);
|
||||
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(--border-control);
|
||||
border-radius: 12px;
|
||||
background: var(--surface);
|
||||
min-height: 44px;
|
||||
padding: 0 12px;
|
||||
width: 100%;
|
||||
outline: none;
|
||||
color: var(--text-primary);
|
||||
font-size: 16px;
|
||||
line-height: 1.4;
|
||||
caret-color: var(--accent);
|
||||
}
|
||||
|
||||
|
||||
.input:focus {
|
||||
border-color: var(--focus-ring);
|
||||
box-shadow: 0 0 0 1px var(--focus-ring);
|
||||
}
|
||||
|
||||
.input:disabled,
|
||||
.select:disabled {
|
||||
opacity: .6;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
|
||||
.input::placeholder,
|
||||
textarea::placeholder {
|
||||
color: color-mix(in srgb, var(--text-secondary) 62%, var(--surface));
|
||||
-webkit-text-fill-color: color-mix(in srgb, var(--text-secondary) 62%, var(--surface));
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
|
||||
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: var(--text-primary) !important;
|
||||
caret-color: var(--accent);
|
||||
border-color: var(--border-control);
|
||||
box-shadow: 0 0 0 1000px var(--surface) inset !important;
|
||||
transition: background-color 9999s ease-out 0s;
|
||||
}
|
||||
|
||||
|
||||
textarea.input {
|
||||
padding: 10px 12px;
|
||||
min-height: 92px;
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
|
||||
.inline-error {
|
||||
color: var(--danger);
|
||||
font-size: .8125rem;
|
||||
line-height: 1.125rem;
|
||||
}
|
||||
|
||||
.inline-error:empty { display: none; }
|
||||
|
||||
.form-field { display: grid; gap: 6px; min-width: 0; }
|
||||
.form-field__optional { font-weight: 400; color: var(--text-secondary); }
|
||||
.form-field__hint { font-size: .75rem; line-height: 1.125rem; color: var(--text-secondary); overflow-wrap: anywhere; }
|
||||
.form-field__hint[hidden] { display: none; }
|
||||
.form-field__meta { display: flex; justify-content: space-between; gap: 8px; min-height: 18px; }
|
||||
.form-field__counter { margin-left: auto; font-size: .75rem; line-height: 1.125rem; color: var(--text-secondary); }
|
||||
|
||||
|
||||
.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: var(--text-primary);
|
||||
}
|
||||
|
||||
|
||||
.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: var(--text-primary);
|
||||
margin: 4px 2px;
|
||||
}
|
||||
|
||||
|
||||
.is-springing {
|
||||
animation: spring-tap 0.28s ease;
|
||||
}
|
||||
|
||||
|
||||
/* Горизонтальный 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: var(--warning); }
|
||||
100% { filter: blur(0px); opacity: 1; color: var(--warning); }
|
||||
}
|
||||
|
||||
|
||||
/* 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;
|
||||
}
|
||||
|
||||
/* Текст только для экранного диктора. */
|
||||
.sr-only {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
padding: 0;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
white-space: nowrap;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.search-field {
|
||||
min-height: var(--control-height);
|
||||
padding: 0 6px 0 12px;
|
||||
display: grid;
|
||||
grid-template-columns: auto minmax(0, 1fr) auto;
|
||||
align-items: center;
|
||||
gap: var(--space-2);
|
||||
border: 1px solid var(--border-control);
|
||||
border-radius: var(--radius-md);
|
||||
background: var(--surface);
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
.search-field[hidden] { display: none; }
|
||||
.search-field:focus-within { border-color: var(--focus-ring); box-shadow: 0 0 0 1px var(--focus-ring); }
|
||||
.search-field__icon { display: inline-flex; }
|
||||
.search-field__icon svg { width: 20px; height: 20px; }
|
||||
.search-field__input { width: 100%; min-width: 0; height: 42px; border: 0; outline: 0; color: var(--text-primary); background: transparent; font-size: 16px; }
|
||||
.search-field__input::placeholder { color: color-mix(in srgb, var(--text-secondary) 62%, var(--surface)); }
|
||||
.search-field__action { min-height: 36px; padding: 0 12px; border: 0; border-radius: var(--radius-sm); color: var(--accent); background: transparent; font: inherit; font-size: var(--text-sm); font-weight: var(--weight-bold); cursor: pointer; }
|
||||
.search-field__action:active { background: var(--surface-selected); }
|
||||
@media (hover: hover) { .search-field__action:hover { background: var(--surface-selected); } }
|
||||
.search-field__action:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 0; }
|
||||
|
||||
.empty-note { padding: var(--space-5) var(--space-4); text-align: center; color: var(--text-secondary); font-size: var(--text-sm); line-height: var(--leading-sm, 1.45); }
|
||||
|
||||
.action-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
|
||||
|
||||
|
||||
/* Переключатель: <input type="checkbox" class="switch">. */
|
||||
.switch {
|
||||
appearance: none;
|
||||
-webkit-appearance: none;
|
||||
flex: 0 0 auto;
|
||||
width: 48px;
|
||||
height: 28px;
|
||||
margin: 0;
|
||||
padding: 2px;
|
||||
border: 1px solid var(--border-control);
|
||||
border-radius: var(--radius-pill);
|
||||
background: var(--surface-selected);
|
||||
cursor: pointer;
|
||||
transition: background-color var(--duration-fast) ease, border-color var(--duration-fast) ease;
|
||||
}
|
||||
|
||||
.switch::after {
|
||||
content: '';
|
||||
display: block;
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
border-radius: 50%;
|
||||
background: var(--text-secondary);
|
||||
box-shadow: var(--shadow-sm);
|
||||
transition: transform var(--duration-fast) ease, background-color var(--duration-fast) ease;
|
||||
}
|
||||
|
||||
.switch:checked {
|
||||
border-color: var(--accent);
|
||||
background: var(--accent);
|
||||
}
|
||||
|
||||
.switch:checked::after {
|
||||
transform: translateX(20px);
|
||||
background: var(--on-accent);
|
||||
}
|
||||
|
||||
.switch:focus-visible {
|
||||
outline: 2px solid color-mix(in srgb, var(--accent) 82%, transparent);
|
||||
outline-offset: 3px;
|
||||
}
|
||||
|
||||
.switch:disabled {
|
||||
cursor: default;
|
||||
opacity: .55;
|
||||
}
|
||||
|
||||
/* Ссылки в текстах каналов, обсуждений и личных сообщений. */
|
||||
.shine-inline-link {
|
||||
color: var(--accent, #5684d8);
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 2px;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
.shine-inline-link:focus-visible { outline: 2px solid var(--focus-ring, currentColor); outline-offset: 2px; }
|
||||
@@ -0,0 +1,45 @@
|
||||
.scroll-to-bottom-btn {
|
||||
position: absolute;
|
||||
bottom: calc(var(--toolbar-height, 78px) + var(--composer-height, 0px) + 16px + env(safe-area-inset-bottom));
|
||||
right: 16px;
|
||||
z-index: 38;
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border: 1px solid var(--border-subtle);
|
||||
border-radius: 50%;
|
||||
color: var(--text-primary);
|
||||
background: var(--surface);
|
||||
box-shadow: 0 4px 14px color-mix(in srgb, var(--background) 40%, transparent), 0 2px 6px rgba(0, 0, 0, 0.12);
|
||||
cursor: pointer;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transform: translateY(8px);
|
||||
transition: opacity 0.18s ease, transform 0.18s ease, background-color 0.16s ease;
|
||||
}
|
||||
|
||||
.scroll-to-bottom-btn__icon { display: inline-flex; }
|
||||
.scroll-to-bottom-btn__icon svg { width: 22px; height: 22px; stroke-width: 2.2; }
|
||||
|
||||
.scroll-to-bottom-btn.is-visible {
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
@media (hover: hover) { .scroll-to-bottom-btn:hover { background: var(--surface-selected); } }
|
||||
.scroll-to-bottom-btn:active { transform: scale(0.95); }
|
||||
.scroll-to-bottom-btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
|
||||
|
||||
.app-shell--scroll-nested.keyboard-open .scroll-to-bottom-btn {
|
||||
bottom: calc(var(--keyboard-offset, 0px) + var(--composer-height, 0px) + 16px);
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.scroll-to-bottom-btn { transition: none; transform: none; }
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
/* Shared tab geometry and tab primitives. */
|
||||
|
||||
/* Переключатель той же высоты, что поле ввода и поиск (44 px), кнопки внутри – 34 px. */
|
||||
.tabs {
|
||||
box-sizing: border-box;
|
||||
min-height: var(--control-height);
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 4px;
|
||||
border: 1px solid var(--border-subtle);
|
||||
border-radius: 12px;
|
||||
padding: 4px;
|
||||
background: var(--surface);
|
||||
}
|
||||
.tabs[hidden] { display: none; }
|
||||
.tabs--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
||||
.tabs--auto { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
|
||||
/* Много коротких пунктов (4–5) в одну полосу: мельче шрифт и поля. */
|
||||
.tabs--dense { display: flex; gap: 2px; }
|
||||
.tabs--dense .tab-btn { flex: 1 1 auto; min-width: 0; padding: 0 6px; font-size: var(--text-sm); white-space: nowrap; }
|
||||
@media (max-width: 360px) {
|
||||
.tabs--dense .tab-btn { padding: 0 4px; font-size: var(--text-xs); }
|
||||
}
|
||||
|
||||
.tab-btn {
|
||||
min-height: 34px;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
border-radius: 8px;
|
||||
padding: 0 8px;
|
||||
font-size: var(--text-md);
|
||||
color: var(--text-muted);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
|
||||
.tab-btn.active,
|
||||
.tab-btn[aria-checked='true'] {
|
||||
background: var(--surface-selected);
|
||||
color: var(--text-primary);
|
||||
font-weight: 600;
|
||||
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, var(--border-control));
|
||||
}
|
||||
@media (hover: hover) { .tab-btn:hover { color: var(--text-primary); } }
|
||||
.tab-btn:active { transform: scale(.98); }
|
||||
.tab-btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
|
||||
|
||||
|
||||
|
||||
/* ===== Shared primary topbar + upper tabs geometry (2026-08-22) =====
|
||||
* «Связи» теперь монтируют header в общий topbar-slot, как остальные основные экраны.
|
||||
* Верхние переключатели используют один ритм и не меняют вертикальную позицию между страницами.
|
||||
*/
|
||||
:root {
|
||||
--app-primary-tabs-top-gap: 14px;
|
||||
--app-primary-tabs-gap: 8px;
|
||||
--app-primary-tab-min-height: 28px;
|
||||
}
|
||||
|
||||
|
||||
/* Общий контейнер верхних кнопок-вкладок. */
|
||||
.app-top-tabs {
|
||||
min-height: var(--app-primary-tab-min-height);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--app-primary-tabs-gap);
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.tab-btn .tab-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 6px; padding: 0 5px; border-radius: var(--radius-pill); color: var(--on-accent); background: var(--accent); font-size: .6875rem; font-weight: var(--weight-bold); line-height: 1; vertical-align: 1px; }
|
||||
@@ -0,0 +1,30 @@
|
||||
.toolbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); min-height: 56px; align-items: center; gap: 0; padding: 4px 0; background: var(--background); }
|
||||
.toolbar-btn { position: relative; min-width: 0; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 4px 1px; border: 0; border-radius: 12px; background: transparent; color: var(--text-secondary); cursor: pointer; }
|
||||
.toolbar-btn.active { color: var(--accent); }
|
||||
.toolbar-btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
|
||||
|
||||
.toolbar-icon { position: relative; display: grid; place-items: center; width: 56px; height: 36px; border-radius: 18px; flex-shrink: 0; transition: background-color var(--duration-fast) ease; }
|
||||
.toolbar-icon--mandala { height: 44px; }
|
||||
.toolbar-btn.active .toolbar-icon { background: var(--surface-selected); }
|
||||
.toolbar-btn:active .toolbar-icon { background: var(--surface-selected); }
|
||||
|
||||
.toolbar-svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: filter var(--duration-fast) ease; }
|
||||
.toolbar-svg .toolbar-svg-dot { fill: currentColor; stroke: none; }
|
||||
.toolbar-btn.active .toolbar-svg { filter: drop-shadow(0 0 4px color-mix(in srgb, var(--accent) 55%, transparent)); }
|
||||
.toolbar-mandala { display: block; width: 38px; height: 38px; object-fit: contain; transition: transform var(--duration-fast) ease; }
|
||||
.toolbar-btn.active .toolbar-mandala { transform: scale(1.06); }
|
||||
|
||||
.toolbar-icon .toolbar-connection-indicator { position: absolute; right: 8px; bottom: 0; display: block; }
|
||||
.toolbar-connection-dot { display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--text-secondary); box-shadow: 0 0 0 2px var(--background); }
|
||||
.toolbar-connection-indicator.is-connected .toolbar-connection-dot { background: var(--success); }
|
||||
.toolbar-connection-indicator.is-disconnected .toolbar-connection-dot { background: var(--danger); }
|
||||
|
||||
.toolbar-unread-badge { position: absolute; top: -5px; right: 2px; min-width: 18px; padding: 0 5px; border-radius: 12px; color: var(--on-accent); background: var(--accent); box-shadow: 0 0 0 2px var(--background); font-size: .6875rem; font-weight: 600; line-height: 18px; text-align: center; }
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.toolbar-icon, .toolbar-svg, .toolbar-mandala { transition: none; }
|
||||
.toolbar-btn.active .toolbar-mandala { transform: none; }
|
||||
}
|
||||
.toolbar-svg * { vector-effect: non-scaling-stroke; }
|
||||
|
||||
:root[data-theme='light'] .toolbar-mandala { filter: saturate(1.4) brightness(0.8); }
|
||||
@@ -0,0 +1,59 @@
|
||||
: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:active, .topbar__action:active, .topbar__center button:active { color: var(--accent); background: var(--surface); }
|
||||
@media (hover: hover) { .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. */
|
||||
.topbar--section-filter { grid-template-columns: minmax(0, 1fr) auto; }
|
||||
.topbar--section-filter .topbar__left { display: none; }
|
||||
.topbar--section-filter .topbar__center { justify-content: flex-start; }
|
||||
.topbar-filter-title { display: inline-flex; align-items: center; gap: 5px; min-width: 0; max-width: 100%; min-height: 44px; padding: 0 6px; border: 0; border-radius: 12px; background: transparent; color: var(--text-primary); font: inherit; font-size: 1.125rem; font-weight: 700; line-height: 1.4; letter-spacing: -0.01em; text-align: left; cursor: pointer; }
|
||||
.topbar-filter-title__caption { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.topbar-filter-title__chevron { display: inline-flex; flex: 0 0 16px; width: 16px; color: var(--text-secondary); }
|
||||
.topbar-filter-title__chevron svg { display: block; width: 16px; height: 16px; }
|
||||
|
||||
/* Шапка-визитка: аватар и две строки слева (канал, собеседник) */
|
||||
.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:active { color: var(--text-primary); background: var(--surface-selected); }
|
||||
@media (hover: hover) { .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; }
|
||||
Reference in New Issue
Block a user