From fa3ad0bfd37e137f1e075dc0173b29daffec7fc1 Mon Sep 17 00:00:00 2001 From: Mohamad Salman <139472418+MohamadSalman11@users.noreply.github.com> Date: Thu, 24 Oct 2024 10:37:40 +0200 Subject: [PATCH] Docs: fix transparent navbar in Windows high contrast mode (#40911) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Julien Déramond --- site/assets/scss/_navbar.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/site/assets/scss/_navbar.scss b/site/assets/scss/_navbar.scss index 2b598bf676e5..341b5dd135e7 100644 --- a/site/assets/scss/_navbar.scss +++ b/site/assets/scss/_navbar.scss @@ -3,6 +3,10 @@ background-color: transparent; box-shadow: 0 .5rem 1rem rgba($black, .15), inset 0 -1px 0 rgba($white, .15); + @media (forced-colors) { + background-color: Canvas; + } + &::after { position: absolute; inset: 0;