mirror of
https://github.com/TomHodson/tomhodson.github.com.git
synced 2025-06-26 10:01:18 +02:00
35 lines
799 B
SCSS
35 lines
799 B
SCSS
.no-js .light-dark-toggle {
|
|
display: none;
|
|
}
|
|
|
|
.light-dark-toggle {
|
|
display: inline;
|
|
padding-top: 0.5rem;
|
|
}
|
|
|
|
.toggle-button {
|
|
aspect-ratio: 1 / 1;
|
|
width: 1.5rem;
|
|
padding: 0;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 50%;
|
|
color: var(--theme-text-color);
|
|
background: var(--theme-background-color);
|
|
border: 1.5px solid var(--theme-text-color);
|
|
transition: background var(--night-mode-fade-time) ease-in-out,
|
|
color var(--night-mode-fade-time) ease;
|
|
}
|
|
|
|
.toggle-button__icon {
|
|
background: var(--button-icon);
|
|
width: 0.9rem;
|
|
height: 0.9rem;
|
|
flex-shrink: 0;
|
|
margin: 0;
|
|
transform: translateY(0px); /* Optical adjustment */
|
|
transition: filter var(--night-mode-fade-time) ease-in-out;
|
|
filter: var(--button-icon-filter);
|
|
}
|