Skip to content

Commit 93453ad

Browse files
committed
Specify both color and background-color in case inherited colour changes and conflicts with background-color
1 parent 8877845 commit 93453ad

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Diff for: python_docs_theme/static/pydoctheme.css

+2
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ div.body pre {
246246
:root {
247247
--admonition-background: #eee;
248248
--admonition-border: #ccc;
249+
--admonition-color: black;
249250
--attention-background: #bbddff5c;
250251
--attention-border: #0000ff36;
251252
--caution-background: #ffc;
@@ -268,6 +269,7 @@ div.body div.admonition {
268269
background-color: var(--admonition-background);
269270
border: 1px solid var(--admonition-border);
270271
border-radius: 3px;
272+
color: var(--admonition-color);
271273
}
272274

273275
div.body div.admonition.attention {

Diff for: python_docs_theme/static/pydoctheme_dark.css

+1
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ div.warning {
117117
:root {
118118
--admonition-background: rgba(255, 255, 255, 0.1);
119119
--admonition-border: currentColor;
120+
--admonition-color: rgba(255, 255, 255, 0.87);
120121
--attention-background: rgba(255, 255, 255, 0.1);
121122
--attention-border: currentColor;
122123
--caution-background: rgba(255, 255, 0, 0.1);

0 commit comments

Comments
 (0)