Skip to content

Commit 820fbce

Browse files
authored
Update: CSS file
Added styling for zeitinfo and story sections with dark mode support.
1 parent c6eecb7 commit 820fbce

File tree

1 file changed

+82
-2
lines changed

1 file changed

+82
-2
lines changed

_static/quadriga.css

Lines changed: 82 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
1+
/* font-awesome icons library */
2+
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');
3+
14
/* Custom variables */
25
:root {
36
--quadriga-main: #00305e;
47
--quadriga-main-45: #818bac;
58
--quadriga-main-web: #c1d3e0;
69
}
710

11+
html[data-theme='dark'] .navbar-brand img {
12+
filter: invert(95%) hue-rotate(190deg) saturate(60%) brightness(135%);
13+
}
14+
815
/* Reset ALL default admonition icons */
916
.admonition-title::before {
1017
content: none !important;
@@ -119,7 +126,8 @@ html[data-theme='dark'] div.caution > .admonition-title,
119126
html[data-theme='dark'] div.hinweis > .admonition-title,
120127
html[data-theme='dark'] div.keypoint > .admonition-title,
121128
html[data-theme='dark'] div.solution > .admonition-title,
122-
html[data-theme='dark'] div.exercise > .admonition-title {
129+
html[data-theme='dark'] div.exercise > .admonition-title,
130+
html[data-theme='dark'] div.story > .admonition-title {
123131
color: #CED6DD !important;
124132
}
125133

@@ -250,9 +258,81 @@ html[data-theme='dark'] div.citation-information > .admonition-title::after {
250258

251259
/* Dark mode styling for Jupyter notebook cells */
252260
html[data-theme='dark'] div.cell div.cell_input,
253-
html[data-theme='dark'] div.cell details.above-input > summary {
261+
html[data-theme='dark'] div.cell div.cell_output,
262+
html[data-theme='dark'] div.cell details.above-input > summary,
263+
html[data-theme='dark'] div.cell details.above-output > summary {
254264
background-color: #29313d !important;
255265
color: #f7fbff !important;
256266
}
257267

258268

269+
/* Zeitinfo/Bearbeitungszeit styling */
270+
div.zeitinfo {
271+
background-color: #fff9f4 !important; /* sehr helles Apricot */
272+
border-left-color: #e59d7e !important; /* weiches Apricot */
273+
}
274+
275+
div.zeitinfo > .admonition-title {
276+
background-color: rgba(229, 157, 126, 0.12) !important;
277+
color: #cc6f53 !important; /* kräftigerer Apricot-Ton */
278+
}
279+
280+
div.zeitinfo > .admonition-title::after {
281+
content: "\f017" !important; /* Font Awesome clock */
282+
float: left !important;
283+
padding-right: 0.5rem !important;
284+
font-size: 1em !important;
285+
font-family: "Font Awesome 5 Free";
286+
font-weight: 900;
287+
color: #cc6f53 !important; /* Apricot-Farbe für das Icon */
288+
}
289+
290+
/* Dark mode overrides for zeitinfo */
291+
html[data-theme='dark'] div.zeitinfo {
292+
background-color: rgba(229, 157, 126, 0.1) !important;
293+
border-left-color: #e59d7e !important;
294+
}
295+
296+
html[data-theme='dark'] div.zeitinfo > .admonition-title {
297+
background-color: rgba(229, 157, 126, 0.15) !important;
298+
color: #e59d7e !important;
299+
}
300+
301+
html[data-theme='dark'] div.zeitinfo > .admonition-title::after {
302+
color: #e59d7e !important;
303+
}
304+
305+
/* Story styling */
306+
div.story {
307+
background-color: #faf8ff !important; /* sehr helles Lila */
308+
border-left-color: #8e44ad !important; /* weiches Lila */
309+
}
310+
311+
div.story > .admonition-title {
312+
background-color: rgba(142, 68, 173, 0.12) !important;
313+
color: #222832 !important;
314+
}
315+
316+
div.story > .admonition-title::after {
317+
content: "\f02d" !important; /* Font Awesome book */
318+
float: left !important;
319+
padding-right: 0.5rem !important;
320+
font-size: 1em !important;
321+
font-family: "Font Awesome 5 Free";
322+
font-weight: 900;
323+
color: #7a3a96 !important; /* Lila-Farbe für das Icon */
324+
}
325+
326+
/* Dark mode overrides for story */
327+
html[data-theme='dark'] div.story {
328+
background-color: rgba(142, 68, 173, 0.1) !important;
329+
border-left-color: #8e44ad !important;
330+
}
331+
332+
html[data-theme='dark'] div.story > .admonition-title {
333+
background-color: rgba(142, 68, 173, 0.15) !important;
334+
}
335+
336+
html[data-theme='dark'] div.story > .admonition-title::after {
337+
color: #b876d1
338+
}

0 commit comments

Comments
 (0)