From 081a1032980197487c9337526dc94daff3de6813 Mon Sep 17 00:00:00 2001 From: Peter Becich Date: Fri, 21 Jun 2024 19:25:19 -0700 Subject: [PATCH 1/2] fix quote color closes: https://github.com/haskell/hackage-server/issues/1298 --- datafiles/static/hackage.css | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/datafiles/static/hackage.css b/datafiles/static/hackage.css index ce0e8810..1c5081ef 100644 --- a/datafiles/static/hackage.css +++ b/datafiles/static/hackage.css @@ -267,9 +267,21 @@ pre + pre { margin-top: 0.5em; } +@media (prefers-color-scheme: dark) { + blockquote { + border-left: 3px solid #2f2842; + background-color: #252034; + } +} + +@media (prefers-color-scheme: light) { + blockquote { + border-left: 3px solid #c7a5d3; + background-color: #eee4f1; + } +} + blockquote { - border-left: 3px solid #c7a5d3; - background-color: #eee4f1; margin: 0.5em; padding: 0.0005em 0.3em 0.5em 0.5em; } From bc548b51111a8d0f9d2c87564bd840b2dbd40b7a Mon Sep 17 00:00:00 2001 From: Peter Becich Date: Sat, 22 Jun 2024 09:52:22 -0700 Subject: [PATCH 2/2] improve contrast ratio https://webaim.org/resources/contrastchecker/?fcolor=4C4771&bcolor=333333 --- datafiles/static/hackage.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datafiles/static/hackage.css b/datafiles/static/hackage.css index 1c5081ef..adc3bf2b 100644 --- a/datafiles/static/hackage.css +++ b/datafiles/static/hackage.css @@ -270,7 +270,7 @@ pre + pre { @media (prefers-color-scheme: dark) { blockquote { border-left: 3px solid #2f2842; - background-color: #252034; + background-color: #4c4771; } }