From 0a35f6c84096d48866953c6c099f9b7d20b003eb Mon Sep 17 00:00:00 2001 From: hedy Date: Sat, 13 Jan 2024 19:46:17 +0800 Subject: Dark: Use link color of better contrast --- pydis_site/static/css/resources/resources.css | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'pydis_site/static/css/resources') 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; -- cgit v1.2.3