played a bit with styling

This commit is contained in:
Chris Kruining 2025-02-07 11:01:53 +11:00
parent d269188cc8
commit 9b8348dc88
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
2 changed files with 20 additions and 0 deletions

View file

@ -181,6 +181,13 @@ samp {
display: inline-block; display: inline-block;
} }
@supports ((scrollbar-width: auto) and (scrollbar-width: auto)) {
:root {
scrollbar-color: var(--surface-300) transparent;
scrollbar-width: auto;
}
}
@property --hue { @property --hue {
syntax: '<angle>'; syntax: '<angle>';
inherits: false; inherits: false;

View file

@ -17,5 +17,18 @@
flex-flow: column; flex-flow: column;
gap: var(--padding-s); gap: var(--padding-s);
padding-inline-start: var(--padding-l); padding-inline-start: var(--padding-l);
@media (hover) and (prefers-reduced-motion: no-preference) {
& > li {
transform-origin: left center;
transition: opacity .2s ease-in-out .1s, transform .1s ease-in-out .1s;
}
&:has(> li:hover) > li:not(:hover),
&:has(> li:focus-within) > li:not(:focus-within) {
opacity: .25;
transform: scale(.9);
}
}
} }
} }