Skip to content

Commit

Permalink
Move dark theme to own file, rename edlib theme file. Fix low contras…
Browse files Browse the repository at this point in the history
…t on secondary outline button in dark mode
  • Loading branch information
chrieinv committed Feb 14, 2025
1 parent eb94fc3 commit 14604b5
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 18 deletions.
7 changes: 2 additions & 5 deletions sourcecode/hub/resources/css/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,5 @@ $font-family-sans-serif: Lato, sans-serif;
@import 'choices.js/src/styles/choices';
@import 'billboard.js/dist/billboard';
@import 'layout';
@import 'theme';

[data-bs-theme="dark"] {
@import 'billboard.js/dist/theme/dark';
}
@import 'theme-edlib';
@import 'theme-dark';
11 changes: 0 additions & 11 deletions sourcecode/hub/resources/css/layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -225,14 +225,3 @@
}
}
}


[data-bs-theme="dark"] {
.choices {
&[data-type*=select-one] {
.choices__button {
background-image: $choices-icon-cross;
}
}
}
}
15 changes: 15 additions & 0 deletions sourcecode/hub/resources/css/theme-dark.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[data-bs-theme="dark"] {
@import 'billboard.js/dist/theme/dark';

.choices {
&[data-type*=select-one] {
.choices__button {
background-image: $choices-icon-cross;
}
}
}

.btn-outline-secondary {
@include button-outline-variant($gray-500, $gray-900, $gray-200, $gray-100, $gray-900);
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// The Edlib theme
[data-bs-theme="edlib"] {
--bs-body-color: #{$gray-700}; //Default text color
--bs-border-color: #{$gray-400}; //Default border color for input, buttons, etc
Expand Down Expand Up @@ -178,4 +177,3 @@
}
}
}

0 comments on commit 14604b5

Please sign in to comment.