Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions assets/scss/common/_styles.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Self-sufficient default: child themes commonly shadow common/_variables.scss
// with their own fork, which silently drops variables added upstream. Declaring
// the default at the point of use keeps the build working either way; a fork
// that does define the variable still wins through !default.
$theme-mode-transition: background-color .5s ease-in-out, color .5s ease-in-out, border-color .5s ease-in-out !default;

@if $enable-dark-mode {
[data-bs-theme-animate="true"] body {
transition: $theme-mode-transition;
Expand Down
4 changes: 4 additions & 0 deletions assets/scss/components/_navbar.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
// stylelint-disable annotation-no-unknown

// Self-sufficient default — see common/_styles.scss for the rationale
// (child themes shadowing common/_variables.scss).
$theme-mode-transition: background-color .5s ease-in-out, color .5s ease-in-out, border-color .5s ease-in-out !default;

// adapted from https://www.codeply.com/p/UsTEwDkzNp#
.checkbox {
opacity: 0;
Expand Down
Loading