fix(frontend): use radius and motion tokens in toolbox styles
The style guard ratchet rejected new px radii and ms durations in the toolbox tabs, browser connection cards, and sidebar tool stack.main
parent
fd016df98c
commit
2e801677a0
|
|
@ -1837,21 +1837,24 @@ const resizeSidebar = (delta: number, keyboard: boolean) => {
|
|||
background: var(--td-bg-color-container);
|
||||
color: var(--td-text-color-secondary);
|
||||
rotate: var(--stack-rotate, 0deg);
|
||||
animation: menu-toolbox-stack-in 420ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
|
||||
--stack-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
|
||||
animation: menu-toolbox-stack-in 420ms var(--stack-spring) both;
|
||||
animation-delay: var(--stack-delay, 0ms);
|
||||
transition:
|
||||
margin 320ms cubic-bezier(0.34, 1.56, 0.64, 1),
|
||||
rotate 320ms cubic-bezier(0.34, 1.56, 0.64, 1),
|
||||
translate 320ms cubic-bezier(0.34, 1.56, 0.64, 1),
|
||||
color 200ms ease,
|
||||
box-shadow 200ms ease;
|
||||
margin var(--app-motion-slow) var(--stack-spring),
|
||||
rotate var(--app-motion-slow) var(--stack-spring),
|
||||
translate var(--app-motion-slow) var(--stack-spring),
|
||||
color var(--app-motion-base) ease,
|
||||
box-shadow var(--app-motion-base) ease;
|
||||
transition-delay: var(--stack-delay, 0ms);
|
||||
|
||||
& + & {
|
||||
margin-left: -6px;
|
||||
}
|
||||
|
||||
&:nth-child(1) { z-index: 3; --stack-rotate: -10deg; }
|
||||
&:nth-child(2) { z-index: 2; animation-delay: 60ms; transition-delay: 40ms; }
|
||||
&:nth-child(3) { z-index: 1; --stack-rotate: 10deg; animation-delay: 120ms; transition-delay: 80ms; }
|
||||
&:nth-child(2) { z-index: 2; --stack-delay: 50ms; }
|
||||
&:nth-child(3) { z-index: 1; --stack-rotate: 10deg; --stack-delay: 100ms; }
|
||||
}
|
||||
|
||||
@keyframes menu-toolbox-stack-in {
|
||||
|
|
@ -1875,7 +1878,7 @@ const resizeSidebar = (delta: number, keyboard: boolean) => {
|
|||
@media (prefers-reduced-motion: reduce) {
|
||||
.menu-toolbox-stack__item {
|
||||
animation: none;
|
||||
transition: color 200ms ease;
|
||||
transition: color var(--app-motion-base) ease;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -258,7 +258,7 @@ onBeforeUnmount(() => { alive = false; controller.abort(); clearTimeout(timer);
|
|||
}
|
||||
|
||||
.browser-side {
|
||||
border-radius: 16px;
|
||||
border-radius: var(--app-radius-xl);
|
||||
padding: 24px;
|
||||
background: color-mix(in srgb, var(--td-bg-color-secondarycontainer) 65%, var(--td-bg-color-container));
|
||||
|
||||
|
|
@ -278,7 +278,7 @@ onBeforeUnmount(() => { alive = false; controller.abort(); clearTimeout(timer);
|
|||
}
|
||||
|
||||
.connection-card {
|
||||
border-radius: 16px;
|
||||
border-radius: var(--app-radius-xl);
|
||||
padding: 24px;
|
||||
background: color-mix(in srgb, var(--td-bg-color-secondarycontainer) 65%, var(--td-bg-color-container));
|
||||
}
|
||||
|
|
@ -456,7 +456,7 @@ onBeforeUnmount(() => { alive = false; controller.abort(); clearTimeout(timer);
|
|||
gap: 8px;
|
||||
min-width: 0;
|
||||
padding: 8px 10px;
|
||||
border-radius: 8px;
|
||||
border-radius: var(--app-radius-md);
|
||||
background: var(--td-bg-color-container);
|
||||
color: var(--td-text-color-primary);
|
||||
font-size: var(--app-text-md);
|
||||
|
|
|
|||
|
|
@ -241,7 +241,7 @@ watch(() => visibleItems.value.map((item) => item.key), (keys, previous = []) =>
|
|||
right: 0;
|
||||
bottom: -1px;
|
||||
height: 2px;
|
||||
border-radius: 2px;
|
||||
border-radius: var(--app-radius-pill);
|
||||
background: transparent;
|
||||
transition: background var(--app-motion-fast) ease;
|
||||
}
|
||||
|
|
@ -279,7 +279,7 @@ watch(() => visibleItems.value.map((item) => item.key), (keys, previous = []) =>
|
|||
height: 20px;
|
||||
box-sizing: border-box;
|
||||
padding: 0 6px;
|
||||
border-radius: 10px;
|
||||
border-radius: var(--app-radius-pill);
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
color: var(--td-text-color-secondary);
|
||||
font-size: var(--app-text-xs);
|
||||
|
|
|
|||
Loading…
Reference in New Issue