mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
* FEAT: add appTheme mixin on less files * FIX: bug, themed class only is added to sheet when have a theme what ovveride the world theme * new css --------- Co-authored-by: Joaquin Pereyra <joaquinpereyra98@users.noreply.github.com>
22 lines
705 B
Text
22 lines
705 B
Text
/**
|
|
* Applies theme-specific styles.
|
|
* @param {Rules} @darkRules - Styles to apply when `.theme-dark` is present
|
|
* @param {Rules} @lightRules - Styles to apply when `.theme-light` is present
|
|
*/
|
|
.appTheme(@darkRules, @lightRules) {
|
|
// Dark theme selectors
|
|
.themed.theme-dark .application.sheet.dh-style,
|
|
.themed.theme-dark.application.sheet.dh-style,
|
|
body.theme-dark .application,
|
|
body.theme-dark.application {
|
|
@darkRules();
|
|
}
|
|
|
|
// Light theme selectors
|
|
.themed.theme-light .application.sheet.dh-style,
|
|
.themed.theme-light.application.sheet.dh-style,
|
|
body.theme-light .application,
|
|
body.theme-light.application {
|
|
@lightRules();
|
|
}
|
|
}
|