/
githubmirror
/
tabler
Обзор
Документация
Войти
/
githubmirror
/
tabler
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
core/scss/layout/_dark.scss
51 строка
1 KB
Bartosz-Do
Wire stylelint into the SCSS lint pipeline (#2794)
06 авг 2026, 01:46
Не верифицирован
06 авг 2026, 01:46
9cc9a36
Код
Авторство
О чём код?
@use 'sass:color'; // stylelint-disable declaration-no-important @use '../config' as *; @if $enable-dark-mode { :root { &:not(.theme-dark):not([data-bs-theme='dark'], [data-theme='dark']) { .hide-theme-light { display: none !important; } .img-dark { display: none !important; } } &.theme-dark, &[data-bs-theme='dark'], &[data-theme='dark'] { .hide-theme-dark { display: none !important; } .img-light { display: none !important; } } } @include color-mode(dark, true) { // Must come after layout/_root's `color-scheme: light` on `:root` (equal specificity, // later source wins) — this is what actually flips every light-dark() token to dark. color-scheme: dark; // Everything else here has been folded into light-dark() declarations in // layout/_root.scss; only genuinely dark-only, non-paired values remain. --btn-color: #{$darken-dark}; .navbar-brand-autodark { .navbar-brand-image { @include autodark-image(); } } } // The global `@extend [data-bs-theme='dark']` for light-scoped subtrees // inside a dark body lives in `_extends.scss` — with the module system it // must have every dark-styling module upstream. }