Skip to content

Commit 01b8cab

Browse files
author
Thomas Hanke
committed
dark mode now optional to be set in theme config
1 parent 0565a58 commit 01b8cab

File tree

10 files changed

+154
-245
lines changed

10 files changed

+154
-245
lines changed
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
/*!
2+
* Dark Mode Overrides for Bootstrap-Dark
3+
* Include this file after light.css to enable dark mode.
4+
*/
5+
6+
/* Dark Mode Variable Overrides */
7+
:root {
8+
--bs-white: #fafafa;
9+
--bs-black: #111;
10+
--bs-gray: #7e7e7e;
11+
--bs-primary: #375a7f;
12+
--bs-secondary: #4e6c7e;
13+
--bs-light: #2a333c;
14+
--bs-primary-rgb: 55, 90, 127;
15+
--bs-secondary-rgb: 78, 108, 126;
16+
--bs-light-rgb: 42, 51, 60;
17+
--bs-body-bg-rgb: 34, 34, 34;
18+
--bs-body-color: #a6bbc8;
19+
--bs-body-bg: #222;
20+
--bs-table-bg: var(--bs-body-bg);
21+
}
22+
23+
/* Dark Mode Utility Classes */
24+
.d-dark-inline { display: inline !important; }
25+
.d-dark-inline-block { display: inline-block !important; }
26+
.d-dark-block { display: block !important; }
27+
.d-dark-grid { display: grid !important; }
28+
.d-dark-table { display: table !important; }
29+
.d-dark-table-row { display: table-row !important; }
30+
.d-dark-table-cell { display: table-cell !important; }
31+
.d-dark-flex { display: flex !important; }
32+
.d-dark-inline-flex { display: inline-flex !important; }
33+
.d-dark-none { display: none !important; }
34+
35+
/* Additional Dark-Specific Overrides */
36+
.tag {
37+
color: var(--bs-body-color);
38+
}
39+
.btn {
40+
color: var(--bs-body-color);
41+
}
42+
.counter-link:hover {
43+
color: var(--bs-body-color);
44+
text-decoration: none;
45+
}
46+
.text-light {
47+
color: var(--bs-body-color) !important;
48+
}
49+
.site-footer a,
50+
.site-footer .attribution p,
51+
.site-footer label {
52+
color: var(--bs-body-color) !important;
53+
}
54+
55+
.checkbox input[type=checkbox], .form-check-input {
56+
background-color: var(--bs-body-bg);
57+
}
58+
.accordion-item {
59+
background-color: var(--bs-body-bg);
60+
}
61+
.accordion-button, .accordion-button:not(.collapsed){
62+
background-color: var(--bs-body-color);
63+
}
64+
65+
/* End of dark.css */
66+

0 commit comments

Comments
 (0)