sync: import server reference version
This commit is contained in:
1 parent
01e86f330b
commit
054789049f
46 files changed
+5199
-3390
No files matched your search
@@ -0,0 +1 @@
|
||||
<svg viewBox="0 0 5669.29 5669.29" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient id="fg137" x1="1189.35" y1="5684.39" x2="4479.95" y2="-15.1" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#1d71b8"/><stop offset="1" stop-color="#009fe3"/></linearGradient><linearGradient id="fg14a" x1="2583.32" y1="3977.34" x2="3684.12" y2="2070.69" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#009fe3"/><stop offset="1" stop-color="#312783"/></linearGradient><linearGradient id="fg14b" x1="1783.3" y1="3867.5" x2="2693.66" y2="2290.71" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#009fe3"/><stop offset="1" stop-color="#312783"/></linearGradient><linearGradient id="fg14c" x1="2671.48" y1="3177.09" x2="2908.46" y2="2766.62" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#009fe3"/><stop offset="1" stop-color="#312783"/></linearGradient></defs><rect width="5669.29" height="5669.29" rx="1589.68" ry="1589.68" fill="url(#fg137)"/><path fill="#fff" d="M3720.19,2839.18l-572.18,1154.71-60.86,122.81-329.71-882.38c-1.19-3.17-2.33-6.37-3.44-9.59l71.95-505.75c42.35-78.96,97.59-152.06,163.21-211.45l541.2-489.89,66.89,74.35,87.56,97.32c124.93,138.85,141.13,436.45,35.38,649.87Z"/><path fill="#fff" d="M4723.87,3339.65l-1093.38,989.71c-87.45,79.16-182.61,115.97-254.55,98.46-48.02-11.69-83.39-47.1-105.12-105.25l-26.86-71.89c.21-.42.41-.83.62-1.25l654.81-1321.45c67.88-136.98,99.36-301.15,88.64-462.25-11.04-166.03-65.93-311.7-154.54-410.19l-87.97-97.77,404.13-365.81c87.45-79.16,182.61-115.97,254.55-98.46,48.02,11.69,83.39,47.1,105.11,105.25l419.71,1123.26c65.38,174.96-28.57,457.81-205.15,617.64Z"/><path fill="url(#fg14a)" d="M3056.27,2581.67l540.98-489.68-66.89-74.35-66.89-74.34-541.42,490.09c-34.48,31.22-66.75,66.01-96.33,103.64,6.36,61.34,6.52,122.59.23,181.95l-71.95,505.75-29.64,206.77,298.85,799.81c15.18-21.15,29.35-44.82,42.17-70.68l21.77-43.93,60.86-122.81-296.9-794.57c-65.37-174.97,28.58-457.81,205.16-617.65Z"/><path fill="#fff" d="M1926.21,3394.65c-124.93-138.85-141.13-436.46-35.38-649.87l353.54-713.47-86.91-49.82-356.23,718.89c-124.39,251.03-101.72,591.81,50.64,761.15l574.59,638.64,18.48-128.96-518.73-576.56ZM3684.81,2189.31l-87.56-97.32-66.89-74.35-66.89-74.34-580.67-645.4c-36.29-40.34-75.92-60.7-118.03-60.7-6.06,0-12.17.42-18.34,1.27-73.35,10.06-148.41,79.17-200.79,184.86l-212.3,428.44,153.87,88.2c114.94,65.89,212.58,187.13,274.93,341.4,33.16,82.06,54.57,168.96,63.58,255.66,6.36,61.34,6.52,122.59.23,181.95l-71.95,505.75-29.64,206.77-105.14,733.41,109,121.15c36.29,40.34,75.92,60.7,118.03,60.7,6.06,0,12.17-.42,18.34-1.27,55.4-7.6,111.78-48.89,158.62-114.18,15.18-21.15,29.35-44.82,42.17-70.68l21.77-43.93,60.86-122.81,572.18-1154.71c105.75-213.42,89.55-511.02-35.38-649.87Z"/><path fill="url(#fg14b)" d="M1926.21,3394.65c-124.93-138.85-141.13-436.46-35.38-649.87l353.54-713.47-86.91-49.82-86.92-49.82-358.91,724.31c-67.88,136.98-99.36,301.15-88.64,462.25,11.04,166.02,65.93,311.7,154.54,410.19l628.59,698.66c3.6-15.21,6.59-31.04,8.94-47.42l11.4-79.49,18.48-128.96-518.73-576.56Z"/><path fill="#fff" d="M2624.35,2719.79l-179.41,1251.42-18.48,128.96-11.4,79.49c-2.35,16.38-5.34,32.21-8.94,47.42-22.07,93.22-66.84,162.99-124.06,190.91-18.29,8.93-37.5,13.39-57.54,13.38-28.6,0-58.89-9.09-90.56-27.24l-1040.33-596.3c-162.04-92.88-270.39-370.53-236.59-606.3l209.28-1459.87c16.74-116.76,66.46-205.86,133-238.33,18.3-8.92,37.51-13.38,57.55-13.38,28.6,0,58.88,9.09,90.56,27.24l723.11,414.48,86.92,49.82,86.91,49.82,143.38,82.18c162.05,92.88,270.39,370.53,236.6,606.3Z"/><path fill="url(#fg14c)" d="M2754,3224.73l68.32-476.56c1.39-9.67,2.6-19.4,3.63-29.19l-71.95,505.75Z"/></svg>
|
||||
|
After Width: | Height: | Size: 3.6 KiB |
@@ -0,0 +1,658 @@
|
||||
/* ИИ Пресс-секретарь — компоненты. Все значения из tokens.css. */
|
||||
|
||||
.ps-icon { display: block; flex: none; }
|
||||
|
||||
:where(.ps-btn, .ps-iconbtn, .ps-chip, .ps-seg-opt, .ps-switch, .ps-tab, .ps-card-title button):focus-visible {
|
||||
outline: 3px solid var(--focus);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
/* ---------- Logo ---------- */
|
||||
.ps-logo { display: inline-flex; align-items: center; gap: calc(var(--ps-logo-size, 40px) * 0.28); color: var(--ink); }
|
||||
.ps-logo-mark { display: block; flex: none; }
|
||||
.ps-logo-mark svg { display: block; width: 100%; height: 100%; }
|
||||
.ps-logo--mono .ps-logo-mark { color: var(--brand); }
|
||||
.ps-logo--white, .ps-logo--white .ps-logo-mark { color: #ffffff; }
|
||||
.ps-logo-word {
|
||||
display: inline-flex; align-items: center; gap: 0.32em; white-space: nowrap;
|
||||
font: 600 calc(var(--ps-logo-size, 40px) * 0.5)/1 var(--font-display); letter-spacing: -0.02em;
|
||||
}
|
||||
.ps-logo-ai {
|
||||
font-size: max(12px, 0.6em); font-weight: 700; letter-spacing: 0.04em; line-height: 1;
|
||||
padding: 0.24em 0.42em 0.2em; border-radius: 0.42em;
|
||||
background: var(--indigo-tint); color: var(--indigo);
|
||||
}
|
||||
.ps-logo--mono .ps-logo-ai { background: var(--brand-tint); color: var(--brand); }
|
||||
.ps-logo--white .ps-logo-ai { background: #ffffff; color: var(--logo-deep); }
|
||||
|
||||
/* ---------- Button ---------- */
|
||||
.ps-btn {
|
||||
--_h: var(--control-md);
|
||||
position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
|
||||
min-height: var(--_h); padding: 0 var(--space-5); border: 0; border-radius: var(--radius-pill);
|
||||
font: 500 15px/20px var(--font-text); letter-spacing: -0.005em; white-space: nowrap; text-decoration: none;
|
||||
cursor: pointer; -webkit-tap-highlight-color: transparent;
|
||||
transition: transform var(--dur-tap) var(--ease-standard), background-color var(--dur-tap) var(--ease-standard), box-shadow var(--dur-move) var(--ease-soft);
|
||||
}
|
||||
.ps-btn:active:not(:disabled) { transform: scale(0.97); }
|
||||
.ps-btn:disabled { opacity: 0.45; cursor: not-allowed; }
|
||||
.ps-btn.is-loading { opacity: 1; cursor: progress; }
|
||||
.ps-btn--sm { --_h: var(--control-sm); padding: 0 var(--space-4); font-size: 13px; gap: var(--space-1); }
|
||||
.ps-btn--sm::before { content: ""; position: absolute; inset: -4px 0; }
|
||||
.ps-btn--lg { --_h: var(--control-lg); padding: 0 var(--space-6); font-size: 17px; font-weight: 600; }
|
||||
.ps-btn--block { display: flex; width: 100%; }
|
||||
.ps-btn--primary { background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-1); }
|
||||
.ps-btn--primary:hover:not(:disabled) { background: var(--brand-pressed); box-shadow: var(--shadow-2); }
|
||||
.ps-btn--secondary { background: var(--surface-raised); color: var(--brand); box-shadow: inset 0 0 0 1px var(--border-strong); }
|
||||
.ps-btn--secondary:hover:not(:disabled) { background: var(--brand-tint); }
|
||||
.ps-btn--quiet { background: transparent; color: var(--brand); }
|
||||
.ps-btn--quiet:hover:not(:disabled) { background: var(--brand-tint); }
|
||||
.ps-btn--glass {
|
||||
background: var(--surface-glass); color: var(--ink);
|
||||
-webkit-backdrop-filter: blur(var(--blur-glass)) saturate(180%); backdrop-filter: blur(var(--blur-glass)) saturate(180%);
|
||||
box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow-1);
|
||||
}
|
||||
.ps-btn--danger { background: var(--danger-tint); color: var(--danger); }
|
||||
.ps-spinner {
|
||||
width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
|
||||
animation: ps-spin 0.8s linear infinite;
|
||||
}
|
||||
|
||||
/* ---------- Icon button ---------- */
|
||||
.ps-iconbtn {
|
||||
display: inline-grid; place-items: center; flex: none;
|
||||
width: var(--target-min); height: var(--target-min); padding: 0; border: 0; border-radius: var(--radius-pill);
|
||||
background: transparent; color: var(--ink-secondary); cursor: pointer; -webkit-tap-highlight-color: transparent;
|
||||
transition: transform var(--dur-tap) var(--ease-standard), background-color var(--dur-tap) var(--ease-standard), color var(--dur-tap) var(--ease-standard);
|
||||
}
|
||||
.ps-iconbtn:hover:not(:disabled) { background: var(--surface-sunken); color: var(--ink); }
|
||||
.ps-iconbtn:active:not(:disabled) { transform: scale(0.92); }
|
||||
.ps-iconbtn:disabled { opacity: 0.4; cursor: not-allowed; }
|
||||
.ps-iconbtn--tinted { background: var(--brand-tint); color: var(--brand); }
|
||||
.ps-iconbtn--tinted:hover:not(:disabled) { background: var(--brand-tint); color: var(--brand-pressed); }
|
||||
.ps-iconbtn--filled { background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-1); }
|
||||
.ps-iconbtn--filled:hover:not(:disabled) { background: var(--brand-pressed); color: var(--on-brand); }
|
||||
.ps-iconbtn--filled:disabled { background: var(--surface-sunken); color: var(--ink-tertiary); box-shadow: none; opacity: 1; }
|
||||
.ps-iconbtn--glass {
|
||||
background: var(--surface-glass); color: var(--ink);
|
||||
-webkit-backdrop-filter: blur(var(--blur-glass)) saturate(180%); backdrop-filter: blur(var(--blur-glass)) saturate(180%);
|
||||
box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow-1);
|
||||
}
|
||||
|
||||
/* ---------- Suggestion chip ---------- */
|
||||
.ps-chip {
|
||||
position: relative; display: inline-flex; align-items: center; gap: var(--space-2);
|
||||
min-height: var(--control-sm); padding: 0 var(--space-4); border: 0; border-radius: var(--radius-pill);
|
||||
background: var(--surface-raised); color: var(--ink); box-shadow: inset 0 0 0 1px var(--hairline);
|
||||
font: 500 15px/20px var(--font-text); cursor: pointer; white-space: nowrap;
|
||||
transition: background-color var(--dur-tap) var(--ease-standard), box-shadow var(--dur-tap) var(--ease-standard), transform var(--dur-tap) var(--ease-standard);
|
||||
}
|
||||
.ps-chip::before { content: ""; position: absolute; inset: -4px 0; }
|
||||
.ps-chip .ps-icon { color: var(--brand); }
|
||||
.ps-chip:hover { background: var(--brand-tint); }
|
||||
.ps-chip:active { transform: scale(0.96); }
|
||||
.ps-chip.is-selected { background: var(--brand-tint); color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
|
||||
.ps-chip--sm { font-size: 13px; line-height: 18px; padding: 0 var(--space-3); min-height: 32px; gap: var(--space-1); }
|
||||
.ps-chip--sm::before { inset: -6px 0; }
|
||||
|
||||
/* ---------- Text field ---------- */
|
||||
.ps-field { display: grid; gap: var(--space-2); min-width: 0; }
|
||||
.ps-field-top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-2); }
|
||||
.ps-field-label { font: 500 13px/18px var(--font-text); color: var(--ink-secondary); }
|
||||
.ps-field-count { font: 400 12px/16px var(--font-text); color: var(--ink-tertiary); font-variant-numeric: tabular-nums; }
|
||||
.ps-field-control {
|
||||
box-sizing: border-box; width: 100%; min-height: var(--control-md); padding: 11px var(--space-4); margin: 0;
|
||||
border: 0; border-radius: var(--radius-sm); background: var(--surface-raised); color: var(--ink);
|
||||
box-shadow: inset 0 0 0 1px var(--border-strong);
|
||||
font: 400 16px/22px var(--font-text); resize: vertical; outline: none;
|
||||
transition: box-shadow var(--dur-tap) var(--ease-standard);
|
||||
}
|
||||
.ps-field-control::placeholder { color: var(--ink-tertiary); }
|
||||
.ps-field-control:hover { box-shadow: inset 0 0 0 1px var(--ink-secondary); }
|
||||
.ps-field-control:focus { box-shadow: inset 0 0 0 2px var(--brand), 0 0 0 4px var(--brand-tint); }
|
||||
.ps-field-control:disabled { background: var(--surface-sunken); color: var(--ink-tertiary); box-shadow: none; }
|
||||
.ps-field.is-error .ps-field-control { box-shadow: inset 0 0 0 2px var(--danger); }
|
||||
.ps-field-hint { display: flex; gap: 6px; align-items: flex-start; margin: 0; font: 400 13px/18px var(--font-text); color: var(--ink-secondary); }
|
||||
.ps-field-hint .ps-icon { margin-top: 1px; }
|
||||
.ps-field.is-error .ps-field-hint { color: var(--danger); }
|
||||
|
||||
/* ---------- Prompt composer ---------- */
|
||||
.ps-composer {
|
||||
display: grid; gap: var(--space-1); padding: 6px; border-radius: var(--radius-xl);
|
||||
background: var(--surface-raised); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--hairline);
|
||||
transition: box-shadow var(--dur-move) var(--ease-soft);
|
||||
}
|
||||
.ps-composer:focus-within { box-shadow: var(--shadow-2), inset 0 0 0 1.5px var(--brand); }
|
||||
.ps-composer-suggest { display: flex; flex-wrap: wrap; gap: var(--space-2); padding: var(--space-2) var(--space-2) var(--space-2); }
|
||||
.ps-composer-row { display: flex; align-items: flex-end; gap: var(--space-1); }
|
||||
.ps-composer-input {
|
||||
flex: 1; min-width: 0; min-height: var(--target-min); max-height: 200px; padding: 10px var(--space-3); margin: 0;
|
||||
border: 0; background: transparent; color: var(--ink); resize: none; outline: none;
|
||||
font: 400 16px/24px var(--font-text);
|
||||
}
|
||||
.ps-composer-input::placeholder { color: var(--ink-tertiary); }
|
||||
.ps-composer-row > .ps-iconbtn--filled, .ps-composer-row > .ps-iconbtn--tinted { animation: ps-pop var(--dur-move) var(--ease-spring); }
|
||||
.ps-composer-note { margin: 0; padding: 0 12px 4px; font: 400 12px/16px var(--font-text); color: var(--ink-tertiary); text-align: center; }
|
||||
|
||||
/* ---------- Segmented control ---------- */
|
||||
.ps-seg {
|
||||
position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
|
||||
padding: 4px; border-radius: var(--radius-md); background: var(--surface-sunken); min-height: var(--control-md);
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.ps-seg-thumb {
|
||||
position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / var(--ps-seg-n));
|
||||
border-radius: var(--radius-sm); background: var(--surface-raised); box-shadow: var(--shadow-1);
|
||||
transform: translateX(calc(100% * var(--ps-seg-i)));
|
||||
transition: transform var(--dur-snappy) var(--spring-snappy);
|
||||
}
|
||||
.ps-seg-opt {
|
||||
position: relative; z-index: 1; min-height: 36px; padding: 0 var(--space-3); border: 0; border-radius: var(--radius-sm);
|
||||
background: transparent; color: var(--ink-secondary); font: 500 15px/20px var(--font-text); cursor: pointer;
|
||||
transition: color var(--dur-tap) var(--ease-standard);
|
||||
}
|
||||
.ps-seg-opt[aria-checked="true"] { color: var(--ink); font-weight: 600; }
|
||||
|
||||
/* ---------- Switch ---------- */
|
||||
.ps-switch {
|
||||
display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
|
||||
width: 100%; min-height: var(--target-min); padding: 0; border: 0; background: none; color: var(--ink);
|
||||
text-align: left; cursor: pointer; font: inherit;
|
||||
}
|
||||
.ps-switch:disabled { opacity: 0.45; cursor: not-allowed; }
|
||||
.ps-switch-text { display: grid; gap: 2px; }
|
||||
.ps-switch-label { font: 500 15px/20px var(--font-text); }
|
||||
.ps-switch-desc { font: 400 13px/18px var(--font-text); color: var(--ink-secondary); }
|
||||
.ps-switch-track {
|
||||
position: relative; flex: none; width: 51px; height: 31px; border-radius: var(--radius-pill);
|
||||
background: var(--border-strong); transition: background-color var(--dur-move) var(--ease-standard);
|
||||
}
|
||||
.ps-switch-knob {
|
||||
position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%;
|
||||
background: var(--surface-raised); box-shadow: var(--shadow-1);
|
||||
transition: transform var(--dur-bouncy) var(--spring-bouncy), width var(--dur-snappy) var(--spring-snappy);
|
||||
}
|
||||
.ps-switch[aria-checked="true"] .ps-switch-track { background: var(--brand); }
|
||||
.ps-switch[aria-checked="true"] .ps-switch-knob { transform: translateX(20px); }
|
||||
.ps-switch:active .ps-switch-knob { width: 31px; }
|
||||
.ps-switch[aria-checked="true"]:active .ps-switch-knob { transform: translateX(16px); }
|
||||
|
||||
/* ---------- Message ---------- */
|
||||
.ps-msg { display: flex; gap: var(--space-3); align-items: flex-start; max-width: 640px; animation: ps-rise var(--dur-smooth) var(--spring-smooth); }
|
||||
.ps-msg--user { flex-direction: row-reverse; margin-left: auto; }
|
||||
.ps-msg-avatar { flex: none; margin-top: 2px; }
|
||||
.ps-msg-body { display: grid; gap: var(--space-2); min-width: 0; }
|
||||
.ps-msg--user .ps-msg-body { justify-items: end; }
|
||||
.ps-msg-meta { display: flex; align-items: center; gap: 6px; font: 500 13px/18px var(--font-text); color: var(--ink-secondary); }
|
||||
.ps-msg-author { color: var(--ink); font-weight: 600; }
|
||||
.ps-msg-meta time { font-size: 12px; color: var(--ink-tertiary); }
|
||||
.ps-ai-tag {
|
||||
padding: 1px 8px; border-radius: 6px; background: var(--indigo-tint); color: var(--indigo);
|
||||
font: 700 12px/16px var(--font-display); letter-spacing: 0.04em;
|
||||
}
|
||||
.ps-msg-bubble {
|
||||
padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg);
|
||||
font: 400 16px/24px var(--font-text); color: var(--ink); overflow-wrap: anywhere;
|
||||
}
|
||||
.ps-msg--ai .ps-msg-bubble { background: var(--surface-raised); border-top-left-radius: 6px; box-shadow: var(--shadow-1), inset 0 0 0 1px var(--hairline); }
|
||||
.ps-msg--user .ps-msg-bubble { background: var(--brand-tint); border-top-right-radius: 6px; }
|
||||
.ps-msg-bubble > p { margin: 0; }
|
||||
.ps-msg-bubble > p + p { margin-top: var(--space-3); }
|
||||
.ps-msg-actions { display: flex; flex-wrap: wrap; gap: 2px; margin-left: -6px; }
|
||||
.ps-caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; border-radius: 1px; background: var(--brand); animation: ps-blink 1s steps(2, start) infinite; }
|
||||
|
||||
/* ---------- Thinking — «Веер» ---------- */
|
||||
.ps-thinking {
|
||||
display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: var(--radius-pill);
|
||||
background: var(--indigo-tint); color: var(--indigo); font: 500 15px/20px var(--font-text);
|
||||
}
|
||||
.ps-fan { position: relative; display: block; width: 30px; height: 26px; flex: none; }
|
||||
.ps-fan i {
|
||||
position: absolute; left: 10.5px; top: 4px; width: 9px; height: 17px; border-radius: 3px 4px 3px 4px;
|
||||
transform: rotate(calc(var(--r) * 0.3));
|
||||
background: currentColor; transform-origin: 50% 100%;
|
||||
animation: ps-fan var(--dur-think) var(--ease-soft) infinite;
|
||||
}
|
||||
.ps-fan i:nth-child(1) { --r: -36deg; opacity: 0.45; }
|
||||
.ps-fan i:nth-child(2) { --r: 0deg; opacity: 0.7; animation-delay: 80ms; }
|
||||
.ps-fan i:nth-child(3) { --r: 36deg; animation-delay: 160ms; }
|
||||
|
||||
/* ---------- Status badge ---------- */
|
||||
.ps-badge {
|
||||
display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px 0 6px; border-radius: var(--radius-xs);
|
||||
font: 500 13px/18px var(--font-text); white-space: nowrap;
|
||||
}
|
||||
.ps-badge--neutral { background: var(--surface-sunken); color: var(--ink-secondary); }
|
||||
.ps-badge--ai { background: var(--indigo-tint); color: var(--indigo); }
|
||||
.ps-badge--warning { background: var(--warning-tint); color: var(--warning); }
|
||||
.ps-badge--success { background: var(--success-tint); color: var(--success); }
|
||||
.ps-badge--danger { background: var(--danger-tint); color: var(--danger); }
|
||||
|
||||
/* ---------- Draft card ---------- */
|
||||
.ps-card {
|
||||
position: relative; display: grid; gap: var(--space-3); padding: var(--space-5); min-width: 0;
|
||||
border-radius: var(--radius-lg); background: var(--surface-raised);
|
||||
box-shadow: var(--shadow-1), inset 0 0 0 1px var(--hairline);
|
||||
transition: transform var(--dur-move) var(--ease-soft), box-shadow var(--dur-move) var(--ease-soft);
|
||||
}
|
||||
.ps-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--hairline); }
|
||||
.ps-card:active { transform: scale(0.99); }
|
||||
.ps-card:has(.ps-card-title button:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
|
||||
.ps-card-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
|
||||
.ps-card-channels { font: 500 12px/16px var(--font-text); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-tertiary); }
|
||||
.ps-card-title { margin: 0; font: 600 20px/26px var(--font-display); letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
|
||||
.ps-card-title button { all: unset; cursor: pointer; }
|
||||
.ps-card-title button::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
|
||||
.ps-card-title button:focus-visible { outline: none; }
|
||||
.ps-card-excerpt {
|
||||
margin: 0; font: 400 15px/22px var(--font-text); color: var(--ink-secondary);
|
||||
display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
|
||||
}
|
||||
.ps-card-foot { display: flex; align-items: center; gap: var(--space-3); font: 500 13px/18px var(--font-text); color: var(--ink-tertiary); }
|
||||
.ps-card-len { font-family: var(--font-text); font-weight: 400; font-variant-numeric: tabular-nums; }
|
||||
.ps-card-chev { margin-left: auto; color: var(--ink-tertiary); transition: transform var(--dur-move) var(--ease-soft); }
|
||||
.ps-card:hover .ps-card-chev { transform: translateX(3px); color: var(--brand); }
|
||||
|
||||
/* ---------- Toast ---------- */
|
||||
.ps-toast {
|
||||
display: flex; align-items: flex-start; gap: var(--space-3); max-width: 420px; padding: var(--space-3) var(--space-2) var(--space-3) var(--space-3);
|
||||
border-radius: var(--radius-lg); background: var(--surface-glass); color: var(--ink);
|
||||
-webkit-backdrop-filter: blur(var(--blur-glass)) saturate(180%); backdrop-filter: blur(var(--blur-glass)) saturate(180%);
|
||||
box-shadow: var(--shadow-float), inset 0 0 0 1px var(--hairline);
|
||||
animation: ps-rise var(--dur-smooth) var(--spring-smooth);
|
||||
}
|
||||
.ps-toast-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; }
|
||||
.ps-toast--info .ps-toast-icon { background: var(--brand-tint); color: var(--brand); }
|
||||
.ps-toast--success .ps-toast-icon { background: var(--success-tint); color: var(--success); }
|
||||
.ps-toast--warning .ps-toast-icon { background: var(--warning-tint); color: var(--warning); }
|
||||
.ps-toast--danger .ps-toast-icon { background: var(--danger-tint); color: var(--danger); }
|
||||
.ps-toast--ai .ps-toast-icon { background: var(--indigo-tint); color: var(--indigo); }
|
||||
.ps-toast-text { flex: 1; min-width: 0; display: grid; gap: 2px; padding-top: 5px; }
|
||||
.ps-toast-title { margin: 0; font: 600 15px/20px var(--font-text); }
|
||||
.ps-toast-body { margin: 0; font: 400 15px/22px var(--font-text); color: var(--ink-secondary); }
|
||||
.ps-toast-action { justify-self: start; margin: 4px 0 0 -12px; }
|
||||
.ps-toast > .ps-iconbtn { margin-top: -6px; }
|
||||
|
||||
/* ---------- Tab bar ---------- */
|
||||
.ps-tabbar {
|
||||
display: inline-flex; gap: 2px; padding: 6px; border-radius: var(--radius-xl);
|
||||
background: var(--surface-glass);
|
||||
-webkit-backdrop-filter: blur(var(--blur-glass)) saturate(180%); backdrop-filter: blur(var(--blur-glass)) saturate(180%);
|
||||
box-shadow: var(--shadow-float), inset 0 0 0 1px var(--hairline);
|
||||
}
|
||||
.ps-tab {
|
||||
display: grid; justify-items: center; gap: 2px; min-width: 72px; min-height: 52px; padding: 6px 10px 4px;
|
||||
border: 0; border-radius: var(--radius-lg); background: transparent; color: var(--ink-tertiary); cursor: pointer;
|
||||
transition: background-color var(--dur-move) var(--ease-soft), color var(--dur-tap) var(--ease-standard), transform var(--dur-tap) var(--ease-standard);
|
||||
}
|
||||
.ps-tab:hover { color: var(--ink-secondary); }
|
||||
.ps-tab:active { transform: scale(0.94); }
|
||||
.ps-tab.is-active { background: var(--brand-tint); color: var(--brand); }
|
||||
.ps-tab-icon { position: relative; }
|
||||
.ps-tab-label { font: 600 12px/16px var(--font-text); }
|
||||
.ps-tab-badge {
|
||||
position: absolute; top: -4px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box;
|
||||
border-radius: var(--radius-pill); background: var(--brand); color: var(--on-brand);
|
||||
font: 700 12px/18px var(--font-text); text-align: center; box-shadow: 0 0 0 2px var(--surface-raised);
|
||||
}
|
||||
|
||||
.ps-badge--brand { background: var(--brand-tint); color: var(--brand); }
|
||||
.ps-spinner--sm { width: 12px; height: 12px; border-width: 2px; }
|
||||
.ps-card-img { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
|
||||
|
||||
/* ---------- Side navigation ---------- */
|
||||
.ps-sidenav {
|
||||
box-sizing: border-box; display: flex; flex-direction: column; gap: var(--space-4); width: 264px; min-height: 100%; flex: none;
|
||||
padding: var(--space-5) var(--space-3); background: var(--surface-raised); box-shadow: inset -1px 0 0 var(--hairline);
|
||||
}
|
||||
.ps-sidenav-logo { padding: 0 var(--space-3) var(--space-2); }
|
||||
.ps-sidenav-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
|
||||
.ps-sidenav-item {
|
||||
display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: var(--target-min); padding: 0 var(--space-3);
|
||||
border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink-secondary);
|
||||
font: 500 15px/20px var(--font-text); text-align: left; cursor: pointer;
|
||||
transition: background-color var(--dur-tap) var(--ease-standard), color var(--dur-tap) var(--ease-standard);
|
||||
}
|
||||
.ps-sidenav-item:hover { background: var(--surface-sunken); color: var(--ink); }
|
||||
.ps-sidenav-item.is-active { background: var(--brand-tint); color: var(--brand); font-weight: 600; }
|
||||
.ps-sidenav-item:focus-visible, .ps-sidenav-persona:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
|
||||
.ps-sidenav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: var(--radius-pill); background: var(--brand); color: var(--on-brand); font: 600 12px/20px var(--font-text); text-align: center; }
|
||||
.ps-sidenav-persona {
|
||||
margin-top: auto; display: flex; align-items: center; gap: var(--space-3); width: 100%; padding: var(--space-3);
|
||||
border: 0; border-radius: var(--radius-md); background: var(--surface-sunken); color: var(--ink); text-align: left; cursor: pointer; font: inherit;
|
||||
}
|
||||
.ps-sidenav-persona-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: var(--radius-sm); background: var(--indigo-tint); color: var(--indigo); }
|
||||
.ps-sidenav-persona-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
|
||||
.ps-sidenav-persona-cap { font: 500 12px/16px var(--font-text); color: var(--ink-tertiary); }
|
||||
.ps-sidenav-persona-name { font: 600 15px/20px var(--font-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
|
||||
/* ---------- Stat card ---------- */
|
||||
.ps-stat {
|
||||
display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: var(--space-3); row-gap: var(--space-2);
|
||||
padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface-raised);
|
||||
box-shadow: var(--shadow-1), inset 0 0 0 1px var(--hairline); min-width: 0;
|
||||
}
|
||||
.ps-stat-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--brand-tint); color: var(--brand); }
|
||||
.ps-stat-label { font: 500 13px/18px var(--font-text); color: var(--ink-secondary); }
|
||||
.ps-stat-value { grid-column: 1 / -1; font: 700 34px/40px var(--font-display); letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
|
||||
.ps-stat-note { grid-column: 1 / -1; font: 400 13px/18px var(--font-text); color: var(--ink-tertiary); }
|
||||
|
||||
/* ---------- Choice cards ---------- */
|
||||
.ps-choices { display: grid; gap: 8px; min-width: 0; }
|
||||
.ps-choices-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: var(--space-3); }
|
||||
.ps-choices-grid.is-compact { grid-template-columns: repeat(auto-fit, minmax(min(100%, 136px), 1fr)); gap: var(--space-2); }
|
||||
.ps-choice {
|
||||
container-type: inline-size; display: block; min-width: 0; min-height: var(--target-min); padding: var(--inset-card); border: 0;
|
||||
border-radius: var(--radius-lg); background: var(--surface-raised); color: var(--ink); text-align: left; cursor: pointer; font: inherit;
|
||||
box-shadow: inset 0 0 0 1px var(--hairline);
|
||||
transition: box-shadow var(--dur-tap) var(--ease-standard), background-color var(--dur-tap) var(--ease-standard), transform var(--dur-tap) var(--ease-standard);
|
||||
}
|
||||
.ps-choice:hover { box-shadow: inset 0 0 0 1px var(--border-strong); }
|
||||
.ps-choice:active { transform: scale(0.98); }
|
||||
.ps-choice:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
|
||||
.ps-choice.is-selected { background: var(--brand-tint); box-shadow: inset 0 0 0 2px var(--brand); }
|
||||
.ps-choice:disabled { opacity: 0.45; cursor: not-allowed; }
|
||||
/* Иконка, текст и галочка — три колонки сетки. Ничего не лежит поверх текста. */
|
||||
.ps-choice-body {
|
||||
display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "icon text check";
|
||||
align-items: start; column-gap: var(--gap-row); row-gap: var(--space-3);
|
||||
}
|
||||
.ps-choice-body.no-icon { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "text check"; }
|
||||
.ps-choice-icon { grid-area: icon; display: grid; place-items: center; width: var(--tile-md); height: var(--tile-md); border-radius: var(--radius-sm); background: var(--surface-sunken); color: var(--ink-secondary); }
|
||||
.ps-choice.is-selected .ps-choice-icon { background: var(--surface-raised); color: var(--brand); }
|
||||
.ps-choice-text { grid-area: text; display: grid; gap: 2px; min-width: 0; align-self: center; }
|
||||
.ps-choice-kicker { font: 600 12px/16px var(--font-text); letter-spacing: 0.04em; text-transform: uppercase; color: var(--indigo); }
|
||||
.ps-choice-title { font: 600 15px/20px var(--font-text); color: var(--ink); overflow-wrap: break-word; hyphens: manual; }
|
||||
.ps-choice-desc { font: 400 13px/18px var(--font-text); color: var(--ink-secondary); }
|
||||
.ps-choice-check {
|
||||
grid-area: check; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
|
||||
box-shadow: inset 0 0 0 1.5px var(--border-strong); color: transparent;
|
||||
transition: background-color var(--dur-move) var(--ease-spring), transform var(--dur-move) var(--ease-spring);
|
||||
}
|
||||
.ps-choice.is-selected .ps-choice-check { background: var(--brand); color: var(--on-brand); box-shadow: none; }
|
||||
/* Узкая карточка: иконка и галочка — верхний ряд, текст — на всю ширину ниже. */
|
||||
@container (max-width: 210px) {
|
||||
.ps-choice-body { grid-template-columns: auto 1fr auto; grid-template-areas: "icon . check" "text text text"; }
|
||||
.ps-choice-body.no-icon { grid-template-columns: 1fr auto; grid-template-areas: "text check"; }
|
||||
.ps-choice-text { align-self: start; }
|
||||
}
|
||||
.ps-choices-grid.is-compact .ps-choice { padding: var(--inset-control); }
|
||||
.ps-choices-grid.is-compact .ps-choice-body { align-items: center; column-gap: var(--gap-icon); }
|
||||
.ps-choices-grid.is-compact .ps-choice-icon { width: var(--tile-sm); height: var(--tile-sm); }
|
||||
.ps-choices-grid.is-compact .ps-choice-desc { font-size: 12px; line-height: 16px; }
|
||||
.ps-choices-grid.is-compact .ps-choice-check { width: 18px; height: 18px; }
|
||||
.ps-choices-grid.is-compact .ps-choice-check .ps-icon { width: 12px; height: 12px; }
|
||||
.ps-choices-grid.is-compact .ps-choice.is-selected .ps-choice-title { font-weight: 700; }
|
||||
/* Компактная карточка уже 160px: индикатор не помещается рядом с текстом — выбор показывают рамка 2px и жирный заголовок. */
|
||||
@container (max-width: 159px) {
|
||||
.ps-choices-grid.is-compact .ps-choice-check { display: none; }
|
||||
.ps-choices-grid.is-compact .ps-choice-body.no-icon { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text"; }
|
||||
}
|
||||
|
||||
/* ---------- Pillar ---------- */
|
||||
.ps-pillar {
|
||||
display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: var(--radius-xs);
|
||||
font: 500 13px/18px var(--font-text); white-space: nowrap;
|
||||
}
|
||||
.ps-pillar-mark { width: 8px; height: 8px; background: currentColor; flex: none; }
|
||||
.ps-pillar--1 { background: var(--pillar-1-tint); color: var(--pillar-1); }
|
||||
.ps-pillar--1 .ps-pillar-mark { border-radius: 50%; }
|
||||
.ps-pillar--2 { background: var(--pillar-2-tint); color: var(--pillar-2); }
|
||||
.ps-pillar--2 .ps-pillar-mark { border-radius: 2px; }
|
||||
.ps-pillar--3 { background: var(--pillar-3-tint); color: var(--pillar-3); }
|
||||
.ps-pillar--3 .ps-pillar-mark { width: 7px; height: 7px; border-radius: 1px; transform: rotate(45deg); }
|
||||
|
||||
/* ---------- Post preview ---------- */
|
||||
.ps-post {
|
||||
display: grid; gap: var(--space-4); padding: var(--space-5); border-radius: var(--radius-xl); background: var(--surface-raised);
|
||||
box-shadow: var(--shadow-1), inset 0 0 0 1px var(--hairline); min-width: 0;
|
||||
}
|
||||
.ps-post-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
|
||||
.ps-post-head > .ps-btn, .ps-post-head > .ps-iconbtn { margin-left: auto; }
|
||||
.ps-post-platform { display: inline-flex; align-items: center; gap: 6px; font: 600 15px/20px var(--font-text); color: var(--ink); }
|
||||
.ps-post-platform .ps-icon { color: var(--brand); }
|
||||
.ps-post-tag { padding: 2px 8px; border-radius: var(--radius-xs); background: var(--surface-sunken); font: 500 13px/18px var(--font-text); color: var(--ink-secondary); }
|
||||
.ps-post-image { overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 16 / 9; max-width: 100%; }
|
||||
.ps-post-image > * { width: 100%; height: 100%; }
|
||||
.ps-post-text { font: 400 16px/25px var(--font-text); color: var(--ink); overflow-wrap: anywhere; }
|
||||
.ps-post-text p { margin: 0; white-space: pre-line; }
|
||||
.ps-post-text p + p { margin-top: 12px; }
|
||||
.ps-post-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); padding-top: var(--space-3); box-shadow: inset 0 1px 0 var(--hairline); }
|
||||
.ps-post-count { font: 500 13px/18px var(--font-text); color: var(--ink-tertiary); font-variant-numeric: tabular-nums; }
|
||||
.ps-post-count.is-over { color: var(--danger); }
|
||||
.ps-post-note { display: inline-flex; align-items: center; gap: 6px; font: 400 13px/18px var(--font-text); color: var(--ink-secondary); }
|
||||
.ps-post-note.is-danger { color: var(--danger); }
|
||||
.ps-post-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-left: auto; }
|
||||
|
||||
/* ---------- Version history ---------- */
|
||||
.ps-history { list-style: none; margin: 0; padding: 0; display: grid; }
|
||||
.ps-history-item { position: relative; display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: var(--space-3); min-height: 52px; }
|
||||
.ps-history-item::before { content: ""; position: absolute; left: 9px; top: 0; bottom: 0; width: 2px; background: var(--hairline); }
|
||||
.ps-history-item:first-child::before { top: 50%; }
|
||||
.ps-history-item:last-child::before { bottom: 50%; }
|
||||
.ps-history-item:only-child::before { display: none; }
|
||||
.ps-history-dot { position: relative; width: 12px; height: 12px; margin-left: 4px; border-radius: 50%; background: var(--surface-raised); box-shadow: inset 0 0 0 2px var(--border-strong); }
|
||||
.ps-history-item.is-active .ps-history-dot { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
|
||||
.ps-history-text { display: grid; gap: 2px; min-width: 0; }
|
||||
.ps-history-title { font: 500 15px/20px var(--font-text); color: var(--ink); }
|
||||
.ps-history-meta { font: 400 12px/16px var(--font-text); color: var(--ink-tertiary); font-variant-numeric: tabular-nums; }
|
||||
.ps-history-current { font: 600 13px/18px var(--font-text); color: var(--brand); padding: 0 var(--space-3); }
|
||||
|
||||
/* ---------- Plan day ---------- */
|
||||
.ps-planday {
|
||||
display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: var(--space-4);
|
||||
padding: var(--space-3) var(--space-4) var(--space-3) var(--space-3); border-radius: var(--radius-lg); background: var(--surface-raised);
|
||||
box-shadow: inset 0 0 0 1px var(--hairline);
|
||||
}
|
||||
.ps-planday-date { display: grid; justify-items: center; padding: 6px 0; border-radius: var(--radius-md); background: var(--surface-sunken); }
|
||||
.ps-planday-num { font: 700 22px/26px var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
|
||||
.ps-planday-wd { font: 500 12px/16px var(--font-text); color: var(--ink-tertiary); }
|
||||
.ps-planday-body { display: grid; gap: var(--space-2); min-width: 0; }
|
||||
.ps-planday-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
|
||||
.ps-planday-platform { display: inline-flex; align-items: center; gap: 4px; font: 500 13px/18px var(--font-text); color: var(--ink-secondary); }
|
||||
.ps-planday-idea { margin: 0; font: 400 15px/22px var(--font-text); color: var(--ink); }
|
||||
.ps-planday.is-done .ps-planday-date { background: var(--success-tint); }
|
||||
@media (max-width: 560px) {
|
||||
.ps-planday { grid-template-columns: 48px 1fr; }
|
||||
.ps-planday-action { grid-column: 2; }
|
||||
}
|
||||
|
||||
/* ---------- Image presets ---------- */
|
||||
.ps-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: var(--space-3); }
|
||||
.ps-preset {
|
||||
display: grid; gap: 6px; padding: 6px 6px 10px; border: 0; border-radius: var(--radius-md); background: var(--surface-raised);
|
||||
box-shadow: inset 0 0 0 1px var(--hairline); color: var(--ink); cursor: pointer; font: inherit;
|
||||
transition: box-shadow var(--dur-tap) var(--ease-standard), transform var(--dur-tap) var(--ease-standard);
|
||||
}
|
||||
.ps-preset:hover { box-shadow: inset 0 0 0 1px var(--border-strong); }
|
||||
.ps-preset:active { transform: scale(0.97); }
|
||||
.ps-preset:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
|
||||
.ps-preset.is-selected { background: var(--brand-tint); box-shadow: inset 0 0 0 2px var(--brand); }
|
||||
.ps-preset-art { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-sm); }
|
||||
.ps-preset-art svg { display: block; width: 100%; height: 100%; }
|
||||
.ps-preset-art .t { fill: var(--brand-tint); }
|
||||
.ps-preset-art .b { fill: var(--logo-deep); }
|
||||
.ps-preset-art .a { fill: var(--brand-bright); }
|
||||
.ps-preset-art .c { fill: var(--ink-tertiary); }
|
||||
.ps-preset-art .s { fill: var(--surface-raised); }
|
||||
.ps-preset.is-selected .ps-preset-art .t { fill: var(--surface-raised); }
|
||||
.ps-preset-label { font: 500 13px/18px var(--font-text); text-align: center; }
|
||||
|
||||
/* ---------- Drop zone ---------- */
|
||||
.ps-drop {
|
||||
position: relative; display: grid; justify-items: center; gap: var(--space-2); padding: var(--space-6) var(--space-4); text-align: center;
|
||||
border-radius: var(--radius-lg); background: var(--surface-sunken); box-shadow: inset 0 0 0 1.5px var(--border-strong);
|
||||
cursor: pointer; transition: background-color var(--dur-tap) var(--ease-standard), box-shadow var(--dur-tap) var(--ease-standard);
|
||||
}
|
||||
.ps-drop:hover, .ps-drop.is-over { background: var(--brand-tint); box-shadow: inset 0 0 0 2px var(--brand); }
|
||||
.ps-drop:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
|
||||
.ps-drop-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
|
||||
.ps-drop-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface-raised); color: var(--brand); box-shadow: var(--shadow-1); }
|
||||
.ps-drop-title { font: 600 15px/20px var(--font-text); color: var(--ink); }
|
||||
.ps-drop-hint { font: 400 13px/18px var(--font-text); color: var(--ink-secondary); }
|
||||
|
||||
/* ---------- Channel ---------- */
|
||||
.ps-channel { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg); background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--hairline); }
|
||||
.ps-channel-avatar { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--brand-tint); color: var(--brand); font: 700 17px/1 var(--font-display); }
|
||||
.ps-channel-text { flex: 1; min-width: 140px; display: grid; gap: 2px; }
|
||||
.ps-channel-title { font: 600 15px/20px var(--font-text); color: var(--ink); }
|
||||
.ps-channel-meta { font: 400 13px/18px var(--font-text); color: var(--ink-secondary); }
|
||||
.ps-channel-actions { display: flex; align-items: center; gap: var(--space-1); }
|
||||
|
||||
/* ---------- Progress & stepper ---------- */
|
||||
.ps-progress { display: grid; gap: var(--space-2); }
|
||||
.ps-progress-label { display: flex; justify-content: space-between; font: 500 13px/18px var(--font-text); color: var(--ink-secondary); }
|
||||
.ps-progress-value { font-variant-numeric: tabular-nums; color: var(--ink); }
|
||||
.ps-progress-track { height: 8px; border-radius: var(--radius-pill); background: var(--surface-sunken); overflow: hidden; }
|
||||
.ps-progress-fill { display: block; height: 100%; border-radius: inherit; background: var(--brand); transition: width var(--dur-sheet) var(--ease-soft); }
|
||||
.ps-stepper { display: grid; gap: var(--space-3); }
|
||||
.ps-stepper-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-3); }
|
||||
.ps-stepper-count { font: 600 13px/18px var(--font-text); color: var(--brand); font-variant-numeric: tabular-nums; }
|
||||
.ps-stepper-title { font: 600 22px/28px var(--font-display); color: var(--ink); }
|
||||
.ps-stepper-track { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
|
||||
.ps-stepper-seg { height: 6px; border-radius: var(--radius-pill); background: var(--surface-sunken); transition: background-color var(--dur-move) var(--ease-standard); }
|
||||
.ps-stepper-seg.is-done { background: var(--brand); }
|
||||
.ps-stepper-seg.is-current { background: var(--brand-bright); }
|
||||
|
||||
/* ---------- Persona card ---------- */
|
||||
.ps-persona {
|
||||
display: grid; gap: var(--space-3); padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface-raised);
|
||||
box-shadow: var(--shadow-1), inset 0 0 0 1px var(--hairline); min-width: 0; align-content: start;
|
||||
}
|
||||
.ps-persona.is-active { box-shadow: var(--shadow-2), inset 0 0 0 2px var(--brand); }
|
||||
.ps-persona-top { display: flex; align-items: center; gap: var(--space-3); }
|
||||
.ps-persona-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: var(--radius-sm); background: var(--indigo-tint); color: var(--indigo); }
|
||||
.ps-persona-type { flex: 1; font: 500 13px/18px var(--font-text); color: var(--ink-secondary); }
|
||||
.ps-persona-name { margin: 0; font: 600 20px/26px var(--font-display); color: var(--ink); }
|
||||
.ps-persona-sum { margin: 0; font: 400 15px/22px var(--font-text); color: var(--ink-secondary); }
|
||||
.ps-persona-actions { display: flex; flex-wrap: wrap; gap: var(--space-1); }
|
||||
|
||||
/* ---------- Select, secret, slider ---------- */
|
||||
.ps-select { position: relative; }
|
||||
.ps-select-control { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; resize: none; }
|
||||
.ps-select-chev { position: absolute; right: 12px; top: 50%; margin-top: -9px; color: var(--ink-secondary); pointer-events: none; }
|
||||
.ps-secret { position: relative; }
|
||||
.ps-secret-control { padding-right: 52px; letter-spacing: 0.02em; }
|
||||
.ps-secret > .ps-iconbtn { position: absolute; right: 0; top: 0; }
|
||||
.ps-slider-value { font: 600 15px/20px var(--font-text); color: var(--brand); font-variant-numeric: tabular-nums; }
|
||||
.ps-slider { -webkit-appearance: none; appearance: none; width: 100%; height: var(--target-min); margin: 0; background: transparent; cursor: pointer; }
|
||||
.ps-slider::-webkit-slider-runnable-track { height: 6px; border-radius: var(--radius-pill); background: linear-gradient(to right, var(--brand) var(--ps-pct), var(--surface-sunken) var(--ps-pct)); }
|
||||
.ps-slider::-moz-range-track { height: 6px; border-radius: var(--radius-pill); background: linear-gradient(to right, var(--brand) var(--ps-pct), var(--surface-sunken) var(--ps-pct)); }
|
||||
.ps-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: var(--surface-raised); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--hairline); transition: transform var(--dur-tap) var(--ease-spring); }
|
||||
.ps-slider::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--surface-raised); box-shadow: var(--shadow-2); }
|
||||
.ps-slider:active::-webkit-slider-thumb { transform: scale(1.12); }
|
||||
.ps-slider:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }
|
||||
.ps-slider-scale { display: flex; justify-content: space-between; font: 400 12px/16px var(--font-text); color: var(--ink-tertiary); margin-top: -6px; }
|
||||
|
||||
/* ---------- Empty state ---------- */
|
||||
.ps-empty { display: grid; justify-items: center; gap: var(--space-3); padding: var(--space-8) var(--space-4); text-align: center; }
|
||||
.ps-empty-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: var(--radius-lg); background: var(--brand-tint); color: var(--brand); }
|
||||
.ps-empty-title { margin: 0; font: 600 20px/26px var(--font-display); color: var(--ink); }
|
||||
.ps-empty-text { margin: 0; max-width: 40ch; font: 400 15px/22px var(--font-text); color: var(--ink-secondary); }
|
||||
|
||||
/* ---------- Provider card ---------- */
|
||||
.ps-provider { display: grid; gap: var(--space-4); padding: var(--space-5); border-radius: var(--radius-xl); background: var(--surface-raised); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--hairline); }
|
||||
.ps-provider-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-3); }
|
||||
.ps-provider-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: var(--radius-sm); background: var(--brand-tint); color: var(--brand); }
|
||||
.ps-provider-text { flex: 1; display: grid; gap: 2px; min-width: 160px; }
|
||||
.ps-provider-title { margin: 0; font: 600 20px/26px var(--font-display); color: var(--ink); }
|
||||
.ps-provider-desc { font: 400 13px/18px var(--font-text); color: var(--ink-secondary); }
|
||||
.ps-provider-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-4); }
|
||||
|
||||
/* ---------- Экраны-образцы ---------- */
|
||||
.ps-shell { display: flex; min-height: 100%; background: var(--surface); }
|
||||
.ps-main { flex: 1; min-width: 0; overflow-y: auto; display: grid; align-content: start; gap: var(--stack-section); padding: var(--page-gutter); }
|
||||
.ps-main-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4); }
|
||||
.ps-h1 { margin: 0; font: 700 34px/40px var(--font-display); letter-spacing: -0.015em; color: var(--ink); text-wrap: balance; }
|
||||
.ps-h2 { margin: 0; font: 600 22px/28px var(--font-display); color: var(--ink); }
|
||||
.ps-lead { margin: var(--stack-text) 0 0; font: 400 15px/22px var(--font-text); color: var(--ink-secondary); }
|
||||
.ps-panel { display: grid; gap: var(--stack-group); padding: var(--inset-panel); border-radius: var(--radius-xl); background: var(--surface-raised); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--hairline); align-content: start; min-width: 0; }
|
||||
|
||||
/* ---------- Quick action tile ---------- */
|
||||
.ps-action {
|
||||
display: grid; justify-items: start; align-content: start; gap: 4px; min-width: 0; padding: var(--inset-card);
|
||||
border: 0; border-radius: var(--radius-lg); background: var(--surface-raised); color: var(--ink); text-align: left; cursor: pointer; font: inherit;
|
||||
box-shadow: inset 0 0 0 1px var(--hairline);
|
||||
transition: box-shadow var(--dur-tap) var(--ease-standard), transform var(--dur-tap) var(--ease-standard);
|
||||
}
|
||||
.ps-action:hover { box-shadow: inset 0 0 0 1px var(--border-strong), var(--shadow-1); }
|
||||
.ps-action:active { transform: scale(0.98); }
|
||||
.ps-action:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
|
||||
.ps-action-icon { display: grid; place-items: center; width: var(--tile-md); height: var(--tile-md); margin-bottom: var(--space-2); border-radius: var(--radius-sm); background: var(--brand-tint); color: var(--brand); }
|
||||
.ps-action-title { font: 600 15px/20px var(--font-text); }
|
||||
.ps-action-desc { font: 400 13px/18px var(--font-text); color: var(--ink-secondary); }
|
||||
|
||||
/* ---------- Адаптивные сетки экранов ---------- */
|
||||
.ps-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--space-6); align-items: stretch; }
|
||||
.ps-grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: var(--stack-group); }
|
||||
.ps-grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: var(--stack-group); }
|
||||
.ps-grid-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: var(--space-3); }
|
||||
.ps-split { display: grid; grid-template-columns: minmax(0, 1fr) var(--ps-aside, 320px); gap: var(--space-6); align-items: start; }
|
||||
.ps-split.ps-split--start { grid-template-columns: var(--ps-aside, 320px) minmax(0, 1fr); }
|
||||
@media (max-width: 1023px) {
|
||||
.ps-sidenav { width: 76px; padding-inline: var(--space-3); }
|
||||
.ps-sidenav-logo .ps-logo-word, .ps-sidenav-persona-text, .ps-sidenav-persona > .ps-icon { display: none; }
|
||||
.ps-sidenav-logo { padding: 0 6px var(--space-2); }
|
||||
.ps-sidenav-item { justify-content: center; padding: 0; }
|
||||
.ps-sidenav-item > span:not(.ps-sidenav-badge) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
||||
.ps-sidenav-persona { justify-content: center; padding: var(--space-2); }
|
||||
.ps-main { padding: var(--space-6); }
|
||||
}
|
||||
@media (max-width: 899px) {
|
||||
.ps-split, .ps-split.ps-split--start { grid-template-columns: minmax(0, 1fr); }
|
||||
}
|
||||
@media (max-width: 599px) {
|
||||
.ps-sidenav { display: none; }
|
||||
.ps-main { padding: var(--space-4); gap: var(--space-6); }
|
||||
.ps-h1 { font-size: 28px; line-height: 34px; }
|
||||
}
|
||||
|
||||
/* ---------- Отклик на нажатие ----------
|
||||
Состояние меняется в первый кадр. Вниз — за 90 мс, обратно — пружиной spring-bouncy.
|
||||
Анимации — переходы (transition), а не ключевые кадры: любое движение можно прервать новым нажатием. */
|
||||
.ps-btn, .ps-iconbtn, .ps-chip, .ps-tab, .ps-choice, .ps-preset, .ps-action, .ps-sidenav-item, .ps-card, .ps-drop {
|
||||
transition-property: transform, background-color, box-shadow, color, opacity;
|
||||
transition-duration: var(--dur-bouncy), var(--dur-tap), var(--dur-smooth), var(--dur-tap), var(--dur-tap);
|
||||
transition-timing-function: var(--spring-bouncy), var(--ease-standard), var(--spring-smooth), var(--ease-standard), var(--ease-standard);
|
||||
}
|
||||
.ps-btn:active, .ps-iconbtn:active, .ps-chip:active, .ps-tab:active, .ps-choice:active, .ps-preset:active, .ps-action:active, .ps-sidenav-item:active, .ps-card:active {
|
||||
transition-duration: 90ms, var(--dur-tap), var(--dur-smooth), var(--dur-tap), var(--dur-tap);
|
||||
transition-timing-function: cubic-bezier(0.2, 0, 0, 1), var(--ease-standard), var(--spring-smooth), var(--ease-standard), var(--ease-standard);
|
||||
}
|
||||
.ps-sidenav-item:active { transform: scale(0.97); }
|
||||
.ps-action:hover, .ps-choice:hover:not(.is-selected) { transform: translateY(-1px); }
|
||||
|
||||
/* ---------- Непрерывные углы (squircle) ----------
|
||||
Где браузер умеет corner-shape, углы становятся «яблочными» суперэллипсами.
|
||||
Суперэллипс визуально острее круга, поэтому радиусы × 1,25 — концентричность сохраняется. */
|
||||
@supports (corner-shape: squircle) {
|
||||
:root { --radius-sm: 15px; --radius-md: 20px; --radius-lg: 28px; --radius-xl: 35px; }
|
||||
.ps-panel, .ps-card, .ps-post, .ps-persona, .ps-provider, .ps-stat, .ps-choice, .ps-action, .ps-channel, .ps-planday,
|
||||
.ps-drop, .ps-toast, .ps-tabbar, .ps-composer, .ps-msg-bubble, .ps-preset, .ps-field-control, .ps-seg, .ps-seg-thumb,
|
||||
.ps-sidenav-item, .ps-sidenav-persona, .ps-empty-icon, .ps-action-icon, .ps-stat-icon, .ps-choice-icon, .ps-persona-icon, .ps-provider-icon, .ps-tab {
|
||||
corner-shape: squircle;
|
||||
}
|
||||
}
|
||||
|
||||
/* ---------- Motion ---------- */
|
||||
@keyframes ps-spin { to { transform: rotate(360deg); } }
|
||||
@keyframes ps-blink { to { visibility: hidden; } }
|
||||
@keyframes ps-rise { from { transform: translateY(8px) scale(0.98); } }
|
||||
@keyframes ps-pop { from { transform: scale(0.6); opacity: 0; } }
|
||||
@keyframes ps-fan {
|
||||
0%, 100% { transform: rotate(calc(var(--r) * 0.3)) skewY(0deg); }
|
||||
35%, 70% { transform: rotate(var(--r)) skewY(-6deg); }
|
||||
}
|
||||
@keyframes ps-pulse { 50% { opacity: 0.35; } }
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.ps-msg, .ps-toast, .ps-composer-row > .ps-iconbtn { animation: none; }
|
||||
.ps-btn, .ps-iconbtn, .ps-chip, .ps-tab, .ps-choice, .ps-preset, .ps-action, .ps-sidenav-item, .ps-card, .ps-drop { transition-duration: 1ms !important; }
|
||||
.ps-action:hover, .ps-choice:hover:not(.is-selected) { transform: none; }
|
||||
.ps-fan i { animation: ps-pulse 1.6s ease-in-out infinite; transform: rotate(var(--r)); }
|
||||
.ps-card:hover, .ps-card:active, .ps-btn:active:not(:disabled), .ps-iconbtn:active:not(:disabled) { transform: none; }
|
||||
.ps-seg-thumb, .ps-switch-knob { transition-duration: 1ms; }
|
||||
}
|
||||
@media (prefers-reduced-transparency: reduce) {
|
||||
.ps-tabbar, .ps-toast, .ps-btn--glass, .ps-iconbtn--glass { background: var(--surface-raised); -webkit-backdrop-filter: none; backdrop-filter: none; }
|
||||
}
|
||||
@@ -0,0 +1,97 @@
|
||||
Copyright 2026 The Donbass Project Authors.
|
||||
Portions copyright 2021 The Onest Project Authors (https://github.com/simpals/onest).
|
||||
|
||||
Donbass is a derivative of Onest, created under the terms of the SIL Open Font
|
||||
License, Version 1.1. Modifications: renaming, weight-range selection,
|
||||
per-weight tracking adjustments, and the addition of 10-degree oblique styles.
|
||||
|
||||
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||
This license is copied below, and is also available with a FAQ at:
|
||||
https://openfontlicense.org
|
||||
|
||||
-----------------------------------------------------------
|
||||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||
-----------------------------------------------------------
|
||||
|
||||
PREAMBLE
|
||||
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||
development of collaborative font projects, to support the font creation
|
||||
efforts of academic and linguistic communities, and to provide a free and
|
||||
open framework in which fonts may be shared and improved in partnership
|
||||
with others.
|
||||
|
||||
The OFL allows the licensed fonts to be used, studied, modified and
|
||||
redistributed freely as long as they are not sold by themselves. The
|
||||
fonts, including any derivative works, can be bundled, embedded,
|
||||
redistributed and/or sold with any software provided that any reserved
|
||||
names are not used by derivative works. The fonts and derivatives,
|
||||
however, cannot be released under any other type of license. The
|
||||
requirement for fonts to remain under this license does not apply
|
||||
to any document created using the fonts or their derivatives.
|
||||
|
||||
DEFINITIONS
|
||||
"Font Software" refers to the set of files released by the Copyright
|
||||
Holder(s) under this license and clearly marked as such. This may
|
||||
include source files, build scripts and documentation.
|
||||
|
||||
"Reserved Font Name" refers to any names specified as such after the
|
||||
copyright statement(s).
|
||||
|
||||
"Original Version" refers to the collection of Font Software components as
|
||||
distributed by the Copyright Holder(s).
|
||||
|
||||
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||
or substituting -- in part or in whole -- any of the components of the
|
||||
Original Version, by changing formats or by porting the Font Software to a
|
||||
new environment.
|
||||
|
||||
"Author" refers to any designer, engineer, programmer, technical
|
||||
writer or other person who contributed to the Font Software.
|
||||
|
||||
PERMISSION & CONDITIONS
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||
redistribute, and sell modified and unmodified copies of the Font
|
||||
Software, subject to the following conditions:
|
||||
|
||||
1) Neither the Font Software nor any of its individual components,
|
||||
in Original or Modified Versions, may be sold by itself.
|
||||
|
||||
2) Original or Modified Versions of the Font Software may be bundled,
|
||||
redistributed and/or sold with any software, provided that each copy
|
||||
contains the above copyright notice and this license. These can be
|
||||
included either as stand-alone text files, human-readable headers or
|
||||
in the appropriate machine-readable metadata fields within text or
|
||||
binary files as long as those fields can be easily viewed by the user.
|
||||
|
||||
3) No Modified Version of the Font Software may use the Reserved Font
|
||||
Name(s) unless explicit written permission is granted by the corresponding
|
||||
Copyright Holder. This restriction only applies to the primary font name as
|
||||
presented to the users.
|
||||
|
||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||
Software shall not be used to promote, endorse or advertise any
|
||||
Modified Version, except to acknowledge the contribution(s) of the
|
||||
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||
permission.
|
||||
|
||||
5) The Font Software, modified or unmodified, in part or in whole,
|
||||
must be distributed entirely under this license, and must not be
|
||||
distributed under any other license. The requirement for fonts to
|
||||
remain under this license does not apply to any document created
|
||||
using the Font Software.
|
||||
|
||||
TERMINATION
|
||||
This license becomes null and void if any of the above conditions are
|
||||
not met.
|
||||
|
||||
DISCLAIMER
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,155 @@
|
||||
/* ИИ Пресс-секретарь — «жидкое стекло»: блик за курсором и смена темы кругом от кнопки.
|
||||
Подключается в base.html и landing.html. Уважает «Уменьшить движение». */
|
||||
(function () {
|
||||
var reduce = window.matchMedia && window.matchMedia('(prefers-reduced-motion: reduce)').matches;
|
||||
|
||||
function isDark() {
|
||||
var t = document.documentElement.getAttribute('data-theme');
|
||||
if (t) return t === 'dark';
|
||||
return window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
|
||||
}
|
||||
function syncLabels() {
|
||||
document.querySelectorAll('[data-theme-label]').forEach(function (el) {
|
||||
el.textContent = isDark() ? 'Светлая тема' : 'Тёмная тема';
|
||||
});
|
||||
}
|
||||
function applyTheme(next) {
|
||||
document.documentElement.setAttribute('data-theme', next);
|
||||
try { localStorage.setItem('theme', next); } catch (e) {}
|
||||
syncLabels();
|
||||
}
|
||||
|
||||
/* Смена темы: новая тема раскрывается кругом из точки нажатия */
|
||||
document.addEventListener('click', function (e) {
|
||||
var btn = e.target.closest('[data-theme-toggle]');
|
||||
if (!btn) return;
|
||||
var next = isDark() ? 'light' : 'dark';
|
||||
if (!document.startViewTransition || reduce) { applyTheme(next); return; }
|
||||
var r = btn.getBoundingClientRect();
|
||||
var x = r.left + r.width / 2, y = r.top + r.height / 2;
|
||||
var radius = Math.hypot(Math.max(x, innerWidth - x), Math.max(y, innerHeight - y));
|
||||
document.documentElement.classList.add('is-theme-switch');
|
||||
var t = document.startViewTransition(function () { applyTheme(next); });
|
||||
t.ready.then(function () {
|
||||
document.documentElement.animate(
|
||||
{ clipPath: ['circle(0 at ' + x + 'px ' + y + 'px)', 'circle(' + radius + 'px at ' + x + 'px ' + y + 'px)'] },
|
||||
{ duration: 520, easing: 'cubic-bezier(0.32, 0.72, 0, 1)', pseudoElement: '::view-transition-new(root)' }
|
||||
);
|
||||
}).catch(function () {});
|
||||
function done() { document.documentElement.classList.remove('is-theme-switch'); }
|
||||
t.finished.then(done, done);
|
||||
});
|
||||
document.addEventListener('DOMContentLoaded', syncLabels);
|
||||
|
||||
/* Навигация: одна плашка на всё меню. При нажатии пункт становится активным в тот же кадр,
|
||||
плашка едет к нему пружиной, а раздел тем временем загружается — ничего не ждёт анимацию. */
|
||||
function placeIndicator(nav, item, animate) {
|
||||
var ind = nav.querySelector('.app-nav-indicator');
|
||||
if (!ind || !item) return;
|
||||
var n = nav.getBoundingClientRect(), r = item.getBoundingClientRect();
|
||||
ind.classList.toggle('no-anim', !animate);
|
||||
ind.style.setProperty('--nav-y', (r.top - n.top) + 'px');
|
||||
ind.style.height = r.height + 'px';
|
||||
ind.style.left = (r.left - n.left) + 'px';
|
||||
ind.style.width = r.width + 'px';
|
||||
ind.style.right = 'auto';
|
||||
ind.classList.add('is-ready');
|
||||
if (!animate) { void ind.offsetWidth; ind.classList.remove('no-anim'); }
|
||||
}
|
||||
function placeTab(bar, tab, animate) {
|
||||
var ind = bar.querySelector('.app-tab-indicator');
|
||||
if (!ind || !tab) return;
|
||||
var b = bar.getBoundingClientRect(), r = tab.getBoundingClientRect();
|
||||
ind.classList.toggle('no-anim', !animate);
|
||||
ind.style.setProperty('--tab-x', (r.left - b.left) + 'px');
|
||||
ind.style.setProperty('--tab-w', r.width + 'px');
|
||||
ind.classList.add('is-ready');
|
||||
if (!animate) { void ind.offsetWidth; ind.classList.remove('no-anim'); }
|
||||
}
|
||||
function setActive(list, el) {
|
||||
list.forEach(function (x) { x.classList.toggle('is-active', x === el); if (x === el) x.setAttribute('aria-current', 'page'); else x.removeAttribute('aria-current'); });
|
||||
}
|
||||
function initNav() {
|
||||
var nav = document.querySelector('[data-nav]');
|
||||
if (nav) {
|
||||
var items = Array.prototype.slice.call(nav.querySelectorAll('a.ps-sidenav-item'));
|
||||
placeIndicator(nav, nav.querySelector('.ps-sidenav-item.is-active'), false);
|
||||
nav.addEventListener('pointerdown', function (e) {
|
||||
var a = e.target.closest('a.ps-sidenav-item');
|
||||
if (!a || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey) return;
|
||||
setActive(items, a); placeIndicator(nav, a, !reduce);
|
||||
});
|
||||
nav.addEventListener('keydown', function (e) {
|
||||
var a = e.target.closest('a.ps-sidenav-item');
|
||||
if (a && e.key === 'Enter') { setActive(items, a); placeIndicator(nav, a, !reduce); }
|
||||
});
|
||||
window.addEventListener('resize', function () { placeIndicator(nav, nav.querySelector('.ps-sidenav-item.is-active'), false); });
|
||||
}
|
||||
var bar = document.querySelector('[data-tabs]');
|
||||
if (bar) {
|
||||
var tabs = Array.prototype.slice.call(bar.querySelectorAll('.ps-tab'));
|
||||
placeTab(bar, bar.querySelector('.ps-tab.is-active'), false);
|
||||
bar.addEventListener('pointerdown', function (e) {
|
||||
var t = e.target.closest('a.ps-tab');
|
||||
if (!t || e.button !== 0) return;
|
||||
setActive(tabs, t); placeTab(bar, t, !reduce);
|
||||
});
|
||||
window.addEventListener('resize', function () { placeTab(bar, bar.querySelector('.ps-tab.is-active'), false); });
|
||||
}
|
||||
/* Большой заголовок → компактная стеклянная панель, когда заголовок ушёл под край */
|
||||
var cb = document.querySelector('[data-compactbar]');
|
||||
var h1 = document.querySelector('.ps-main-head h1');
|
||||
if (cb && h1 && 'IntersectionObserver' in window) {
|
||||
new IntersectionObserver(function (en) {
|
||||
var stuck = !en[0].isIntersecting && en[0].boundingClientRect.top < 0;
|
||||
cb.classList.toggle('is-stuck', stuck);
|
||||
cb.setAttribute('aria-hidden', stuck ? 'false' : 'true');
|
||||
}, { rootMargin: '-52px 0px 0px 0px', threshold: 0 }).observe(h1);
|
||||
}
|
||||
}
|
||||
if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', initNav); else initNav();
|
||||
/* Возврат «Назад» из кэша страниц — плашку на место без анимации */
|
||||
window.addEventListener('pageshow', function (e) {
|
||||
if (!e.persisted) return;
|
||||
var nav = document.querySelector('[data-nav]'), bar = document.querySelector('[data-tabs]');
|
||||
var path = location.pathname;
|
||||
if (nav) {
|
||||
var cur = nav.querySelector('a.ps-sidenav-item[aria-current]');
|
||||
/* после «Назад» активен пункт текущего адреса, а не нажатый перед уходом */
|
||||
nav.querySelectorAll('a.ps-sidenav-item').forEach(function (a) {
|
||||
(a.getAttribute('data-prefixes') || a.getAttribute('href')).split(' ').forEach(function (p) {
|
||||
if (path === p || path.indexOf(p + '/') === 0) cur = a;
|
||||
});
|
||||
});
|
||||
if (cur) { setActive(Array.prototype.slice.call(nav.querySelectorAll('a.ps-sidenav-item')), cur); placeIndicator(nav, cur, false); }
|
||||
}
|
||||
if (bar) {
|
||||
var tabs = Array.prototype.slice.call(bar.querySelectorAll('a.ps-tab')), hit = null;
|
||||
tabs.forEach(function (t) {
|
||||
(t.getAttribute('data-prefixes') || '').split(' ').forEach(function (p) { if (p && (path === p || path.indexOf(p + '/') === 0)) hit = t; });
|
||||
});
|
||||
var more = bar.querySelector('button.ps-tab');
|
||||
var target = hit || more;
|
||||
Array.prototype.slice.call(bar.querySelectorAll('.ps-tab')).forEach(function (t) {
|
||||
t.classList.toggle('is-active', t === target);
|
||||
if (t === target && t.tagName === 'A') t.setAttribute('aria-current', 'page'); else t.removeAttribute('aria-current');
|
||||
});
|
||||
placeTab(bar, target, false);
|
||||
}
|
||||
});
|
||||
|
||||
/* Блик на стекле: светлое пятно следует за курсором */
|
||||
if (reduce) return;
|
||||
document.addEventListener('pointermove', function (e) {
|
||||
var g = e.target.closest && e.target.closest('.app-glass');
|
||||
if (!g) return;
|
||||
var r = g.getBoundingClientRect();
|
||||
g.style.setProperty('--glass-x', (e.clientX - r.left) + 'px');
|
||||
g.style.setProperty('--glass-y', (e.clientY - r.top) + 'px');
|
||||
g.classList.add('is-lit');
|
||||
}, { passive: true });
|
||||
document.addEventListener('pointerout', function (e) {
|
||||
var g = e.target.closest && e.target.closest('.app-glass');
|
||||
if (g && !g.contains(e.relatedTarget)) g.classList.remove('is-lit');
|
||||
});
|
||||
})();
|
||||
@@ -0,0 +1,174 @@
|
||||
/* ИИ Пресс-секретарь — фон первого экрана лендинга.
|
||||
Направление — сдержанность: один крупный целый знак справа, как одноцветная версия логотипа
|
||||
(листы одного тона, тени приглушают лист, а не вырезают его). Знак покачивается ±2,5°, дышит масштабом ±2,5%, раз в цикл по нему проходит блик.
|
||||
Фактура — сетка 12 колонок по контейнеру. Время суток (data-daypart у .lp-hero) меняет свет градиента
|
||||
и раскрытие веера; ночью — редкие звёзды. Левая половина под текстом остаётся чистой.
|
||||
Всё движение — синусы одной фазы цикла (24 с), поэтому цикл бесшовный.
|
||||
?t=N замораживает кадр (для проверки), «Уменьшить движение» — один статичный кадр, пауза вне экрана и на скрытой вкладке. */
|
||||
(function () {
|
||||
var hero = document.querySelector('.lp-hero');
|
||||
var canvas = hero && hero.querySelector('.lp-bg');
|
||||
if (!canvas || !canvas.getContext) return;
|
||||
var ctx = canvas.getContext('2d');
|
||||
var off = document.createElement('canvas'); // слой знака: собираем без нахлёста, кладём с одной прозрачностью
|
||||
var PERIOD = 24; // секунд в цикле
|
||||
var TAU = Math.PI * 2;
|
||||
var reduce = window.matchMedia && matchMedia('(prefers-reduced-motion: reduce)').matches;
|
||||
var freeze = new URLSearchParams(location.search).get('t');
|
||||
|
||||
/* Параметры суток: градиент (3 точки), раскрытие веера, свет, плотность постов */
|
||||
var DAY = {
|
||||
morning: { g: ['#56c6f2', '#1d71b8', '#1b5fa6'], open: 0.62, breathe: 0.22, sun: 1, horizon: 0, posts: 3, laps: 1, stars: 0, windows: 0 },
|
||||
day: { g: ['#009fe3', '#1d71b8', '#1a63aa'], open: 0.92, breathe: 0.08, sun: 0, horizon: 0, posts: 6, laps: 2, stars: 0, windows: 0 },
|
||||
evening: { g: ['#1590d8', '#1d71b8', '#2b3f97'], open: 0.6, breathe: 0.12, sun: 2, horizon: 1, posts: 3, laps: 1, stars: 0, windows: 6 },
|
||||
night: { g: ['#1d71b8', '#22337e', '#312783'], open: 0.32, breathe: 0.06, sun: 0, horizon: 0, posts: 1, laps: 1, stars: 1, windows: 14 }
|
||||
};
|
||||
var part = hero.getAttribute('data-daypart') || 'day';
|
||||
var P = DAY[part] || DAY.day;
|
||||
|
||||
/* Знак — настоящие контуры логотипа (координаты исходника 5669×5669).
|
||||
Три группы по порядку наложения: правый лист (задний), средний с тенью на правом, левый (передний) с тенью на среднем. */
|
||||
var GLYPH = [
|
||||
{ side: 1, sheets: ["M3720.19,2839.18l-572.18,1154.71-60.86,122.81-329.71-882.38c-1.19-3.17-2.33-6.37-3.44-9.59l71.95-505.75c42.35-78.96,97.59-152.06,163.21-211.45l541.2-489.89,66.89,74.35,87.56,97.32c124.93,138.85,141.13,436.45,35.38,649.87Z", "M4723.87,3339.65l-1093.38,989.71c-87.45,79.16-182.61,115.97-254.55,98.46-48.02-11.69-83.39-47.1-105.12-105.25l-26.86-71.89c.21-.42.41-.83.62-1.25l654.81-1321.45c67.88-136.98,99.36-301.15,88.64-462.25-11.04-166.03-65.93-311.7-154.54-410.19l-87.97-97.77,404.13-365.81c87.45-79.16,182.61-115.97,254.55-98.46,48.02,11.69,83.39,47.1,105.11,105.25l419.71,1123.26c65.38,174.96-28.57,457.81-205.15,617.64Z"], shades: [] },
|
||||
{ side: 0, sheets: ["M1926.21,3394.65c-124.93-138.85-141.13-436.46-35.38-649.87l353.54-713.47-86.91-49.82-356.23,718.89c-124.39,251.03-101.72,591.81,50.64,761.15l574.59,638.64,18.48-128.96-518.73-576.56ZM3684.81,2189.31l-87.56-97.32-66.89-74.35-66.89-74.34-580.67-645.4c-36.29-40.34-75.92-60.7-118.03-60.7-6.06,0-12.17.42-18.34,1.27-73.35,10.06-148.41,79.17-200.79,184.86l-212.3,428.44,153.87,88.2c114.94,65.89,212.58,187.13,274.93,341.4,33.16,82.06,54.57,168.96,63.58,255.66,6.36,61.34,6.52,122.59.23,181.95l-71.95,505.75-29.64,206.77-105.14,733.41,109,121.15c36.29,40.34,75.92,60.7,118.03,60.7,6.06,0,12.17-.42,18.34-1.27,55.4-7.6,111.78-48.89,158.62-114.18,15.18-21.15,29.35-44.82,42.17-70.68l21.77-43.93,60.86-122.81,572.18-1154.71c105.75-213.42,89.55-511.02-35.38-649.87Z"], shades: ["M3056.27,2581.67l540.98-489.68-66.89-74.35-66.89-74.34-541.42,490.09c-34.48,31.22-66.75,66.01-96.33,103.64,6.36,61.34,6.52,122.59.23,181.95l-71.95,505.75-29.64,206.77,298.85,799.81c15.18-21.15,29.35-44.82,42.17-70.68l21.77-43.93,60.86-122.81-296.9-794.57c-65.37-174.97,28.58-457.81,205.16-617.65Z"] },
|
||||
{ side: -1, sheets: ["M2624.35,2719.79l-179.41,1251.42-18.48,128.96-11.4,79.49c-2.35,16.38-5.34,32.21-8.94,47.42-22.07,93.22-66.84,162.99-124.06,190.91-18.29,8.93-37.5,13.39-57.54,13.38-28.6,0-58.89-9.09-90.56-27.24l-1040.33-596.3c-162.04-92.88-270.39-370.53-236.59-606.3l209.28-1459.87c16.74-116.76,66.46-205.86,133-238.33,18.3-8.92,37.51-13.38,57.55-13.38,28.6,0,58.88,9.09,90.56,27.24l723.11,414.48,86.92,49.82,86.91,49.82,143.38,82.18c162.05,92.88,270.39,370.53,236.6,606.3Z"], shades: ["M1926.21,3394.65c-124.93-138.85-141.13-436.46-35.38-649.87l353.54-713.47-86.91-49.82-86.92-49.82-358.91,724.31c-67.88,136.98-99.36,301.15-88.64,462.25,11.04,166.02,65.93,311.7,154.54,410.19l628.59,698.66c3.6-15.21,6.59-31.04,8.94-47.42l11.4-79.49,18.48-128.96-518.73-576.56Z", "M2754,3224.73l68.32-476.56c1.39-9.67,2.6-19.4,3.63-29.19l-71.95,505.75Z"] }
|
||||
];
|
||||
var GLYPH_PIVOT = { x: 2900, y: 4450 }, GLYPH_TOP = 1237, GLYPH_H = 4431 - 1237;
|
||||
var GPATH = (typeof Path2D === 'function') ? GLYPH.map(function (g) {
|
||||
return { side: g.side, sheets: g.sheets.map(function (p) { return new Path2D(p); }), shades: g.shades.map(function (p) { return new Path2D(p); }) };
|
||||
}) : null;
|
||||
|
||||
/* Детерминированный генератор — звёзды и окна одинаковы между кадрами и заморозками */
|
||||
function rng(seed) { return function () { seed = (seed * 16807) % 2147483647; return (seed - 1) / 2147483646; }; }
|
||||
|
||||
var W = 0, H = 0, dpr = 1, stars = [], wins = [], cols = [], cardX = 0, cardW = 0;
|
||||
|
||||
function layout() {
|
||||
var r = hero.getBoundingClientRect();
|
||||
dpr = Math.min(window.devicePixelRatio || 1, 2);
|
||||
W = Math.max(1, Math.round(r.width)); H = Math.max(1, Math.round(r.height));
|
||||
canvas.width = Math.round(W * dpr); canvas.height = Math.round(H * dpr);
|
||||
off.width = canvas.width; off.height = canvas.height;
|
||||
canvas.style.width = W + 'px'; canvas.style.height = H + 'px';
|
||||
ctx.setTransform(dpr, 0, 0, dpr, 0, 0);
|
||||
/* Колонки сетки — ровно по контейнеру страницы (1200, поля 32/16) */
|
||||
var container = hero.querySelector('.lp-container');
|
||||
var cr = container.getBoundingClientRect();
|
||||
var pad = parseFloat(getComputedStyle(container).paddingLeft) || 0;
|
||||
var left = cr.left - r.left + pad, width = cr.width - pad * 2;
|
||||
cols = [];
|
||||
for (var i = 0; i <= 12; i++) cols.push(left + width * i / 12);
|
||||
/* Центр карточки примера — ось веера: карточка «вырастает» из знака */
|
||||
var card = hero.querySelector('.lp-demo .ps-post') || hero.querySelector('.lp-demo');
|
||||
if (card) { var k = card.getBoundingClientRect(); cardX = k.left - r.left + k.width / 2; cardW = k.width; }
|
||||
else { cardX = W * 0.72; cardW = W * 0.3; }
|
||||
var R = rng(part.length * 97 + 13);
|
||||
stars = [];
|
||||
for (var s = 0; s < 46; s++) stars.push({ x: R() * W, y: R() * H * 0.8, r: 0.6 + R() * 1.4, k: 1 + Math.floor(R() * 3), o: R() });
|
||||
wins = [];
|
||||
var row = H / 6;
|
||||
for (var w = 0; w < P.windows; w++) wins.push({ c: 6 + Math.floor(R() * 6), y: Math.round(1 + R() * 4) * row, o: R(), k: 1 + Math.floor(R() * 2) });
|
||||
}
|
||||
|
||||
function roundRect(x, y, w, h, rad) {
|
||||
ctx.beginPath();
|
||||
ctx.moveTo(x + rad, y); ctx.lineTo(x + w - rad, y); ctx.quadraticCurveTo(x + w, y, x + w, y + rad);
|
||||
ctx.lineTo(x + w, y + h - rad); ctx.quadraticCurveTo(x + w, y + h, x + w - rad, y + h);
|
||||
ctx.lineTo(x + rad, y + h); ctx.quadraticCurveTo(x, y + h, x, y + h - rad);
|
||||
ctx.lineTo(x, y + rad); ctx.quadraticCurveTo(x, y, x + rad, y); ctx.closePath();
|
||||
}
|
||||
|
||||
function draw(t) {
|
||||
var ph = (t % PERIOD) / PERIOD * TAU; // фаза цикла 0..2π
|
||||
ctx.clearRect(0, 0, W, H);
|
||||
|
||||
/* 1. Свет: градиент 200° — светлая сторона справа сверху, глубокая слева снизу (под текстом) */
|
||||
var a = 245 * Math.PI / 180, cx = W / 2, cy = H / 2, len = Math.abs(W * Math.sin(a)) + Math.abs(H * Math.cos(a));
|
||||
var gx = Math.sin(a) * len / 2, gy = -Math.cos(a) * len / 2;
|
||||
var g = ctx.createLinearGradient(cx - gx, cy - gy, cx + gx, cy + gy);
|
||||
g.addColorStop(0, P.g[0]); g.addColorStop(0.62, P.g[1]); g.addColorStop(1, P.g[2]);
|
||||
ctx.fillStyle = g; ctx.fillRect(0, 0, W, H);
|
||||
|
||||
/* 2. Фактура: колонки сетки по контейнеру, едва заметно */
|
||||
ctx.strokeStyle = 'rgba(255,255,255,0.05)'; ctx.lineWidth = 1;
|
||||
for (var i = 0; i < cols.length; i++) { var x = Math.round(cols[i]) + 0.5; ctx.beginPath(); ctx.moveTo(x, 0); ctx.lineTo(x, H); ctx.stroke(); }
|
||||
|
||||
/* Ночь: редкие звёзды в правой половине, мерцание на кратных частотах фазы */
|
||||
if (P.stars) {
|
||||
for (var s = 0; s < stars.length; s++) {
|
||||
var st = stars[s];
|
||||
if (st.x < W * 0.5) continue;
|
||||
var tw = 0.4 + 0.6 * (0.5 + 0.5 * Math.sin(ph * st.k + st.o * TAU));
|
||||
ctx.fillStyle = 'rgba(255,255,255,' + (0.5 * tw).toFixed(3) + ')';
|
||||
ctx.beginPath(); ctx.arc(st.x, st.y, st.r * 0.8, 0, TAU); ctx.fill();
|
||||
}
|
||||
}
|
||||
|
||||
/* 3. Знак — одноцветная версия логотипа целиком: белые листы, тени вырезаны (зазоры между листами).
|
||||
Знак не разбирается на части — в исходнике листы хранятся видимыми кусками, и при раздельном повороте
|
||||
вылезают рваные края. Движение — у знака целиком: покачивание вокруг оси ±2,5°, дыхание масштаба ±2,5%,
|
||||
раз в цикл по знаку проходит мягкий блик. Слой собирается отдельно и кладётся с одной прозрачностью. */
|
||||
if (!GPATH) return;
|
||||
var narrow = W < 960;
|
||||
var base = (narrow ? Math.min(H * 0.5, W * 0.8) : H * 1.15) / GLYPH_H;
|
||||
var breathe = 1 + 0.025 * Math.sin(ph);
|
||||
var gScale = base * breathe;
|
||||
var gw = 4100 * base; // ширина знака в исходнике ≈ 4100
|
||||
var px = narrow ? W - gw * 0.34 : Math.min(W - gw * 0.24, cardX + cardW * 0.34);
|
||||
var py = H + GLYPH_H * base * 0.04;
|
||||
var sway = Math.sin(ph + Math.PI / 3) * 2.5 * Math.PI / 180;
|
||||
var oc = off.getContext('2d');
|
||||
oc.setTransform(1, 0, 0, 1, 0, 0); oc.clearRect(0, 0, off.width, off.height);
|
||||
oc.setTransform(dpr, 0, 0, dpr, 0, 0);
|
||||
oc.save();
|
||||
oc.translate(px, py); oc.rotate(sway); oc.scale(gScale, gScale);
|
||||
oc.translate(-GLYPH_PIVOT.x, -GLYPH_PIVOT.y);
|
||||
oc.fillStyle = '#ffffff';
|
||||
for (var gi = 0; gi < GPATH.length; gi++) for (var si = 0; si < GPATH[gi].sheets.length; si++) oc.fill(GPATH[gi].sheets[si]);
|
||||
/* Тени не вырезают лист, а приглушают его на 45% — как в цветном логотипе: листы целые, глубина видна */
|
||||
oc.globalCompositeOperation = 'destination-out';
|
||||
oc.globalAlpha = 0.45;
|
||||
for (var gj = 0; gj < GPATH.length; gj++) for (var sk = 0; sk < GPATH[gj].shades.length; sk++) oc.fill(GPATH[gj].shades[sk]);
|
||||
oc.globalAlpha = 1;
|
||||
oc.restore();
|
||||
/* Блик: полоса идёт слева направо один раз за цикл, начинается и заканчивается за пределами знака */
|
||||
var u = (ph / TAU);
|
||||
var left = px - gw * 0.9, right = px + gw * 0.9;
|
||||
var bx = left + (right - left) * u;
|
||||
var band = gw * 0.35;
|
||||
var sg = oc.createLinearGradient(bx - band, py - band * 0.6, bx + band, py + band * 0.6); // наклон от ширины полосы, не от высоты экрана
|
||||
sg.addColorStop(0, 'rgba(255,255,255,0)'); sg.addColorStop(0.5, 'rgba(255,255,255,1)'); sg.addColorStop(1, 'rgba(255,255,255,0)');
|
||||
oc.save();
|
||||
oc.globalCompositeOperation = 'source-atop';
|
||||
oc.globalAlpha = 0.9;
|
||||
oc.fillStyle = sg; oc.fillRect(0, 0, W, H);
|
||||
oc.restore();
|
||||
ctx.save();
|
||||
ctx.setTransform(1, 0, 0, 1, 0, 0);
|
||||
/* основной тон знака; блик внутри слоя добавляет до +60% к яркости на своей полосе */
|
||||
ctx.globalAlpha = P.stars ? 0.1 : 0.12;
|
||||
ctx.drawImage(off, 0, 0);
|
||||
ctx.restore();
|
||||
}
|
||||
|
||||
var running = !reduce && freeze === null, visible = true, start = performance.now();
|
||||
function loop(now) {
|
||||
if (running && visible && !document.hidden) draw((now - start) / 1000);
|
||||
requestAnimationFrame(loop);
|
||||
}
|
||||
function init() {
|
||||
layout();
|
||||
if (freeze !== null) { draw(parseFloat(freeze) || 0); window.__ready = true; return; }
|
||||
if (reduce) { draw(PERIOD * 0.25); return; } // статичный кадр
|
||||
requestAnimationFrame(loop);
|
||||
}
|
||||
function relayout() { layout(); if (!running) draw(freeze !== null ? parseFloat(freeze) || 0 : PERIOD * 0.25); }
|
||||
window.addEventListener('resize', relayout);
|
||||
/* Высота первого экрана меняется вместе с примером поста — холст следует за ней */
|
||||
if ('ResizeObserver' in window) {
|
||||
var lastH = 0;
|
||||
new ResizeObserver(function (en) { var h = Math.round(en[0].contentRect.height); if (h !== lastH) { lastH = h; relayout(); } }).observe(hero);
|
||||
}
|
||||
if ('IntersectionObserver' in window) new IntersectionObserver(function (e) { visible = e[0].isIntersecting; }).observe(hero);
|
||||
if (document.fonts && document.fonts.ready) document.fonts.ready.then(init); else init();
|
||||
})();
|
||||
@@ -0,0 +1,215 @@
|
||||
/* ИИ Пресс-секретарь — токены дизайн-системы. Сгенерировано из tokens.json. */
|
||||
|
||||
@font-face {
|
||||
font-family: "Donbass";
|
||||
src: url("fonts/donbass-regular.woff2") format("woff2");
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
@font-face {
|
||||
font-family: "Donbass";
|
||||
src: url("fonts/donbass-medium.woff2") format("woff2");
|
||||
font-weight: 500;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
@font-face {
|
||||
font-family: "Donbass";
|
||||
src: url("fonts/donbass-semibold.woff2") format("woff2");
|
||||
font-weight: 600;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
@font-face {
|
||||
font-family: "Donbass";
|
||||
src: url("fonts/donbass-bold.woff2") format("woff2");
|
||||
font-weight: 700;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
:root {
|
||||
--surface: #f4f7fb;
|
||||
--surface-raised: #ffffff;
|
||||
--surface-sunken: #e9eff6;
|
||||
--surface-glass: rgba(255, 255, 255, 0.72);
|
||||
--hairline: #d6e0ec;
|
||||
--border-strong: #7d8fa8;
|
||||
--ink: #0e1b2e;
|
||||
--ink-secondary: #46566c;
|
||||
--ink-tertiary: #5d6d84;
|
||||
--brand: #1d71b8;
|
||||
--brand-pressed: #175e9a;
|
||||
--brand-bright: #009fe3;
|
||||
--logo-deep: #1d71b8;
|
||||
--logo-shade: #312783;
|
||||
--brand-tint: #e9f4fc;
|
||||
--on-brand: #ffffff;
|
||||
--indigo: #312783;
|
||||
--indigo-tint: #ecebfa;
|
||||
--pillar-1: var(--brand);
|
||||
--pillar-1-tint: var(--brand-tint);
|
||||
--pillar-2: #0b6b78;
|
||||
--pillar-2-tint: #e0f2f4;
|
||||
--pillar-3: #a12a6c;
|
||||
--pillar-3-tint: #fbe8f2;
|
||||
--success: #0b7552;
|
||||
--success-tint: #e1f3eb;
|
||||
--warning: #8f5300;
|
||||
--warning-tint: #fcf0dc;
|
||||
--danger: #b83710;
|
||||
--danger-tint: #fce8e1;
|
||||
--focus: var(--brand);
|
||||
--scrim: rgba(14, 27, 46, 0.36);
|
||||
--glass-edge: rgba(255, 255, 255, 0.75);
|
||||
--glass-sheen: rgba(255, 255, 255, 0.55);
|
||||
--ambient-1: rgba(0, 159, 227, 0.22);
|
||||
--ambient-2: rgba(49, 39, 131, 0.12);
|
||||
--ambient-3: rgba(29, 113, 184, 0.16);
|
||||
--space-1: 4px;
|
||||
--space-2: 8px;
|
||||
--space-3: 12px;
|
||||
--space-4: 16px;
|
||||
--space-5: 20px;
|
||||
--space-6: 24px;
|
||||
--space-8: 32px;
|
||||
--space-12: 48px;
|
||||
--space-16: 64px;
|
||||
--inset-badge: 8px;
|
||||
--inset-control: 12px;
|
||||
--inset-card: 20px;
|
||||
--inset-panel: 24px;
|
||||
--gap-icon: 8px;
|
||||
--gap-row: 12px;
|
||||
--stack-text: 4px;
|
||||
--stack-group: 16px;
|
||||
--stack-section: 32px;
|
||||
--page-gutter: 32px;
|
||||
--radius-xs: 8px;
|
||||
--radius-sm: 12px;
|
||||
--radius-md: 16px;
|
||||
--radius-lg: 22px;
|
||||
--radius-xl: 28px;
|
||||
--radius-pill: 999px;
|
||||
--target-min: 44px;
|
||||
--control-sm: 36px;
|
||||
--control-md: 44px;
|
||||
--control-lg: 52px;
|
||||
--icon-sm: 16px;
|
||||
--icon-md: 20px;
|
||||
--icon-lg: 24px;
|
||||
--tile-sm: 32px;
|
||||
--tile-md: 40px;
|
||||
--tile-lg: 44px;
|
||||
--dur-tap: 120ms;
|
||||
--dur-move: 240ms;
|
||||
--dur-sheet: 380ms;
|
||||
--dur-think: 1400ms;
|
||||
--dur-snappy: 320ms;
|
||||
--dur-smooth: 440ms;
|
||||
--dur-bouncy: 520ms;
|
||||
--ease-soft: cubic-bezier(0.32, 0.72, 0, 1);
|
||||
--ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
|
||||
--ease-standard: cubic-bezier(0.2, 0, 0, 1);
|
||||
--spring-snappy: linear(0, 0.0383, 0.1297, 0.2472, 0.3722, 0.493, 0.6027, 0.6978, 0.7773, 0.8416, 0.8921, 0.9306, 0.959, 0.9793, 0.9931, 1.0021, 1.0074, 1.0101, 1.0111, 1.0109, 1.01, 1.0087, 1.0073, 1.006, 1.0047, 1.0036, 1.0027, 1.0019, 1);
|
||||
--spring-smooth: linear(0, 0.0435, 0.1411, 0.259, 0.3782, 0.4888, 0.5862, 0.6691, 0.7381, 0.7944, 0.8397, 0.8757, 0.9041, 0.9264, 0.9437, 0.9571, 0.9674, 0.9753, 0.9813, 0.9859, 0.9894, 0.992, 0.994, 0.9955, 0.9967, 0.9975, 0.9981, 0.9986, 1);
|
||||
--spring-bouncy: linear(0, 0.0666, 0.2222, 0.413, 0.6018, 0.7662, 0.8954, 0.9872, 1.0448, 1.0745, 1.0835, 1.0787, 1.0661, 1.0502, 1.0344, 1.0205, 1.0094, 1.0015, 0.9965, 0.9939, 0.993, 0.9934, 0.9944, 0.9957, 0.997, 0.9982, 0.9992, 0.9998, 1);
|
||||
--blur-glass: 24px;
|
||||
--shadow-1: 0 0.5px 1px rgba(14, 27, 46, 0.06), 0 2px 8px rgba(14, 27, 46, 0.04);
|
||||
--shadow-2: 0 1px 2px rgba(14, 27, 46, 0.06), 0 10px 28px -6px rgba(29, 113, 184, 0.18);
|
||||
--shadow-float: 0 2px 6px rgba(14, 27, 46, 0.06), 0 24px 56px -12px rgba(14, 27, 46, 0.22);
|
||||
--font-display: Donbass, "SF Pro Rounded", -apple-system, "Segoe UI", system-ui, sans-serif;
|
||||
--font-text: Donbass, -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
|
||||
color-scheme: light;
|
||||
}
|
||||
|
||||
:root[data-theme="dark"] {
|
||||
--surface: #0a1322;
|
||||
--surface-raised: #121e33;
|
||||
--surface-sunken: #060c17;
|
||||
--surface-glass: rgba(18, 30, 51, 0.72);
|
||||
--hairline: #24344d;
|
||||
--border-strong: #647a99;
|
||||
--ink: #eaf1fa;
|
||||
--ink-secondary: #a9b8cc;
|
||||
--ink-tertiary: #8a9bb3;
|
||||
--brand: #4cb3f0;
|
||||
--brand-pressed: #7cc7f4;
|
||||
--brand-bright: #009fe3;
|
||||
--logo-deep: #1d71b8;
|
||||
--logo-shade: #312783;
|
||||
--brand-tint: #13304f;
|
||||
--on-brand: #04182b;
|
||||
--indigo: #a49df2;
|
||||
--indigo-tint: #211c4a;
|
||||
--pillar-1: var(--brand);
|
||||
--pillar-1-tint: var(--brand-tint);
|
||||
--pillar-2: #5fcfdc;
|
||||
--pillar-2-tint: #0e2c31;
|
||||
--pillar-3: #f390c6;
|
||||
--pillar-3-tint: #371429;
|
||||
--success: #4fd1a1;
|
||||
--success-tint: #0f2e25;
|
||||
--warning: #f2b765;
|
||||
--warning-tint: #33240d;
|
||||
--danger: #ff9370;
|
||||
--danger-tint: #3a1a12;
|
||||
--focus: var(--brand);
|
||||
--scrim: rgba(0, 0, 0, 0.56);
|
||||
--glass-edge: rgba(255, 255, 255, 0.12);
|
||||
--glass-sheen: rgba(164, 210, 255, 0.16);
|
||||
--ambient-1: rgba(0, 159, 227, 0.18);
|
||||
--ambient-2: rgba(164, 157, 242, 0.12);
|
||||
--ambient-3: rgba(29, 113, 184, 0.2);
|
||||
--shadow-1: 0 0.5px 1px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
|
||||
--shadow-2: 0 1px 2px rgba(0, 0, 0, 0.5), 0 12px 32px -6px rgba(0, 0, 0, 0.55);
|
||||
--shadow-float: 0 2px 6px rgba(0, 0, 0, 0.5), 0 24px 56px -12px rgba(0, 0, 0, 0.7);
|
||||
color-scheme: dark;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root:not([data-theme="light"]) {
|
||||
--surface: #0a1322;
|
||||
--surface-raised: #121e33;
|
||||
--surface-sunken: #060c17;
|
||||
--surface-glass: rgba(18, 30, 51, 0.72);
|
||||
--hairline: #24344d;
|
||||
--border-strong: #647a99;
|
||||
--ink: #eaf1fa;
|
||||
--ink-secondary: #a9b8cc;
|
||||
--ink-tertiary: #8a9bb3;
|
||||
--brand: #4cb3f0;
|
||||
--brand-pressed: #7cc7f4;
|
||||
--brand-bright: #009fe3;
|
||||
--logo-deep: #1d71b8;
|
||||
--logo-shade: #312783;
|
||||
--brand-tint: #13304f;
|
||||
--on-brand: #04182b;
|
||||
--indigo: #a49df2;
|
||||
--indigo-tint: #211c4a;
|
||||
--pillar-1: var(--brand);
|
||||
--pillar-1-tint: var(--brand-tint);
|
||||
--pillar-2: #5fcfdc;
|
||||
--pillar-2-tint: #0e2c31;
|
||||
--pillar-3: #f390c6;
|
||||
--pillar-3-tint: #371429;
|
||||
--success: #4fd1a1;
|
||||
--success-tint: #0f2e25;
|
||||
--warning: #f2b765;
|
||||
--warning-tint: #33240d;
|
||||
--danger: #ff9370;
|
||||
--danger-tint: #3a1a12;
|
||||
--focus: var(--brand);
|
||||
--scrim: rgba(0, 0, 0, 0.56);
|
||||
--glass-edge: rgba(255, 255, 255, 0.12);
|
||||
--glass-sheen: rgba(164, 210, 255, 0.16);
|
||||
--ambient-1: rgba(0, 159, 227, 0.18);
|
||||
--ambient-2: rgba(164, 157, 242, 0.12);
|
||||
--ambient-3: rgba(29, 113, 184, 0.2);
|
||||
--shadow-1: 0 0.5px 1px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
|
||||
--shadow-2: 0 1px 2px rgba(0, 0, 0, 0.5), 0 12px 32px -6px rgba(0, 0, 0, 0.55);
|
||||
--shadow-float: 0 2px 6px rgba(0, 0, 0, 0.5), 0 24px 56px -12px rgba(0, 0, 0, 0.7);
|
||||
color-scheme: dark;
|
||||
}
|
||||
}
|
||||
+635
-1118
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user