Skip to content

Commit 8645247

Browse files
committed
fix: dark mode admonition block backgrounds
Add specific selectors for tip, note, warning, caution, and important blocks with subtle accent colors.
1 parent 66313e0 commit 8645247

1 file changed

Lines changed: 55 additions & 0 deletions

File tree

supplemental-ui/css/site-extra.css

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,61 @@ html.dark-theme .tableblock {
120120
border-color: #373a40;
121121
}
122122

123+
/* Admonition blocks - more specific selectors */
124+
html.dark-theme .doc .admonitionblock,
125+
html.dark-theme .doc .admonitionblock > table,
126+
html.dark-theme .doc .admonitionblock > table > tbody > tr,
127+
html.dark-theme .doc .admonitionblock > table > tbody > tr > td,
128+
html.dark-theme .doc .admonitionblock > table > tbody > tr > td.content,
129+
html.dark-theme .doc .admonitionblock > table > tbody > tr > td.icon {
130+
background-color: #25262b !important;
131+
background: #25262b !important;
132+
}
133+
134+
html.dark-theme .doc .admonitionblock td.content {
135+
color: #c1c2c5;
136+
}
137+
138+
html.dark-theme .doc .admonitionblock .title {
139+
color: #ffffff;
140+
}
141+
142+
/* Specific admonition types with subtle accent colors */
143+
html.dark-theme .doc .admonitionblock.tip > table,
144+
html.dark-theme .doc .admonitionblock.tip > table > tbody > tr,
145+
html.dark-theme .doc .admonitionblock.tip > table > tbody > tr > td {
146+
background-color: #1a2a1a !important;
147+
background: #1a2a1a !important;
148+
}
149+
150+
html.dark-theme .doc .admonitionblock.note > table,
151+
html.dark-theme .doc .admonitionblock.note > table > tbody > tr,
152+
html.dark-theme .doc .admonitionblock.note > table > tbody > tr > td {
153+
background-color: #1a1a2a !important;
154+
background: #1a1a2a !important;
155+
}
156+
157+
html.dark-theme .doc .admonitionblock.warning > table,
158+
html.dark-theme .doc .admonitionblock.warning > table > tbody > tr,
159+
html.dark-theme .doc .admonitionblock.warning > table > tbody > tr > td {
160+
background-color: #2a2a1a !important;
161+
background: #2a2a1a !important;
162+
}
163+
164+
html.dark-theme .doc .admonitionblock.caution > table,
165+
html.dark-theme .doc .admonitionblock.caution > table > tbody > tr,
166+
html.dark-theme .doc .admonitionblock.caution > table > tbody > tr > td {
167+
background-color: #2a1a1a !important;
168+
background: #2a1a1a !important;
169+
}
170+
171+
html.dark-theme .doc .admonitionblock.important > table,
172+
html.dark-theme .doc .admonitionblock.important > table > tbody > tr,
173+
html.dark-theme .doc .admonitionblock.important > table > tbody > tr > td {
174+
background-color: #2a1a2a !important;
175+
background: #2a1a2a !important;
176+
}
177+
123178
html.dark-theme .quoteblock blockquote,
124179
html.dark-theme .quoteblock p {
125180
color: #adb5bd;

0 commit comments

Comments
 (0)