mirror of
https://github.com/GenderDysphoria/GenderDysphoria.fyi.git
synced 2025-11-25 20:42:40 +00:00
* Implement toggle button * Dark mode mixins * Dark mode color design * Disable dark mode for prints * Initial dark mode design * Fix light mode mixin * Disable dark mode on print style * Move dark mode color scheme below the default style to allow referencing * Fix dropdown * Fix device-based dark mode * Dark mode index page design * Responsive auxiliary nav with dark mode toggle * Remove box shadow when on smaller displays * Prevent default on toggle click * Move attribution/licensing to README.md * Fix header padding on index page * Background color transition animation * Remove margin on index when on mobile displays * Remove neon border when on mobile * Fix post-header margin on mobile * Lighten card headers in dark mode
18 lines
242 B
SCSS
18 lines
242 B
SCSS
$disable-dark-mode: false !default;
|
|
|
|
@mixin dark-mode {
|
|
@if not $disable-dark-mode {
|
|
.dark-mode & {
|
|
@content
|
|
}
|
|
}
|
|
}
|
|
|
|
@mixin light-mode {
|
|
@if not $disable-dark-mode {
|
|
:root:not(.dark-mode) & {
|
|
@content
|
|
}
|
|
}
|
|
}
|