This commit is contained in:
parent
ef7ef1f0b3
commit
dffc85a24b
11 changed files with 70 additions and 3 deletions
|
|
@ -236,4 +236,7 @@ html[data-design='material3'] .app-tooltip {
|
|||
font-size: var(--md-sys-typescale-body-small-size);
|
||||
font-weight: var(--md-sys-typescale-body-small-weight);
|
||||
line-height: var(--md-sys-typescale-body-small-line);
|
||||
transition:
|
||||
opacity var(--md-sys-motion-duration-short2) var(--md-sys-motion-easing-standard),
|
||||
transform var(--md-sys-motion-duration-short3) var(--md-sys-motion-easing-emphasized-decelerate);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -903,6 +903,8 @@ html[data-design='material3'] .dialog {
|
|||
background: var(--md-sys-color-surface-container-high);
|
||||
border-radius: var(--md-sys-shape-corner-extra-large);
|
||||
box-shadow: var(--md-sys-elevation-3);
|
||||
animation-duration: var(--md-sys-motion-duration-medium4);
|
||||
animation-timing-function: var(--md-sys-motion-easing-emphasized-decelerate);
|
||||
}
|
||||
|
||||
html[data-design='material3'] .dialog::before {
|
||||
|
|
@ -1108,6 +1110,8 @@ html[data-design='material3'] .success-check {
|
|||
border: none;
|
||||
box-shadow: none;
|
||||
color: var(--md-sys-color-on-primary-container);
|
||||
animation-duration: var(--md-sys-motion-duration-medium1);
|
||||
animation-timing-function: var(--md-sys-motion-easing-emphasized-decelerate);
|
||||
}
|
||||
|
||||
html[data-design='material3'] .success-title {
|
||||
|
|
|
|||
|
|
@ -708,6 +708,8 @@ html[data-design='material3'] .dialog {
|
|||
background: var(--md-sys-color-surface-container-high);
|
||||
border-radius: var(--md-sys-shape-corner-extra-large);
|
||||
box-shadow: var(--md-sys-elevation-3);
|
||||
animation-duration: var(--md-sys-motion-duration-medium4);
|
||||
animation-timing-function: var(--md-sys-motion-easing-emphasized-decelerate);
|
||||
}
|
||||
|
||||
html[data-design='material3'] .dialog::before {
|
||||
|
|
|
|||
|
|
@ -571,6 +571,12 @@ html[data-design='material3'] .popup {
|
|||
border: 1px solid var(--md-sys-color-outline-variant);
|
||||
box-shadow: var(--md-sys-elevation-3);
|
||||
scrollbar-color: var(--md-sys-color-outline-variant) transparent;
|
||||
animation-duration: var(--md-sys-motion-duration-medium2);
|
||||
animation-timing-function: var(--md-sys-motion-easing-emphasized-decelerate);
|
||||
}
|
||||
|
||||
html[data-design='material3'] .chevron-btn > :deep(svg) {
|
||||
transition: transform var(--md-sys-motion-duration-short3) var(--md-sys-motion-easing-standard);
|
||||
}
|
||||
|
||||
html[data-design='material3'] .popup::-webkit-scrollbar-thumb {
|
||||
|
|
|
|||
|
|
@ -191,13 +191,20 @@ async function handleMarkThreadRead(seen: boolean): Promise<void> {
|
|||
}
|
||||
|
||||
// ── Thread expand animation ───────────────────────────────
|
||||
// В Material 3 у переходов нет "пружинного" перелёта — используем emphasized-кривые вместо cubic-bezier с overshoot
|
||||
function isMaterial3(): boolean {
|
||||
return document.documentElement.dataset.design === 'material3'
|
||||
}
|
||||
|
||||
function onExpandEnter(el: Element, done: () => void): void {
|
||||
const h = el as HTMLElement
|
||||
h.style.overflow = 'hidden'
|
||||
h.style.height = '0'
|
||||
h.style.opacity = '0'
|
||||
requestAnimationFrame(() => {
|
||||
h.style.transition = 'height 300ms cubic-bezier(0.34, 1.05, 0.64, 1), opacity 220ms ease'
|
||||
h.style.transition = isMaterial3()
|
||||
? 'height var(--md-sys-motion-duration-medium2) var(--md-sys-motion-easing-emphasized-decelerate), opacity var(--md-sys-motion-duration-medium2) var(--md-sys-motion-easing-standard)'
|
||||
: 'height 300ms cubic-bezier(0.34, 1.05, 0.64, 1), opacity 220ms ease'
|
||||
h.style.height = h.scrollHeight + 'px'
|
||||
h.style.opacity = '1'
|
||||
setTimeout(done, 300)
|
||||
|
|
@ -217,7 +224,9 @@ function onExpandLeave(el: Element, done: () => void): void {
|
|||
h.style.overflow = 'hidden'
|
||||
h.style.height = h.scrollHeight + 'px'
|
||||
void h.offsetHeight
|
||||
h.style.transition = 'height 240ms cubic-bezier(0.4, 0, 0.2, 1), opacity 180ms ease'
|
||||
h.style.transition = isMaterial3()
|
||||
? 'height var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-emphasized-accelerate), opacity var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard)'
|
||||
: 'height 240ms cubic-bezier(0.4, 0, 0.2, 1), opacity 180ms ease'
|
||||
h.style.height = '0'
|
||||
h.style.opacity = '0'
|
||||
setTimeout(done, 240)
|
||||
|
|
@ -1494,6 +1503,11 @@ html[data-design='material3'] .search-pill {
|
|||
background: var(--md-sys-color-surface-container-high);
|
||||
border: 1px solid var(--md-sys-color-outline-variant);
|
||||
box-shadow: none;
|
||||
transition:
|
||||
width var(--md-sys-motion-duration-medium2) var(--md-sys-motion-easing-emphasized),
|
||||
background var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard),
|
||||
border-color var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard),
|
||||
box-shadow var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
|
||||
}
|
||||
html[data-design='material3'] .search-pill:hover:not(.search-pill--open) {
|
||||
background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, var(--md-sys-color-surface-container-high));
|
||||
|
|
|
|||
|
|
@ -140,4 +140,12 @@ onUnmounted(() => {
|
|||
opacity: 0;
|
||||
transform: translateX(20px) scale(0.96);
|
||||
}
|
||||
|
||||
/* ── Material 3 ── */
|
||||
html[data-design='material3'] .toast-enter-active,
|
||||
html[data-design='material3'] .toast-leave-active {
|
||||
transition:
|
||||
opacity var(--md-sys-motion-duration-medium2) var(--md-sys-motion-easing-emphasized-decelerate),
|
||||
transform var(--md-sys-motion-duration-medium2) var(--md-sys-motion-easing-emphasized-decelerate);
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -156,6 +156,9 @@ html[data-design='material3'] .toast {
|
|||
border: none;
|
||||
border-radius: var(--md-sys-shape-corner-extra-small);
|
||||
box-shadow: var(--md-sys-elevation-3);
|
||||
transition:
|
||||
opacity var(--md-sys-motion-duration-medium2) var(--md-sys-motion-easing-emphasized-decelerate),
|
||||
transform var(--md-sys-motion-duration-medium2) var(--md-sys-motion-easing-emphasized-decelerate);
|
||||
}
|
||||
|
||||
html[data-design='material3'] .toast:hover {
|
||||
|
|
|
|||
|
|
@ -774,4 +774,16 @@ html[data-design='material3'] .action-btn.danger:hover {
|
|||
border-color: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
html[data-design='material3'] .popup-enter-active {
|
||||
transition:
|
||||
opacity var(--md-sys-motion-duration-short3) var(--md-sys-motion-easing-standard),
|
||||
transform var(--md-sys-motion-duration-short3) var(--md-sys-motion-easing-emphasized-decelerate);
|
||||
}
|
||||
|
||||
html[data-design='material3'] .popup-leave-active {
|
||||
transition:
|
||||
opacity var(--md-sys-motion-duration-short2) var(--md-sys-motion-easing-standard),
|
||||
transform var(--md-sys-motion-duration-short2) var(--md-sys-motion-easing-emphasized-accelerate);
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -235,12 +235,15 @@ function handleMarkAllRead(): void {
|
|||
|
||||
/* ── Бейдж непрочитанных ─────────────────────────────────── */
|
||||
.unread-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
color: rgba(255, 255, 255, 0.92);
|
||||
padding: 0 6px;
|
||||
min-height: 18px;
|
||||
line-height: 18px;
|
||||
line-height: 1;
|
||||
border-radius: var(--radius-full);
|
||||
background: rgba(200, 40, 40, 0.55);
|
||||
border: 1px solid rgba(255, 100, 100, 0.25);
|
||||
|
|
@ -293,6 +296,9 @@ function handleMarkAllRead(): void {
|
|||
/* ── Material 3 (Navigation Drawer list item) ── */
|
||||
html[data-design='material3'] .folder-item {
|
||||
border-radius: var(--md-sys-shape-corner-full);
|
||||
/* Полная пилюля круче скругляется у краёв, чем прежний shape/medium —
|
||||
без доп. отступа справа бейдж непрочитанных вылезает за скруглённый край */
|
||||
padding-right: 12px;
|
||||
}
|
||||
|
||||
html[data-design='material3'] .folder-item:hover {
|
||||
|
|
|
|||
|
|
@ -922,6 +922,8 @@ html[data-design='material3'] .color-picker-popover {
|
|||
background: var(--md-sys-color-surface-container-high);
|
||||
border: 1px solid var(--md-sys-color-outline-variant);
|
||||
box-shadow: var(--md-sys-elevation-3);
|
||||
animation-duration: var(--md-sys-motion-duration-short4);
|
||||
animation-timing-function: var(--md-sys-motion-easing-emphasized-decelerate);
|
||||
}
|
||||
|
||||
html[data-design='material3'] .color-swatch.selected {
|
||||
|
|
|
|||
|
|
@ -1490,4 +1490,11 @@ html[data-design='material3'] .spinner-sm {
|
|||
border-color: color-mix(in srgb, var(--md-sys-color-on-primary) 30%, transparent);
|
||||
border-top-color: var(--md-sys-color-on-primary);
|
||||
}
|
||||
|
||||
html[data-design='material3'] .drag-enter-active,
|
||||
html[data-design='material3'] .drag-leave-active {
|
||||
transition:
|
||||
opacity var(--md-sys-motion-duration-short3) var(--md-sys-motion-easing-standard),
|
||||
transform var(--md-sys-motion-duration-short3) var(--md-sys-motion-easing-emphasized-decelerate);
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
Loading…
Reference in a new issue