mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
Bug/251-light-theme-character-sheet (#257)
* 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>
This commit is contained in:
parent
d071fadf7d
commit
064011fffa
3 changed files with 55 additions and 24 deletions
|
|
@ -1,5 +1,4 @@
|
|||
// Theme header backgrounds
|
||||
|
||||
.appTheme({
|
||||
&.companion {
|
||||
background-image: url('../assets/parchments/dh-parchment-dark.png');
|
||||
|
|
|
|||
|
|
@ -4,15 +4,19 @@
|
|||
* @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();
|
||||
}
|
||||
// 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();
|
||||
}
|
||||
|
||||
&.theme-light .application.sheet.dh-style,
|
||||
&.theme-light.application.sheet.dh-style {
|
||||
@lightRules();
|
||||
}
|
||||
// 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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue