slightly more UI animations

This commit is contained in:
KingKDot
2026-08-01 02:11:52 -05:00
parent 34158ba673
commit b985aea80d
10 changed files with 273 additions and 71 deletions
+6 -2
View File
@@ -25,7 +25,7 @@
border-radius: 0.5rem;
color: rgb(203 213 225); /* slate-300 */
cursor: pointer;
transition: background-color 120ms, color 120ms;
transition: background-color var(--motion-fast), color var(--motion-fast), box-shadow var(--motion-normal) var(--motion-ease-out), transform var(--motion-fast) ease;
}
.settings-nav-link span {
min-width: 0;
@@ -36,6 +36,7 @@
.settings-nav-link:hover {
background-color: rgb(30 41 59 / 0.7); /* slate-800/70 */
color: rgb(241 245 249); /* slate-100 */
transform: translateX(2px);
}
/* Active state pulls its color from --accent (set inline per link to
match the link's icon). Falls back to sky-400 if not set. */
@@ -61,7 +62,10 @@
class applies scroll-margin-top, which both `scrollIntoView` and
browser hash navigation honor. */
:root { --settings-scroll-mt: 1rem; }
.settings-section { scroll-margin-top: var(--settings-scroll-mt); }
.settings-section {
scroll-margin-top: var(--settings-scroll-mt);
transition: border-color var(--motion-normal) ease, box-shadow var(--motion-normal) ease;
}
/* Also pin the sticky sidebar below the topbar so it doesn't slide
under the nav when the page is scrolled. */
#settings-sidebar {