From 4aa4c97dd0b5d09511ebdfdaa371902f1d8c87b4 Mon Sep 17 00:00:00 2001 From: Sarah Abderemane Date: Sat, 25 Nov 2023 02:19:10 +0100 Subject: [PATCH] Fix accessibility community page and add empty case --- djangoproject/scss/_dark-mode.scss | 9 +++++++++ djangoproject/scss/_style.scss | 6 +++--- .../templates/aggregator/local-django-community.html | 10 ++++++---- 3 files changed, 18 insertions(+), 7 deletions(-) diff --git a/djangoproject/scss/_dark-mode.scss b/djangoproject/scss/_dark-mode.scss index 1e1e6c2c8..8ce0b24e4 100644 --- a/djangoproject/scss/_dark-mode.scss +++ b/djangoproject/scss/_dark-mode.scss @@ -57,6 +57,9 @@ html[data-theme="light"], --search-mark-text: #{$green-dark}; --selection: #{$green-very-light}; + + --community-img-bg: #{$green-very-light}; + --community-img-fg: #{$green-dark}; } @media (prefers-color-scheme: dark) { @@ -105,6 +108,9 @@ html[data-theme="light"], --search-mark-text: #{$black-light-5}; --selection: #{$green-medium}; + + --community-img-bg: #{$green-dark}; + --community-img-fg: #{$white}; } body .homepage { @@ -201,6 +207,9 @@ html[data-theme="dark"] { --selection: #{$green-dark}; + --community-img-bg: #{$green-dark}; + --community-img-fg: #{$white}; + .img-release { filter: invert(1); } diff --git a/djangoproject/scss/_style.scss b/djangoproject/scss/_style.scss index 98fb0f73e..08621d897 100644 --- a/djangoproject/scss/_style.scss +++ b/djangoproject/scss/_style.scss @@ -3685,11 +3685,11 @@ ul.corporate-members li { flex-direction: column; justify-content: center; align-items: center; - background: var(--secondary-accent); + background: var(--community-img-bg); border-radius: 20px; } - .community-cta svg { - color: var(--body-fg); + .community-cta svg, h3 { + color: var(--community-img-fg); } } diff --git a/djangoproject/templates/aggregator/local-django-community.html b/djangoproject/templates/aggregator/local-django-community.html index 8cb669898..3d28f9930 100644 --- a/djangoproject/templates/aggregator/local-django-community.html +++ b/djangoproject/templates/aggregator/local-django-community.html @@ -8,7 +8,7 @@

Local Django Communities

-

Table of contents

+ {% if grouped_django_communities %}

Table of contents

{% endif %}