SHA256
CORE/CONTENT test5593 и адаптация UI
This commit is contained in:
@@ -0,0 +1,299 @@
|
||||
/*
|
||||
* App Shell: единая геометрия и глобальные UI-слои приложения.
|
||||
* Feature-specific стили находятся в styles/features/* и network-graph.css.
|
||||
*/
|
||||
.app-shell {
|
||||
width: min(var(--app-viewport-width, 100vw), var(--shell-content-width, 640px));
|
||||
height: var(--app-viewport-height, 100vh);
|
||||
position: fixed;
|
||||
top: var(--app-viewport-offset-top, 0px);
|
||||
left: calc(50% + var(--app-viewport-offset-left, 0px) / 2);
|
||||
transform: translateX(-50%);
|
||||
--call-minimized-bar-height: 0px;
|
||||
--topbar-height: 0px;
|
||||
--composer-height: 0px;
|
||||
--toolbar-height: 78px;
|
||||
--keyboard-offset: 0px;
|
||||
--z-shell-content: 1;
|
||||
--z-shell-fade: 10;
|
||||
--z-shell-chrome: 20;
|
||||
--z-shell-status: 30;
|
||||
background: var(--background);
|
||||
border-left: 1px solid transparent;
|
||||
border-right: 1px solid transparent;
|
||||
box-shadow: none;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
@media (min-width: 700px) {
|
||||
.app-shell { border-color: var(--border-subtle); }
|
||||
}
|
||||
|
||||
.screen-content {
|
||||
position: absolute;
|
||||
top: calc(var(--call-minimized-bar-height, 0px) + var(--topbar-height, 0px));
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: calc(var(--toolbar-height, 78px) + var(--composer-height, 0px));
|
||||
z-index: var(--z-shell-content);
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
overscroll-behavior: contain;
|
||||
padding: 0 16px 24px;
|
||||
}
|
||||
|
||||
.app-shell--wide { --shell-content-width: 640px; }
|
||||
|
||||
.screen-content.no-app-chrome {
|
||||
top: var(--call-minimized-bar-height, 0px);
|
||||
bottom: 0;
|
||||
padding-bottom: calc(24px + env(safe-area-inset-bottom));
|
||||
}
|
||||
|
||||
.app-shell.has-minimized-call .screen-content {
|
||||
padding-top: var(--page-top-gap);
|
||||
}
|
||||
|
||||
.topbar-slot,
|
||||
.composer-slot,
|
||||
.toolbar-slot {
|
||||
z-index: var(--z-shell-chrome);
|
||||
}
|
||||
|
||||
.topbar-slot[hidden],
|
||||
.composer-slot[hidden],
|
||||
.toolbar-slot[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.topbar-slot {
|
||||
position: absolute;
|
||||
top: var(--call-minimized-bar-height, 0px);
|
||||
left: 0;
|
||||
right: 0;
|
||||
padding: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.topbar-slot > .topbar { padding-inline: 12px; }
|
||||
|
||||
.topbar-slot > * {
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.composer-slot {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
width: 100%;
|
||||
transform: translateX(-50%);
|
||||
bottom: var(--toolbar-height, 78px);
|
||||
padding: 0 12px;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.composer-slot > * {
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.toolbar-slot {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
padding: 0 4px env(safe-area-inset-bottom);
|
||||
background: var(--background);
|
||||
border-top: 1px solid var(--border-subtle);
|
||||
transition: opacity 0.18s ease, transform 0.18s ease;
|
||||
}
|
||||
|
||||
.connection-retry-banner {
|
||||
position: absolute;
|
||||
left: 12px;
|
||||
right: 12px;
|
||||
bottom: calc(96px + env(safe-area-inset-bottom));
|
||||
z-index: var(--z-shell-status);
|
||||
border-radius: 12px;
|
||||
border: 1px solid var(--border-subtle);
|
||||
background: var(--surface);
|
||||
color: var(--text-primary);
|
||||
box-shadow: var(--shadow);
|
||||
font-size: 12px;
|
||||
line-height: 1.2;
|
||||
text-align: center;
|
||||
padding: 8px 12px;
|
||||
pointer-events: auto;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.connection-retry-banner.is-connected { border-color: var(--success); }
|
||||
.connection-retry-banner.is-connecting { color: var(--text-secondary); }
|
||||
.connection-retry-banner.is-disconnected { border-color: var(--danger); color: var(--danger); }
|
||||
.connection-retry-banner.is-updating { border-color: var(--accent); }
|
||||
|
||||
/* Обычный scroll-container физически продолжается под прозрачным TopBar. */
|
||||
.app-shell--content-under-topbar:not(.app-shell--scroll-nested):not(.app-shell--scroll-locked) .screen-content:not(.no-app-chrome) {
|
||||
top: var(--call-minimized-bar-height, 0px);
|
||||
padding-top: calc(var(--topbar-height, 64px) + var(--page-top-gap));
|
||||
}
|
||||
|
||||
/* Вложенный scroll-container (например, переписка) сам резервирует место под chrome. */
|
||||
.app-shell--scroll-nested .topbar-slot {
|
||||
position: fixed;
|
||||
top: var(--call-minimized-bar-height, 0px);
|
||||
left: 0;
|
||||
right: 0;
|
||||
width: min(100vw, var(--shell-content-width, 640px));
|
||||
margin: 0 auto;
|
||||
transform: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.app-shell--scroll-nested .screen-content {
|
||||
top: var(--call-minimized-bar-height, 0px);
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
.app-shell--content-under-bottom:not(.keyboard-open) .screen-content {
|
||||
bottom: calc(var(--toolbar-height, 78px) + env(safe-area-inset-bottom));
|
||||
}
|
||||
|
||||
/* Полноэкранный feature сам управляет внутренней геометрией, shell — viewport/слоями. */
|
||||
.app-shell--scroll-locked .screen-content {
|
||||
top: var(--call-minimized-bar-height, 0px);
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
overflow: hidden;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.app-shell--scrollbar-hidden .screen-content {
|
||||
scrollbar-width: none;
|
||||
-ms-overflow-style: none;
|
||||
}
|
||||
|
||||
.app-shell--scrollbar-hidden .screen-content::-webkit-scrollbar {
|
||||
width: 0;
|
||||
height: 0;
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Global shell fades: один механизм, режимы различаются только профилем кривой. */
|
||||
.app-shell-fade {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: var(--z-shell-fade);
|
||||
display: none;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.app-shell--top-fade.app-shell--has-topbar .app-shell-fade--top {
|
||||
display: block;
|
||||
top: var(--call-minimized-bar-height, 0px);
|
||||
height: calc(var(--topbar-height, 64px) + 48px);
|
||||
background: linear-gradient(
|
||||
to bottom,
|
||||
color-mix(in srgb, var(--background) 100%, transparent) 0%,
|
||||
color-mix(in srgb, var(--background) 98%, transparent) 16%,
|
||||
color-mix(in srgb, var(--background) 88%, transparent) 32%,
|
||||
color-mix(in srgb, var(--background) 66%, transparent) 52%,
|
||||
color-mix(in srgb, var(--background) 38%, transparent) 70%,
|
||||
color-mix(in srgb, var(--background) 15%, transparent) 84%,
|
||||
color-mix(in srgb, var(--background) 0%, transparent) 100%
|
||||
);
|
||||
}
|
||||
|
||||
.app-shell--bottom-fade.app-shell--bottom-fade-composer.app-shell--has-composer .app-shell-fade--bottom {
|
||||
display: block;
|
||||
bottom: calc(var(--toolbar-height, 78px) + env(safe-area-inset-bottom));
|
||||
height: calc(var(--composer-height, 0px) + 52px);
|
||||
background: linear-gradient(
|
||||
to bottom,
|
||||
color-mix(in srgb, var(--background) 0%, transparent) 0%,
|
||||
color-mix(in srgb, var(--background) 14%, transparent) 18%,
|
||||
color-mix(in srgb, var(--background) 38%, transparent) 38%,
|
||||
color-mix(in srgb, var(--background) 66%, transparent) 58%,
|
||||
color-mix(in srgb, var(--background) 88%, transparent) 76%,
|
||||
color-mix(in srgb, var(--background) 98%, transparent) 90%,
|
||||
color-mix(in srgb, var(--background) 100%, transparent) 100%
|
||||
);
|
||||
}
|
||||
|
||||
/* Иммерсивный edge-профиль использует тот же fade-layer, но прежнюю кривую графа. */
|
||||
.app-shell--fade-edge.app-shell--top-fade.app-shell--has-topbar .app-shell-fade--top {
|
||||
height: var(--topbar-height, 64px);
|
||||
background: linear-gradient(
|
||||
to bottom,
|
||||
color-mix(in srgb, var(--background) 100%, transparent) 0%,
|
||||
color-mix(in srgb, var(--background) 100%, transparent) 32%,
|
||||
color-mix(in srgb, var(--background) 94%, transparent) 38%,
|
||||
color-mix(in srgb, var(--background) 72%, transparent) 46%,
|
||||
color-mix(in srgb, var(--background) 46%, transparent) 54%,
|
||||
color-mix(in srgb, var(--background) 22%, transparent) 61%,
|
||||
color-mix(in srgb, var(--background) 8%, transparent) 65%,
|
||||
color-mix(in srgb, var(--background) 0%, transparent) 68%,
|
||||
color-mix(in srgb, var(--background) 0%, transparent) 100%
|
||||
);
|
||||
}
|
||||
|
||||
.app-shell--fade-edge.app-shell--bottom-fade.app-shell--bottom-fade-toolbar .app-shell-fade--bottom {
|
||||
display: block;
|
||||
bottom: 0;
|
||||
height: var(--toolbar-height, 78px);
|
||||
background: linear-gradient(
|
||||
to bottom,
|
||||
color-mix(in srgb, var(--background) 0%, transparent) 0%,
|
||||
color-mix(in srgb, var(--background) 0%, transparent) 32%,
|
||||
color-mix(in srgb, var(--background) 8%, transparent) 35%,
|
||||
color-mix(in srgb, var(--background) 22%, transparent) 39%,
|
||||
color-mix(in srgb, var(--background) 46%, transparent) 46%,
|
||||
color-mix(in srgb, var(--background) 72%, transparent) 54%,
|
||||
color-mix(in srgb, var(--background) 94%, transparent) 62%,
|
||||
color-mix(in srgb, var(--background) 100%, transparent) 68%,
|
||||
color-mix(in srgb, var(--background) 100%, transparent) 100%
|
||||
);
|
||||
}
|
||||
|
||||
/* При toolbar-anchored fade сам toolbar остаётся прозрачным над общим shell-layer. */
|
||||
.app-shell--bottom-fade-toolbar .toolbar-slot {
|
||||
isolation: isolate;
|
||||
overflow: visible;
|
||||
background: transparent;
|
||||
border: 0;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.app-shell--bottom-fade-toolbar .toolbar-slot > .toolbar {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
background: transparent;
|
||||
border: 0;
|
||||
border-color: transparent;
|
||||
box-shadow: none;
|
||||
backdrop-filter: none;
|
||||
-webkit-backdrop-filter: none;
|
||||
}
|
||||
|
||||
/* Keyboard lifecycle остаётся частью App Shell, а не страницы чата. */
|
||||
.app-shell.keyboard-open .toolbar-slot {
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
.app-shell--scroll-nested.keyboard-open .composer-slot {
|
||||
bottom: var(--keyboard-offset, 0px);
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
|
||||
.app-shell--scroll-nested.keyboard-open .screen-content {
|
||||
bottom: var(--keyboard-offset, 0px);
|
||||
}
|
||||
|
||||
@media (min-width: 900px) {
|
||||
.app-shell {
|
||||
top: 16px;
|
||||
height: calc(100svh - 32px);
|
||||
border-radius: 24px;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
/* Семантические роли кнопок. Геометрией сложных компонентов владеют их стили. */
|
||||
.ui-button, .primary-btn, .secondary-btn, .destructive-btn, .ghost-btn, .icon-btn, .text-btn, .shine-btn { color: var(--text-primary); background: transparent; border: 0; box-shadow: none; font: inherit; cursor: pointer; transition: background-color 160ms ease, color 160ms ease; }
|
||||
.primary-btn { color: var(--on-accent); background: var(--accent); }
|
||||
/* Второстепенное действие: прозрачная, тонкая рамка, текст цвета «вторичного действия». */
|
||||
.secondary-btn { color: var(--action); background: transparent; border: 1px solid var(--border-control); }
|
||||
.destructive-btn { color: var(--danger); }
|
||||
@media (hover: hover) { :is(.ui-button, .primary-btn, .secondary-btn, .destructive-btn, .ghost-btn, .icon-btn, .text-btn, .shine-btn):hover { filter: brightness(.96); } }
|
||||
:is(.ui-button, .primary-btn, .secondary-btn, .destructive-btn, .ghost-btn, .icon-btn, .text-btn, .shine-btn):active { filter: brightness(.9); }
|
||||
:is(.ui-button, .primary-btn, .secondary-btn, .destructive-btn, .ghost-btn, .icon-btn, .text-btn, .shine-btn):focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
|
||||
:is(.ui-button, .primary-btn, .secondary-btn, .destructive-btn, .ghost-btn, .icon-btn, .text-btn, .shine-btn):disabled { opacity: .5; cursor: not-allowed; filter: none; }
|
||||
.filled-action-buttons :is(.primary-btn, .shine-btn, .square-btn, .registration-faq-link, .profiles-select) {
|
||||
color: var(--on-accent);
|
||||
background: var(--accent);
|
||||
border: 0;
|
||||
border-radius: var(--radius-md);
|
||||
box-shadow: none;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
.filled-action-buttons :is(.secondary-btn, .ghost-btn, .text-btn, .profiles-close) {
|
||||
color: var(--action);
|
||||
background: transparent;
|
||||
border: 1px solid var(--border-control);
|
||||
border-radius: var(--radius-md);
|
||||
box-shadow: none;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
.filled-action-buttons .destructive-btn {
|
||||
color: var(--danger);
|
||||
background: transparent;
|
||||
border: 1px solid var(--border-control);
|
||||
border-radius: var(--radius-md);
|
||||
}
|
||||
|
||||
.filled-action-buttons :is(.primary-btn, .secondary-btn, .destructive-btn, .ghost-btn, .text-btn, .shine-btn, .square-btn, .registration-faq-link, .profiles-select, .profiles-close):active {
|
||||
transform: scale(0.98);
|
||||
}
|
||||
|
||||
.filled-action-buttons :is(.primary-btn, .secondary-btn, .destructive-btn, .ghost-btn, .text-btn, .shine-btn, .square-btn, .registration-faq-link, .profiles-select, .profiles-close):disabled {
|
||||
color: var(--text-secondary);
|
||||
background: var(--surface-selected);
|
||||
border-color: transparent;
|
||||
}
|
||||
|
||||
.filled-action-buttons :is(.primary-btn, .secondary-btn, .destructive-btn, .ghost-btn, .text-btn, .shine-btn, .square-btn, .registration-faq-link, .profiles-select, .profiles-close)::before,
|
||||
.filled-action-buttons :is(.primary-btn, .secondary-btn, .destructive-btn, .ghost-btn, .text-btn, .shine-btn, .square-btn, .registration-faq-link, .profiles-select, .profiles-close)::after {
|
||||
content: none;
|
||||
}
|
||||
|
||||
.screen-content:is(.filled-action-buttons, .settings-bordered-actions) .shine-btn.shine-btn--settings {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
min-height: 52px;
|
||||
padding: 10px 40px 10px 14px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
color: var(--text-primary);
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border-subtle);
|
||||
font-size: var(--text-md);
|
||||
font-weight: var(--weight-medium);
|
||||
text-align: left;
|
||||
}
|
||||
.screen-content:is(.filled-action-buttons, .settings-bordered-actions) .shine-btn.shine-btn--settings::after {
|
||||
content: '›';
|
||||
position: absolute;
|
||||
right: 16px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
color: var(--text-secondary);
|
||||
font-size: 22px;
|
||||
line-height: 1;
|
||||
}
|
||||
.screen-content:is(.filled-action-buttons, .settings-bordered-actions) .shine-btn.shine-btn--settings:active { background: var(--surface-selected); }
|
||||
@media (hover: hover) { .screen-content:is(.filled-action-buttons, .settings-bordered-actions) .shine-btn.shine-btn--settings:hover { background: var(--surface-selected); } }
|
||||
.screen-content:is(.filled-action-buttons, .settings-bordered-actions) .shine-btn.shine-btn--settings strong { font-weight: var(--weight-bold); }
|
||||
.screen-content:is(.filled-action-buttons, .settings-bordered-actions) .shine-btn.shine-btn--settings .meta-muted { color: var(--text-secondary); font-size: var(--text-xs); font-weight: 400; }
|
||||
.screen-content:is(.filled-action-buttons, .settings-bordered-actions) .shine-btn.shine-btn--settings.shine-btn--danger { justify-content: center; padding-right: 14px; color: var(--danger); }
|
||||
.screen-content:is(.filled-action-buttons, .settings-bordered-actions) .shine-btn.shine-btn--settings.shine-btn--danger::after { content: none; }
|
||||
@@ -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; }
|
||||
@@ -0,0 +1,71 @@
|
||||
/* Обсуждение (макет V4): контекст записи, «Комментарии · N», плоский список, строка ввода. */
|
||||
.channels-screen--thread { gap: 0; }
|
||||
.thread-block { display: grid; gap: 0; min-width: 0; }
|
||||
|
||||
.thread-section-title { margin: 12px 0 4px; font-size: .8125rem; font-weight: 600; color: var(--text-primary); }
|
||||
.thread-group { position: relative; padding: 12px 0 6px; }
|
||||
.thread-group + .thread-group { border-top: 1px solid var(--border-subtle); }
|
||||
.channels-screen .thread-comment { cursor: pointer; position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 10px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; scroll-margin: 16px; }
|
||||
.channels-screen .thread-comment--nested { grid-template-columns: 28px minmax(0, 1fr); margin-top: 10px; }
|
||||
.thread-comment.is-highlight { background: var(--surface-selected); box-shadow: 0 0 0 6px var(--surface-selected); border-radius: 4px; }
|
||||
.thread-comment__who { align-self: start; padding: 0; border: 0; background: transparent; cursor: pointer; }
|
||||
.thread-comment__who .avatar.thread-comment__avatar { width: 36px; height: 36px; min-width: 36px; min-height: 36px; font-size: 14px; }
|
||||
.thread-comment--nested .thread-comment__who .avatar.thread-comment__avatar { width: 28px; height: 28px; min-width: 28px; min-height: 28px; font-size: 12px; }
|
||||
.thread-comment__main { min-width: 0; }
|
||||
.thread-comment__head { display: flex; align-items: center; gap: 6px; min-height: 22px; }
|
||||
.thread-comment__name { min-width: 0; padding: 0; border: 0; background: transparent; color: var(--text-primary); font: inherit; font-size: .9375rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
|
||||
.thread-comment__badge { padding: 1px 6px; border-radius: 6px; background: var(--surface-selected); color: var(--action); font-size: .6875rem; white-space: nowrap; }
|
||||
.thread-comment__head time { flex-shrink: 0; color: var(--text-secondary); font-size: .875rem; }
|
||||
.thread-comment__head .thread-comment__more { width: 36px; min-width: 36px; height: 28px; min-height: 28px; margin: -4px -8px -4px auto; padding: 0; border: 0; background: transparent; color: var(--text-secondary); }
|
||||
.thread-comment__head .thread-comment__more svg { width: 20px; height: 20px; }
|
||||
.thread-comment__mention { display: inline-flex; align-items: center; gap: 3px; margin: 1px 0 0; padding: 0; border: 0; background: transparent; color: var(--action); font: inherit; font-size: .8125rem; cursor: pointer; }
|
||||
.thread-comment__mention svg { width: 14px; height: 14px; }
|
||||
.thread-comment__text { margin: 2px 0 0; font-size: .9375rem; line-height: 1.4375rem; white-space: pre-wrap; overflow-wrap: anywhere; }
|
||||
.thread-comment__actions { display: flex; align-items: center; gap: 4px; margin: 2px 0 0 -10px; color: var(--text-secondary); }
|
||||
.thread-comment__actions > button { min-height: 36px; min-width: 40px; padding: 0 10px; display: inline-flex; align-items: center; gap: 5px; border: 0; border-radius: 10px; background: transparent; color: inherit; font: inherit; font-size: .8125rem; cursor: pointer; }
|
||||
.thread-comment__actions svg { width: 19px; height: 19px; }
|
||||
.thread-comment__actions span:empty { display: none; }
|
||||
|
||||
/* Ветка: ответы на ответы одной колонкой со сдвигом под аватар, от аватара родителя – линия с изгибом к каждому ответу. */
|
||||
.thread-replies { position: relative; margin-left: 46px; }
|
||||
.thread-replies > .thread-comment::before { content: ''; position: absolute; top: -10px; left: -29px; width: 22px; height: 24px; border-left: 2px solid var(--border-control); border-bottom: 2px solid var(--border-control); border-bottom-left-radius: 12px; pointer-events: none; }
|
||||
.thread-replies > :not(:last-child)::after { content: ''; position: absolute; top: 0; bottom: -10px; left: -29px; border-left: 2px solid var(--border-control); pointer-events: none; }
|
||||
.thread-group.has-replies > .thread-comment:first-child::after { content: ''; position: absolute; top: 40px; bottom: -12px; left: 17px; border-left: 2px solid var(--border-control); pointer-events: none; }
|
||||
.thread-replies:not(.is-expanded) > .is-collapsed { display: none; }
|
||||
.thread-more { position: relative; display: block; min-height: 36px; margin-top: 6px; padding: 0; border: 0; background: transparent; color: var(--text-secondary); font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; }
|
||||
.thread-replies > .thread-more::before { content: ''; position: absolute; top: -6px; left: -29px; width: 22px; height: 24px; border-left: 2px solid var(--border-control); border-bottom: 2px solid var(--border-control); border-bottom-left-radius: 12px; }
|
||||
.thread-more:active { color: var(--text-primary); }
|
||||
@media (hover: hover) { .thread-more:hover { color: var(--text-primary); } }
|
||||
.thread-more--deeper { color: var(--action); font-weight: 500; }
|
||||
|
||||
/* Цепочка над открытым ответом: звенья соединены линией от аватара к следующему. */
|
||||
.thread-block--ancestors { padding-top: 12px; }
|
||||
.channels-screen .thread-comment--ancestor { padding-bottom: 14px; }
|
||||
.thread-comment--ancestor::after { content: ''; position: absolute; top: 42px; bottom: 0; left: 17px; border-left: 2px solid var(--border-control); pointer-events: none; }
|
||||
.thread-comment--ancestor .avatar.channel-profile-avatar { width: 36px; height: 36px; min-width: 36px; min-height: 36px; border-radius: 50%; font-size: 15px; }
|
||||
.thread-block--ancestors + .thread-block--focus .channel-message-card--threads-focus { padding-top: 0; }
|
||||
|
||||
.thread-quote { display: block; width: 100%; margin: 0 0 7px; padding: 5px 9px; border: 0; border-left: 2px solid var(--quote-line); border-radius: 0 6px 6px 0; background: var(--quote-bg); color: var(--text-secondary); font: inherit; font-size: .75rem; line-height: 1.125rem; text-align: left; cursor: pointer; }
|
||||
.thread-quote strong { display: block; color: var(--action); font-weight: 500; }
|
||||
.thread-quote span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
|
||||
button.thread-quote:active { background: var(--surface); }
|
||||
@media (hover: hover) { button.thread-quote:hover { background: var(--surface); } }
|
||||
.thread-return { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 5; padding: 9px 12px; border: 1px solid var(--border-subtle); border-radius: 20px; background: var(--surface-raised); color: var(--text-primary); font: inherit; font-size: .75rem; white-space: nowrap; cursor: pointer; }
|
||||
.thread-empty { padding: 36px 20px; text-align: center; }
|
||||
|
||||
|
||||
/* Отдельная публикация в обсуждении использует карточку и действия из ленты. */
|
||||
.thread-block--focus > .channel-message-card { margin-bottom: 8px; }
|
||||
|
||||
/* Строка ответа внизу обсуждения (как в Threads): аватар, поле-кнопка, «прикрепить», «развернуть». */
|
||||
.thread-reply-bar { display: flex; align-items: center; gap: 4px; width: 100%; min-height: 48px; padding: 0 6px 0 8px; border: 1px solid var(--border-control); border-radius: 24px; background: var(--surface); }
|
||||
.thread-reply-bar .avatar.thread-reply-bar__avatar { width: 30px; height: 30px; min-width: 30px; min-height: 30px; font-size: 12px; }
|
||||
.thread-reply-bar__field { flex: 1; min-width: 0; min-height: 44px; padding: 0 6px; border: 0; background: transparent; color: var(--text-secondary); font: inherit; font-size: 1rem; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: text; }
|
||||
.thread-reply-bar__icon { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--text-secondary); cursor: pointer; }
|
||||
.thread-reply-bar__icon:active { color: var(--text-primary); background: var(--surface-selected); }
|
||||
@media (hover: hover) { .thread-reply-bar__icon:hover { color: var(--text-primary); background: var(--surface-selected); } }
|
||||
.thread-reply-bar__icon svg { width: 22px; height: 22px; }
|
||||
.thread-reply-bar__field:focus-visible, .thread-reply-bar__icon:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
|
||||
.thread-reply-guest { width: 100%; display: grid; }
|
||||
|
||||
.thread-comment__actions > .thread-comment__like-count { min-width: 28px; padding-inline: 4px; font-variant-numeric: tabular-nums; text-decoration: underline dotted; text-underline-offset: 3px; }
|
||||
@@ -0,0 +1,430 @@
|
||||
/* Геометрия ленты канала и сопутствующих экранов. */
|
||||
.channel-feed { gap: 0; min-width: 0; }
|
||||
.channels-screen .channel-unread-line { display: flex; align-items: center; justify-content: center; padding: 8px 0; border: 0; border-radius: 0; background: transparent; color: var(--accent); font-size: .75rem; }
|
||||
.channel-head-meta, .channel-note { color: var(--text-secondary); font-size: .8125rem; line-height: 1.5; }
|
||||
.channel-message-target-preview { display: grid; gap: 4px; padding: 12px; border-left: 2px solid var(--accent); background: var(--surface); font-size: .8125rem; overflow-wrap: anywhere; }
|
||||
.channels-screen .channel-message-card.is-focus-flash { background: var(--surface-selected); }
|
||||
.channel-system-event-card { padding: 8px; margin: 8px auto; width: fit-content; max-width: 100%; color: var(--text-secondary); font-size: .75rem; text-align: center; }
|
||||
.channel-meta-details-grid { display: grid; grid-template-columns: minmax(0, 128px) minmax(0,1fr); gap: 10px 12px; align-items: start; overflow-wrap: anywhere; }
|
||||
.channel-meta-details-grid > span:nth-child(2n + 1) { color: var(--text-secondary); }
|
||||
.channel-meta-details-grid code { overflow-wrap: anywhere; }
|
||||
.channel-meta-avatar-slot { display: flex; justify-content: center; margin: 4px 0 12px; }
|
||||
.channel-profile-avatar { width: var(--channel-avatar-size, 96px); height: var(--channel-avatar-size, 96px); min-width: var(--channel-avatar-size, 96px); border-radius: 50%; overflow: hidden; color: var(--accent); font-size: calc(var(--channel-avatar-size, 96px) * .5); }
|
||||
.channel-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
|
||||
.channel-profile-modal-head { display: flex; gap: 12px; align-items: center; }
|
||||
.channel-main-action { width: 100%; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; padding: 0 16px; color: var(--on-accent); background: var(--accent); font-weight: 600; }
|
||||
.channel-main-action svg { width: 20px; height: 20px; }
|
||||
.channel-back-btn { min-height: 44px; color: var(--accent); }
|
||||
.entrypoint-history-list { display: grid; gap: 8px; max-height: 58vh; overflow: auto; }
|
||||
.entrypoint-history-item { display: grid; gap: 8px; text-align: left; padding: 12px; border-radius: 12px; background: var(--surface); color: var(--text-primary); }
|
||||
.entrypoint-history-item p { white-space: pre-wrap; overflow-wrap: anywhere; }
|
||||
.entrypoint-history-item span { font-size: .75rem; color: var(--text-secondary); }
|
||||
.channels-screen--channel-about {
|
||||
padding-bottom: calc(24px + env(safe-area-inset-bottom));
|
||||
}
|
||||
|
||||
.channel-about-card { padding: 0; border: 0; border-radius: 0; background: transparent; }
|
||||
.channel-about-content { gap: 16px; }
|
||||
|
||||
.channel-about-hero { display: grid; justify-items: center; gap: 4px; padding: 8px 16px 0; text-align: center; }
|
||||
.channel-about-avatar-slot { margin-bottom: 8px; }
|
||||
.channel-about-avatar.avatar { width: 80px; height: 80px; min-width: 80px; min-height: 80px; border-radius: 50%; font-size: 36px; color: var(--accent); }
|
||||
.channel-about-title { margin: 0; color: var(--text-primary); font-size: 1.375rem; line-height: 1.75rem; font-weight: 600; overflow-wrap: anywhere; }
|
||||
.channel-about-subline { color: var(--text-secondary); font-size: .875rem; line-height: 1.25rem; overflow-wrap: anywhere; }
|
||||
|
||||
.channel-about-tiles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
|
||||
.channel-about-tile {
|
||||
min-height: 64px;
|
||||
padding: 10px 4px 8px;
|
||||
display: grid;
|
||||
justify-items: center;
|
||||
align-content: center;
|
||||
gap: 4px;
|
||||
border: 1px solid var(--border-subtle);
|
||||
border-radius: 14px;
|
||||
color: var(--accent);
|
||||
background: var(--surface);
|
||||
font: inherit;
|
||||
font-size: .75rem;
|
||||
line-height: 1rem;
|
||||
cursor: pointer;
|
||||
transition: background-color 160ms ease;
|
||||
}
|
||||
.channel-about-tile svg { width: 22px; height: 22px; }
|
||||
.channel-about-tile span { color: var(--text-primary); }
|
||||
.channel-about-tile:active { background: var(--surface-selected); }
|
||||
@media (hover: hover) { .channel-about-tile:hover { background: var(--surface-selected); } }
|
||||
.channel-about-tile.is-active { background: var(--surface-selected); }
|
||||
.channel-about-tile:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
|
||||
.channel-about-tile:disabled { opacity: .6; cursor: wait; }
|
||||
|
||||
.channel-about-list { display: grid; border: 1px solid var(--border-subtle); border-radius: 14px; background: var(--surface); overflow: hidden; }
|
||||
.channel-about-row {
|
||||
width: 100%;
|
||||
min-height: 56px;
|
||||
padding: 10px 14px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
border: 0;
|
||||
border-bottom: 1px solid var(--border-subtle);
|
||||
color: var(--text-primary);
|
||||
background: transparent;
|
||||
font: inherit;
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
}
|
||||
.channel-about-row--static { display: grid; gap: 4px; cursor: default; }
|
||||
.channel-about-row:not(.channel-about-row--static):active { background: var(--surface-selected); }
|
||||
@media (hover: hover) { .channel-about-row:not(.channel-about-row--static):hover { background: var(--surface-selected); } }
|
||||
.channel-about-row:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
|
||||
.channel-about-row-main { display: grid; gap: 2px; min-width: 0; flex: 1; }
|
||||
.channel-about-row-main strong { font-size: .9375rem; line-height: 1.375rem; font-weight: 600; overflow-wrap: anywhere; }
|
||||
.channel-about-row-label { color: var(--text-secondary); font-size: .75rem; line-height: 1.125rem; }
|
||||
.channel-about-row-chevron { color: var(--text-secondary); display: inline-flex; }
|
||||
.channel-about-row-chevron svg { width: 18px; height: 18px; }
|
||||
.channel-about-owner-avatar .avatar { width: 40px; height: 40px; min-width: 40px; min-height: 40px; font-size: 16px; }
|
||||
.channel-about-description { margin: 0; font-size: .9375rem; line-height: 1.375rem; white-space: pre-wrap; overflow-wrap: anywhere; }
|
||||
.channel-about-link { color: var(--accent); font-size: .875rem; line-height: 1.25rem; overflow-wrap: anywhere; }
|
||||
.channel-about-technical { padding: 10px 14px; color: var(--text-secondary); font-size: .75rem; line-height: 1.125rem; overflow-wrap: anywhere; }
|
||||
|
||||
/* ===== Channel unsubscribe confirmation ===== */
|
||||
#channel-unsubscribe-confirm-modal {
|
||||
backdrop-filter: blur(10px);
|
||||
-webkit-backdrop-filter: blur(10px);
|
||||
}
|
||||
|
||||
#channel-unsubscribe-confirm-modal .channel-unsubscribe-confirm-card {
|
||||
width: min(100%, 390px);
|
||||
gap: 14px;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.channel-unsubscribe-confirm-card .modal-title {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.channel-unsubscribe-confirm-text {
|
||||
margin: 0;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.channel-unsubscribe-confirm-actions {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.channel-unsubscribe-confirm-actions button {
|
||||
min-height: 44px;
|
||||
}
|
||||
|
||||
.channel-unsubscribe-confirm-yes {
|
||||
border: 1px solid var(--border-subtle);
|
||||
background: var(--surface);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.channel-unsubscribe-confirm-yes:focus-visible,
|
||||
.channel-unsubscribe-confirm-yes:active {
|
||||
background: var(--surface);
|
||||
}
|
||||
@media (hover: hover) {
|
||||
.channel-unsubscribe-confirm-yes:hover {
|
||||
background: var(--surface);
|
||||
}
|
||||
}
|
||||
|
||||
/* ===== Channel support transfer ===== */
|
||||
#channel-support-modal {
|
||||
backdrop-filter: blur(10px);
|
||||
-webkit-backdrop-filter: blur(10px);
|
||||
}
|
||||
|
||||
#channel-support-modal .channel-support-modal-card {
|
||||
width: min(100%, 430px);
|
||||
max-height: min(88vh, 720px);
|
||||
overflow-y: auto;
|
||||
gap: 9px;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.channel-support-modal-head {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
gap: 12px;
|
||||
align-items: start;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.channel-support-modal-head .modal-title {
|
||||
margin: 0 0 3px;
|
||||
}
|
||||
|
||||
.channel-support-subtitle {
|
||||
margin: 0;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.channel-support-close {
|
||||
width: 38px;
|
||||
min-width: 38px;
|
||||
height: 38px;
|
||||
min-height: 38px;
|
||||
padding: 0;
|
||||
display: inline-grid;
|
||||
place-items: center;
|
||||
font-size: 24px;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.channel-support-address {
|
||||
min-height: 36px;
|
||||
padding: 8px 10px;
|
||||
border-radius: 10px;
|
||||
background: var(--surface);
|
||||
color: var(--text-secondary);
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
||||
font-size: 11px;
|
||||
line-height: 1.45;
|
||||
overflow-wrap: anywhere;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.channel-support-balance-row {
|
||||
display: grid;
|
||||
grid-template-columns: auto minmax(0, 1fr) auto;
|
||||
gap: 10px;
|
||||
align-items: center;
|
||||
min-height: 44px;
|
||||
}
|
||||
|
||||
.channel-support-balance-row strong {
|
||||
color: var(--text-primary);
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.channel-support-refresh {
|
||||
min-height: 36px;
|
||||
padding-block: 6px;
|
||||
}
|
||||
|
||||
.channel-support-amount-row {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
gap: 10px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.channel-support-amount-row span {
|
||||
color: var(--text-primary);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.channel-support-status {
|
||||
min-height: 18px;
|
||||
margin: 2px 0 0;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.channel-support-status.is-error {
|
||||
color: var(--danger);
|
||||
}
|
||||
|
||||
.channel-support-result {
|
||||
display: grid;
|
||||
gap: 5px;
|
||||
padding: 10px 12px;
|
||||
border: 1px solid var(--border-subtle);
|
||||
border-radius: 12px;
|
||||
background: var(--surface);
|
||||
}
|
||||
|
||||
.channel-support-result[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.channel-support-result strong {
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.channel-support-result span,
|
||||
.channel-support-result code {
|
||||
color: var(--text-secondary);
|
||||
font-size: 12px;
|
||||
overflow-wrap: anywhere;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.channel-support-submit {
|
||||
min-height: 48px;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
@media (max-width: 420px) {
|
||||
.channel-support-balance-row {
|
||||
grid-template-columns: 1fr auto;
|
||||
}
|
||||
|
||||
.channel-support-balance-row .meta-muted {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
}
|
||||
|
||||
/* ===== Channel donation view ===== */
|
||||
.channels-screen--channel-donate {
|
||||
padding-bottom: calc(24px + env(safe-area-inset-bottom));
|
||||
}
|
||||
|
||||
.channel-donate-card {
|
||||
width: min(100%, 680px);
|
||||
margin-inline: auto;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.channel-donate-content {
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
.channel-donate-hero {
|
||||
display: grid;
|
||||
justify-items: center;
|
||||
gap: 5px;
|
||||
padding: 28px 20px 24px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.channel-donate-hero h2 {
|
||||
margin: 0 0 4px;
|
||||
color: var(--text-primary);
|
||||
font-size: 1.5rem;
|
||||
line-height: 1.875rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.channel-donate-hero strong {
|
||||
color: var(--text-primary);
|
||||
font-size: 17px;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.channel-donate-hero span {
|
||||
color: var(--text-secondary);
|
||||
font-size: 13px;
|
||||
line-height: 1.4;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.channel-donate-section {
|
||||
display: grid;
|
||||
gap: 9px;
|
||||
padding: 18px 20px;
|
||||
border-top: 1px solid var(--border-subtle);
|
||||
}
|
||||
|
||||
.channel-donate-address {
|
||||
min-height: 38px;
|
||||
padding: 9px 10px;
|
||||
border-radius: 10px;
|
||||
background: var(--surface);
|
||||
color: var(--text-secondary);
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
||||
font-size: 11px;
|
||||
line-height: 1.45;
|
||||
overflow-wrap: anywhere;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.channel-donate-balance-row {
|
||||
display: grid;
|
||||
grid-template-columns: auto minmax(0, 1fr) auto;
|
||||
gap: 10px;
|
||||
align-items: center;
|
||||
min-height: 44px;
|
||||
margin-top: 3px;
|
||||
}
|
||||
|
||||
.channel-donate-balance-row strong {
|
||||
color: var(--text-primary);
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.channel-donate-refresh {
|
||||
min-height: 36px;
|
||||
padding-block: 6px;
|
||||
}
|
||||
|
||||
.channel-donate-amount-row {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
gap: 10px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.channel-donate-amount-row span {
|
||||
color: var(--text-primary);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.channel-donate-status {
|
||||
min-height: 18px;
|
||||
margin: 14px 20px 0;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.channel-donate-status.is-error {
|
||||
color: var(--danger);
|
||||
}
|
||||
|
||||
.channel-donate-result {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
margin: 12px 20px 0;
|
||||
padding: 12px 14px;
|
||||
border: 1px solid var(--border-subtle);
|
||||
border-radius: 12px;
|
||||
background: var(--surface);
|
||||
}
|
||||
|
||||
.channel-donate-result[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.channel-donate-result strong {
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.channel-donate-result span,
|
||||
.channel-donate-result code {
|
||||
color: var(--text-secondary);
|
||||
font-size: 12px;
|
||||
overflow-wrap: anywhere;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.channel-donate-submit {
|
||||
min-height: 50px;
|
||||
margin: 16px 20px 22px;
|
||||
}
|
||||
|
||||
@media (max-width: 420px) {
|
||||
.channel-donate-section {
|
||||
padding-inline: 16px;
|
||||
}
|
||||
|
||||
.channel-donate-status,
|
||||
.channel-donate-result,
|
||||
.channel-donate-submit {
|
||||
margin-inline: 16px;
|
||||
}
|
||||
|
||||
.channel-donate-balance-row {
|
||||
grid-template-columns: 1fr auto;
|
||||
}
|
||||
|
||||
.channel-donate-balance-row .meta-muted {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
}
|
||||
.channel-about-tiles:empty { display: none; }
|
||||
@@ -0,0 +1,192 @@
|
||||
/* Общий контракт публикаций и ответов. */
|
||||
.channels-screen .channel-message-card {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
min-width: 0;
|
||||
margin: 0;
|
||||
padding: 16px 0 8px;
|
||||
border: 0;
|
||||
border-bottom: 1px solid var(--border-subtle);
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
animation: none;
|
||||
}
|
||||
.channel-message-head-row { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
|
||||
.channel-message-author-tile { display: flex; flex: 1; gap: 12px; align-items: center; min-width: 0; min-height: 44px; padding: 0; text-align: left; cursor: pointer; }
|
||||
.channel-message-author { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; min-width: 0; }
|
||||
.channel-message-avatar.avatar { width: 36px; height: 36px; min-width: 36px; min-height: 36px; font-size: 14px; }
|
||||
.channel-message-card .author-line-num { display: none; }
|
||||
.channel-message-author .channel-message-time::before { content: '·'; margin-right: 6px; }
|
||||
.channel-message-title, .author-line-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; min-width: 0; }
|
||||
.author-line-login { font-size: .875rem; line-height: 1.25rem; font-weight: 600; color: var(--text-primary); overflow-wrap: anywhere; }
|
||||
.author-line-num, .channel-message-time { font-size: .75rem; line-height: 1.125rem; color: var(--text-secondary); }
|
||||
.channel-message-body { margin: 0; font-size: .9375rem; line-height: 1.4375rem; color: var(--text-primary); white-space: pre-wrap; overflow-wrap: anywhere; min-width: 0; }
|
||||
.channel-message-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
|
||||
.channel-action-item { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 8px; border-radius: 12px; color: var(--text-secondary); cursor: pointer; font-size: .75rem; }
|
||||
.channel-action-item:active { color: var(--text-primary); background: var(--surface); }
|
||||
@media (hover: hover) { .channel-action-item:hover { color: var(--text-primary); background: var(--surface); } }
|
||||
.channel-action-item.is-liked { color: var(--reaction-active); }
|
||||
.channel-action-item:disabled { opacity: .5; cursor: wait; }
|
||||
.channel-action-icon { display: inline-flex; font-size: 22px; line-height: 1; }
|
||||
.channel-action-icon svg { width: 22px; height: 22px; }
|
||||
.channel-action-counter { color: inherit; font-size: .75rem; }
|
||||
.channel-action-counter:empty { display: none; } /* ноль не показываем — только иконку */
|
||||
.channel-action-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
|
||||
.channel-action-reply, .thread-reply-btn { margin-left: auto; color: var(--accent); }
|
||||
.channel-action-reply .channel-action-label, .thread-reply-btn .channel-action-label { position: static; width: auto; height: auto; clip: auto; }
|
||||
.channel-action-reply .channel-action-icon, .channel-action-reply .channel-action-counter, .thread-reply-btn .channel-action-icon, .thread-reply-btn .channel-action-counter { display: none; }
|
||||
.channel-message-more { width: 44px; height: 44px; margin-left: auto; font-size: 24px; color: var(--text-secondary); }
|
||||
.channel-message-kind-badge, .channel-message-type-button { min-height: 28px; padding: 6px 10px; border-radius: 8px; color: var(--accent); background: var(--surface-selected); font-size: .75rem; }
|
||||
.channel-message-type-button:not(:disabled) { min-height: 44px; cursor: pointer; }
|
||||
.message-edited-marker { font-size: .75rem; color: var(--text-secondary); }
|
||||
.deleted-message-pill { min-height: 44px; text-align: left; color: var(--text-secondary); padding: 8px 0; }
|
||||
.channel-header-title, .channel-header-owner { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.channel-header-owner { color: var(--text-secondary); font-size: .75rem; line-height: 1rem; font-weight: 400; }
|
||||
/* Нижняя панель экранов канала: поверхность с линией сверху, как шапка */
|
||||
.channel-composer { display: flex; gap: 8px; margin: 0 -12px; padding: 9px 12px calc(11px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--border-subtle); }
|
||||
.channel-compose-bar {
|
||||
width: 100%;
|
||||
min-height: 48px;
|
||||
padding: 0 6px 0 16px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
border: 1px solid var(--border-control);
|
||||
border-radius: 24px;
|
||||
color: var(--text-secondary);
|
||||
background: var(--surface);
|
||||
font: inherit;
|
||||
font-size: 1rem;
|
||||
text-align: left;
|
||||
cursor: text;
|
||||
transition: border-color 160ms ease;
|
||||
}
|
||||
.channel-compose-bar:active { border-color: var(--accent); }
|
||||
@media (hover: hover) { .channel-compose-bar:hover { border-color: var(--accent); } }
|
||||
.channel-compose-bar:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
|
||||
.channel-compose-bar__text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.channel-compose-bar__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--on-accent); background: var(--accent); flex-shrink: 0; }
|
||||
.channel-compose-bar__icon svg { width: 20px; height: 20px; stroke-width: 2.2; }
|
||||
|
||||
.channel-day-separator { display: flex; justify-content: center; margin: 8px 0 10px; }
|
||||
.channel-day-separator span { padding: 3px 10px; border-radius: 999px; color: var(--text-secondary); background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--border-subtle); font-size: .75rem; line-height: 1.125rem; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
|
||||
.blockchain-details-grid { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 8px; font-size: .75rem; }
|
||||
.blockchain-details-grid code, .blockchain-raw-block { overflow-wrap: anywhere; white-space: pre-wrap; }
|
||||
.blockchain-raw-block { max-height: 40vh; overflow: auto; padding: 12px; background: var(--background); }
|
||||
.draft-attachments { display: flex; flex-wrap: wrap; gap: 8px; }
|
||||
.draft-attachment-chip { max-width: 100%; overflow-wrap: anywhere; }
|
||||
.modal-danger-action { width: 100%; color: var(--danger); }
|
||||
.thread-reply-context { color: var(--text-secondary); font-size: .75rem; line-height: 1.125rem; border-left: 2px solid var(--border-control); padding-left: 10px; overflow-wrap: anywhere; }
|
||||
@media (prefers-reduced-motion: reduce) { .channels-screen *, .channel-composer * { animation: none; scroll-behavior: auto; transition: none; } }
|
||||
|
||||
/* Запись автора в его канале (макет V4): плоская, на всю ширину, между записями — линия с отступами */
|
||||
.channels-screen .channel-message-card.channel-message-card--owner { gap: 0; margin: 0; padding: 20px 0 8px; border: 0; position: relative; }
|
||||
.channels-screen .channel-message-card--owner + .channel-message-card--owner::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--border-subtle); }
|
||||
.channels-screen .channel-message-card--owner .channel-message-body { font-size: 1rem; line-height: 1.52; }
|
||||
.channel-message-card--owner .channel-message-head-row[hidden] { display: none; }
|
||||
.channel-message-card--owner .message-attachment-carousel { width: calc(100% + 2 * var(--page-gutter)); max-width: none; margin: 0 calc(-1 * var(--page-gutter)) 14px; }
|
||||
.channel-message-card--owner .message-attachment-carousel-viewport { border: 0; border-radius: 0; }
|
||||
.topbar-identity .avatar.channel-profile-avatar { --channel-avatar-size: 40px; width: 40px; height: 40px; min-width: 40px; min-height: 40px; font-size: 22px; border-radius: 50%; }
|
||||
.channel-message-card--owner .channel-message-actions { gap: 0; margin: 6px -8px 0; min-height: 50px; flex-wrap: nowrap; }
|
||||
/* Равный шаг иконок: каждое действие – ячейка 56 px, иконка у левого края, счётчик внутри ячейки (влезает и «999»). */
|
||||
.channel-message-card--owner .channel-action-item { width: 56px; min-width: 56px; min-height: 44px; padding: 0 0 0 8px; gap: 5px; justify-content: flex-start; border-radius: 10px; font-variant-numeric: tabular-nums; }
|
||||
.channel-message-card--owner .channel-action-discussion { width: auto; padding-right: 8px; }
|
||||
.channel-message-card--owner .channel-action-icon svg { width: 23px; height: 23px; }
|
||||
.channel-message-card--owner .channel-action-share .channel-action-icon svg { width: 25px; height: 25px; }
|
||||
.channel-action-item.is-liked svg { fill: currentColor; }
|
||||
.channel-action-faces { display: inline-flex; align-items: center; margin-left: 2px; padding-right: 3px; }
|
||||
.channel-action-faces .avatar.channel-action-face { width: 22px; height: 22px; min-width: 22px; min-height: 22px; font-size: 10px; border: 2px solid var(--background); }
|
||||
.channel-action-faces .channel-action-face + .channel-action-face { margin-left: -6px; }
|
||||
.channel-message-meta { display: flex; align-items: center; gap: var(--space-1); margin-left: auto; min-width: 0; padding-left: 4px; }
|
||||
.channel-message-meta .channel-message-time { white-space: nowrap; }
|
||||
.channel-message-meta .channel-message-time::before { content: none; }
|
||||
.channel-message-meta .channel-message-more { display: inline-grid; place-items: center; width: 36px; height: 44px; min-height: 44px; margin: 0 -4px 0 0; padding: 0; }
|
||||
.channel-message-more svg { display: block; width: 20px; height: 20px; }
|
||||
@media (max-width: 360px) { .channel-message-card--owner .channel-action-item { width: 50px; min-width: 50px; } .channel-message-meta .channel-message-time { font-size: .6875rem; } }
|
||||
|
||||
/* Нижняя панель ленты: «Новая запись» у владельца, «Подписаться» у читателя */
|
||||
.channel-new-post { width: 100%; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; background: var(--surface-selected); color: var(--action); font: inherit; font-weight: 600; cursor: pointer; }
|
||||
.channel-new-post svg { width: 21px; height: 21px; }
|
||||
.channel-new-post:active { background: color-mix(in srgb, var(--surface-selected) 85%, var(--text-primary)); }
|
||||
@media (hover: hover) { .channel-new-post:hover { background: color-mix(in srgb, var(--surface-selected) 85%, var(--text-primary)); } }
|
||||
.channel-new-post:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
|
||||
|
||||
.channels-screen--channel, .channels-screen--thread { padding-bottom: 8px; }
|
||||
.channel-message-card--owner .message-attachment-media { height: auto; max-height: 70vh; object-fit: cover; }
|
||||
|
||||
/* Запись открывается нажатием – курсор как у ссылки. */
|
||||
.channels-screen .channel-message-card.is-openable { cursor: pointer; }
|
||||
/* Запись канала в раскладке Threads: аватар канала слева, название и возраст сверху, текст и действия – колонкой под названием. */
|
||||
.channels-screen .channel-message-card.channel-message-card--threads { padding: 14px 0 4px 48px; }
|
||||
.channel-message-card--threads .channel-message-head-row { flex-wrap: nowrap; min-height: 22px; }
|
||||
.channel-message-card--threads .channel-message-author-tile { gap: 0; min-height: 22px; }
|
||||
.channel-message-card--threads .avatar.channel-message-avatar { position: absolute; top: 14px; left: 0; }
|
||||
/* Общий :hover кнопок – filter: brightness(); фильтр делает плитку автора контейнером для
|
||||
абсолютного аватара, и при наведении (на телефоне – после касания) аватар прыгал на текст. */
|
||||
.channel-message-card--threads .channel-message-author-tile:is(:hover, :active) { filter: none; }
|
||||
.channel-message-card--threads .channel-message-author-tile:active .author-line-login { color: var(--accent); }
|
||||
@media (hover: hover) { .channel-message-card--threads .channel-message-author-tile:hover .author-line-login { color: var(--accent); } }
|
||||
.channel-message-card--threads .avatar.channel-profile-avatar { width: 36px; height: 36px; min-width: 36px; min-height: 36px; border-radius: 50%; font-size: 15px; }
|
||||
.channel-message-card--threads .author-line-login { font-size: .9375rem; }
|
||||
.channel-message-card--threads .channel-message-author .channel-message-time::before { content: none; }
|
||||
.channel-message-card--threads .channel-message-time { font-size: .875rem; line-height: 1.25rem; }
|
||||
.channel-message-card--threads .channel-message-more { width: 36px; height: 28px; margin: -4px -8px -4px auto; display: inline-grid; place-items: center; }
|
||||
.channels-screen .channel-message-card--threads .channel-message-body { margin-top: 2px; font-size: .9375rem; line-height: 1.4375rem; }
|
||||
.channel-message-card--threads .message-attachment-carousel { width: 100%; margin: 8px 0 2px; }
|
||||
.channel-message-card--threads .message-attachment-carousel-viewport { border: 1px solid var(--border-subtle); border-radius: 12px; }
|
||||
.channel-message-card--threads .channel-message-actions { min-height: 40px; margin: 2px 0 0 -10px; }
|
||||
.channel-message-card--threads .channel-action-item { width: auto; min-width: 44px; min-height: 40px; padding: 0 12px 0 10px; gap: 5px; }
|
||||
.channel-message-card--threads .channel-action-icon svg, .channel-message-card--threads .channel-action-share .channel-action-icon svg { width: 21px; height: 21px; }
|
||||
.channel-message-card--threads .channel-action-counter { font-size: .8125rem; }
|
||||
/* Открытая запись в обсуждении: аватар в шапке, текст на всю ширину и крупнее. */
|
||||
.channels-screen .channel-message-card.channel-message-card--threads-focus { padding: 14px 0 4px; }
|
||||
.channel-message-card--threads-focus .channel-message-head-row { min-height: 40px; }
|
||||
.channel-message-card--threads-focus .channel-message-author-tile { gap: 10px; }
|
||||
.channel-message-card--threads-focus .avatar.channel-message-avatar { position: relative; top: auto; }
|
||||
.channels-screen .channel-message-card--threads-focus .channel-message-body { margin-top: 10px; font-size: 1.0625rem; line-height: 1.55; }
|
||||
.channel-message-card--threads-focus .channel-message-actions { margin-top: 6px; }
|
||||
|
||||
/* Число лайков отдельно от действия: нажатие открывает статистику, а не меняет лайк. */
|
||||
.channel-action-like-stats { min-width: 28px; padding-inline: 4px; font-variant-numeric: tabular-nums; text-decoration: underline dotted; text-underline-offset: 3px; }
|
||||
.channel-message-card--owner .channel-action-like-stats { width: auto; min-width: 28px; padding-inline: 4px; }
|
||||
|
||||
/* Данные и проверка блока: единый диалог ленты и обсуждения. */
|
||||
.block-proof-card { width: min(100%, 540px); max-height: min(90dvh, 920px); overflow-y: auto; gap: 14px; }
|
||||
.block-proof-header { display: flex; align-items: center; gap: 14px; }
|
||||
.block-proof-header .modal-title { margin: 0 0 4px; }
|
||||
.block-proof-header .meta-muted { margin: 0; line-height: 1.4; }
|
||||
.block-proof-icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); font-size: 1.4rem; }
|
||||
.block-proof-facts { display: grid; border: 1px solid var(--border-subtle); border-radius: 14px; overflow: hidden; }
|
||||
.block-proof-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 12px; font-size: .85rem; }
|
||||
.block-proof-row + .block-proof-row { border-top: 1px solid var(--border-subtle); }
|
||||
.block-proof-row > span, .block-proof-hash > span { color: var(--text-secondary); }
|
||||
.block-proof-row > strong, .block-proof-row > code { text-align: right; overflow-wrap: anywhere; min-width: 0; font-size: inherit; font-weight: 600; }
|
||||
.block-proof-status { display: inline-flex; width: fit-content; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 20px; border: 1px solid var(--border-subtle); font-size: .8rem; font-weight: 600; }
|
||||
.block-proof-status--success { color: #228b66; }
|
||||
.block-proof-status--pending { color: #b47a1a; }
|
||||
.block-proof-status--unknown { color: var(--text-secondary); }
|
||||
.block-proof-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
|
||||
.block-proof-hash { display: flex; flex-direction: column; gap: 5px; padding: 10px 12px; border: 1px solid var(--border-subtle); border-radius: 12px; font-size: .8rem; }
|
||||
.block-proof-hash > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
|
||||
.block-proof-hash code { font-size: .84rem; overflow-wrap: anywhere; }
|
||||
.block-proof-copy-icon { flex: none; min-width: 34px; min-height: 34px; border: 1px solid var(--border-subtle); background: var(--surface); border-radius: 10px; color: var(--text-secondary); cursor: pointer; }
|
||||
.block-proof-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
|
||||
.block-proof-actions .secondary-btn { min-width: 0; padding: 10px 9px; text-align: center; font-size: .82rem; }
|
||||
.block-proof-actions .block-proof-link { display: flex; justify-content: center; align-items: center; text-decoration: none; }
|
||||
.block-proof-actions .block-proof-link[hidden] { display: none; }
|
||||
.block-proof-actions .block-proof-verify { grid-column: 1 / -1; }
|
||||
.block-proof-results { display: flex; flex-direction: column; gap: 8px; }
|
||||
.block-proof-results[hidden] { display: none; }
|
||||
.block-proof-check { display: flex; gap: 10px; align-items: flex-start; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--border-subtle); font-size: .82rem; }
|
||||
.block-proof-check > span { font-weight: 800; font-size: 1rem; }
|
||||
.block-proof-check--valid > span { color: #228b66; }
|
||||
.block-proof-check--invalid > span { color: var(--danger); }
|
||||
.block-proof-check > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
|
||||
.block-proof-check small { overflow-wrap: anywhere; color: var(--text-secondary); }
|
||||
.block-proof-raw { border-top: 1px solid var(--border-subtle); padding-top: 10px; }
|
||||
.block-proof-raw summary { cursor: pointer; color: var(--text-secondary); font-size: .83rem; }
|
||||
.block-proof-raw pre { margin: 10px 0; font-size: .72rem; }
|
||||
@media (max-width: 380px) { .block-proof-actions { grid-template-columns: 1fr; } .block-proof-actions .block-proof-verify { grid-column: auto; } }
|
||||
|
||||
.block-proof-warning { margin: 0; padding: 8px 12px; border: 1px solid var(--danger); border-radius: 10px; font-size: .8rem; }
|
||||
@@ -0,0 +1,307 @@
|
||||
/* Список каналов, поиск и форма создания. Визуальный owner этих экранов. */
|
||||
|
||||
.channels-screen {
|
||||
position: relative;
|
||||
width: min(100%, 640px);
|
||||
margin-inline: auto;
|
||||
gap: 12px;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.channels-screen::before { content: none; }
|
||||
|
||||
.channels-screen .meta-muted { color: var(--text-secondary); }
|
||||
|
||||
.channels-create-btn {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
padding: 0;
|
||||
color: var(--accent);
|
||||
font-size: 28px;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.channels-list-controls {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
padding-top: var(--page-top-gap);
|
||||
}
|
||||
|
||||
.channels-inline-search {
|
||||
min-height: 44px;
|
||||
padding: 0 6px 0 12px;
|
||||
display: grid;
|
||||
grid-template-columns: auto minmax(0, 1fr) auto;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
border: 1px solid var(--border-subtle);
|
||||
border-radius: 12px;
|
||||
color: var(--text-secondary);
|
||||
background: var(--surface);
|
||||
}
|
||||
|
||||
.channels-inline-search:focus-within {
|
||||
border-color: var(--focus-ring);
|
||||
outline: 2px solid color-mix(in srgb, var(--focus-ring) 24%, transparent);
|
||||
}
|
||||
|
||||
.channels-inline-search__icon { display: inline-flex; color: var(--text-secondary); }
|
||||
.channels-inline-search__icon svg { width: 20px; height: 20px; }
|
||||
|
||||
.channels-inline-search input {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
height: 42px;
|
||||
border: 0;
|
||||
outline: 0;
|
||||
color: var(--text-primary);
|
||||
background: transparent;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.channels-inline-search input::placeholder { color: color-mix(in srgb, var(--text-secondary) 62%, var(--surface)); opacity: 1; }
|
||||
|
||||
.channels-server-search {
|
||||
min-height: 44px;
|
||||
padding: 0 8px;
|
||||
color: var(--accent);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.channels-list-content,
|
||||
.channels-groups {
|
||||
min-width: 0;
|
||||
display: grid;
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
.channel-row {
|
||||
text-align: left;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
min-height: 76px;
|
||||
padding: 14px 0;
|
||||
display: grid;
|
||||
grid-template-columns: 48px minmax(0, 1fr);
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
color: var(--text-primary);
|
||||
background: linear-gradient(var(--border-subtle), var(--border-subtle)) right bottom / calc(100% - 60px) 1px no-repeat;
|
||||
box-shadow: none;
|
||||
cursor: pointer;
|
||||
transition: background-color 160ms ease;
|
||||
}
|
||||
|
||||
@media (hover: hover) { .channel-row:hover { background-color: color-mix(in srgb, var(--surface) 66%, transparent); } }
|
||||
.channel-row:active { background-color: var(--surface-selected); }
|
||||
.channel-row:focus-within { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
|
||||
|
||||
.channels-screen--list .channel-row .avatar {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
min-width: 48px;
|
||||
min-height: 48px;
|
||||
/* Аватары каналов, как и пользователей, всегда круглые. */
|
||||
border-radius: 50%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.channel-row-main {
|
||||
min-width: 0;
|
||||
display: grid;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.channel-row-title-line,
|
||||
.channel-row-preview-line {
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.channel-row-title {
|
||||
min-width: 0;
|
||||
flex: 1 1 auto;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
color: var(--text-primary);
|
||||
font-size: 15px;
|
||||
line-height: 20px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.channel-row-time {
|
||||
flex: 0 0 auto;
|
||||
color: var(--text-secondary);
|
||||
font-size: 12px;
|
||||
line-height: 18px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.channel-row-technical,
|
||||
.channel-row-message {
|
||||
min-width: 0;
|
||||
margin: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
color: var(--text-secondary);
|
||||
font-size: 12px;
|
||||
line-height: 18px;
|
||||
}
|
||||
|
||||
.channel-row-message { font-size: 13px; }
|
||||
.channel-row-message.is-empty { font-style: italic; }
|
||||
.channel-row-technical[hidden] { display: none; }
|
||||
.channel-row { min-height: 68px; padding: 12px 0; }
|
||||
.channel-row-description,
|
||||
.channel-row-owner { display: none; }
|
||||
|
||||
.channel-row-controls {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
bottom: 14px;
|
||||
display: grid;
|
||||
justify-items: end;
|
||||
}
|
||||
.channel-row:has(.channel-row-count:not([hidden])) .channel-row-message { padding-right: 36px; }
|
||||
|
||||
.channel-row-count {
|
||||
min-width: 22px;
|
||||
height: 22px;
|
||||
padding: 0 7px;
|
||||
border: 0;
|
||||
color: var(--on-accent);
|
||||
background: var(--accent);
|
||||
box-shadow: none;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.channel-row-count[hidden] { display: none; }
|
||||
|
||||
.channels-empty-state,
|
||||
.channels-status {
|
||||
min-height: 180px;
|
||||
padding: 32px 20px;
|
||||
display: grid;
|
||||
place-content: center;
|
||||
justify-items: center;
|
||||
gap: 12px;
|
||||
border: 0;
|
||||
text-align: center;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.channels-empty-state--compact { min-height: 132px; }
|
||||
|
||||
.channels-status .primary-btn,
|
||||
.channels-bottom-action {
|
||||
min-height: 44px;
|
||||
padding: 0 18px;
|
||||
border-radius: 12px;
|
||||
color: var(--on-accent);
|
||||
background: var(--accent);
|
||||
}
|
||||
|
||||
.channels-status p {
|
||||
max-width: 30ch;
|
||||
margin: 0 0 8px;
|
||||
}
|
||||
|
||||
.channels-status .primary-btn,
|
||||
.channels-status .secondary-btn {
|
||||
width: min(100%, 280px);
|
||||
min-height: 48px;
|
||||
}
|
||||
|
||||
|
||||
.channels-search-suggest {
|
||||
max-height: 240px;
|
||||
padding: 6px;
|
||||
overflow-y: auto;
|
||||
border: 1px solid var(--border-subtle);
|
||||
border-radius: 12px;
|
||||
background: var(--surface);
|
||||
}
|
||||
|
||||
.channel-search-item {
|
||||
width: 100%;
|
||||
min-height: 44px;
|
||||
padding: 9px 10px;
|
||||
border-radius: 9px;
|
||||
color: var(--text-primary);
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.channels-screen--add > .card { gap: 20px; padding: 8px 0 16px; border: 0; border-radius: 0; background: transparent; }
|
||||
|
||||
.channel-create-avatar-head {
|
||||
display: grid;
|
||||
grid-template-columns: auto minmax(0, 1fr);
|
||||
gap: 14px;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.channel-create-avatar-side,
|
||||
.channel-create-avatar-status { min-width: 0; display: grid; gap: 8px; }
|
||||
|
||||
.channel-create-avatar-status-row {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.channel-avatar-status-text,
|
||||
.channel-avatar-status-line,
|
||||
.channel-avatar-txid {
|
||||
margin: 0;
|
||||
color: var(--text-secondary);
|
||||
font-size: 12px;
|
||||
line-height: 18px;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.channel-avatar-remove-btn { width: 44px; height: 44px; padding: 0; color: var(--danger); }
|
||||
.channel-avatar-remove-btn[hidden] { display: none; }
|
||||
.channel-create-login-hint, .channel-link-preview { font-size: 12px; line-height: 18px; }
|
||||
|
||||
.channels-screen--add :is(.primary-btn, .secondary-btn) {
|
||||
min-height: 44px;
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
.channels-screen--add .primary-btn { color: var(--on-accent); background: var(--accent); }
|
||||
.channels-screen--add .secondary-btn { color: var(--text-primary); border: 1px solid var(--border-control); background: var(--surface); }
|
||||
|
||||
@media (max-width: 360px) {
|
||||
.channel-row { grid-template-columns: 44px minmax(0, 1fr); gap: 10px; }
|
||||
.channels-screen--list .channel-row .avatar { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
|
||||
.channels-server-search { padding-inline: 4px; }
|
||||
.channel-create-avatar-head { grid-template-columns: 1fr; }
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.channel-row { animation: none; transition: none; }
|
||||
}
|
||||
|
||||
/* Единый поиск каналов и людей */
|
||||
.shine-search-screen { width: min(100%, 640px); margin-inline: auto; gap: 14px; padding-top: var(--page-top-gap); }
|
||||
/* Поле, переключатель и строки людей – общие (.search-field, .tabs, person-row). */
|
||||
.shine-search-result:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
|
||||
.shine-search-status { margin: 0; color: var(--text-secondary); font-size: 13px; }
|
||||
.shine-search-status:empty { display: none; }
|
||||
.shine-search-results { display: grid; gap: 2px; padding-bottom: 30px; }
|
||||
.shine-search-section-heading { margin: 0; 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; }
|
||||
.shine-search-result { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; padding: 12px 6px; border: 0; border-bottom: 1px solid var(--border-subtle); background: transparent; color: var(--text-primary); text-align: left; cursor: pointer; }
|
||||
.shine-search-result:active { background: var(--surface); }
|
||||
@media (hover: hover) { .shine-search-result:hover { background: var(--surface); } }
|
||||
.shine-search-result .avatar { flex-shrink: 0; }
|
||||
.shine-search-result__text { display: grid; gap: 3px; min-width: 0; }
|
||||
.shine-search-result__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
|
||||
.shine-search-result__address, .shine-search-result__description { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-secondary); font-size: 12px; }
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,184 @@
|
||||
/* Diagnostics/admin/developer UI styles. */
|
||||
|
||||
|
||||
.pwa-diag-list {
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
|
||||
.pwa-diag-row {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto 10px;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 8px 10px;
|
||||
border-radius: 10px;
|
||||
border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
|
||||
background: var(--surface);
|
||||
}
|
||||
|
||||
|
||||
.pwa-diag-key {
|
||||
color: var(--text-primary);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
|
||||
.pwa-diag-value {
|
||||
color: var(--text-primary);
|
||||
font-size: 13px;
|
||||
text-align: right;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
|
||||
.pwa-diag-indicator {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border-radius: 50%;
|
||||
background: var(--surface);
|
||||
}
|
||||
|
||||
|
||||
.pwa-diag-indicator.is-ok {
|
||||
background: var(--success);
|
||||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 18%, transparent);
|
||||
}
|
||||
|
||||
|
||||
.pwa-diag-indicator.is-warn {
|
||||
background: var(--warning);
|
||||
}
|
||||
|
||||
|
||||
.pwa-diag-indicator.is-bad {
|
||||
background: var(--danger);
|
||||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 18%, transparent);
|
||||
}
|
||||
|
||||
|
||||
.pwa-diag-indicator.is-neutral {
|
||||
background: var(--text-primary);
|
||||
}
|
||||
|
||||
|
||||
.pwa-diag-actions {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
|
||||
.pwa-diag-recommendations {
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
|
||||
.pwa-diag-json {
|
||||
margin: 0;
|
||||
max-height: 260px;
|
||||
overflow: auto;
|
||||
border-radius: 10px;
|
||||
padding: 10px;
|
||||
font-size: 12px;
|
||||
line-height: 1.35;
|
||||
color: var(--text-primary);
|
||||
background: var(--surface);
|
||||
border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
|
||||
}
|
||||
|
||||
|
||||
.arweave-uploads-screen {
|
||||
box-sizing: border-box;
|
||||
min-height: 100vh;
|
||||
max-width: 100%;
|
||||
overflow-x: hidden;
|
||||
padding-top: 3.25rem;
|
||||
}
|
||||
|
||||
|
||||
.arweave-uploads-toolbar {
|
||||
align-items: center;
|
||||
background: linear-gradient(135deg, var(--surface), var(--surface));
|
||||
border-bottom: 1px solid transparent;
|
||||
box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
|
||||
box-sizing: border-box;
|
||||
display: grid;
|
||||
gap: 0.42rem;
|
||||
grid-template-columns: 2.4rem minmax(0, 1fr) 2.4rem 2.4rem;
|
||||
justify-content: stretch;
|
||||
left: 0;
|
||||
margin: 0;
|
||||
padding: max(0.35rem, env(safe-area-inset-top)) 0.45rem 0.45rem;
|
||||
position: fixed;
|
||||
right: 0;
|
||||
top: 0;
|
||||
z-index: 15;
|
||||
}
|
||||
|
||||
|
||||
.arweave-uploads-back,
|
||||
.arweave-uploads-add,
|
||||
.arweave-uploads-menu-btn {
|
||||
align-items: center;
|
||||
aspect-ratio: 1;
|
||||
display: inline-flex;
|
||||
font-size: 1.2rem;
|
||||
height: 2.35rem;
|
||||
justify-content: center;
|
||||
min-width: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
|
||||
.arweave-uploads-title {
|
||||
align-self: center;
|
||||
color: var(--text-primary);
|
||||
font-size: 0.94rem;
|
||||
font-weight: 800;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-align: center;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
|
||||
.arweave-uploads-menu {
|
||||
background: var(--surface);
|
||||
border: 1px solid transparent;
|
||||
border-radius: 0.85rem;
|
||||
box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
|
||||
display: grid;
|
||||
min-width: 13rem;
|
||||
padding: 0.35rem;
|
||||
position: absolute;
|
||||
right: 0.45rem;
|
||||
top: calc(100% + 0.35rem);
|
||||
z-index: 20;
|
||||
}
|
||||
|
||||
|
||||
.arweave-uploads-menu[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
.arweave-uploads-menu .text-btn {
|
||||
color: var(--text-primary);
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
|
||||
.arweave-uploads-list {
|
||||
max-height: calc(100vh - 4.1rem);
|
||||
min-height: calc(100vh - 4.1rem);
|
||||
width: 100%;
|
||||
}
|
||||
.arweave-uploads-menu-btn .app-overflow-dots {
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
/* Проверка Solana RPC: длинные адреса узлов переносятся, а не раздвигают экран */
|
||||
.solana-rpc-card { min-width: 0; }
|
||||
.solana-rpc-url, .solana-rpc-details { min-width: 0; overflow-wrap: anywhere; }
|
||||
@@ -0,0 +1,401 @@
|
||||
/* Device/session/pairing feature styles. */
|
||||
|
||||
.qr-card {
|
||||
justify-items: center;
|
||||
}
|
||||
|
||||
|
||||
.qr-code {
|
||||
width: min(220px, 100%);
|
||||
aspect-ratio: 1;
|
||||
fill: var(--text-primary);
|
||||
background: var(--surface);
|
||||
border-radius: 22px;
|
||||
padding: 18px;
|
||||
}
|
||||
|
||||
|
||||
.camera-shell {
|
||||
position: relative;
|
||||
min-height: 380px;
|
||||
border-radius: var(--radius-lg);
|
||||
overflow: hidden;
|
||||
background: var(--surface);
|
||||
}
|
||||
|
||||
|
||||
.camera-video {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
min-height: 380px;
|
||||
object-fit: cover;
|
||||
display: block;
|
||||
}
|
||||
|
||||
|
||||
.camera-frame {
|
||||
position: absolute;
|
||||
inset: 70px 40px 110px;
|
||||
border: 3px solid color-mix(in srgb, var(--accent) 85%, transparent);
|
||||
border-radius: 24px;
|
||||
box-shadow: 0 0 0 999px rgba(5, 9, 16, 0.38);
|
||||
}
|
||||
|
||||
|
||||
.camera-hint,
|
||||
.camera-error {
|
||||
position: absolute;
|
||||
left: 16px;
|
||||
right: 16px;
|
||||
text-align: center;
|
||||
padding: 10px 12px;
|
||||
border-radius: 12px;
|
||||
background: var(--surface);
|
||||
}
|
||||
|
||||
|
||||
.camera-hint {
|
||||
bottom: 18px;
|
||||
}
|
||||
|
||||
|
||||
.camera-error {
|
||||
top: 18px;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
|
||||
.camera-placeholder {
|
||||
width: 100%;
|
||||
min-height: 380px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
color: var(--text-primary);
|
||||
background:
|
||||
radial-gradient(circle at 20% 10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 48%),
|
||||
linear-gradient(180deg, var(--surface), var(--surface));
|
||||
}
|
||||
|
||||
|
||||
.session-status {
|
||||
color: var(--text-muted);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
|
||||
.session-status--online {
|
||||
color: var(--success);
|
||||
}
|
||||
|
||||
|
||||
.session-item {
|
||||
width: 100%;
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
font: inherit;
|
||||
cursor: pointer;
|
||||
}
|
||||
.nav-list > .session-item + .session-item { border-top: 1px solid var(--border-subtle); }
|
||||
.session-item:active { background: var(--surface-selected); }
|
||||
@media (hover: hover) { .session-item:hover { background: var(--surface-selected); } }
|
||||
.session-item:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
|
||||
|
||||
|
||||
|
||||
|
||||
.session-tabs {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
|
||||
.session-tab {
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 10px;
|
||||
background: color-mix(in srgb, var(--text-primary) 3%, transparent);
|
||||
color: var(--text-muted);
|
||||
min-height: 36px;
|
||||
padding: 6px 8px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
|
||||
.session-tab.is-active {
|
||||
color: var(--text);
|
||||
border-color: color-mix(in srgb, var(--accent) 45%, transparent);
|
||||
background: color-mix(in srgb, var(--accent) 15%, transparent);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
.qr-demo {
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
border-radius: 8px;
|
||||
border: 2px solid var(--border-control);
|
||||
background:
|
||||
linear-gradient(
|
||||
90deg,
|
||||
var(--text-primary) 0 8px,
|
||||
var(--surface) 8px 16px,
|
||||
var(--text-primary) 16px 24px,
|
||||
var(--surface) 24px 32px,
|
||||
var(--text-primary) 32px 40px,
|
||||
var(--surface) 40px 48px,
|
||||
var(--text-primary) 48px 56px,
|
||||
var(--surface) 56px 64px
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
/* QR для второго устройства: по центру карточки, во всю доступную ширину до 280 px.
|
||||
* Фон всегда светлый — тёмный QR на тёмном фоне камеры читают плохо. */
|
||||
.qr-image {
|
||||
width: min(280px, 100%);
|
||||
aspect-ratio: 1;
|
||||
padding: 12px;
|
||||
border-radius: 16px;
|
||||
border: 1px solid var(--border-subtle);
|
||||
background: #ffffff;
|
||||
}
|
||||
.qr-image svg { display: block; width: 100%; height: 100%; }
|
||||
|
||||
|
||||
/* Pairing approve/reject use their semantic button roles; legacy green/red surfaces were not observable in Stage 3.1. */
|
||||
|
||||
.pairing-request-actions > button {
|
||||
flex: 1 1 140px;
|
||||
}
|
||||
|
||||
|
||||
.pairing-transfer-dialog {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 13000;
|
||||
}
|
||||
|
||||
|
||||
.pairing-transfer-dialog__backdrop {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: var(--surface);
|
||||
backdrop-filter: blur(8px);
|
||||
-webkit-backdrop-filter: blur(8px);
|
||||
}
|
||||
|
||||
|
||||
.pairing-transfer-dialog__card {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
width: min(calc(100vw - 28px), 390px);
|
||||
transform: translate(-50%, -50%);
|
||||
padding: 16px;
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
|
||||
.pairing-transfer-key-list {
|
||||
display: grid;
|
||||
gap: 9px;
|
||||
}
|
||||
|
||||
|
||||
.pairing-transfer-key {
|
||||
display: grid;
|
||||
grid-template-columns: auto 1fr;
|
||||
align-items: center;
|
||||
gap: 11px;
|
||||
min-height: 58px;
|
||||
padding: 9px 12px;
|
||||
border: 1px solid var(--border-subtle);
|
||||
border-radius: 14px;
|
||||
background: color-mix(in srgb, var(--text-primary) 4%, transparent);
|
||||
}
|
||||
|
||||
|
||||
.pairing-transfer-key span {
|
||||
display: grid;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
|
||||
.pairing-transfer-key small {
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
|
||||
.pairing-transfer-key.is-required {
|
||||
opacity: .82;
|
||||
}
|
||||
|
||||
|
||||
.pairing-transfer-dialog__actions {
|
||||
justify-content: flex-end;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
|
||||
/* Pairing actions retain the exact Stage 3.1 focus-only approve/reject variant. */
|
||||
.screen-content.settings-bordered-actions .pairing-approve-btn,
|
||||
.screen-content.settings-bordered-actions .pairing-reject-btn {
|
||||
border-radius: 14px;
|
||||
padding-inline: 12px;
|
||||
}
|
||||
|
||||
.screen-content.settings-bordered-actions .pairing-approve-btn {
|
||||
color: var(--text-primary);
|
||||
background: transparent;
|
||||
background-image: none;
|
||||
border: 0;
|
||||
box-shadow: none;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
@media (hover: hover) {
|
||||
.screen-content.settings-bordered-actions .pairing-approve-btn:hover {
|
||||
color: var(--text-primary);
|
||||
background: transparent;
|
||||
background-image: none;
|
||||
border: 0;
|
||||
box-shadow: none;
|
||||
transform: none;
|
||||
filter: brightness(1.12);
|
||||
}
|
||||
}
|
||||
|
||||
.screen-content.settings-bordered-actions .pairing-approve-btn:active {
|
||||
color: var(--text-primary);
|
||||
background: color-mix(in srgb, var(--surface) 12%, transparent);
|
||||
background-image: none;
|
||||
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: none;
|
||||
filter: brightness(0.9);
|
||||
}
|
||||
|
||||
.screen-content.settings-bordered-actions .pairing-approve-btn:focus,
|
||||
.screen-content.settings-bordered-actions .pairing-approve-btn:focus-visible {
|
||||
background: linear-gradient(180deg, color-mix(in srgb, var(--success) 92%, transparent), var(--surface));
|
||||
border: 1px solid color-mix(in srgb, var(--success) 55%, transparent);
|
||||
box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text-primary) 18%, transparent), 0 8px 22px color-mix(in srgb, var(--success) 20%, transparent);
|
||||
transform: none;
|
||||
filter: none;
|
||||
}
|
||||
|
||||
.screen-content.settings-bordered-actions .pairing-reject-btn {
|
||||
color: var(--text-primary);
|
||||
background: transparent;
|
||||
border: 0;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
@media (hover: hover) {
|
||||
.screen-content.settings-bordered-actions .pairing-reject-btn:hover {
|
||||
color: var(--text-primary);
|
||||
background: transparent;
|
||||
border: 0;
|
||||
box-shadow: none;
|
||||
transform: translateY(-1px);
|
||||
filter: brightness(1.12);
|
||||
}
|
||||
}
|
||||
|
||||
.screen-content.settings-bordered-actions .pairing-reject-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);
|
||||
}
|
||||
|
||||
.screen-content.settings-bordered-actions .pairing-reject-btn:focus,
|
||||
.screen-content.settings-bordered-actions .pairing-reject-btn:focus-visible {
|
||||
color: var(--text-primary);
|
||||
background: color-mix(in srgb, var(--danger) 28%, transparent);
|
||||
border: 1px solid color-mix(in srgb, var(--danger) 42%, transparent);
|
||||
box-shadow: none;
|
||||
transform: none;
|
||||
filter: none;
|
||||
}
|
||||
|
||||
.session-item { width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); padding: 12px 14px; text-align: left; }
|
||||
.session-item__main { display: grid; gap: 2px; min-width: 0; }
|
||||
.session-item__title { color: var(--text-primary); font-size: var(--text-md); font-weight: var(--weight-bold); overflow-wrap: anywhere; }
|
||||
.session-item__main .meta-muted { font-size: var(--text-xs); }
|
||||
.session-item__side { display: grid; justify-items: end; gap: 6px; flex-shrink: 0; font-size: var(--text-xs); }
|
||||
.session-status--online { color: var(--success); }
|
||||
.key-card__hint { display: block; margin-top: 2px; color: var(--text-secondary); font-size: var(--text-xs); font-weight: 400; }
|
||||
.key-card .field-label { font-weight: var(--weight-bold); color: var(--text-primary); }
|
||||
|
||||
.key-list > .key-card { padding: 12px 14px; border: 0; border-radius: 0; background: transparent; }
|
||||
.key-list > .key-card + .key-card { border-top: 1px solid var(--border-subtle); }
|
||||
.key-list .key-card__hint { font-size: var(--text-sm); }
|
||||
|
||||
|
||||
/* Единственный видимый сценарий подключения другого устройства. */
|
||||
.pairing-guide-card {
|
||||
gap: 16px;
|
||||
overflow: hidden;
|
||||
border-color: color-mix(in srgb, var(--accent) 24%, var(--border-subtle));
|
||||
background:
|
||||
radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 42%),
|
||||
var(--surface);
|
||||
}
|
||||
|
||||
.pairing-guide__heading {
|
||||
display: grid;
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
.pairing-guide__eyebrow {
|
||||
color: var(--accent);
|
||||
font-size: var(--text-xs);
|
||||
font-weight: var(--weight-bold);
|
||||
letter-spacing: .08em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.pairing-guide__title {
|
||||
margin: 0;
|
||||
font-size: var(--text-lg);
|
||||
}
|
||||
|
||||
.pairing-guide__steps {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.pairing-guide__steps li {
|
||||
display: grid;
|
||||
grid-template-columns: 30px minmax(0, 1fr);
|
||||
align-items: start;
|
||||
gap: 11px;
|
||||
color: var(--text-secondary);
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.pairing-guide__step-number {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--border-subtle));
|
||||
border-radius: 999px;
|
||||
color: var(--text-primary);
|
||||
background: color-mix(in srgb, var(--accent) 12%, var(--surface));
|
||||
font-size: var(--text-sm);
|
||||
font-weight: var(--weight-bold);
|
||||
}
|
||||
@@ -0,0 +1,745 @@
|
||||
/* Поиск контактов относится к feature «Личные/Контакты». */
|
||||
.contact-search-actions {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
|
||||
.contact-search-form-card,
|
||||
.contact-search-results-card {
|
||||
margin: 0 6px;
|
||||
padding: 14px;
|
||||
border-radius: 24px;
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border-subtle);
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
|
||||
.contact-search-input {
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
|
||||
.contact-search-results-title {
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
color: var(--text-secondary);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
||||
.contact-search-result-main {
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Personal messages list and DM-list styles. */
|
||||
|
||||
/* ===== Direct Messages Glass Theme (DM-only) ===== */
|
||||
.dm-screen {
|
||||
position: relative;
|
||||
isolation: isolate;
|
||||
color: var(--text-primary);
|
||||
min-height: 100%;
|
||||
align-content: start;
|
||||
}
|
||||
|
||||
|
||||
.screen-content .dm-screen {
|
||||
min-height: 100%;
|
||||
}
|
||||
|
||||
|
||||
@keyframes dm-orbs-drift {
|
||||
from { transform: translate3d(0, 0, 0) scale(1); }
|
||||
to { transform: translate3d(0, -8px, 0) scale(1.02); }
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.dm-dialog-card {
|
||||
position: relative;
|
||||
display: grid;
|
||||
grid-template-columns: 60px minmax(0, 1fr) auto;
|
||||
gap: 12px;
|
||||
align-items: center;
|
||||
min-height: 74px;
|
||||
padding: 10px 12px 10px 10px;
|
||||
border-radius: 26px;
|
||||
background: var(--surface);
|
||||
backdrop-filter: blur(24px);
|
||||
-webkit-backdrop-filter: blur(24px);
|
||||
border: 1px solid color-mix(in srgb, var(--rel-contact) 32%, transparent); /* оконтовка = цвет линии связи; default = violet (контакт) */
|
||||
box-shadow: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.dm-dialog-card:focus-visible { outline: 2px solid var(--rel-link); outline-offset: 2px; }
|
||||
|
||||
.dm-card--family { border-color: transparent; }
|
||||
/* линия связи: gold (семья) */
|
||||
.dm-card--shining { border-color: color-mix(in srgb, var(--rel-shining) 45%, transparent); }
|
||||
/* линия связи: cyan (сияющий) */
|
||||
|
||||
.dm-screen .list-item .avatar {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
min-width: 40px;
|
||||
min-height: 40px;
|
||||
}
|
||||
|
||||
|
||||
.dm-screen .list-item {
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
|
||||
.dm-screen .meta-muted {
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
|
||||
/* ===== «Личные сообщения» v2 — списочная форма «Связей» ===== */
|
||||
/* Токены-мост: НЕ придумываем цвета, наследуем канонический язык «Связей» (network-graph.css :root). */
|
||||
.dm-screen {
|
||||
--dm-tone-default: var(--rel-contact);
|
||||
--dm-tone-family: var(--rel-family);
|
||||
--dm-tone-shining: var(--rel-shining);
|
||||
}
|
||||
|
||||
|
||||
/* DM-шапка через grid 1fr auto 1fr: бренд слева, title строго по центру, «+» справа. */
|
||||
|
||||
.dm-head-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
|
||||
|
||||
.dm-head-logo-wrap { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: 0 0 auto; }
|
||||
|
||||
.dm-head-logo {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
object-fit: contain;
|
||||
display: block;
|
||||
filter: drop-shadow(0 0 7px color-mix(in srgb, var(--rel-shining) 38%, transparent));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* Центр шапки — светящийся бренд «Shine» */
|
||||
|
||||
@keyframes dm-shine-pulse {
|
||||
0%, 100% { text-shadow: 0 0 5px color-mix(in srgb, var(--rel-family) 42%, transparent), 0 0 12px color-mix(in srgb, var(--rel-family) 26%, transparent); }
|
||||
50% { text-shadow: 0 0 9px color-mix(in srgb, var(--rel-family) 68%, transparent), 0 0 20px color-mix(in srgb, var(--rel-family) 46%, transparent); }
|
||||
}
|
||||
|
||||
|
||||
.dm-divider { position: relative; height: 18px; margin: 6px 14px 8px; }
|
||||
|
||||
.dm-divider::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--rel-family) 50%, transparent), transparent); }
|
||||
|
||||
.dm-divider::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; transform: translate(-50%, -50%) rotate(45deg); background: var(--rel-family); box-shadow: 0 0 8px var(--rel-family-glow); }
|
||||
|
||||
|
||||
/* список: скролл внутри контента, карточки не ужимаем, отступ снизу под bottom nav (86px) + 16px */
|
||||
.dm-list { display: flex; flex-direction: column; gap: 8px; padding: 0 6px; padding-bottom: calc(86px + 16px); }
|
||||
|
||||
|
||||
/* текст карточки */
|
||||
.dm-row-main { min-width: 0; }
|
||||
|
||||
.dm-row-titleline { display: flex; align-items: center; gap: 6px; min-width: 0; }
|
||||
|
||||
.dm-row-titlewrap { flex-wrap: wrap; row-gap: 6px; }
|
||||
|
||||
.dm-dialog-card .dm-row-title { font-size: 16px; font-weight: 600; color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
|
||||
.dm-dialog-card .dm-row-last-message { font-size: 14px; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
|
||||
.dm-contact-note {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
min-height: 22px;
|
||||
padding: 0 8px;
|
||||
border-radius: 999px;
|
||||
border: 1px solid var(--border-subtle);
|
||||
background: var(--surface-selected);
|
||||
color: var(--text-secondary);
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* галочка-подтверждён у имени (золотая, без слова «Подтверждён») */
|
||||
.dm-name-check { display: inline-flex; flex: 0 0 auto; color: var(--rel-family); }
|
||||
|
||||
.dm-name-check svg { width: 16px; height: 16px; }
|
||||
|
||||
|
||||
/* AvatarRing — обод/свечение по тону (адаптация орбов «Связей», без тяжёлой магии) */
|
||||
.dm-av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; position: relative; }
|
||||
|
||||
.dm-av .avatar { width: 40px; height: 40px; min-width: 40px; min-height: 40px; border: none; box-shadow: none; }
|
||||
|
||||
/* Цветные обводки вокруг аватаров (violet/gold) убраны по просьбе. Свечение оставляем только у сияющих (ниже). */
|
||||
.dm-av--default { box-shadow: none; }
|
||||
|
||||
.dm-av--family { box-shadow: none; }
|
||||
|
||||
/* Сияющий аватар = АДАПТАЦИЯ сияющего узла экрана «Связи»: та же небесная палитра, тот же небесный rim,
|
||||
тот же двойной «дышащий» пульс. Переиспользуем ОБЩИЕ keyframes графа (fg-shine-glow — пульс box-shadow,
|
||||
fg-shine-halo — дыхание радиального ореола; объявлены в network-graph.css, грузится глобально), а не рисуем
|
||||
второй похожий эффект. Радиальный ореол повторяет стопы узла графа; SVG-фильтр #fg-shine-glow есть только на
|
||||
стр. «Связи», поэтому здесь мягкий CSS-blur. Мини-сфера компактная — не размывает текст/соседей. */
|
||||
.dm-av--shining {
|
||||
border: 1px solid color-mix(in srgb, var(--rel-shining) 62%, transparent);
|
||||
animation: fg-shine-glow 3.6s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.dm-av--shining::before {
|
||||
content: ""; position: absolute; inset: -12px; border-radius: 50%; z-index: -1; pointer-events: none;
|
||||
background: radial-gradient(circle, color-mix(in srgb, var(--rel-shining) 50%, transparent) 0%, color-mix(in srgb, var(--rel-shining) 18%, transparent) 46%, transparent 72%);
|
||||
filter: blur(3.4px); /* = stdDeviation 3.4 SVG-фильтра #fg-shine-glow графа; геометрия inset −12px тоже как у узла (58px↔56px, scale≈1) */
|
||||
animation: fg-shine-halo 3.6s ease-in-out infinite;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.dm-av--shining { animation: none; }
|
||||
.dm-av--shining::before { animation: none; }
|
||||
}
|
||||
|
||||
|
||||
.dm-row-meta-col {
|
||||
display: inline-flex;
|
||||
min-width: 0;
|
||||
align-self: stretch;
|
||||
flex-direction: column;
|
||||
align-items: flex-end;
|
||||
justify-content: space-between;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.dm-row-meta-line {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
min-height: 24px;
|
||||
}
|
||||
|
||||
.dm-row-meta-spacer {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
}
|
||||
|
||||
.dm-row-time {
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.dm-row-time--empty {
|
||||
width: 0;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* непрочитанные — отдельная violet-сфера (НЕ изумруд) */
|
||||
.dm-unread-badge {
|
||||
min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px;
|
||||
display: inline-flex; align-items: center; justify-content: center;
|
||||
font-size: 12px; font-weight: 700; color: var(--text);
|
||||
color: var(--on-accent); background: var(--accent); border: 0;
|
||||
}
|
||||
|
||||
.dm-chevron { display: inline-flex; color: var(--text-secondary); }
|
||||
|
||||
.dm-chevron svg { width: 16px; height: 16px; }
|
||||
|
||||
|
||||
@media (max-width: 380px) {
|
||||
.dm-dialog-card {
|
||||
grid-template-columns: 60px minmax(0, 1fr);
|
||||
row-gap: 10px;
|
||||
}
|
||||
.dm-row-meta-col {
|
||||
grid-column: 2;
|
||||
justify-self: end;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* Значок «связь через кого» — ТОЛЬКО иконка (кликабельная); детали пути в попапе ниже */
|
||||
.dm-via {
|
||||
display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
|
||||
width: 24px; height: 24px; padding: 0; border-radius: 8px; cursor: pointer;
|
||||
color: var(--rel-link); border: 1px solid color-mix(in srgb, var(--rel-link) 50%, transparent); background: color-mix(in srgb, var(--rel-link) 8%, transparent);
|
||||
}
|
||||
|
||||
.dm-via-icon { display: inline-flex; }
|
||||
|
||||
.dm-via-icon svg { width: 14px; height: 14px; }
|
||||
|
||||
/* попап пути связи: Ты → …посредники… → он; узлы = аватар+имя, кликабельные → профиль */
|
||||
.dm-via-path {
|
||||
display: none; position: absolute; left: 14px; right: 14px; top: 46px; z-index: 6;
|
||||
flex-wrap: wrap; align-items: center; gap: 6px; padding: 9px 11px; border-radius: 12px;
|
||||
background: var(--surface); border: 1px solid color-mix(in srgb, var(--rel-link) 35%, transparent);
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
|
||||
.dm-via-path.is-open { display: flex; }
|
||||
|
||||
.dm-via-node {
|
||||
display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px 3px 4px; border-radius: 11px;
|
||||
background: var(--surface); border: 1px solid var(--border-subtle);
|
||||
color: var(--text); font-size: 12px; cursor: default;
|
||||
}
|
||||
|
||||
button.dm-via-node { cursor: pointer; }
|
||||
|
||||
button.dm-via-node:active { border-color: color-mix(in srgb, var(--rel-link) 50%, transparent); }
|
||||
@media (hover: hover) { button.dm-via-node:hover { border-color: color-mix(in srgb, var(--rel-link) 50%, transparent); } }
|
||||
|
||||
.dm-via-node-ava { width: 20px; height: 20px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; }
|
||||
|
||||
.dm-via-node-ava .avatar { width: 20px; height: 20px; min-width: 20px; min-height: 20px; border: none; box-shadow: none; }
|
||||
|
||||
.dm-via-node-ava .avatar-fallback { font-size: 9px; font-weight: 700; }
|
||||
|
||||
.dm-via-me { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--rel-family); color: var(--background); font-size: 10px; font-weight: 700; }
|
||||
|
||||
.dm-via-node-name { white-space: nowrap; }
|
||||
|
||||
.dm-via-arrow { font-size: 12px; color: var(--rel-link); }
|
||||
|
||||
|
||||
.screen-content:has(> .dm-screen) {
|
||||
scrollbar-width: none;
|
||||
-ms-overflow-style: none;
|
||||
}
|
||||
|
||||
|
||||
.screen-content:has(> .dm-screen)::-webkit-scrollbar {
|
||||
width: 0;
|
||||
height: 0;
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
.dm-history-loader {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 3;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
pointer-events: none;
|
||||
margin-bottom: -4px;
|
||||
opacity: 0;
|
||||
transform: translateY(-8px);
|
||||
transition: opacity 160ms ease, transform 160ms ease;
|
||||
}
|
||||
|
||||
|
||||
.dm-history-loader[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
.dm-history-loader.is-visible {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
|
||||
.dm-history-loader__pill {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
border-radius: 50%;
|
||||
border: 1px solid var(--border-subtle);
|
||||
background: var(--surface);
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
|
||||
.dm-history-loader__spinner {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
border-radius: 50%;
|
||||
border: 2px solid var(--border-subtle);
|
||||
border-top-color: var(--accent);
|
||||
animation: dm-history-loader-spin 0.85s linear infinite;
|
||||
}
|
||||
|
||||
|
||||
@keyframes dm-history-loader-spin {
|
||||
from {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.dm-actions-col {
|
||||
position: relative;
|
||||
align-self: end;
|
||||
}
|
||||
|
||||
|
||||
.dm-screen .input {
|
||||
background: var(--surface);
|
||||
border: 1px solid transparent;
|
||||
border-radius: 14px;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
|
||||
.dm-floating-menu-layer {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 120;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
|
||||
.dm-confirm-check {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 10px;
|
||||
padding: 10px 12px;
|
||||
border-radius: 14px;
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border-subtle);
|
||||
color: var(--text-primary);
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
|
||||
.dm-confirm-check input {
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
|
||||
/* ===== Empty states alignment + transparent wrappers cleanup ===== */
|
||||
|
||||
|
||||
.dm-screen::before {
|
||||
position: absolute;
|
||||
inset: -12px -12px 0;
|
||||
z-index: -1;
|
||||
pointer-events: none;
|
||||
background: none;
|
||||
animation: dm-orbs-drift 16s ease-in-out infinite alternate;
|
||||
content: none;
|
||||
}
|
||||
|
||||
|
||||
.dm-screen .dm-list > .card.meta-muted {
|
||||
margin: 0 20px;
|
||||
padding: 14px 16px;
|
||||
border-radius: 14px;
|
||||
background: var(--surface);
|
||||
backdrop-filter: blur(25px);
|
||||
-webkit-backdrop-filter: blur(25px);
|
||||
border: 1px solid transparent;
|
||||
color: var(--text-secondary);
|
||||
box-shadow: none;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
width: calc(100% - 40px);
|
||||
}
|
||||
|
||||
|
||||
/* «Личные»: вместо жёлтого шестиугольника — текущий аватар пользователя. */
|
||||
|
||||
|
||||
|
||||
|
||||
/* Список личных чатов: без цветной границы карточки, компактная ава как в шапке
|
||||
* самого чата, а дата/время стоит на строке превью. */
|
||||
|
||||
|
||||
.dm-list-screen .dm-card--family,
|
||||
.dm-list-screen .dm-card--shining {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
|
||||
.dm-list-screen .dm-av {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
min-width: 60px;
|
||||
min-height: 60px;
|
||||
}
|
||||
|
||||
|
||||
.dm-list-screen .dm-av .avatar,
|
||||
.dm-list-screen .list-item .avatar {
|
||||
width: 56px;
|
||||
height: 56px;
|
||||
min-width: 56px;
|
||||
min-height: 56px;
|
||||
font-size: 18px;
|
||||
border: 0;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
|
||||
.dm-list-screen .dm-row-main {
|
||||
display: grid;
|
||||
grid-template-rows: 22px 20px;
|
||||
align-items: center;
|
||||
gap: 0;
|
||||
min-height: 42px;
|
||||
}
|
||||
|
||||
|
||||
.dm-list-screen .dm-row-titlewrap {
|
||||
flex-wrap: nowrap;
|
||||
min-height: 22px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
|
||||
.dm-list-screen .dm-row-last-message {
|
||||
align-self: center;
|
||||
line-height: 20px;
|
||||
}
|
||||
|
||||
|
||||
.dm-list-screen .dm-unread-badge,
|
||||
.dm-list-screen .dm-row-meta-spacer {
|
||||
grid-row: 1;
|
||||
align-self: center;
|
||||
}
|
||||
|
||||
|
||||
.dm-list-screen .dm-row-time {
|
||||
grid-row: 2;
|
||||
align-self: center;
|
||||
line-height: 20px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
|
||||
.dm-list-screen .dm-row-meta-line {
|
||||
display: contents;
|
||||
}
|
||||
|
||||
|
||||
.dm-list-screen .dm-chevron {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
@media (max-width: 380px) {
|
||||
.dm-list-screen .dm-dialog-card {
|
||||
grid-template-columns: 60px minmax(0, 1fr) auto;
|
||||
}
|
||||
.dm-list-screen .dm-row-meta-col {
|
||||
grid-column: 3;
|
||||
justify-self: end;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* ===== DM + Channels polish (2026-08-22 13:22) ===== */
|
||||
/* «Личные»: аватар основной вкладки стоит ровно на той же горизонтальной позиции,
|
||||
* что и аватар собеседника в открытом чате: после 40px back-slot + 8px gap. */
|
||||
|
||||
|
||||
|
||||
/* ===== DM avatar + channel row visual alignment fix (2026-08-22 13:29) ===== */
|
||||
/* Шапка «Личных» переносится в topbar-slot отдельно от .dm-list-screen,
|
||||
* поэтому позиционируем аватар по реальной DOM-структуре. 48px = back 40px + gap 8px
|
||||
* в открытом чате, что даёт одинаковую абсолютную X-позицию. */
|
||||
|
||||
|
||||
/* «Контакты»: верхняя аватарка убрана полностью. Пустая левая колонка сохраняет
|
||||
* строгий центр заголовка относительно правого overflow-меню. */
|
||||
.topbar-slot .dm-head-brand {
|
||||
margin-left: 0;
|
||||
min-width: 40px;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
}
|
||||
.dm-menu-icon,
|
||||
.dm-menu-image-icon {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
min-width: 18px;
|
||||
flex: 0 0 18px;
|
||||
object-fit: contain;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
|
||||
.dm-user-identity-menu {
|
||||
width: 196px;
|
||||
}
|
||||
|
||||
|
||||
.dm-user-menu-layer {
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
|
||||
/* Спиннер висит над началом ленты и не занимает места в сетке .chat-wrap:
|
||||
* при его появлении и скрытии сообщения не сдвигаются. */
|
||||
.dm-chat-wrap {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
|
||||
.dm-history-loader {
|
||||
position: absolute;
|
||||
top: calc(var(--topbar-height, 64px) + 8px);
|
||||
left: 0;
|
||||
right: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
|
||||
/* Пустой чат: истории на экране нет, спиннер – по центру. */
|
||||
.dm-history-loader.is-centered {
|
||||
top: 45%;
|
||||
}
|
||||
|
||||
|
||||
.dm-history-loader__pill {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
|
||||
/* «Личные»: широкие, низкие и более плотные плитки. */
|
||||
.dm-list-screen .dm-list {
|
||||
width: 100%;
|
||||
margin-inline: 0;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
|
||||
.dm-list-screen .dm-dialog-card {
|
||||
border: 0;
|
||||
box-shadow: none;
|
||||
background: var(--surface);
|
||||
backdrop-filter: blur(16px);
|
||||
-webkit-backdrop-filter: blur(16px);
|
||||
grid-template-columns: 50px minmax(0, 1fr) auto;
|
||||
min-height: 54px;
|
||||
margin: 0;
|
||||
padding: 5px 6px 5px 4px;
|
||||
gap: 8px;
|
||||
border-radius: 15px;
|
||||
}
|
||||
|
||||
|
||||
.dm-list-screen .dm-av,
|
||||
.dm-list-screen .dm-av .avatar,
|
||||
.dm-list-screen .list-item .avatar {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
min-width: 48px;
|
||||
min-height: 48px;
|
||||
}
|
||||
|
||||
|
||||
.dm-list-screen .dm-row-main {
|
||||
min-height: 40px;
|
||||
}
|
||||
|
||||
|
||||
.dm-list-screen .dm-row-meta-col {
|
||||
display: grid;
|
||||
grid-template-rows: 22px 20px;
|
||||
align-items: center;
|
||||
gap: 0;
|
||||
align-self: center;
|
||||
justify-items: end;
|
||||
justify-content: initial;
|
||||
min-height: 40px;
|
||||
}
|
||||
|
||||
|
||||
@media (max-width: 380px) {
|
||||
.dm-list-screen .dm-dialog-card {
|
||||
grid-template-columns: 50px minmax(0, 1fr) auto;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* ===== Personal chat row layout: time top-right, unread bottom-right ===== */
|
||||
.dm-list-screen .dm-row-time {
|
||||
grid-row: 1;
|
||||
align-self: center;
|
||||
}
|
||||
|
||||
.dm-list-screen .dm-unread-badge,
|
||||
.dm-list-screen .dm-row-meta-spacer {
|
||||
grid-row: 2;
|
||||
align-self: center;
|
||||
}
|
||||
|
||||
.dm-list { gap: 0; margin-inline: 0; padding: 0; padding-bottom: calc(86px + 16px); }
|
||||
.dm-list-screen .dm-dialog-card,
|
||||
.dm-dialog-card {
|
||||
min-height: 68px;
|
||||
margin: 0;
|
||||
padding: 10px 0;
|
||||
gap: 12px;
|
||||
grid-template-columns: 48px minmax(0, 1fr) auto;
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
background: linear-gradient(var(--border-subtle), var(--border-subtle)) right bottom / calc(100% - 60px) 1px no-repeat;
|
||||
backdrop-filter: none;
|
||||
-webkit-backdrop-filter: none;
|
||||
transition: background-color var(--duration-fast) ease;
|
||||
}
|
||||
@media (hover: hover) { .dm-dialog-card:hover { background-color: color-mix(in srgb, var(--surface) 66%, transparent); } }
|
||||
.dm-dialog-card:active { background-color: var(--surface-selected); }
|
||||
.dm-dialog-card:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
|
||||
.dm-card--family .dm-av .avatar { box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--rel-family); }
|
||||
.dm-card--shining .dm-av .avatar { box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--rel-shining); }
|
||||
.dm-dialog-card .dm-row-title { font-size: var(--text-md); font-weight: var(--weight-bold); }
|
||||
.dm-dialog-card .dm-row-last-message { font-size: var(--text-sm); }
|
||||
.dm-row-time { font-size: var(--text-xs); font-weight: 400; color: var(--text-secondary); }
|
||||
.dm-contact-note { flex-shrink: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--rel-contact); font-size: var(--text-xs); font-weight: var(--weight-medium); }
|
||||
.dm-contact-note--close_friend { color: var(--rel-family); }
|
||||
.dm-row-meta-col { align-self: stretch; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 6px; }
|
||||
.dm-row-meta-line { display: flex; align-items: center; gap: 0; }
|
||||
.dm-unread-badge { min-width: 20px; height: 20px; padding: 0 6px; display: grid; place-items: center; border-radius: var(--radius-pill); color: var(--on-accent); background: var(--accent); border: 0; font-size: var(--text-xs); font-weight: var(--weight-bold); }
|
||||
.dm-list-screen > .card.meta-muted, .dm-list > .card.meta-muted { margin: var(--space-6) 0; padding: 0; border: 0; background: none; box-shadow: none; text-align: center; color: var(--text-secondary); }
|
||||
.dm-divider { height: auto; margin: 0; padding: var(--space-4) 0 var(--space-1); color: var(--text-secondary); font-size: var(--text-xs); line-height: var(--leading-xs); font-weight: var(--weight-bold); }
|
||||
.dm-divider::before, .dm-divider::after { content: none; }
|
||||
.contact-search-results { gap: 0; margin-top: var(--space-3); }
|
||||
.contact-search-results .contact-search-results-title { margin: 0 0 var(--space-1); color: var(--text-secondary); font-size: var(--text-xs); }
|
||||
.dm-row-last-message.is-encrypted { font-style: italic; }
|
||||
|
||||
|
||||
/* Закреплённые и «без звука» (настройки этого устройства) */
|
||||
.dm-list-screen { position: relative; }
|
||||
.dm-row-muted { display: inline-flex; flex: 0 0 auto; color: var(--text-secondary); }
|
||||
.dm-row-muted svg { width: 15px; height: 15px; }
|
||||
.dm-list-screen .dm-row-pin { grid-row: 1; align-self: center; display: inline-flex; justify-content: center; min-width: 24px; color: var(--text-secondary); }
|
||||
.dm-row-pin svg { width: 17px; height: 17px; transform: rotate(35deg); }
|
||||
.dm-unread-badge.dm-unread-badge--muted { color: var(--text-primary); background: var(--surface-selected); }
|
||||
.dm-row-menu-anchor { position: absolute; width: 1px; height: 1px; pointer-events: none; }
|
||||
|
||||
/* Строка без переписки: «Нет сообщений» – тише обычного превью. */
|
||||
.dm-row-last-message.is-empty { color: color-mix(in srgb, var(--text-secondary) 72%, transparent); }
|
||||
@@ -0,0 +1,290 @@
|
||||
/* «Связи»: раскладка экрана – карта или список на всю высоту между шапкой и нижним меню,
|
||||
* поверх – чипы фильтров, переключатель «Списком / На карте», состояния. Стили самой карты,
|
||||
* карточки человека и масштаба – в styles/network-graph.css. */
|
||||
|
||||
.network-screen {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
min-height: 0;
|
||||
margin: 0;
|
||||
background: radial-gradient(ellipse at 50% 45%, color-mix(in srgb, var(--rel-shining) 7%, transparent), transparent 70%);
|
||||
}
|
||||
|
||||
.network-version-switcher {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
color: var(--text-secondary);
|
||||
font-size: 11px;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.network-version-switcher select {
|
||||
max-width: 98px;
|
||||
padding: 3px 4px;
|
||||
border: 1px solid var(--border-control);
|
||||
border-radius: 7px;
|
||||
background: var(--surface);
|
||||
color: var(--text-primary);
|
||||
font: inherit;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.network-screen[data-view='list'] {
|
||||
background: var(--background);
|
||||
}
|
||||
|
||||
.network-stage {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
min-height: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.network-board--full {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.network-board--full[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Фильтры – тот же переключатель, что в чатах, под шапкой, поверх карты и над списком. */
|
||||
.net-filters {
|
||||
position: absolute;
|
||||
top: var(--topbar-height, 64px);
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 11;
|
||||
padding: var(--app-primary-tabs-top-gap, 14px) var(--page-gutter) 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.net-filters__tabs {
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
/* В списке строки уезжают под фильтры – подложка до самой шапки. */
|
||||
.network-screen[data-view='list'] .net-filters {
|
||||
padding-bottom: var(--space-2);
|
||||
background: var(--background);
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
/* «Ещё ▾»: выбранный фильтр из меню показывается здесь же; точка – включены друзья друзей. */
|
||||
.net-filters__more {
|
||||
position: relative;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.net-filters__more-label {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.net-filters__more svg {
|
||||
flex: 0 0 auto;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
.net-filters__more.has-dot::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 6px;
|
||||
right: 6px;
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
border-radius: 50%;
|
||||
background: var(--accent);
|
||||
}
|
||||
|
||||
/* Список: свой скролл (страница «Связей» не прокручивается), отступы сверху и снизу
|
||||
* под чипы и нижнее меню задаёт JS. */
|
||||
.net-list {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
overflow-y: auto;
|
||||
overscroll-behavior: contain;
|
||||
padding-inline: var(--page-gutter);
|
||||
scrollbar-width: none;
|
||||
}
|
||||
|
||||
.net-list::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.net-list[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Загрузка, ошибка, «пока нет связей» – по центру свободной части экрана. */
|
||||
.net-overlay {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 32%;
|
||||
z-index: 10;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
padding-inline: var(--page-gutter);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.net-overlay > * {
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.net-overlay--below-center {
|
||||
top: 56%;
|
||||
}
|
||||
|
||||
.network-screen.is-blank .net-filters,
|
||||
.network-screen.is-blank .net-zoom,
|
||||
.network-screen.is-blank .net-mode-pill {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.net-overlay .state-message {
|
||||
border-radius: var(--radius-lg);
|
||||
background: color-mix(in srgb, var(--background) 88%, transparent);
|
||||
}
|
||||
|
||||
.net-overlay[hidden],
|
||||
.net-busy[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Подгрузка поверх уже показанной карты: маленький кружок, появляется с задержкой. */
|
||||
.net-busy {
|
||||
position: absolute;
|
||||
top: calc(var(--topbar-height, 64px) + 64px);
|
||||
left: 50%;
|
||||
z-index: 12;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
margin-left: -18px;
|
||||
border: 1px solid var(--border-subtle);
|
||||
border-radius: 50%;
|
||||
background: var(--surface);
|
||||
box-shadow: var(--shadow-sm);
|
||||
opacity: 0;
|
||||
animation: loading-state-in 160ms ease 300ms forwards;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* Сбор знакомств или подписок: кружок вытягивается в плашку «Узнаю знакомства · 37 из 233». */
|
||||
.net-busy__text:empty {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.net-busy--text {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
width: auto;
|
||||
height: 36px;
|
||||
margin-left: 0;
|
||||
padding: 0 14px 0 10px;
|
||||
transform: translateX(-50%);
|
||||
border-radius: var(--radius-pill);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.net-busy__text {
|
||||
color: var(--text-secondary);
|
||||
font-size: var(--text-sm);
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
/* Разделы списка по компаниям и интересам – с цветной точкой, как на карте. */
|
||||
.net-list-section {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
/* «Списком / На карте» – внизу по центру, над нижним меню (bottom задаёт JS). */
|
||||
.net-mode-pill {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
z-index: 12;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
height: 40px;
|
||||
padding: 0 18px 0 14px;
|
||||
transform: translateX(-50%);
|
||||
border: 1px solid var(--border-subtle);
|
||||
border-radius: var(--radius-pill);
|
||||
background: var(--surface);
|
||||
box-shadow: var(--shadow);
|
||||
color: var(--text-primary);
|
||||
font: inherit;
|
||||
font-size: var(--text-sm);
|
||||
font-weight: var(--weight-bold);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.net-mode-pill svg {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
@media (hover: hover) {
|
||||
.net-mode-pill:hover {
|
||||
background: var(--surface-raised);
|
||||
}
|
||||
}
|
||||
|
||||
.net-mode-pill:active {
|
||||
transform: translateX(-50%) scale(0.97);
|
||||
}
|
||||
|
||||
.net-mode-pill:focus-visible {
|
||||
outline: 2px solid var(--focus-ring);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
.net-mode-pill[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.net-row-menu-anchor {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* V4: два Canvas поверх статичного фона. Старый анимированный ::before
|
||||
* принадлежит DOM-движку V1/V3 и не должен работать на Canvas-странице. */
|
||||
.network-explorer--canvas .fg-stage::before { display: none; }
|
||||
.network-explorer--canvas .fg-canvas-v4 {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
display: block;
|
||||
z-index: 1;
|
||||
touch-action: none;
|
||||
user-select: none;
|
||||
}
|
||||
.network-explorer--canvas .fg-canvas-v4--edges { pointer-events: none; }
|
||||
.network-explorer--canvas .fg-canvas-v4--nodes {
|
||||
z-index: 2;
|
||||
cursor: grab;
|
||||
}
|
||||
.network-explorer--canvas .fg-canvas-v4--nodes.is-over-node { cursor: pointer; }
|
||||
.network-explorer--canvas .fg-canvas-v4--nodes:active { cursor: grabbing; }
|
||||
@@ -0,0 +1,105 @@
|
||||
/* Уведомления: плоский список как в чатах – аватар, имя и время, ниже текст; тонкие разделители от текста. */
|
||||
.notifications-screen { align-content: start; }
|
||||
.notifications-screen .notification-feed-tabs { margin-bottom: var(--space-1); }
|
||||
|
||||
.notifications-list { display: grid; }
|
||||
|
||||
.notification-group-title {
|
||||
margin: 0;
|
||||
padding: var(--space-3) 0 var(--space-1);
|
||||
color: var(--text-secondary);
|
||||
font-size: var(--text-xs);
|
||||
line-height: var(--leading-xs);
|
||||
font-weight: var(--weight-bold);
|
||||
}
|
||||
|
||||
.notification-card {
|
||||
position: relative;
|
||||
display: grid;
|
||||
grid-template-columns: 40px minmax(0, 1fr);
|
||||
gap: var(--space-3);
|
||||
padding: var(--space-3) 0 0;
|
||||
border-radius: var(--radius-md);
|
||||
}
|
||||
|
||||
.notification-avatar { width: 40px; height: 40px; min-width: 40px; min-height: 40px; }
|
||||
|
||||
.notification-card__body {
|
||||
display: grid;
|
||||
gap: 2px;
|
||||
min-width: 0;
|
||||
padding-bottom: var(--space-3);
|
||||
border-bottom: 1px solid var(--divider-soft);
|
||||
}
|
||||
|
||||
.notification-card__head { display: flex; align-items: start; gap: var(--space-2); min-width: 0; }
|
||||
|
||||
.notification-card__identity { display: grid; flex: 1 1 auto; min-width: 0; gap: 1px; }
|
||||
|
||||
.notification-card__name {
|
||||
min-width: 0;
|
||||
color: var(--text-primary);
|
||||
font-size: var(--text-md);
|
||||
font-weight: var(--weight-bold);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.notification-card__login {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
color: var(--text-secondary);
|
||||
font-size: var(--text-xs);
|
||||
line-height: var(--leading-xs);
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.notification-card__time { flex: 0 0 auto; padding-top: 2px; color: var(--text-secondary); font-size: var(--text-xs); }
|
||||
|
||||
/* Непрочитанное: точка-акцент перед временем. */
|
||||
.notification-card--new .notification-card__time::before {
|
||||
content: "";
|
||||
display: inline-block;
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
margin-right: 6px;
|
||||
border-radius: 50%;
|
||||
background: var(--accent);
|
||||
vertical-align: 1px;
|
||||
}
|
||||
|
||||
.notification-card__action { margin: 0; color: var(--text-secondary); font-size: var(--text-sm); line-height: var(--leading-sm); }
|
||||
|
||||
.notification-card__text {
|
||||
margin: 0;
|
||||
color: var(--text-primary);
|
||||
font-size: var(--text-md);
|
||||
line-height: var(--leading-md);
|
||||
white-space: pre-wrap;
|
||||
overflow-wrap: anywhere;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 3;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.notification-engagement { display: flex; align-items: center; gap: var(--space-4); padding-top: var(--space-1); color: var(--text-secondary); }
|
||||
.notification-engagement-item { display: inline-flex; align-items: center; gap: 4px; font-size: var(--text-xs); line-height: 1; }
|
||||
.notification-engagement-icon { display: inline-flex; }
|
||||
.notification-engagement-icon svg { width: 14px; height: 14px; }
|
||||
|
||||
.notification-card--clickable { cursor: pointer; }
|
||||
.notification-card--clickable:active { background: color-mix(in srgb, var(--surface-selected) 45%, transparent); }
|
||||
@media (hover: hover) { .notification-card--clickable:hover { background: color-mix(in srgb, var(--surface-selected) 45%, transparent); } }
|
||||
.notification-card--clickable:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
|
||||
|
||||
.notification-empty-state { margin-top: var(--space-5); padding: var(--space-5) var(--space-4); text-align: center; justify-items: center; }
|
||||
.notification-empty-state strong { color: var(--text-primary); font-size: var(--text-md); }
|
||||
.notification-empty-state .meta-muted { max-width: 30ch; font-size: var(--text-sm); }
|
||||
|
||||
/* «Дружить в ответ» прямо в уведомлении о дружбе. */
|
||||
.notification-card__answer { justify-self: start; min-height: 34px; margin-top: var(--space-2); padding: 0 14px; border-radius: var(--radius-pill); font-size: var(--text-sm); font-weight: var(--weight-bold); }
|
||||
.notification-card__answered { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--space-2); color: var(--success); font-size: var(--text-sm); font-weight: var(--weight-medium); }
|
||||
.notification-card__answered svg { width: 16px; height: 16px; }
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,221 @@
|
||||
/* Карточка профиля (js/components/profile-card.js): свой и чужой профиль в одной системе с «О канале».
|
||||
* Селекторы привязаны к .user-profile-screen, чтобы перекрыть старую геометрию profile.css. */
|
||||
.user-profile-screen { gap: 0; min-height: 0; overflow-x: clip; }
|
||||
.user-profile-screen::before { content: none; }
|
||||
.user-profile-screen .user-profile-body { display: grid; gap: var(--space-4); padding: var(--space-2) 0 var(--space-5); }
|
||||
.user-profile-screen .user-profile-status:empty { display: none; }
|
||||
|
||||
.user-profile-screen .pf-hero { display: grid; justify-items: center; gap: var(--space-1); text-align: center; }
|
||||
.user-profile-screen .pf-avatar { position: relative; width: 96px; height: 96px; display: grid; place-items: center; justify-self: center; }
|
||||
.user-profile-screen .pf-avatar .user-profile-hero-avatar.avatar,
|
||||
.user-profile-screen .pf-avatar .user-profile-hero-avatar.avatar-image { width: 96px; height: 96px; min-width: 96px; min-height: 96px; font-size: 36px; }
|
||||
.user-profile-screen .pf-avatar .user-profile-hero-avatar.avatar-framed > .avatar-fallback,
|
||||
.user-profile-screen .pf-avatar .user-profile-hero-avatar.avatar-framed > .avatar-photo { width: 100%; height: 100%; }
|
||||
.user-profile-screen .pf-avatar .user-profile-hero-avatar.avatar-framed::after,
|
||||
.user-profile-screen .pf-avatar .user-profile-hero-avatar.avatar-glow::before { content: none; }
|
||||
/* Сияющий: тёплая золотая аура вокруг аватара, медленно «дышит» – как сияние знака на заставке. */
|
||||
.user-profile-screen .pf-avatar.is-shining { isolation: isolate; }
|
||||
.user-profile-screen .pf-avatar.is-shining::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: -30%;
|
||||
z-index: -1;
|
||||
border-radius: 50%;
|
||||
background: radial-gradient(closest-side, color-mix(in srgb, var(--warning) 46%, transparent) 55%, color-mix(in srgb, var(--warning) 16%, transparent) 78%, transparent);
|
||||
filter: blur(8px);
|
||||
animation: pf-shine-breathe 5.3s ease-in-out infinite;
|
||||
pointer-events: none;
|
||||
}
|
||||
.user-profile-screen .pf-avatar.is-shining .user-profile-hero-avatar { box-shadow: 0 0 0 2px color-mix(in srgb, var(--warning) 85%, transparent); border-radius: 50%; }
|
||||
@keyframes pf-shine-breathe {
|
||||
0%, 100% { opacity: 0.7; transform: scale(0.96); }
|
||||
50% { opacity: 1; transform: scale(1.04); }
|
||||
}
|
||||
@media (prefers-reduced-motion: reduce) { .user-profile-screen .pf-avatar.is-shining::before { animation: none; } }
|
||||
|
||||
/* Статусы по бокам аватара: слева «Официальный», справа «Сияющий» (profile-card.js → statusSideHtml). */
|
||||
.user-profile-screen .pf-identity {
|
||||
--pf-shine: var(--warning);
|
||||
--pf-official: var(--info);
|
||||
width: min(100%, 440px);
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr);
|
||||
align-items: center;
|
||||
gap: var(--space-3);
|
||||
}
|
||||
.user-profile-screen .pf-side { min-width: 0; display: grid; align-items: center; }
|
||||
.user-profile-screen .pf-side--left { justify-items: end; }
|
||||
.user-profile-screen .pf-side--right { justify-items: start; }
|
||||
.user-profile-screen .pf-sc { --pf-c: var(--pf-shine); width: min(100%, 116px); display: grid; gap: var(--space-1); min-width: 0; }
|
||||
.user-profile-screen .pf-sc--primary { --pf-c: var(--pf-official); }
|
||||
.user-profile-screen .pf-sc__title { text-align: center; color: var(--pf-c); font-size: var(--text-xs); line-height: 1.2; font-weight: var(--weight-bold); }
|
||||
.user-profile-screen .pf-sc__row { min-width: 0; display: grid; justify-items: center; gap: 1px; padding: 4px 2px; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--text-primary); font: inherit; cursor: pointer; }
|
||||
.user-profile-screen .pf-sc__row strong { font-size: var(--text-xl); line-height: 1.1; font-weight: var(--weight-bold); }
|
||||
.user-profile-screen .pf-sc__row span { color: var(--text-secondary); font-size: 11px; line-height: 1.15; }
|
||||
.user-profile-screen .pf-sc__row:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
|
||||
.user-profile-screen .pf-sc.is-active .pf-sc__row strong { color: var(--pf-c); }
|
||||
.user-profile-screen .pf-sc.is-empty { opacity: 0.75; }
|
||||
.user-profile-screen .pf-sc.is-empty .pf-sc__title { color: var(--text-secondary); }
|
||||
@media (hover: hover) { .user-profile-screen .pf-sc__row:hover { background: var(--surface-selected); } }
|
||||
.user-profile-screen .pf-sc__row:active { background: var(--surface-selected); }
|
||||
|
||||
@media (max-width: 360px) {
|
||||
.user-profile-screen .pf-identity { grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr); gap: var(--space-2); }
|
||||
.user-profile-screen .pf-sc__row span { font-size: 10px; }
|
||||
}
|
||||
|
||||
.user-profile-screen .pf-name { margin: var(--space-2) 0 0; color: var(--text-primary); font-size: var(--text-xl); line-height: var(--leading-xl); font-weight: var(--weight-bold); overflow-wrap: anywhere; }
|
||||
.user-profile-screen .pf-login { color: var(--text-secondary); font-size: var(--text-sm); line-height: var(--leading-sm); }
|
||||
.user-profile-screen .pf-city { display: inline-flex; align-items: center; justify-content: center; gap: 4px; color: var(--text-secondary); font-size: var(--text-sm); line-height: var(--leading-sm); }
|
||||
.user-profile-screen .pf-city svg { width: 15px; height: 15px; flex: 0 0 auto; }
|
||||
|
||||
@media (max-width: 360px) {
|
||||
.user-profile-screen .pf-avatar,
|
||||
.user-profile-screen .pf-avatar .user-profile-hero-avatar.avatar,
|
||||
.user-profile-screen .pf-avatar .user-profile-hero-avatar.avatar-image { width: 88px; height: 88px; min-width: 88px; min-height: 88px; }
|
||||
}
|
||||
|
||||
.user-profile-screen .pf-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
|
||||
.user-profile-screen .pf-stat { min-height: 64px; padding: var(--space-2) var(--space-1); display: grid; align-content: center; justify-items: center; gap: 2px; border: 0; border-left: 1px solid var(--border-subtle); background: transparent; color: var(--text-primary); font: inherit; cursor: pointer; }
|
||||
.user-profile-screen .pf-stat:first-child { border-left: 0; }
|
||||
.user-profile-screen .pf-stat:active { background: var(--surface-selected); }
|
||||
@media (hover: hover) { .user-profile-screen .pf-stat:hover { background: var(--surface-selected); } }
|
||||
.user-profile-screen .pf-stat:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
|
||||
.user-profile-screen .pf-stat-value { font-size: var(--text-lg); line-height: var(--leading-lg); font-weight: var(--weight-bold); }
|
||||
.user-profile-screen .pf-stat-value small { color: var(--text-secondary); font-size: var(--text-xs); font-weight: var(--weight-medium); }
|
||||
.user-profile-screen .pf-stat-label { color: var(--text-secondary); font-size: var(--text-xs); line-height: var(--leading-xs); }
|
||||
|
||||
.user-profile-screen .pf-tiles-wrap { position: relative; width: 100%; margin: 0; }
|
||||
.user-profile-screen .pf-tiles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--space-2); width: 100%; margin: 0; padding: 0; }
|
||||
.user-profile-screen .pf-tile {
|
||||
width: auto;
|
||||
height: auto;
|
||||
min-height: 64px;
|
||||
padding: 10px 4px 8px;
|
||||
display: grid;
|
||||
justify-items: center;
|
||||
align-content: center;
|
||||
gap: 4px;
|
||||
border: 1px solid var(--border-subtle);
|
||||
border-radius: 14px;
|
||||
color: var(--accent);
|
||||
background: var(--surface);
|
||||
box-shadow: none;
|
||||
font: inherit;
|
||||
font-size: var(--text-xs);
|
||||
cursor: pointer;
|
||||
transform: none;
|
||||
width: 100%;
|
||||
justify-self: stretch;
|
||||
}
|
||||
.user-profile-screen .pf-tile::before,
|
||||
.user-profile-screen .pf-tile::after { content: none; }
|
||||
.user-profile-screen .pf-tile svg { width: 22px; height: 22px; }
|
||||
.user-profile-screen .pf-tile span { color: var(--text-primary); }
|
||||
.user-profile-screen .pf-tile:active,
|
||||
.user-profile-screen .pf-tile.is-active { background: var(--surface-selected); box-shadow: none; transform: none; }
|
||||
@media (hover: hover) { .user-profile-screen .pf-tile:hover { background: var(--surface-selected); box-shadow: none; transform: none; } }
|
||||
.user-profile-screen .pf-tile:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
|
||||
.user-profile-screen .pf-tile .pf-tile-mandala,
|
||||
.user-profile-screen .pf-tile img { width: 24px; height: 24px; object-fit: contain; filter: none; }
|
||||
|
||||
.user-profile-screen .pf-list { display: grid; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
|
||||
.user-profile-screen .pf-row { display: grid; gap: 2px; padding: 12px 14px; border-top: 1px solid var(--border-subtle); }
|
||||
.user-profile-screen .pf-row:first-child { border-top: 0; }
|
||||
.user-profile-screen .pf-row-label { color: var(--text-secondary); font-size: var(--text-xs); line-height: var(--leading-xs); }
|
||||
.user-profile-screen .pf-row-value,
|
||||
.user-profile-screen .pf-row-text { margin: 0; color: var(--text-primary); font-size: var(--text-md); line-height: var(--leading-md); white-space: pre-wrap; overflow-wrap: anywhere; }
|
||||
.user-profile-screen .pf-row-text.is-empty { color: var(--text-secondary); }
|
||||
|
||||
.profile-edit-card { gap: var(--space-3); }
|
||||
.profile-edit-statuses { flex-wrap: wrap; overflow: visible; }
|
||||
|
||||
.profiles-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-2); padding: 6px 6px 6px 14px; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--surface); }
|
||||
.profiles-row.is-active { border-color: color-mix(in srgb, var(--accent) 55%, var(--border-control)); }
|
||||
.screen-content .profiles-row .profiles-select { min-height: var(--control-height); display: flex; align-items: center; gap: var(--space-2); padding: 0; border: 0; background: transparent; color: var(--text-primary); font: inherit; text-align: left; cursor: pointer; }
|
||||
.screen-content .profiles-row .profiles-select:disabled { opacity: 1; cursor: default; }
|
||||
.profiles-login { font-size: var(--text-md); font-weight: var(--weight-bold); color: var(--text-primary); }
|
||||
.profiles-active-badge { padding: 2px 8px; border-radius: var(--radius-pill); color: var(--accent); background: var(--accent-soft); font-size: .6875rem; font-weight: var(--weight-bold); }
|
||||
.screen-content .profiles-row .profiles-close { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: var(--radius-md); color: var(--text-secondary); background: transparent; font-size: 22px; cursor: pointer; }
|
||||
.screen-content .profiles-row .profiles-close:active { background: var(--surface-selected); color: var(--danger); }
|
||||
@media (hover: hover) { .screen-content .profiles-row .profiles-close:hover { background: var(--surface-selected); color: var(--danger); } }
|
||||
|
||||
/* Экран управления отношениями с другим пользователем. */
|
||||
.relation-manage-screen { gap: var(--space-3); }
|
||||
.relation-manage-status:empty { display: none; }
|
||||
.relation-manage-body { gap: var(--space-3); }
|
||||
.relation-manage-body.is-busy { pointer-events: none; }
|
||||
.relation-manage-body.is-busy button:not(.is-pending) { opacity: .5; }
|
||||
.relation-manage-body button.is-pending { border-color: var(--accent); color: var(--accent); opacity: 1; }
|
||||
.relation-manage-card { gap: var(--space-3); }
|
||||
.relation-manage-card-head { display: grid; gap: 2px; }
|
||||
.relation-manage-card-head > strong { color: var(--text-primary); font-size: var(--text-md); }
|
||||
.relation-manage-card-head > span { color: var(--text-secondary); font-size: var(--text-xs); }
|
||||
.relation-manage-current { display: grid; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); overflow: hidden; }
|
||||
.relation-manage-current-row { min-height: 48px; padding: 8px 12px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); border-top: 1px solid var(--border-subtle); }
|
||||
.relation-manage-current-row:first-child { border-top: 0; }
|
||||
.relation-manage-current-row > span { color: var(--text-secondary); font-size: var(--text-sm); }
|
||||
.relation-manage-current-row > strong { color: var(--text-primary); font-size: var(--text-sm); text-align: right; }
|
||||
.relation-manage-mutual { min-height: 52px; padding: 10px 12px; display: flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--surface-selected); }
|
||||
.relation-manage-mutual-label { color: var(--text-secondary); }
|
||||
.relation-manage-mutual > strong { color: var(--text-primary); }
|
||||
.relation-manage-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
|
||||
.relation-manage-choice { width: 100%; min-width: 0; }
|
||||
.relation-manage-choice.is-active { background: var(--surface-selected); border-color: var(--accent); color: var(--accent); }
|
||||
.relation-manage-confirmations { display: grid; gap: 6px; }
|
||||
.relation-manage-confirmations:empty { display: none; }
|
||||
.relation-manage-confirmation { padding: 9px 11px; border-radius: var(--radius-md); background: var(--surface-selected); color: var(--text-primary); font-size: var(--text-sm); line-height: var(--leading-sm); }
|
||||
.relation-manage-confirm-btn { width: 100%; }
|
||||
.relation-manage-card--official { border-color: color-mix(in srgb, var(--rel-family) 45%, var(--border-subtle)); }
|
||||
.relation-manage-card--shine { border-color: color-mix(in srgb, var(--rel-shining) 45%, var(--border-subtle)); }
|
||||
|
||||
@media (max-width: 420px) {
|
||||
.relation-manage-choices { grid-template-columns: 1fr; }
|
||||
.relation-manage-current-row { align-items: flex-start; }
|
||||
}
|
||||
|
||||
/* Личная заметка о человеке под кнопками действий (видна только владельцу аккаунта). */
|
||||
.user-profile-screen .user-profile-note-add {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-self: start;
|
||||
gap: 8px;
|
||||
padding-inline: 4px;
|
||||
color: var(--text-secondary);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.user-profile-screen .user-profile-note-add:active {
|
||||
color: var(--text-primary);
|
||||
}
|
||||
@media (hover: hover) {
|
||||
.user-profile-screen .user-profile-note-add:hover {
|
||||
color: var(--text-primary);
|
||||
}
|
||||
}
|
||||
|
||||
.user-profile-screen .user-profile-note-add:focus-visible {
|
||||
outline: 2px solid var(--focus-ring);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
.user-profile-screen .user-profile-note-add svg {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
}
|
||||
|
||||
/* Чужой профиль: плитка связи показывает текущую связь, над плитками – «хочет с вами дружить». */
|
||||
.pf-tile.is-related svg { color: var(--success); }
|
||||
.user-profile-relation-hint { margin: 0 0 var(--space-2); color: var(--accent); font-size: var(--text-sm); font-weight: var(--weight-medium); text-align: center; }
|
||||
|
||||
/* Пошаговое публичное заявление — часть редактирования профиля. */
|
||||
.profile-consent-flow { gap: 16px; }
|
||||
.profile-consent-progress { font-size: .75rem; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
|
||||
.profile-consent-heading { margin: 0; color: var(--text-primary); font-size: 1.15rem; line-height: 1.4; }
|
||||
.profile-consent-description { margin: 0; color: var(--text-secondary); font-size: .95rem; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
|
||||
.profile-consent-accept { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid var(--border-control); border-radius: var(--radius-lg); background: var(--surface-raised); color: var(--text-primary); font-size: .9rem; line-height: 1.4; cursor: pointer; }
|
||||
.profile-consent-accept[hidden] { display: none; }
|
||||
.profile-consent-accept > input { width: 19px; height: 19px; min-width: 19px; margin-top: 1px; accent-color: var(--accent); }
|
||||
.profile-consent-sheet .sheet__card { width: min(100%, 470px); }
|
||||
.profile-consent-flow .form-actions-grid { margin-top: 4px; }
|
||||
.profile-consent-flow .primary-btn:disabled { opacity: .45; cursor: not-allowed; }
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,548 @@
|
||||
/* Settings/language feature styles. */
|
||||
|
||||
.settings-developer-card {
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
|
||||
.settings-developer-panel {
|
||||
margin-top: 2px;
|
||||
padding-top: 8px;
|
||||
border-top: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
|
||||
}
|
||||
|
||||
|
||||
.settings-dev-avatar-modal-card {
|
||||
max-width: 520px;
|
||||
}
|
||||
|
||||
|
||||
.settings-dev-avatar-meta {
|
||||
min-height: 18px;
|
||||
font-size: 13px;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
|
||||
.settings-dev-avatar-error {
|
||||
min-height: 18px;
|
||||
color: var(--danger);
|
||||
}
|
||||
|
||||
|
||||
.settings-dev-avatar-result {
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
|
||||
/* ===== Выбор языка со стартового экрана ===== */
|
||||
.language-screen {
|
||||
width: min(100%, 430px);
|
||||
margin-inline: auto;
|
||||
}
|
||||
|
||||
|
||||
.language-choice-card {
|
||||
padding: 16px;
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border-subtle);
|
||||
}
|
||||
|
||||
|
||||
.language-choice-hint {
|
||||
margin: 0 0 4px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
||||
.language-choice-grid {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
|
||||
.language-choice-option {
|
||||
min-height: 64px;
|
||||
padding: 0 16px;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr auto;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent);
|
||||
border-radius: 16px;
|
||||
background: color-mix(in srgb, var(--text-primary) 4%, transparent);
|
||||
box-shadow: none;
|
||||
color: var(--text-primary);
|
||||
text-shadow: none;
|
||||
backdrop-filter: none;
|
||||
-webkit-backdrop-filter: none;
|
||||
text-align: left;
|
||||
transform: none;
|
||||
transition: transform 90ms ease, box-shadow 90ms ease, background-color 90ms ease, filter 120ms ease;
|
||||
}
|
||||
|
||||
@media (hover: hover) {
|
||||
.language-choice-option:hover {
|
||||
border-color: color-mix(in srgb, var(--accent) 16%, transparent);
|
||||
background: color-mix(in srgb, var(--text-primary) 4%, transparent);
|
||||
box-shadow: none;
|
||||
color: var(--text-primary);
|
||||
transform: none;
|
||||
filter: brightness(1.12);
|
||||
}
|
||||
}
|
||||
|
||||
.language-choice-option: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);
|
||||
}
|
||||
|
||||
.language-choice-option:focus-visible {
|
||||
border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent);
|
||||
background: color-mix(in srgb, var(--text-primary) 4%, transparent);
|
||||
box-shadow: none;
|
||||
color: var(--text-primary);
|
||||
outline: 2px solid var(--border-control);
|
||||
outline-offset: 2px;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
.language-choice-option.is-selected,
|
||||
.language-choice-option.is-selected:focus-visible {
|
||||
border: 1px solid color-mix(in srgb, var(--accent) 62%, transparent);
|
||||
background: color-mix(in srgb, var(--accent) 12%, transparent);
|
||||
box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text-primary) 8%, transparent), 0 0 20px color-mix(in srgb, var(--accent) 10%, transparent);
|
||||
}
|
||||
@media (hover: hover) {
|
||||
.language-choice-option.is-selected:hover {
|
||||
border: 1px solid color-mix(in srgb, var(--accent) 62%, transparent);
|
||||
background: color-mix(in srgb, var(--accent) 12%, transparent);
|
||||
box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text-primary) 8%, transparent), 0 0 20px color-mix(in srgb, var(--accent) 10%, transparent);
|
||||
}
|
||||
}
|
||||
|
||||
.language-choice-option.is-selected:active {
|
||||
border: 1px solid color-mix(in srgb, var(--accent) 62%, transparent);
|
||||
background: color-mix(in srgb, var(--accent) 12%, transparent);
|
||||
box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text-primary) 8%, transparent), 0 0 20px color-mix(in srgb, var(--accent) 10%, transparent);
|
||||
transform: translateY(1px) scale(0.97);
|
||||
filter: brightness(0.9);
|
||||
}
|
||||
|
||||
|
||||
.language-choice-name {
|
||||
font-size: 17px;
|
||||
font-weight: 650;
|
||||
}
|
||||
|
||||
|
||||
.language-choice-code {
|
||||
color: var(--text-secondary);
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
letter-spacing: .08em;
|
||||
}
|
||||
|
||||
|
||||
/* Второстепенные действия – та же роль, что во всём приложении: прозрачная кнопка, рамка, цвет «действия». */
|
||||
.screen-content.settings-bordered-actions .profile-relative-suggest-item {
|
||||
min-height: var(--control-height);
|
||||
padding-inline: 14px;
|
||||
border: 1px solid var(--border-subtle);
|
||||
border-radius: var(--radius-md);
|
||||
background: var(--surface);
|
||||
color: var(--text-primary);
|
||||
font-size: var(--text-md);
|
||||
}
|
||||
.screen-content.settings-bordered-actions :is(.secondary-btn, .ghost-btn, .text-btn, .shine-btn, .settings-bordered-btn) {
|
||||
min-height: var(--control-height);
|
||||
padding-inline: 14px;
|
||||
border: 1px solid var(--border-control);
|
||||
border-radius: var(--radius-md);
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
color: var(--action);
|
||||
font-size: var(--text-md);
|
||||
font-weight: var(--weight-medium);
|
||||
text-shadow: none;
|
||||
backdrop-filter: none;
|
||||
-webkit-backdrop-filter: none;
|
||||
transform: none;
|
||||
}
|
||||
.screen-content.settings-bordered-actions .primary-btn {
|
||||
min-height: var(--control-height);
|
||||
border: 0;
|
||||
border-radius: var(--radius-md);
|
||||
background: var(--accent);
|
||||
color: var(--on-accent);
|
||||
box-shadow: none;
|
||||
font-size: var(--text-md);
|
||||
font-weight: var(--weight-medium);
|
||||
}
|
||||
.screen-content.settings-bordered-actions .destructive-btn {
|
||||
font-size: var(--text-md);
|
||||
font-weight: var(--weight-medium);
|
||||
min-height: var(--control-height);
|
||||
border: 1px solid var(--border-control);
|
||||
border-radius: var(--radius-md);
|
||||
background: transparent;
|
||||
color: var(--danger);
|
||||
box-shadow: none;
|
||||
}
|
||||
@media (hover: hover) { .screen-content.settings-bordered-actions :is(.secondary-btn, .ghost-btn, .text-btn, .shine-btn, .settings-bordered-btn, .profile-relative-suggest-item, .destructive-btn):hover { background: var(--surface-selected); filter: none; } }
|
||||
.screen-content.settings-bordered-actions :is(.primary-btn, .secondary-btn, .destructive-btn, .ghost-btn, .text-btn, .shine-btn, .settings-bordered-btn):active { transform: scale(0.98); filter: none; }
|
||||
.screen-content.settings-bordered-actions :is(.primary-btn, .secondary-btn, .destructive-btn, .ghost-btn, .text-btn, .shine-btn, .settings-bordered-btn):disabled { color: var(--text-secondary); background: var(--surface-selected); border-color: transparent; }
|
||||
|
||||
|
||||
/* Language selector: actual two-position switch with explicit confirmation. */
|
||||
.language-segmented-control {
|
||||
position: relative;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 0;
|
||||
padding: 4px;
|
||||
min-height: 58px;
|
||||
border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
|
||||
border-radius: 18px;
|
||||
background: var(--surface);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.language-segmented-thumb {
|
||||
position: absolute;
|
||||
z-index: 0;
|
||||
top: 4px;
|
||||
bottom: 4px;
|
||||
left: 4px;
|
||||
width: calc(50% - 4px);
|
||||
border: 1px solid color-mix(in srgb, var(--accent) 52%, transparent);
|
||||
border-radius: 14px;
|
||||
background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 28%, transparent), color-mix(in srgb, var(--accent) 20%, transparent));
|
||||
box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text-primary) 10%, transparent), 0 0 18px color-mix(in srgb, var(--accent) 14%, transparent);
|
||||
transition: transform 180ms ease;
|
||||
}
|
||||
|
||||
.language-choice-card[data-language="en"] .language-segmented-thumb { transform: translateX(100%); }
|
||||
|
||||
.language-segment {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
min-height: 50px;
|
||||
padding: 0 12px;
|
||||
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: 16px;
|
||||
font-weight: 650;
|
||||
transition:
|
||||
transform 90ms ease,
|
||||
box-shadow 90ms ease,
|
||||
background-color 90ms ease,
|
||||
filter 120ms ease;
|
||||
}
|
||||
|
||||
@media (hover: hover) {
|
||||
.language-segment:hover {
|
||||
color: var(--text-primary);
|
||||
background: transparent;
|
||||
border: 0;
|
||||
box-shadow: none;
|
||||
filter: brightness(1.12);
|
||||
}
|
||||
}
|
||||
|
||||
.language-segment: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);
|
||||
}
|
||||
|
||||
.language-segment:focus-visible {
|
||||
outline: 2px solid var(--border-control);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
.language-segment::before,
|
||||
.language-segment::after {
|
||||
background: transparent;
|
||||
background-image: none;
|
||||
border-color: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.language-choice-actions {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 10px;
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.language-choice-actions .shine-btn { height: 50px; }
|
||||
|
||||
/* ===== Скрытые расширенные настройки ===== */
|
||||
.settings-feature-toggle-row {
|
||||
min-height: 76px;
|
||||
padding: 15px 16px;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.settings-feature-toggle-copy {
|
||||
min-width: 0;
|
||||
display: grid;
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
.settings-feature-toggle-title {
|
||||
font-size: 15px;
|
||||
font-weight: 700;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.settings-feature-toggle-hint {
|
||||
font-size: 12px;
|
||||
line-height: 1.4;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.settings-sections { gap: var(--space-4); }
|
||||
.settings-theme-card { gap: var(--space-2); }
|
||||
.settings-theme-editor { width: 100%; }
|
||||
.settings-intro { padding-top: var(--space-3); }
|
||||
.settings-intro > p { margin: 0; padding-inline: var(--space-1); font-size: var(--text-sm); line-height: var(--leading-sm); }
|
||||
|
||||
/* ===== Мой блокчейн ===== */
|
||||
.my-blockchain-list {
|
||||
gap: 7px;
|
||||
}
|
||||
|
||||
.my-blockchain-entry {
|
||||
display: grid;
|
||||
gap: 0;
|
||||
padding: 10px 12px;
|
||||
}
|
||||
|
||||
.my-blockchain-entry__head {
|
||||
min-width: 0;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 30px;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.my-blockchain-entry__copy {
|
||||
min-width: 0;
|
||||
display: grid;
|
||||
gap: 3px;
|
||||
}
|
||||
|
||||
.my-blockchain-entry__title {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
color: var(--text-primary);
|
||||
font-size: 14px;
|
||||
font-weight: 650;
|
||||
line-height: 1.35;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.my-blockchain-entry__meta {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
font-size: 11px;
|
||||
line-height: 1.3;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.my-blockchain-entry__toggle {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
min-height: 30px;
|
||||
padding: 0;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.my-blockchain-entry__toggle:active {
|
||||
background: var(--surface-selected);
|
||||
}
|
||||
@media (hover: hover) {
|
||||
.my-blockchain-entry__toggle:hover {
|
||||
background: var(--surface-selected);
|
||||
}
|
||||
}
|
||||
|
||||
.my-blockchain-entry__triangle {
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-left: 5px solid transparent;
|
||||
border-right: 5px solid transparent;
|
||||
border-top: 7px solid currentColor;
|
||||
transform-origin: 50% 45%;
|
||||
transition: transform 140ms ease;
|
||||
}
|
||||
|
||||
.my-blockchain-entry__toggle[aria-expanded="true"] .my-blockchain-entry__triangle {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
.my-blockchain-entry__details {
|
||||
min-width: 0;
|
||||
margin-top: 10px;
|
||||
padding-top: 10px;
|
||||
border-top: 1px solid var(--border-subtle);
|
||||
}
|
||||
|
||||
.my-blockchain-entry__details[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.my-blockchain-entry__detail-title {
|
||||
display: block;
|
||||
margin-bottom: 7px;
|
||||
font-size: 14px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.my-blockchain-entry__full-text {
|
||||
max-height: 45vh;
|
||||
overflow: auto;
|
||||
margin-bottom: 8px;
|
||||
padding: 9px 10px;
|
||||
border-radius: var(--radius-sm);
|
||||
background: color-mix(in srgb, var(--text-primary) 4%, transparent);
|
||||
font-size: 13px;
|
||||
line-height: 1.5;
|
||||
overflow-wrap: anywhere;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
.my-blockchain-entry__attachments {
|
||||
margin-bottom: 7px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.my-blockchain-entry__actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 6px 14px;
|
||||
margin: 2px 0 9px;
|
||||
}
|
||||
|
||||
.my-blockchain-entry__action {
|
||||
min-height: 30px;
|
||||
padding: 4px 0;
|
||||
color: var(--action);
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.my-blockchain-entry__external:active {
|
||||
text-decoration: underline;
|
||||
}
|
||||
@media (hover: hover) {
|
||||
.my-blockchain-entry__external:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
|
||||
.my-blockchain-entry__detail-grid {
|
||||
display: grid;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.my-blockchain-entry__detail-row {
|
||||
min-width: 0;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(92px, 0.32fr) minmax(0, 1fr);
|
||||
gap: 8px;
|
||||
align-items: start;
|
||||
font-size: 11px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.my-blockchain-entry__detail-key {
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.my-blockchain-entry__detail-value {
|
||||
min-width: 0;
|
||||
color: var(--text-primary);
|
||||
overflow-wrap: anywhere;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
@media (max-width: 520px) {
|
||||
.my-blockchain-entry__detail-row {
|
||||
grid-template-columns: 84px minmax(0, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
/* «Оформление»: тема и образцы палитр (js/pages/appearance-view.js). */
|
||||
.appearance-hint { margin: calc(-1 * var(--space-1)) 0 var(--space-2); font-size: var(--text-xs); }
|
||||
.palette-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
|
||||
gap: 14px 10px;
|
||||
margin-bottom: var(--space-3);
|
||||
}
|
||||
.palette-swatch {
|
||||
display: grid;
|
||||
justify-items: center;
|
||||
gap: 6px;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: none;
|
||||
color: var(--text-secondary);
|
||||
font: inherit;
|
||||
font-size: var(--text-xs);
|
||||
cursor: pointer;
|
||||
}
|
||||
/* Образец: фон палитры, полоска «поверхности», «пузырь» исходящего сообщения и точка акцента. */
|
||||
.palette-swatch__sample {
|
||||
position: relative;
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
border-radius: 18px;
|
||||
background: var(--swatch-bg);
|
||||
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text-primary) 14%, transparent);
|
||||
overflow: hidden;
|
||||
}
|
||||
.palette-swatch__bar { position: absolute; left: 8px; right: 8px; top: 9px; height: 10px; border-radius: 5px; background: var(--swatch-surface); }
|
||||
.palette-swatch__bubble { position: absolute; right: 8px; top: 26px; width: 30px; height: 14px; border-radius: 8px 8px 3px 8px; background: var(--swatch-bubble); }
|
||||
.palette-swatch__dot { position: absolute; left: 9px; bottom: 9px; width: 16px; height: 16px; border-radius: 50%; background: var(--swatch-accent); }
|
||||
.palette-swatch__check { position: absolute; right: 6px; bottom: 6px; display: none; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--swatch-accent); color: var(--swatch-on-accent); }
|
||||
.palette-swatch__check svg { width: 13px; height: 13px; stroke-width: 2.6; }
|
||||
.palette-swatch[aria-checked='true'] .palette-swatch__sample { box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--accent); }
|
||||
.palette-swatch[aria-checked='true'] .palette-swatch__check { display: grid; }
|
||||
.palette-swatch[aria-checked='true'] .palette-swatch__label { color: var(--text-primary); font-weight: var(--weight-bold); }
|
||||
.palette-swatch:focus-visible { outline: none; }
|
||||
.palette-swatch:focus-visible .palette-swatch__sample { box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--focus-ring); }
|
||||
.palette-swatch__label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
|
||||
.about-sheet__copy { width: 100%; }
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
/* Jupiter beta exchange uses the same surfaces and button styles as wallet transfer. */
|
||||
.wallet-swap-beta-tag { background: rgba(237, 150, 20, .14); border: 1px solid rgba(237,150,20,.55); padding: 8px 12px; border-radius: 10px; margin: 0; font-weight: 700; }
|
||||
.wallet-swap-warning { background: var(--surface, #262a30); border: 1px solid var(--border, rgba(150,150,150,.35)); padding: 14px; border-radius: 12px; line-height: 1.55; margin: 0; white-space: pre-line; }
|
||||
.wallet-swap-quote-box { background: var(--surface, #262a30); border: 1px solid var(--border, rgba(150,150,150,.35)); border-radius: 12px; padding: 14px; }
|
||||
.wallet-swap-quote-box > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; }
|
||||
.wallet-swap-quote-box strong { overflow-wrap: anywhere; text-align: end; }
|
||||
.wallet-swap-quote-box p { margin: 8px 0 0; line-height: 1.45; }
|
||||
.wallet-swap-quote-button, .wallet-swap-confirm, .wallet-swap-check { width: 100%; min-height: 47px; font-weight: 700; }
|
||||
.wallet-swap-explorer { font-size: .85rem; overflow-wrap: anywhere; }
|
||||
.wallet-swap-limit { margin: -8px 0 0; font-size: .85rem; }
|
||||
.wallet-swap-consent { background: rgba(237, 150, 20, .08); padding: 10px; border-radius: 10px; }
|
||||
.wallet-jupiter-link { background: var(--surface, #262a30); border: 1px solid var(--border, rgba(150,150,150,.4)); color: inherit; font-weight: 700; cursor: pointer; }
|
||||
.wallet-jupiter-link:hover { border-color: var(--accent, #52abff); }
|
||||
@@ -0,0 +1,22 @@
|
||||
/* Dedicated user-to-user Solana transfer screen. No new shell or dropdown owner. */
|
||||
.wallet-transfer-screen { width: 100%; max-width: 640px; margin: 0 auto; padding: 16px 12px 40px; }
|
||||
.wallet-transfer-card { gap: 15px; padding: 19px; }
|
||||
.wallet-transfer-heading { margin: 0; font-size: 1.45rem; }
|
||||
.wallet-transfer-balances { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
|
||||
.wallet-transfer-balance { display: flex; flex-direction: column; gap: 7px; padding: 13px; background: var(--surface, #262a30); border: 1px solid var(--border, rgba(150,150,150,.24)); border-radius: 12px; min-width: 0; }
|
||||
.wallet-transfer-balance span { font-weight: 600; opacity: .78; }
|
||||
.wallet-transfer-balance strong { font-size: 1rem; overflow-wrap: anywhere; }
|
||||
.wallet-transfer-field { display: flex; flex-direction: column; gap: 7px; width: 100%; font-weight: 600; }
|
||||
.wallet-transfer-field input, .wallet-transfer-field select { width: 100%; min-height: 44px; box-sizing: border-box; }
|
||||
.wallet-transfer-select { cursor: pointer; }
|
||||
.wallet-transfer-selected { padding: 9px; font-weight: 600; background: var(--surface, #262a30); border-radius: 9px; }
|
||||
.wallet-transfer-notice { display: flex; align-items: flex-start; gap: 9px; line-height: 1.4; }
|
||||
.wallet-transfer-notice input { width: 18px; height: 18px; flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--accent); }
|
||||
.wallet-transfer-submit { width: 100%; min-height: 46px; }
|
||||
.wallet-transfer-hint, .wallet-transfer-status { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
|
||||
.wallet-multi-usdt-line { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; font-size: 1.1rem; }
|
||||
.wallet-jupiter-link { display: flex; justify-content: center; text-align: center; align-items: center; min-height: 44px; text-decoration: none; }
|
||||
.wallet-jupiter-hint { margin: 0; font-size: 12px; line-height: 1.5; }
|
||||
|
||||
.wallet-transfer-field input[readonly] { cursor: default; opacity: .82; background: var(--surface, #262a30); }
|
||||
.wallet-transfer-notice[hidden] { display: none; }
|
||||
@@ -0,0 +1,12 @@
|
||||
body {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
background: var(--background);
|
||||
min-height: 100dvh;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
@media (min-width: 700px) {
|
||||
body { background: color-mix(in srgb, var(--background) 92%, var(--text-primary)); }
|
||||
}
|
||||
@@ -0,0 +1,169 @@
|
||||
:root {
|
||||
/* Палитра по умолчанию — «Сияние» (js/services/theme-service.js, пресет aurora) */
|
||||
--background: #121419;
|
||||
--surface: #1c1f27;
|
||||
--surface-selected: #302b43;
|
||||
--surface-raised: #272a34;
|
||||
--text-primary: #f1f1f5;
|
||||
--text-secondary: #a8abb8;
|
||||
--border-subtle: #303440;
|
||||
--border-control: #454858;
|
||||
--accent: #b8aef5;
|
||||
--on-accent: #211c34;
|
||||
--action: #c6bff5;
|
||||
--bubble-out: #39324d;
|
||||
--focus-ring: #b8aef5;
|
||||
--reaction-active: #b8aef5;
|
||||
--danger: #f2a1ad;
|
||||
--success: #91d4b0;
|
||||
--warning: #edc487;
|
||||
--info: #a8c9f3;
|
||||
--scrim: #06080cb3;
|
||||
/* Производные состояния: считаются от ролей, поэтому работают с любой палитрой */
|
||||
--accent-hover: color-mix(in srgb, var(--accent) 86%, var(--text-primary));
|
||||
--accent-pressed: color-mix(in srgb, var(--accent) 88%, var(--background));
|
||||
--disabled-bg: color-mix(in srgb, var(--surface-raised) 80%, var(--background));
|
||||
--disabled-text: color-mix(in srgb, var(--text-secondary) 72%, var(--background));
|
||||
--quote-bg: color-mix(in srgb, var(--background) 70%, var(--surface));
|
||||
--quote-line: color-mix(in srgb, var(--accent) 55%, var(--text-secondary));
|
||||
--divider-soft: color-mix(in srgb, var(--border-subtle) 70%, var(--background));
|
||||
/* Язык связей: один цвет — один тип отношения во всём приложении (граф, личные, профиль). */
|
||||
--rel-contact: #8c63ff; /* обычная связь / контакт */
|
||||
--rel-family: #f0b82e; /* семья / близкий круг */
|
||||
--rel-shining: #68d8ff; /* «сияющий» */
|
||||
--rel-link: #19e58a; /* активная «Связь» */
|
||||
--rel-contact-glow: color-mix(in srgb, var(--rel-contact) 24%, transparent);
|
||||
--rel-family-glow: color-mix(in srgb, var(--rel-family) 30%, transparent);
|
||||
--rel-shining-glow: color-mix(in srgb, var(--rel-shining) 35%, transparent);
|
||||
--rel-link-glow: color-mix(in srgb, var(--rel-link) 24%, transparent);
|
||||
--bg-0: var(--background);
|
||||
--bg-1: var(--surface);
|
||||
--bg-2: var(--surface-selected);
|
||||
--card: var(--surface);
|
||||
--card-soft: var(--surface-selected);
|
||||
--line: var(--border-subtle);
|
||||
--text: var(--text-primary);
|
||||
--text-muted: var(--text-secondary);
|
||||
--accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
|
||||
--ok: var(--success);
|
||||
/* Устаревшее имя «синего» основного действия — теперь это акцент палитры. */
|
||||
--shine-action-blue: var(--accent);
|
||||
--shine-action-blue-hover: color-mix(in srgb, var(--accent) 88%, var(--text-primary));
|
||||
--shine-action-blue-pressed: color-mix(in srgb, var(--accent) 80%, var(--background));
|
||||
--shine-action-blue-rgb: 18, 72, 163;
|
||||
|
||||
/* ===== Общая шкала: все разделы берут размеры отсюда, а не задают свои ===== */
|
||||
/* Отступы */
|
||||
--space-1: 4px;
|
||||
--space-2: 8px;
|
||||
--space-3: 12px;
|
||||
--space-4: 16px;
|
||||
--space-5: 24px;
|
||||
--space-6: 32px;
|
||||
--page-gutter: var(--space-4);
|
||||
/* Зазор между шапкой и первым элементом экрана – один на всё приложение. */
|
||||
--page-top-gap: var(--space-3);
|
||||
/* Скругления */
|
||||
--radius-xs: 8px;
|
||||
--radius-sm: 10px;
|
||||
--radius-md: 12px;
|
||||
--radius-lg: 16px;
|
||||
--radius-xl: 20px;
|
||||
--radius-pill: 999px;
|
||||
/* Текст: размер / межстрочный */
|
||||
--text-xs: .75rem; --leading-xs: 1.125rem; /* подписи, время */
|
||||
--text-sm: .8125rem; --leading-sm: 1.25rem; /* вторичный текст */
|
||||
--text-md: .9375rem; --leading-md: 1.375rem; /* основной текст */
|
||||
--text-lg: 1.0625rem; --leading-lg: 1.5rem; /* заголовок панели */
|
||||
--text-xl: 1.375rem; --leading-xl: 1.75rem; /* заголовок экрана */
|
||||
--weight-medium: 500;
|
||||
--weight-bold: 600;
|
||||
/* Контролы */
|
||||
--control-height: 44px;
|
||||
--icon-size: 22px;
|
||||
--avatar-sm: 32px;
|
||||
--avatar-md: 40px;
|
||||
--avatar-lg: 48px;
|
||||
/* Поверх медиа (фото/видео) — всегда тёмная подложка, в любой теме */
|
||||
--media-overlay: rgba(0, 0, 0, 0.45);
|
||||
--on-media: #ffffff;
|
||||
--duration-fast: 160ms;
|
||||
|
||||
--shadow: 0 16px 42px rgba(0, 0, 0, 0.26);
|
||||
--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.18);
|
||||
--font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
||||
}
|
||||
|
||||
:root[data-theme='light'] {
|
||||
--background: #f3f2f7;
|
||||
--surface: #ffffff;
|
||||
--surface-selected: #e8e3fa;
|
||||
--surface-raised: #ecebf2;
|
||||
--text-primary: #1d1b26;
|
||||
--text-secondary: #5f5b6e;
|
||||
--border-subtle: #e0dde8;
|
||||
--border-control: #a19db2;
|
||||
--accent: #5d4fc4;
|
||||
--on-accent: #ffffff;
|
||||
--action: #5244b5;
|
||||
--bubble-out: #e6e0fb;
|
||||
--focus-ring: #5d4fc4;
|
||||
--reaction-active: #5d4fc4;
|
||||
--danger: #b3304a;
|
||||
--success: #2d7552;
|
||||
--warning: #8a5a0e;
|
||||
--info: #2f5f9e;
|
||||
--scrim: #1d1b2666;
|
||||
--shadow: 0 16px 42px rgba(30, 34, 51, 0.14);
|
||||
--shadow-sm: 0 2px 8px rgba(30, 34, 51, 0.08);
|
||||
--rel-contact: #6b3fe0;
|
||||
--rel-family: #a8740a;
|
||||
--rel-shining: #0a7fb3;
|
||||
--rel-link: #0b8a52;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
min-height: 100%;
|
||||
overflow: hidden;
|
||||
overscroll-behavior: none;
|
||||
/* Прокрутка остаётся внутри экранов, а pinch/double-tap не масштабирует всю PWA. */
|
||||
touch-action: pan-x pan-y;
|
||||
background: var(--background);
|
||||
color: var(--text);
|
||||
font-family: var(--font-main);
|
||||
}
|
||||
|
||||
button,
|
||||
input,
|
||||
textarea,
|
||||
select {
|
||||
font: inherit;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
|
||||
.channel-view-topbar { position: relative; }
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,513 @@
|
||||
/* ============================================================================
|
||||
Карта связей (экран «Связи»): canvas-карта, панель фильтров, кнопки масштаба,
|
||||
карточка выбранного человека, заметка и обозначения.
|
||||
Сама карта рисуется в canvas (js/pages/network/graph-canvas.js): цвета он берёт
|
||||
из токенов темы, поэтому здесь нет стилей точек и линий.
|
||||
Без blur-фильтров, backdrop-filter и бесконечных CSS-анимаций: они и грели ноутбук.
|
||||
========================================================================== */
|
||||
|
||||
.network-screen,
|
||||
.net-legend-sheet,
|
||||
.net-group-menu {
|
||||
--net-family: #ff8a65;
|
||||
--net-close: var(--rel-family);
|
||||
--net-friend: var(--info);
|
||||
--net-contact: var(--text-secondary);
|
||||
/* Острова «Компаний» и «Интересов»: подложки на карте, точки у названий в списке и карточке. */
|
||||
--net-island-0: #a891ff;
|
||||
--net-island-1: #56b2ff;
|
||||
--net-island-2: #ffbe56;
|
||||
--net-island-3: #ff7a98;
|
||||
--net-island-4: #4ad0be;
|
||||
--net-island-5: #ff9660;
|
||||
--net-island-6: #8490ff;
|
||||
--net-island-7: #ec84da;
|
||||
}
|
||||
|
||||
:root[data-theme='light'] .network-screen,
|
||||
:root[data-theme='light'] .net-legend-sheet,
|
||||
:root[data-theme='light'] .net-group-menu {
|
||||
--net-family: #c2502a;
|
||||
--net-island-0: #6a4cd6;
|
||||
--net-island-1: #1676ce;
|
||||
--net-island-2: #b07800;
|
||||
--net-island-3: #cc3a64;
|
||||
--net-island-4: #008c7a;
|
||||
--net-island-5: #d2601e;
|
||||
--net-island-6: #424ece;
|
||||
--net-island-7: #b43aa0;
|
||||
}
|
||||
|
||||
.net-board {
|
||||
touch-action: none;
|
||||
user-select: none;
|
||||
-webkit-user-select: none;
|
||||
-webkit-touch-callout: none;
|
||||
}
|
||||
|
||||
.net-canvas {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
display: block;
|
||||
touch-action: none;
|
||||
cursor: grab;
|
||||
}
|
||||
|
||||
.net-canvas.is-over-node {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.net-canvas.is-panning,
|
||||
.net-canvas.is-dragging {
|
||||
cursor: grabbing;
|
||||
}
|
||||
|
||||
/* Нижний слой (сетка, кольца групп, аура) только рисует – нажатия ловит верхний. */
|
||||
.net-canvas--back {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* Через этот элемент движок узнаёт итоговые цвета токенов темы. */
|
||||
.net-color-probe {
|
||||
position: absolute;
|
||||
width: 0;
|
||||
height: 0;
|
||||
overflow: hidden;
|
||||
visibility: hidden;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* Кнопки масштаба: справа внизу, над нижним меню и карточкой (bottom задаёт JS). */
|
||||
.net-zoom {
|
||||
position: absolute;
|
||||
right: var(--page-gutter, 14px);
|
||||
bottom: 12px;
|
||||
z-index: 11;
|
||||
display: grid;
|
||||
border: 1px solid var(--border-subtle);
|
||||
border-radius: 14px;
|
||||
background: var(--surface);
|
||||
box-shadow: var(--shadow-sm);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.net-zoom[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.net-zoom__btn {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
border-radius: 0;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.net-zoom__btn + .net-zoom__btn {
|
||||
border-top: 1px solid var(--border-subtle);
|
||||
}
|
||||
|
||||
.net-zoom__btn:active {
|
||||
color: var(--text-primary);
|
||||
background: var(--surface-raised);
|
||||
}
|
||||
@media (hover: hover) {
|
||||
.net-zoom__btn:hover {
|
||||
color: var(--text-primary);
|
||||
background: var(--surface-raised);
|
||||
}
|
||||
}
|
||||
|
||||
.net-zoom__btn:focus-visible {
|
||||
outline: 2px solid var(--focus-ring);
|
||||
outline-offset: -2px;
|
||||
}
|
||||
|
||||
.net-zoom__btn svg {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
/* Карточка выбранного человека: аватар, имя, кто это вам, действия. */
|
||||
.net-card {
|
||||
position: absolute;
|
||||
left: var(--page-gutter, 14px);
|
||||
right: var(--page-gutter, 14px);
|
||||
bottom: 12px;
|
||||
z-index: 12;
|
||||
max-width: 520px;
|
||||
margin-inline: auto;
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
padding: 12px 12px 12px 14px;
|
||||
border: 1px solid var(--border-subtle);
|
||||
border-radius: 18px;
|
||||
background: var(--surface);
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
|
||||
.net-card[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.net-card__head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.net-card__avatar {
|
||||
flex: 0 0 auto;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.net-card__avatar.is-shining .avatar {
|
||||
border-radius: 50%;
|
||||
box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--rel-shining);
|
||||
}
|
||||
|
||||
.net-card__answer {
|
||||
width: 100%;
|
||||
min-height: 40px;
|
||||
}
|
||||
|
||||
.net-card__titles {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
display: grid;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.net-card__name {
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.net-card__meta {
|
||||
font-size: 12.5px;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.net-card__close {
|
||||
flex: 0 0 auto;
|
||||
align-self: flex-start;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
margin: -4px -2px 0 0;
|
||||
border-radius: 50%;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.net-card__close svg {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
}
|
||||
|
||||
.net-card__actions {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.net-card__action {
|
||||
flex: 1 1 0;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
padding: 8px 2px 7px;
|
||||
border-radius: 12px;
|
||||
background: var(--surface-raised);
|
||||
color: var(--text-primary);
|
||||
font-size: 11.5px;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.net-card__action span {
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.net-card__action svg {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.net-card__action .spinner {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
.net-card__action:active {
|
||||
background: var(--surface-selected);
|
||||
}
|
||||
@media (hover: hover) {
|
||||
.net-card__action:hover {
|
||||
background: var(--surface-selected);
|
||||
}
|
||||
}
|
||||
|
||||
.net-card__action:focus-visible {
|
||||
outline: 2px solid var(--focus-ring);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
.net-card__action[aria-pressed='true'] {
|
||||
background: var(--surface-selected);
|
||||
}
|
||||
|
||||
.net-card__action:disabled {
|
||||
color: var(--disabled-text);
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.net-card__hint {
|
||||
margin: 0;
|
||||
font-size: 12px;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
/* Группы («Компании», «Интересы»): цветная точка острова, плашка группы, карточка группы. */
|
||||
.net-group-dot {
|
||||
flex: 0 0 auto;
|
||||
display: inline-block;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border-radius: 50%;
|
||||
background: var(--group-color, var(--accent));
|
||||
}
|
||||
|
||||
.net-group-dot--rest {
|
||||
background: transparent;
|
||||
box-shadow: inset 0 0 0 1.5px var(--text-secondary);
|
||||
}
|
||||
|
||||
.dropdown-menu__icon .net-group-dot {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
}
|
||||
|
||||
.net-card__group-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.net-group-chip {
|
||||
min-width: 0;
|
||||
max-width: 100%;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
height: 28px;
|
||||
padding: 0 10px 0 9px;
|
||||
border: 1px solid var(--border-subtle);
|
||||
border-radius: var(--radius-pill);
|
||||
background: var(--surface-raised);
|
||||
color: var(--text-primary);
|
||||
font: inherit;
|
||||
font-size: 12.5px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.net-group-chip svg {
|
||||
flex: 0 0 auto;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.net-group-chip span:last-child {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.net-group-chip:active {
|
||||
background: var(--surface-selected);
|
||||
}
|
||||
@media (hover: hover) {
|
||||
.net-group-chip:hover {
|
||||
background: var(--surface-selected);
|
||||
}
|
||||
}
|
||||
|
||||
.net-group-chip:focus-visible,
|
||||
.net-card__move:focus-visible {
|
||||
outline: 2px solid var(--focus-ring);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
.net-card__move {
|
||||
flex: 0 0 auto;
|
||||
height: 30px;
|
||||
margin-left: auto;
|
||||
padding: 0 4px;
|
||||
border: 0;
|
||||
border-radius: 8px;
|
||||
background: transparent;
|
||||
color: var(--accent);
|
||||
font: inherit;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.net-card__move:active {
|
||||
opacity: .7;
|
||||
}
|
||||
@media (hover: hover) {
|
||||
.net-card__move:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
|
||||
/* Лица группы – три аватара внахлёст с ободком цвета острова. */
|
||||
.net-card__faces {
|
||||
flex: 0 0 auto;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.net-card__faces .avatar {
|
||||
border-radius: 50%;
|
||||
box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--group-color, var(--border-subtle));
|
||||
}
|
||||
|
||||
.net-card__faces .avatar + .avatar {
|
||||
margin-left: -10px;
|
||||
}
|
||||
|
||||
.net-card__related {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.net-card__related-label,
|
||||
.net-card__related-text {
|
||||
color: var(--text-secondary);
|
||||
font-size: 12.5px;
|
||||
}
|
||||
|
||||
/* Обозначения */
|
||||
.net-legend {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.net-legend__row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.net-legend__sample {
|
||||
flex: 0 0 32px;
|
||||
height: 16px;
|
||||
display: block;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.net-legend__sample--line::before,
|
||||
.net-legend__sample--dash::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 7px;
|
||||
border-top: 2.5px solid var(--net-contact);
|
||||
}
|
||||
|
||||
.net-legend__sample--dash::before {
|
||||
border-top-style: dashed;
|
||||
}
|
||||
|
||||
.net-legend__sample[data-type='close_friend']::before { border-top-color: var(--net-close); }
|
||||
.net-legend__sample[data-type='friend']::before { border-top-color: var(--net-friend); }
|
||||
.net-legend__sample[data-type='family']::before { border-top-color: var(--net-family); }
|
||||
.net-legend__sample[data-type='contact']::before { border-top-color: var(--net-contact); opacity: .6; }
|
||||
|
||||
.net-legend__sample--aura {
|
||||
height: 32px;
|
||||
border-radius: 50%;
|
||||
background: radial-gradient(circle, var(--rel-shining) 0 34%, color-mix(in srgb, var(--rel-shining) 30%, transparent) 46%, transparent 70%);
|
||||
}
|
||||
|
||||
.net-legend__sample--badge::before,
|
||||
.net-legend__sample--mark::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 8px;
|
||||
top: 0;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
border-radius: 50%;
|
||||
background: rgb(47, 140, 255);
|
||||
}
|
||||
|
||||
.net-legend__sample--mark::before {
|
||||
background: var(--note-mark-green);
|
||||
}
|
||||
|
||||
.net-legend__tips {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
margin: 8px 0 0;
|
||||
padding-left: 18px;
|
||||
color: var(--text-secondary);
|
||||
font-size: var(--text-sm);
|
||||
line-height: var(--leading-sm, 1.45);
|
||||
}
|
||||
|
||||
/* Поиск по связям поверх карты: найденные на карте и во всей сети. */
|
||||
.net-search-panel {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 13;
|
||||
overflow-y: auto;
|
||||
overscroll-behavior: contain;
|
||||
padding: 0 var(--page-gutter) var(--space-4);
|
||||
background: var(--background);
|
||||
scrollbar-width: none;
|
||||
}
|
||||
|
||||
.net-search-panel::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.net-search-panel[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.net-search-note {
|
||||
margin: var(--space-4) 0;
|
||||
color: var(--text-secondary);
|
||||
font-size: var(--text-sm);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.net-search-loading {
|
||||
padding: var(--space-3) 0;
|
||||
}
|
||||
@@ -0,0 +1,622 @@
|
||||
/* ============================================================================
|
||||
Force-directed карта связей (.fg-*) — интерактивный граф на странице «Связи».
|
||||
Узлы позиционируются трансформами (GPU), рёбра — отдельный SVG-слой.
|
||||
Отдельный модуль, чтобы не раздувать components.css.
|
||||
========================================================================== */
|
||||
|
||||
/* Цвета отношений (--rel-*) объявлены в styles/main.css — отдельно для дневной и ночной темы. */
|
||||
|
||||
.fg-stage {
|
||||
touch-action: none; /* перехватываем жесты сами (pan), без скролла страницы */
|
||||
user-select: none;
|
||||
-webkit-user-select: none;
|
||||
cursor: grab;
|
||||
background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--rel-shining) 7%, transparent), color-mix(in srgb, var(--text-primary) 1%, transparent) 60%);
|
||||
}
|
||||
.fg-stage:active {
|
||||
cursor: grabbing;
|
||||
}
|
||||
|
||||
/* Живой фон-«небула»: глубокое размытое сине-голубое облако света строго под центральным узлом.
|
||||
Медленно «дышит» (радиус/яркость) и переливается индиго↔ультрамарин (hue-rotate) за 7с.
|
||||
Чистый CSS на компоновщике — создаёт ощущение живой светящейся среды, не будит rAF-цикл. */
|
||||
.fg-stage::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: radial-gradient(circle 320px at 50% 47%, color-mix(in srgb, var(--rel-contact) 30%, transparent) 0%, color-mix(in srgb, var(--rel-contact) 15%, transparent) 42%, color-mix(in srgb, var(--rel-contact) 0%, transparent) 72%);
|
||||
filter: blur(80px);
|
||||
pointer-events: none;
|
||||
z-index: 0; /* строго под линиями (z:0, но раньше по порядку) и узлами (z:1) */
|
||||
animation: fg-nebula 7s ease-in-out infinite;
|
||||
}
|
||||
|
||||
@keyframes fg-nebula {
|
||||
0%, 100% { opacity: 0.70; filter: blur(80px) hue-rotate(-12deg); }
|
||||
50% { opacity: 1.00; filter: blur(96px) hue-rotate(16deg); }
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.fg-stage::before { animation: none; }
|
||||
}
|
||||
|
||||
.fg-world {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
width: 0;
|
||||
height: 0;
|
||||
will-change: transform;
|
||||
z-index: 1; /* узлы и подписи строго над линиями связей */
|
||||
}
|
||||
|
||||
.fg-edges {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
pointer-events: none;
|
||||
overflow: visible;
|
||||
z-index: 0; /* линии связей — под узлами */
|
||||
transition: opacity 420ms ease; /* плавное появление линий при перестройке */
|
||||
}
|
||||
|
||||
/* Сияющая связь = плазменный композитинг (3 слоя на ОДНОМ S-пути, см. renderEdges).
|
||||
Настоящий НЕОН: яркое светлое ядро + ВИДИМЫЙ голубой ореол вокруг. Слои поля/трубки идут в режиме
|
||||
mix-blend-mode: screen → свет складывается аддитивно с тёмным фоном (как реальное свечение), а в точках
|
||||
пересечения нитей у центра — ярче (энергетический хаб). Прозрачность слоёв — inline (×spotlight/глубину). */
|
||||
.fg-plasma-flare { /* нижний: широкое насыщенное голубое плазменное свечение (по референсу) */
|
||||
fill: none;
|
||||
stroke: var(--rel-shining); /* глубокий голубой */
|
||||
stroke-width: 16;
|
||||
stroke-linecap: round;
|
||||
filter: url(#fg-plasma-blur6); /* мягкое объёмное свечение (гладкие края — как на референсе) */
|
||||
mix-blend-mode: screen; /* аддитивное свечение поверх тёмного фона */
|
||||
/* синхро-«дыхание» поля толщиной в такт ободку сияющего узла (3.6с); прозрачность не трогаем (inline) */
|
||||
animation: fg-plasma-breath 3.6s ease-in-out infinite;
|
||||
}
|
||||
.fg-plasma-tube { /* средний: яркая толстая неоновая трубка */
|
||||
fill: none;
|
||||
stroke: var(--rel-shining); /* яркий циан */
|
||||
stroke-width: 6;
|
||||
stroke-linecap: round;
|
||||
filter: url(#fg-plasma-blur2); /* SVG feGaussianBlur stdDeviation=2 */
|
||||
mix-blend-mode: screen; /* аддитивное свечение */
|
||||
}
|
||||
.fg-plasma-core { /* верхний: яркое чёткое ядро (светло-голубо-белое) */
|
||||
fill: none;
|
||||
stroke: var(--text-primary); /* светло-голубо-белое — «жидкое» ядро */
|
||||
stroke-width: 2;
|
||||
stroke-linecap: round;
|
||||
}
|
||||
|
||||
/* мягкое «дыхание» плазменного облака толщиной, синхронно с пульсом сияющего ободка (3.6с) */
|
||||
@keyframes fg-plasma-breath {
|
||||
0%, 100% { stroke-width: 14; }
|
||||
50% { stroke-width: 19; }
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.fg-plasma-flare { animation: none; }
|
||||
}
|
||||
|
||||
.fg-node {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 52px;
|
||||
height: 52px;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
background: transparent;
|
||||
cursor: pointer;
|
||||
transform-origin: center center;
|
||||
will-change: transform;
|
||||
touch-action: none;
|
||||
user-select: none;
|
||||
-webkit-user-select: none;
|
||||
-webkit-touch-callout: none; /* iOS: не показывать системное меню по долгому тапу */
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
/* круглая аватарка узла (переиспользуем существующий .node-dot из renderUserAvatar) */
|
||||
/* 58px → радиус 29 = ORB_R в force-graph.js (контакт линий берётся от этого радиуса). */
|
||||
.fg-node .node-dot {
|
||||
width: 58px;
|
||||
height: 58px;
|
||||
margin: 0;
|
||||
font-size: 16px;
|
||||
transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
|
||||
}
|
||||
|
||||
/* SVG-«стеклянный орб» — масштабируем так, чтобы сфера (r42 = 84% SVG) ≈ диаметр узла → линии-связи
|
||||
прилипают к краю орба, как раньше. Хост .node-dot держит размер/состояния/синхронизацию позиций. */
|
||||
.fg-node .node-dot.fg-orb-host {
|
||||
position: relative;
|
||||
background: none;
|
||||
overflow: visible; /* не срезать внешнее свечение орба */
|
||||
box-shadow: none;
|
||||
}
|
||||
/* A/B PNG-оверлей орба (ветка glass-png-overlay): фото снизу + запечённый стеклянный PNG сверху.
|
||||
Бокс = 119% от .node-dot (как .fg-orb-svg → сфера ≈ кромке node-dot, контакт линий от ORB_R сохраняется). */
|
||||
/* Специфичность `.fg-orb-host …` бьёт глобальное `.node-dot img` (иначе оно гасит opacity→0
|
||||
и форсит размер 100%). Поэтому opacity/размеры/радиус задаём здесь явно. */
|
||||
/* Кромку даёт сам glass_overlay.png → убираем остаточный border .node-dot (синее кольцо
|
||||
старого векторного орба). Только у PNG-хоста; вектор и свечение/box-shadow не трогаем. */
|
||||
/* (0,4,0) — выше специфичности правил категории `.fg-node.is-family .node-dot` (0,3,0),
|
||||
иначе их background/border перебивают. */
|
||||
.fg-node .node-dot.fg-orb-host:has(.fg-pngorb) {
|
||||
border: none;
|
||||
background: none; /* фон-градиент категории не торчит из-под прозрачного стекла (та самая «обводка») */
|
||||
}
|
||||
.fg-orb-host .fg-pngorb {
|
||||
position: absolute;
|
||||
left: 50%; top: 50%;
|
||||
width: 119%; height: 119%;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
.fg-orb-host .fg-pngorb-glass {
|
||||
position: absolute;
|
||||
left: 50%; top: 50%;
|
||||
width: 100%; height: 100%;
|
||||
transform: translate(-50%, -50%);
|
||||
opacity: 1;
|
||||
border-radius: 0;
|
||||
object-fit: contain;
|
||||
display: block;
|
||||
pointer-events: none;
|
||||
}
|
||||
.fg-orb-host .fg-pngorb-photo {
|
||||
position: absolute;
|
||||
left: 50%; top: 50%;
|
||||
width: 78%; height: 78%; /* ~78% от бокса оверлея — сидит внутри стеклянной кромки */
|
||||
transform: translate(-50%, -50%);
|
||||
opacity: 1;
|
||||
border-radius: 50%; /* фолбэк, если mask не поддержан */
|
||||
object-fit: cover;
|
||||
display: block;
|
||||
/* Мягкий край: фото непрозрачно до --feather-full, плавно гаснет к 0 у --feather-edge —
|
||||
сливается со стеклом без жёсткого ободка. Силу растушёвки крутим этими двумя параметрами. */
|
||||
--feather-full: 62%;
|
||||
--feather-edge: 78%;
|
||||
-webkit-mask-image: radial-gradient(circle at 50% 50%, var(--surface) var(--feather-full), transparent var(--feather-edge));
|
||||
mask-image: radial-gradient(circle at 50% 50%, var(--surface) var(--feather-full), transparent var(--feather-edge));
|
||||
}
|
||||
.fg-orb-host .fg-pngorb-init {
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
background: var(--surface); color: var(--text-primary); font-weight: 600; font-size: 20px;
|
||||
}
|
||||
|
||||
|
||||
/* Маленький знак официального пользователя. Он находится внутри .node-dot, поэтому автоматически
|
||||
масштабируется вместе с аватаркой при focus/zoom/анимациях графа. */
|
||||
/* ВАЖНО: селектор намеренно специфичнее глобального `.node-dot img` из features/network.css,
|
||||
где обычные фото стартуют с opacity:0 и width/height:100%. Иначе badge тоже наследует эти
|
||||
правила и становится полностью невидимым. */
|
||||
.fg-node .node-dot .fg-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;
|
||||
transition: none;
|
||||
z-index: 20;
|
||||
pointer-events: none;
|
||||
filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.42));
|
||||
}
|
||||
|
||||
.fg-node.is-family .node-dot {
|
||||
background: linear-gradient(165deg, var(--rel-family), var(--surface));
|
||||
border-color: color-mix(in srgb, var(--rel-family) 60%, transparent);
|
||||
}
|
||||
|
||||
.fg-node.is-friend .node-dot {
|
||||
background: linear-gradient(165deg, var(--rel-contact), var(--surface));
|
||||
border-color: color-mix(in srgb, var(--rel-contact) 50%, transparent);
|
||||
}
|
||||
|
||||
.fg-node.is-business .node-dot {
|
||||
background: linear-gradient(165deg, var(--rel-contact), var(--surface));
|
||||
border-color: color-mix(in srgb, var(--rel-contact) 55%, transparent);
|
||||
}
|
||||
|
||||
.fg-node.is-contact .node-dot {
|
||||
background: linear-gradient(165deg, var(--surface), var(--surface));
|
||||
border-color: color-mix(in srgb, var(--rel-shining) 40%, transparent);
|
||||
}
|
||||
|
||||
.fg-node.is-focus .node-dot {
|
||||
background: linear-gradient(130deg, var(--rel-shining), var(--rel-shining));
|
||||
color: var(--on-accent);
|
||||
border-color: color-mix(in srgb, var(--rel-shining) 85%, transparent);
|
||||
box-shadow: 0 0 0 2px color-mix(in srgb, var(--rel-shining) 45%, transparent), 0 10px 22px rgba(4, 8, 15, 0.45);
|
||||
}
|
||||
|
||||
/* Тактильный отклик «нажатия вглубь»: аватарка слегка вдавливается (scale 0.92), а неоновое кольцо
|
||||
вспыхивает заметно ярче (~1.5×). Срабатывает при наведении, фокусе и зажатии (.is-pressed). */
|
||||
.fg-node:focus-visible .node-dot,
|
||||
.fg-node:hover .node-dot,
|
||||
.fg-node.is-pressed .node-dot {
|
||||
transform: scale(0.92);
|
||||
border-color: color-mix(in srgb, var(--rel-shining) 95%, transparent);
|
||||
box-shadow: 0 0 0 2px color-mix(in srgb, var(--rel-shining) 60%, transparent), 0 0 22px color-mix(in srgb, var(--rel-shining) 85%, transparent);
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.fg-node.is-pressed .node-dot { transform: none; }
|
||||
}
|
||||
|
||||
/* «Сияние» на аватарке теперь стационарное. Интенсивность зафиксирована примерно на 2/3 пути
|
||||
от прежнего минимального состояния к максимальному: заметно, но без постоянного «дыхания». */
|
||||
.fg-node.is-shine .node-dot {
|
||||
border-color: color-mix(in srgb, var(--rel-shining) 62%, transparent);
|
||||
box-shadow:
|
||||
0 0 8.3px color-mix(in srgb, var(--rel-shining) 57%, transparent),
|
||||
0 0 18.3px color-mix(in srgb, var(--rel-shining) 39%, transparent),
|
||||
0 0 33px color-mix(in srgb, var(--rel-shining) 24%, transparent);
|
||||
}
|
||||
|
||||
/* Статичный размытый ореол позади аватарки — та же промежуточная интенсивность ~2/3. */
|
||||
.fg-node.is-shine .node-dot::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: -12px;
|
||||
border-radius: 50%;
|
||||
background: radial-gradient(circle, color-mix(in srgb, var(--rel-shining) 50%, transparent) 0%, color-mix(in srgb, var(--rel-shining) 18%, transparent) 46%, color-mix(in srgb, var(--rel-shining) 0%, transparent) 72%);
|
||||
filter: url(#fg-shine-glow);
|
||||
z-index: -1;
|
||||
pointer-events: none;
|
||||
transform: scale(1.07);
|
||||
opacity: 0.91;
|
||||
}
|
||||
|
||||
/* мягкое свечение вокруг фокуса (статичное; «дышит» вместе с размером узла ниже) */
|
||||
.fg-node.is-focus .node-dot::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: -12px;
|
||||
border-radius: 50%;
|
||||
background: radial-gradient(circle, color-mix(in srgb, var(--rel-shining) 32%, transparent) 0%, color-mix(in srgb, var(--rel-shining) 0%, transparent) 70%);
|
||||
z-index: -1;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* «Дыхание» фокуса — бесконечная очень мягкая пульсация РАЗМЕРА (база 1.5x → 1.48–1.52x),
|
||||
период 4с. CSS-анимация на transform (GPU) — НЕ будит rAF-цикл физики; интерфейс «живой». */
|
||||
.fg-node.is-focus .node-dot {
|
||||
animation: fg-focus-breath 4s ease-in-out infinite;
|
||||
}
|
||||
|
||||
@keyframes fg-focus-breath {
|
||||
0%, 100% { transform: scale(0.987); }
|
||||
50% { transform: scale(1.013); }
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.fg-node.is-focus .node-dot { animation: none; }
|
||||
}
|
||||
|
||||
/* подпись под узлом — абсолютная, чтобы не влиять на размер бокса (центрирование по трансформу) */
|
||||
.fg-node-label {
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
margin-top: 5px;
|
||||
max-width: 110px;
|
||||
font-size: var(--text-xs, 12px);
|
||||
font-weight: var(--weight-medium);
|
||||
line-height: 1.1;
|
||||
color: var(--text-primary);
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.fg-node.is-secondary .fg-node-label {
|
||||
opacity: 0.75;
|
||||
}
|
||||
|
||||
/* Имя центрального узла — на подложке, чтобы линии связей не просвечивали сквозь текст */
|
||||
.fg-node.is-focus .fg-node-label {
|
||||
margin-top: 7px;
|
||||
padding: 3px 10px;
|
||||
border-radius: 9px;
|
||||
background: var(--surface);
|
||||
backdrop-filter: blur(2px);
|
||||
-webkit-backdrop-filter: blur(2px);
|
||||
color: var(--text-primary);
|
||||
font-weight: 600;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
/* Лёгкая точка (узлы сверх хард-лимита DOM) — без аватара/подписи */
|
||||
.fg-dot {
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
border-radius: 50%;
|
||||
border: 1px solid var(--border-subtle);
|
||||
background: var(--surface);
|
||||
box-shadow: 0 2px 6px rgba(4, 8, 15, 0.4);
|
||||
}
|
||||
|
||||
.fg-dot.is-family { background: var(--rel-family); border-color: color-mix(in srgb, var(--rel-family) 50%, transparent); }
|
||||
.fg-dot.is-friend { background: var(--rel-contact); border-color: color-mix(in srgb, var(--rel-contact) 45%, transparent); }
|
||||
.fg-dot.is-business { background: var(--rel-contact); border-color: color-mix(in srgb, var(--rel-contact) 50%, transparent); }
|
||||
.fg-dot.is-contact { background: var(--surface); }
|
||||
.fg-dot.is-shine { box-shadow: 0 0 9px color-mix(in srgb, var(--rel-shining) 75%, transparent); }
|
||||
|
||||
/* === Глубина 2-3 уровней (прототип «Вселенная», только лаборатория) ============== */
|
||||
/* 2-й уровень — «друзья друзей»: полноценная аватарка (лицо + имя), просто мельче основных.
|
||||
Масштаб/прозрачность задаёт движок; здесь — читаемый ободок и подпись (не «дырка»). */
|
||||
.fg-node.is-tier2 .node-dot {
|
||||
border-color: color-mix(in srgb, var(--rel-shining) 65%, transparent);
|
||||
box-shadow: 0 2px 8px rgba(4, 8, 15, 0.4);
|
||||
}
|
||||
.fg-node.is-tier2 .fg-node-label {
|
||||
font-size: 11px;
|
||||
opacity: 0.9;
|
||||
top: calc(100% + 1px);
|
||||
}
|
||||
|
||||
/* 3-й уровень — микрозвезда: светящаяся точка без картинки (эффект далёкого созвездия). */
|
||||
.fg-dot.is-tier3 {
|
||||
width: 9px;
|
||||
height: 9px;
|
||||
border: 0;
|
||||
background: radial-gradient(circle, var(--text-primary) 0%, color-mix(in srgb, var(--rel-shining) 95%, transparent) 38%, color-mix(in srgb, var(--rel-shining) 0%, transparent) 75%);
|
||||
box-shadow: 0 0 6px color-mix(in srgb, var(--rel-shining) 90%, transparent), 0 0 13px color-mix(in srgb, var(--rel-shining) 50%, transparent);
|
||||
/* медленное мерцание «звезды» — по box-shadow/яркости (НЕ opacity/scale: ими управляет движок при
|
||||
раскрытии). У каждой звезды своя задержка (inline animation-delay) → живое созвездие. */
|
||||
animation: fg-star-twinkle 3.4s ease-in-out infinite;
|
||||
}
|
||||
.fg-dot.is-tier3.is-shine {
|
||||
background: radial-gradient(circle, var(--text-primary) 0%, var(--rel-shining) 38%, color-mix(in srgb, var(--rel-shining) 0%, transparent) 75%);
|
||||
box-shadow: 0 0 8px var(--rel-shining), 0 0 16px color-mix(in srgb, var(--rel-shining) 70%, transparent);
|
||||
}
|
||||
|
||||
@keyframes fg-star-twinkle {
|
||||
0%, 100% { box-shadow: 0 0 3px color-mix(in srgb, var(--rel-shining) 45%, transparent), 0 0 7px color-mix(in srgb, var(--rel-shining) 25%, transparent); filter: brightness(0.78); }
|
||||
50% { box-shadow: 0 0 7px color-mix(in srgb, var(--rel-shining) 95%, transparent), 0 0 15px color-mix(in srgb, var(--rel-shining) 60%, transparent); filter: brightness(1.3); }
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.fg-dot.is-tier3 { animation: none; }
|
||||
}
|
||||
|
||||
/* «Призрак» старой карты при Z-переходе (эффект погружения) */
|
||||
.fg-ghost-layer {
|
||||
position: absolute;
|
||||
inset: 0; /* полноэкранный overlay → клон линий/узлов совпадает по координатам */
|
||||
pointer-events: none;
|
||||
z-index: 0;
|
||||
opacity: 0.5; /* стартовая прозрачность шлейфа выше → дольше читается (JS уводит в 0) */
|
||||
transform-origin: 50% 50%;
|
||||
/* лениво и породисто тает на месте за 1000мс — медленный дорогой шлейф истории перехода */
|
||||
transition: transform 1000ms cubic-bezier(0.16, 1, 0.3, 1), opacity 1000ms ease;
|
||||
}
|
||||
|
||||
/* Панель фильтров слоёв (оверлей под шапкой) */
|
||||
.fg-filter-bar {
|
||||
position: absolute;
|
||||
top: max(72px, calc(env(safe-area-inset-top) + 68px));
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 11;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
padding: 0 12px;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.fg-filter-bar > button {
|
||||
pointer-events: auto;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
/* Стеклянные табы — тонкие пластины матового стекла (frosted glass) */
|
||||
|
||||
|
||||
|
||||
/* Служебные переключатели карты: история и X2 намеренно чуть компактнее основных фильтров. */
|
||||
|
||||
|
||||
|
||||
|
||||
/* Контекстное меню узла (долгое нажатие) — в #modal-root, поверх всего, не масштабируется */
|
||||
.fg-menu-overlay {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 50;
|
||||
}
|
||||
|
||||
.fg-menu {
|
||||
position: fixed;
|
||||
min-width: 210px;
|
||||
padding: 8px;
|
||||
display: grid;
|
||||
gap: 3px;
|
||||
background: var(--surface);
|
||||
border: 1px solid color-mix(in srgb, var(--rel-contact) 28%, transparent);
|
||||
border-radius: 14px;
|
||||
box-shadow: 0 16px 44px rgba(0, 0, 0, 0.55);
|
||||
backdrop-filter: blur(14px);
|
||||
-webkit-backdrop-filter: blur(14px);
|
||||
z-index: 51;
|
||||
}
|
||||
|
||||
.fg-menu-head {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: baseline;
|
||||
gap: 10px;
|
||||
padding: 4px 8px 8px;
|
||||
border-bottom: 1px solid var(--border-subtle);
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
|
||||
.fg-menu-login {
|
||||
font-weight: 700;
|
||||
color: var(--text-primary);
|
||||
font-size: 14px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.fg-menu-rel {
|
||||
font-size: 11px;
|
||||
color: var(--rel-contact);
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.fg-menu-item {
|
||||
text-align: left;
|
||||
background: transparent;
|
||||
border: 0;
|
||||
font-size: 14px;
|
||||
padding: 9px 10px;
|
||||
border-radius: 9px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
|
||||
.fg-menu-item.is-stub {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.fg-menu-item.is-stub:hover {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
/* === Партия 2: поиск, хлебные крошки, цветовые кластеры ============================== */
|
||||
|
||||
/* Кластерная аура по категории удалена (цветной фон/обводка узла убраны). Сияющим/фокусу
|
||||
box-shadow не навязываем — у них свой эффект свечения (is-shine/is-focus выше). */
|
||||
.fg-node.is-focus:not(.is-shine) .node-dot { box-shadow: none; }
|
||||
|
||||
/* Строка поиска (оверлей вверху, под панелью фильтров) */
|
||||
.fg-search {
|
||||
position: absolute;
|
||||
top: max(92px, calc(env(safe-area-inset-top) + 88px));
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
z-index: 12;
|
||||
width: min(280px, 70vw);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 6px 12px;
|
||||
border-radius: 999px;
|
||||
background: color-mix(in srgb, var(--text-primary) 4%, transparent);
|
||||
border: 0.5px solid var(--border-subtle);
|
||||
backdrop-filter: blur(12px);
|
||||
-webkit-backdrop-filter: blur(12px);
|
||||
box-shadow: inset 0 0.5px 0 color-mix(in srgb, var(--text-primary) 8%, transparent);
|
||||
}
|
||||
.fg-search input {
|
||||
flex: 1;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: var(--text-primary);
|
||||
font-size: 13px;
|
||||
outline: none;
|
||||
}
|
||||
.fg-search input::placeholder { color: var(--text-primary); }
|
||||
.fg-search .fg-search-ico { color: var(--rel-contact); font-size: 13px; }
|
||||
|
||||
/* Хлебные крошки навигации (стек погружений: Иван › Нина › Ада) */
|
||||
.fg-breadcrumb {
|
||||
position: absolute;
|
||||
top: max(132px, calc(env(safe-area-inset-top) + 128px));
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 12;
|
||||
display: none;
|
||||
justify-content: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 4px;
|
||||
padding: 0 12px;
|
||||
pointer-events: none;
|
||||
}
|
||||
.fg-breadcrumb.is-open { display: flex; }
|
||||
.fg-crumb {
|
||||
pointer-events: auto;
|
||||
border: 0;
|
||||
background: var(--surface);
|
||||
backdrop-filter: blur(8px);
|
||||
-webkit-backdrop-filter: blur(8px);
|
||||
color: var(--text-primary);
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
line-height: 1;
|
||||
padding: 5px 10px;
|
||||
border-radius: 999px;
|
||||
cursor: pointer;
|
||||
max-width: 110px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.fg-crumb.is-last {
|
||||
background: color-mix(in srgb, var(--rel-shining) 18%, transparent);
|
||||
color: var(--text-primary);
|
||||
cursor: default;
|
||||
}
|
||||
.fg-crumb-sep { color: var(--on-accent); font-size: 11px; align-self: center; pointer-events: none; }
|
||||
|
||||
/* Доступность: визуально скрытый список графа для скринридеров (sr-only, читается ассистивными технологиями) */
|
||||
.fg-a11y {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
margin: -1px;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
clip: rect(0 0 0 0);
|
||||
clip-path: inset(50%);
|
||||
white-space: nowrap;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
/* «Общая связь» (этот человек — и твой друг тоже): золотой ободок. Значок ★ убран по запросу. */
|
||||
.fg-node.is-common .node-dot {
|
||||
border-color: transparent;
|
||||
box-shadow: 0 0 14px color-mix(in srgb, var(--rel-family) 40%, transparent);
|
||||
}
|
||||
|
||||
/* V3 — только состояние загрузки; аватары/линии/панель принадлежат общему force-graph. */
|
||||
.network-explorer__status {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
bottom: 20px;
|
||||
z-index: 10;
|
||||
transform: translateX(-50%);
|
||||
max-width: min(88vw, 400px);
|
||||
padding: 7px 13px;
|
||||
border: 1px solid var(--border-subtle);
|
||||
border-radius: 999px;
|
||||
color: var(--text-secondary);
|
||||
background: var(--surface);
|
||||
box-shadow: var(--shadow-sm);
|
||||
font-size: 12px;
|
||||
text-align: center;
|
||||
pointer-events: none;
|
||||
}
|
||||
.network-explorer__status[hidden] { display: none; }
|
||||
|
||||
/* В V3 центральный аватар имеет ровно тот же размер, что и раскрытые друзья. */
|
||||
.network-explorer .fg-node.is-focus .node-dot { animation: none; }
|
||||
Reference in New Issue
Block a user