-
Notifications
You must be signed in to change notification settings - Fork 70
Expand file tree
/
Copy paththeme.css
More file actions
212 lines (202 loc) · 5.57 KB
/
Copy paththeme.css
File metadata and controls
212 lines (202 loc) · 5.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
/*
* Light/dark theme support shared by all pages.
*
* js/theme.js puts class "dark" on <html> when the device prefers a dark color
* scheme, or when the toggle overrides that (stored in localStorage.darkMode).
* Everything dark-specific is keyed on that class and limited to screen media
* so printing stays black on white.
*
* Chant rendered by exsurge draws in `currentColor` (see makeExsurgeChantContext
* in util.js), so the rules below only have to set `color` on the SVG root.
* Rubric red everywhere (CSS and the chant) comes from --rubric-color, which is
* #d00 normally and #f66 in dark mode.
* Rules that match elements *inside* svg.Exsurge are deliberately theme
* neutral: saveSvgAsPng copies every matching CSS rule into exported SVGs, and
* a standalone export must still come out black on white.
*/
:root {
--rubric-color: #d00;
}
svg.Exsurge {
color: #000;
/* read by the fill attribute exsurge puts on "negative" glyph paths, such as
the hollow of a punctum cavum: those have to match the background, and a
stylesheet cannot reach them because glyphs are shared through <use>.
See ctxt.negativeFillColor in makeExsurgeChantContext (util.js). */
--exsurge-negative-fill: #fff;
}
:where(svg.Exsurge) use {
fill: currentColor;
}
/* icon-only button sharing the row with the PDF button group */
.dark-mode-toggle {
float: right;
margin: 0 0 0 8px;
}
/* lay the icon out as a block so the button is exactly one text line tall,
without baseline mixing between the icon font and the button font */
.dark-mode-toggle > .glyphicon {
display: block;
top: 0;
line-height: inherit;
}
/* Bootstrap's .btn display rule would otherwise beat the hidden attribute */
.dark-mode-toggle[hidden] {
display: none !important;
}
@media screen {
html.dark {
color-scheme: dark;
background-color: #000;
--rubric-color: #f66;
}
html.dark body {
background-color: #000;
color: #fff;
}
html.dark svg.Exsurge {
color: #fff;
--exsurge-negative-fill: #000;
}
/* text that is explicitly black in the light theme */
html.dark a:not([href]),
html.dark a:not([href]):hover {
color: #fff;
}
html.dark .rubric .quote {
color: #fff !important;
}
/* white surfaces */
html.dark .sticky,
html.dark div[part] > div.block:first-child,
html.dark #chant-parent2.noeditor {
background: #000;
}
/* borders and rules */
html.dark hr {
border-top-color: #333;
}
html.dark .sticky,
html.dark .ss-border-bottom {
border-bottom-color: #333;
}
html.dark .show-gabc .chant-parent,
html.dark #chant-parent,
html.dark .psalm-editor,
html.dark tr.bordered > td {
border-color: #555;
}
html.dark div.columns {
column-rule-color: #555;
}
/* page-break toggles in the "Include in PDF" menu */
html.dark .toggle-page-break,
html.dark #toggle-all-page-break {
color: #666;
}
html.dark .toggle-page-break.has-page-break-before,
html.dark #toggle-all-page-break.has-page-break-before {
color: #ddd;
}
html.dark #toggle-all-page-break.mixed {
color: #999;
}
/* links */
html.dark a {
color: #6cb4f0;
}
html.dark a:hover,
html.dark a:focus {
color: #9dd0ff;
}
/* Bootstrap 3 */
html.dark .btn-primary,
html.dark .btn-success,
html.dark .btn-info,
html.dark .btn-warning,
html.dark .btn-danger {
color: #fff;
}
html.dark .btn-default {
color: #eee;
background-color: #222;
border-color: #555;
}
html.dark .btn-default:hover,
html.dark .btn-default:focus,
html.dark .btn-default.focus,
html.dark .btn-default:active,
html.dark .btn-default.active,
html.dark .open > .dropdown-toggle.btn-default,
html.dark .btn-default:active:hover,
html.dark .btn-default.active:hover,
html.dark .open > .dropdown-toggle.btn-default:hover,
html.dark .btn-default:active:focus,
html.dark .btn-default.active:focus,
html.dark .open > .dropdown-toggle.btn-default:focus,
html.dark .btn-default:active.focus,
html.dark .btn-default.active.focus,
html.dark .open > .dropdown-toggle.btn-default.focus {
color: #fff;
background-color: #3a3a3a;
border-color: #777;
}
html.dark .btn-default.disabled:hover,
html.dark .btn-default[disabled]:hover,
html.dark .btn-default.disabled:focus,
html.dark .btn-default[disabled]:focus,
html.dark .btn-default.disabled.focus,
html.dark .btn-default[disabled].focus {
background-color: #222;
border-color: #555;
}
html.dark .nav > li > a:hover,
html.dark .nav > li > a:focus {
background-color: #222;
}
html.dark .dropdown-menu {
background-color: #1a1a1a;
border-color: #444;
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
}
html.dark .dropdown-menu > li > a {
color: #eee;
}
html.dark .dropdown-menu > li > a:hover,
html.dark .dropdown-menu > li > a:focus {
color: #fff;
background-color: #333;
}
html.dark .dropdown-menu .divider {
background-color: #333;
}
html.dark .progress {
background-color: #333;
}
/* jQuery UI (autocomplete menus) */
html.dark .ui-widget-content {
background: #1a1a1a;
border-color: #555;
color: #eee;
}
html.dark .ui-widget-content a {
color: #eee;
}
html.dark .ui-state-hover,
html.dark .ui-state-focus,
html.dark .ui-widget-content .ui-state-hover,
html.dark .ui-widget-content .ui-state-focus,
html.dark .ui-widget-header .ui-state-hover,
html.dark .ui-widget-header .ui-state-focus {
background: #333;
border-color: #777;
color: #fff;
}
html.dark .ui-state-hover a,
html.dark .ui-state-focus a {
color: #fff;
}
}
code {
background-color: transparent;
}