chore: run with user prefs

This commit is contained in:
Cory Dransfeldt 2024-10-30 20:34:13 -07:00
parent 31a03ba1bb
commit 1b89de2af7
No known key found for this signature in database
9 changed files with 20 additions and 138 deletions

View file

@ -5,31 +5,28 @@ button,
.button {
appearance: none;
border: none;
border: 2px solid var(--accent-color);
border-radius: var(--border-radius-full);
padding: var(--spacing-xs) var(--spacing-md);
cursor: pointer;
font-size: var(--font-size-base);
font-weight: var(--font-weight-bold);
line-height: var(--line-height-base);
white-space: nowrap;
color: var(--text-color-inverted);
background-color: var(--accent-color);
appearance: none;
transition: color var(--transition-duration-default)
var(--transition-ease-in-out);
& + hr {
margin-top: 0;
}
&:not(.theme-toggle) {
border: 2px solid var(--accent-color);
border-radius: var(--border-radius-full);
padding: var(--spacing-xs) var(--spacing-md);
cursor: pointer;
font-size: var(--font-size-base);
font-weight: var(--font-weight-bold);
line-height: var(--line-height-base);
white-space: nowrap;
color: var(--text-color-inverted);
background-color: var(--accent-color);
appearance: none;
transition: color var(--transition-duration-default)
var(--transition-ease-in-out);
}
&:not(.theme-toggle, .active):hover,
&:not(.theme-toggle, .active):active,
&:not(.theme-toggle, .active):focus,
&:not(.theme-toggle, .active):focus-within {
&:not(.active):hover,
&:not(.active):active,
&:not(.active):focus,
&:not(.active):focus-within {
background-color: var(--accent-color-hover);
border-color: var(--accent-color-hover);
}

View file

@ -1,41 +0,0 @@
theme-toggle {
display: flex;
width: var(--sizing-svg-base);
height: var(--sizing-svg-base);
margin-left: var(--spacing-md);
}
.theme-toggle {
background: transparent;
padding: 0;
& svg {
cursor: pointer;
}
&:hover svg,
&:focus svg,
&:focus-within svg,
&:active svg {
stroke: var(--accent-color-hover);
}
.sun,
& > .light svg {
stroke: var(--sun);
}
.moon,
& > .dark svg {
stroke: var(--moon);
}
.twilight {
stroke: var(--twilight);
}
.light,
.dark {
display: none;
}
}

View file

@ -37,5 +37,4 @@
@import url("./components/music-chart.css") layer(components);
@import url("./components/paginator.css") layer(components);
@import url("./components/progress-bar.css") layer(components);
@import url("./components/theme-toggle.css") layer(components);
@import url("./components/youtube-player.css") layer(components);