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

python_docs_theme/static/pydoctheme.css

Lines changed: 2 additions & 0 deletions
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 {

python_docs_theme/static/pydoctheme_dark.css

Lines changed: 1 addition & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy