[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#74634] [PATCH shepherd website 1/5] logo: Remove adaptation to user
From: |
sirgazil |
Subject: |
[bug#74634] [PATCH shepherd website 1/5] logo: Remove adaptation to user's preferred color scheme. |
Date: |
Sun, 1 Dec 2024 11:19:46 -0500 |
From: Luis Felipe <sirgazil@zoho.com>
The website's CSS doesn't adapt to user's preferred color scheme yet,
but the logo image did. This created an accessibility problem for
users who prefer a dark scheme: the whitish version of the logo was
displayed on the whitish pages of the website. This change solves that
problem.
* haunt.scm (page-layout): Always use the logo for light backgrounds.
---
haunt.scm | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/haunt.scm b/haunt.scm
index 23a0efa..f561fc9 100644
--- a/haunt.scm
+++ b/haunt.scm
@@ -95,11 +95,8 @@
(a (@ (href ,(base-url "/"))
(class ,(if front-page?
"logo" "logo small")))
- (picture
- (source (@ (media "(prefers-color-scheme: dark)")
- (srcset ,(image-url "logo-dark.svg"))))
- (img (@ (src ,(image-url "logo-light.svg"))
- (alt "Shepherd logo")))))
+ (img (@ (src ,(image-url "logo-light.svg"))
+ (alt "Shepherd logo"))))
;; Add the large-font welcoming message on the
;; front page.
--
2.46.0
- [bug#74634] [PATCH shepherd website 0/5] Suggested style changes for 1.0.0 release, sirgazil, 2024/12/01
- [bug#74634] [PATCH shepherd website 1/5] logo: Remove adaptation to user's preferred color scheme.,
sirgazil <=
- [bug#74634] [PATCH shepherd website 2/5] logo: Remove jumpy effect on focus., sirgazil, 2024/12/01
- [bug#74634] [PATCH shepherd website 3/5] logo: Use the same color of the main text., sirgazil, 2024/12/01
- [bug#74634] [PATCH shepherd website 4/5] logo: Remove SVG margins., sirgazil, 2024/12/01
- [bug#74634] [PATCH shepherd website 5/5] Avoid some content overflowing horizontally on narrow screens., sirgazil, 2024/12/01
- [bug#74634] [PATCH shepherd website 1/5] logo: Remove adaptation to user's preferred color scheme., Ludovic Courtès, 2024/12/01
- bug#74634: [PATCH shepherd website 0/5] Suggested style changes for 1.0.0 release, Ludovic Courtès, 2024/12/01