Skip to content

Commit 99fea57

Browse files
committed
Add css var support for dark theme
1 parent ac2d059 commit 99fea57

5 files changed

Lines changed: 182 additions & 179 deletions

File tree

src/styles/_mixins.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,11 @@
1010
#{$property}: max($max-value, $default);
1111
}
1212
}
13+
14+
/**
15+
* Helper mixin to add properties using css variables with fallback values.
16+
*/
17+
@mixin var($property, $variable, $default, $important: false) {
18+
#{$property}: $default if($important, !important, null);
19+
#{$property}: var($variable) if($important, !important, null);
20+
}

src/styles/librarybrowser.scss

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,16 +1017,6 @@ div.itemDetailGalleryLink.defaultCardBackground {
10171017
}
10181018
}
10191019

1020-
.emby-button.detailFloatingButton {
1021-
font-size: 1.4em;
1022-
margin-right: 0.5em !important;
1023-
color: rgba(255, 255, 255, 0.76);
1024-
}
1025-
1026-
.emby-button.detailFloatingButton .material-icons {
1027-
font-size: 3.5em;
1028-
}
1029-
10301020
@media all and (max-width: 62.5em) {
10311021
.parentName {
10321022
margin-bottom: 0;

0 commit comments

Comments
 (0)