SHA256
Личные сообщения: - поиск по переписке с подсветкой, переход к дате по календарю; - экран «Медиа и файлы» (/chat/<login>/media); - «без звука» и закрепление чатов (на устройстве), push от заглушённых не показывается; - новая нижняя панель ввода, круглый спиннер истории, медиа-карусель; - история загружается в ~16 раз быстрее: ключ расшифровки достаётся один раз на страницу; - исправлены прозрачные окна подтверждения в чате. Связи: - карта переписана на canvas (graph-canvas.js вместо force-graph.js): плавная анимация без дёрганья, панорама, масштаб щипком/колесом/кнопками, перетаскивание людей; - ручная раскладка и режимы «По близости»/«По группам» запоминаются на устройстве; - цвет нити – тип связи, пунктир – связь с одной стороны, аура только у сияющих; - карточка человека: раскрыть связи на месте, в центр, профиль, написать, заметка; - «Недавние» заменены раскрытием связей; фильтр «Заметки». Личные заметки о людях (текст и цветная метка, только на устройстве) – на карте и в профиле.
318 lines
6.7 KiB
CSS
318 lines
6.7 KiB
CSS
/* ============================================================================
|
|
Карта связей (экран «Связи»): canvas-карта, панель фильтров, кнопки масштаба,
|
|
карточка выбранного человека, заметка и обозначения.
|
|
Сама карта рисуется в canvas (js/pages/network/graph-canvas.js): цвета он берёт
|
|
из токенов темы, поэтому здесь нет стилей точек и линий.
|
|
Без blur-фильтров, backdrop-filter и бесконечных CSS-анимаций: они и грели ноутбук.
|
|
========================================================================== */
|
|
|
|
.network-screen,
|
|
.net-legend-sheet {
|
|
--net-family: #ff8a65;
|
|
--net-close: var(--rel-family);
|
|
--net-friend: var(--info);
|
|
--net-contact: var(--text-secondary);
|
|
}
|
|
|
|
:root[data-theme='light'] .network-screen,
|
|
:root[data-theme='light'] .net-legend-sheet {
|
|
--net-family: #c2502a;
|
|
}
|
|
|
|
.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-panning,
|
|
.net-canvas.is-dragging {
|
|
cursor: grabbing;
|
|
}
|
|
|
|
/* Через этот элемент движок узнаёт итоговые цвета токенов темы. */
|
|
.net-color-probe {
|
|
position: absolute;
|
|
width: 0;
|
|
height: 0;
|
|
overflow: hidden;
|
|
visibility: hidden;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* Панель фильтров (оверлей под шапкой) */
|
|
.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;
|
|
}
|
|
|
|
.net-status {
|
|
position: absolute;
|
|
top: calc(var(--topbar-height, 64px) + var(--app-primary-tabs-top-gap, 14px) + var(--app-primary-tab-min-height, 44px) + 14px);
|
|
left: 50%;
|
|
z-index: 11;
|
|
transform: translateX(-50%);
|
|
padding: 6px 14px;
|
|
border-radius: 999px;
|
|
border: 1px solid var(--border-subtle);
|
|
background: var(--surface);
|
|
color: var(--text-secondary);
|
|
font-size: 13px;
|
|
white-space: nowrap;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.net-status[hidden] {
|
|
display: 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__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: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: flex-start;
|
|
gap: 8px;
|
|
}
|
|
|
|
.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;
|
|
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: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-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 {
|
|
margin: 4px 0 0;
|
|
}
|