mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-15 05:01:08 +01:00
FEAT: add appTheme mixin on less files (#256)
Co-authored-by: Joaquin Pereyra <joaquinpereyra98@users.noreply.github.com>
This commit is contained in:
parent
cae659b9a5
commit
122621a57a
8 changed files with 472 additions and 449 deletions
18
styles/less/utils/mixin.less
Normal file
18
styles/less/utils/mixin.less
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
/**
|
||||
* 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) {
|
||||
.themed {
|
||||
&.theme-dark .application.sheet.dh-style,
|
||||
&.theme-dark.application.sheet.dh-style {
|
||||
@darkRules();
|
||||
}
|
||||
|
||||
&.theme-light .application.sheet.dh-style,
|
||||
&.theme-light.application.sheet.dh-style {
|
||||
@lightRules();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue