Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit93453ad

Browse files
committed
Specify both color and background-color in case inherited colour changes and conflicts with background-color
1 parent8877845 commit93453ad

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 solidvar(--admonition-border);
270271
border-radius:3px;
272+
color:var(--admonition-color);
271273
}
272274

273275
div.bodydiv.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)

[8]ページ先頭

©2009-2025 Movatter.jp