mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 19:51:08 +01:00
* Fix scrollable tab * fix char sidebard and tabs scroll * Removed comment --------- Co-authored-by: Dapoolp <elcatnet@gmail.com> Co-authored-by: WBHarry <williambjrklund@gmail.com>
46 lines
1.2 KiB
Text
46 lines
1.2 KiB
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.daggerheart.sheet.dh-style,
|
|
.themed.theme-dark.application.daggerheart.sheet.dh-style,
|
|
body.theme-dark .application.daggerheart,
|
|
body.theme-dark.application.daggerheart {
|
|
@darkRules();
|
|
}
|
|
|
|
// Light theme selectors
|
|
.themed.theme-light .application.daggerheart.sheet.dh-style,
|
|
.themed.theme-light.application.daggerheart.sheet.dh-style,
|
|
body.theme-light .application.daggerheart,
|
|
body.theme-light.application.daggerheart {
|
|
@lightRules();
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Apply a style to sidebar titles.
|
|
*/
|
|
.section-title() {
|
|
display: flex;
|
|
gap: 15px;
|
|
align-items: center;
|
|
|
|
h3 {
|
|
font-size: 20px;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Apply default item list style.
|
|
* @param {Length} @gap - The vertical spacing between elements (e.g., 10px, 1rem)
|
|
*/
|
|
.column-list(@gap: 10px) {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: @gap;
|
|
align-items: center;
|
|
}
|