Skip to content

Commit 2ef3a20

Browse files
authored
Add dark mode for zeitinfo admonition (#166)
* Feat: add dark mode for zeitinfo admonition --------- Co-authored-by: LamiaIslam75 <57487898+LamiaIslam75@users.noreply.github.com>
1 parent bf41b19 commit 2ef3a20

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

_static/quadriga.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,3 +279,18 @@ div.zeitinfo > .admonition-title::after {
279279
font-weight: 900;
280280
color: #cc6f53 !important; /* Apricot-Farbe für das Icon */
281281
}
282+
283+
/* Dark mode overrides for zeitinfo */
284+
html[data-theme='dark'] div.zeitinfo {
285+
background-color: rgba(229, 157, 126, 0.1) !important;
286+
border-left-color: #e59d7e !important;
287+
}
288+
289+
html[data-theme='dark'] div.zeitinfo > .admonition-title {
290+
background-color: rgba(229, 157, 126, 0.15) !important;
291+
color: #e59d7e !important;
292+
}
293+
294+
html[data-theme='dark'] div.zeitinfo > .admonition-title::after {
295+
color: #e59d7e !important;
296+
}

formatierung/admonitions.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,17 @@ Weiterführende Literaturhinweise oder zusätzliche (externe) Materialien werden
9191
````
9292
`````
9393

94+
`````{admonition} Bearbeitungszeit
95+
:class: zeitinfo
96+
Dieser Admonition-Typ wird verwendet, um die voraussichtliche Bearbeitungszeit für Aufgaben oder Kapitel anzugeben.
97+
````
98+
```{admonition} Bearbeitungszeit/Zeitinfo
99+
:class: zeitinfo
100+
Informiert Lernende über den voraussichtlichen Zeitaufwand für Abschnitte oder Aufgaben.
101+
```
102+
````
103+
`````
104+
94105
``````{admonition} Zitierhinweis
95106
:class: citation-information
96107
```{literalinclude} ../CITATION.bib

0 commit comments

Comments
 (0)