From 338ed557b78a19a4f2cf080093dd7b6ee2aa17dc Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Thu, 13 Jun 2024 18:41:25 +0300 Subject: [PATCH] Replace rgba with hex, prefer short hex --- python_docs_theme/static/pydoctheme.css | 4 ++-- python_docs_theme/static/pydoctheme_dark.css | 18 +++++++++--------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/python_docs_theme/static/pydoctheme.css b/python_docs_theme/static/pydoctheme.css index 78794e8..662d987 100644 --- a/python_docs_theme/static/pydoctheme.css +++ b/python_docs_theme/static/pydoctheme.css @@ -250,7 +250,7 @@ div.body pre { --attention-background: #bbddff5c; --attention-border: #0000ff36; --caution-background: #ffc; - --caution-border: #dddd66; + --caution-border: #dd6; --danger-background: #ffe4e4; --danger-border: red; --error-background: #ffe4e4; @@ -258,7 +258,7 @@ div.body pre { --hint-background: #dfd; --hint-border: green; --seealso-background: #ffc; - --seealso-border: #dddd66; + --seealso-border: #dd6; --tip-background: #dfd; --tip-border: green; --warning-background: #ffe4e4; diff --git a/python_docs_theme/static/pydoctheme_dark.css b/python_docs_theme/static/pydoctheme_dark.css index 20bbd32..4509960 100644 --- a/python_docs_theme/static/pydoctheme_dark.css +++ b/python_docs_theme/static/pydoctheme_dark.css @@ -115,25 +115,25 @@ div.warning { /* Admonitions */ :root { - --admonition-background: rgba(255, 255, 255, 0.1); + --admonition-background: #ffffff1a; --admonition-border: currentColor; - --admonition-color: rgba(255, 255, 255, 0.87); - --attention-background: rgba(255, 255, 255, 0.1); + --admonition-color: #ffffffde; + --attention-background: #ffffff1a; --attention-border: currentColor; - --caution-background: rgba(255, 255, 0, 0.1); + --caution-background: #ffff001a; --caution-border: #dd6; - --danger-background: rgba(255, 0, 0, 0.2); + --danger-background: #f003; --danger-border: #f66; - --error-background: rgba(255, 0, 0, 0.2); + --error-background: #f003; --error-border: #f66; --hint-background: #0044117a; --hint-border: green; - --seealso-background: rgba(255, 255, 0, 0.1); + --seealso-background: #ffff001a; --seealso-border: #dd6; --tip-background: #0044117a; --tip-border: green; - --warning-background: rgba(255, 0, 0, 0.2); - --warning-border: #f66; + --warning-background: #ff000033; + --warning-border: #ff6666; } aside.topic,