diff options
author | 2024-01-13 19:46:17 +0800 | |
---|---|---|
committer | 2024-01-13 19:52:58 +0800 | |
commit | 0a35f6c84096d48866953c6c099f9b7d20b003eb (patch) | |
tree | 8c5f4c7c3963d29b111a40fb692e018cb4663ccd /pydis_site | |
parent | Dark: Fix timeline color for borders (diff) |
Dark: Use link color of better contrast
Diffstat (limited to 'pydis_site')
-rw-r--r-- | pydis_site/settings.py | 4 | ||||
-rw-r--r-- | pydis_site/static/css/content/color.css | 4 | ||||
-rw-r--r-- | pydis_site/static/css/content/tag.css | 4 | ||||
-rw-r--r-- | pydis_site/static/css/error_pages.css | 4 | ||||
-rw-r--r-- | pydis_site/static/css/home/index.css | 6 | ||||
-rw-r--r-- | pydis_site/static/css/resources/resources.css | 6 |
6 files changed, 22 insertions, 6 deletions
diff --git a/pydis_site/settings.py b/pydis_site/settings.py index 71aeb442..b3a4480f 100644 --- a/pydis_site/settings.py +++ b/pydis_site/settings.py @@ -332,8 +332,8 @@ BULMA_SETTINGS = { "text-light": "#F7F7F7", "text-strong": "#FEFEFE", - "link": "$primary", - "link-hover": "#CAD6FF", # PyDis light blurple + "link": "#99B0FF", # A brighter PyDis blurple + "link-hover": "#FFFFFF", "link-focus": "$link-hover", "link-active": "$link-hover", diff --git a/pydis_site/static/css/content/color.css b/pydis_site/static/css/content/color.css index f4801c28..75de31f1 100644 --- a/pydis_site/static/css/content/color.css +++ b/pydis_site/static/css/content/color.css @@ -2,6 +2,10 @@ color: black; } +[data-theme="dark"] .content .fa-github { + color: white; +} + .content .fa-github:hover { color: #7289DA; } diff --git a/pydis_site/static/css/content/tag.css b/pydis_site/static/css/content/tag.css index 79795f9e..b6c03ef3 100644 --- a/pydis_site/static/css/content/tag.css +++ b/pydis_site/static/css/content/tag.css @@ -4,6 +4,10 @@ color: #7289DA; } +[data-theme="dark"] .content a { + color: #99B0FF; +} + .content a *:hover { color: dimgray; } diff --git a/pydis_site/static/css/error_pages.css b/pydis_site/static/css/error_pages.css index 042a53a0..5c6fb661 100644 --- a/pydis_site/static/css/error_pages.css +++ b/pydis_site/static/css/error_pages.css @@ -36,6 +36,10 @@ a { color: #7289DA; } +[data-theme="dark"] a { + color: #99B0FF; +} + ul { margin-bottom: 0; } diff --git a/pydis_site/static/css/home/index.css b/pydis_site/static/css/home/index.css index e0dd1ebc..5ecf7cd7 100644 --- a/pydis_site/static/css/home/index.css +++ b/pydis_site/static/css/home/index.css @@ -186,8 +186,8 @@ h1 { #projects .card-header-title { padding: 0; - /* The primary blurple theme color */ - color: #7289DA; + /* Link color from settings.py */ + color: #99B0FF; } #projects .card:hover .card-header-title { @@ -197,7 +197,7 @@ h1 { [data-theme="dark"] #projects .card:hover .card-header-title { /* Bulma link-hover setting */ - color: #CAD6FF; + color: #FFFFFF; } #projects .card-content { diff --git a/pydis_site/static/css/resources/resources.css b/pydis_site/static/css/resources/resources.css index 96d06111..ee5954da 100644 --- a/pydis_site/static/css/resources/resources.css +++ b/pydis_site/static/css/resources/resources.css @@ -154,11 +154,15 @@ i.is-primary { } /* When hovering title anchors, just make the color a lighter primary, not black. */ -.resource-box a:hover { +[data-theme="light"] .resource-box a:hover { filter: brightness(120%); color: #7289DA; } +[data-theme="dark"] .resource-box a:hover { + color: white; +} + /* Set default display to inline-flex, for centering. */ span.filter-box-tag { display: none; |