From f8c01f081185cb12af7f85eb5dbc0af18effceeb Mon Sep 17 00:00:00 2001 From: MohamadSalman11 Date: Sat, 5 Oct 2024 13:37:01 +0200 Subject: [PATCH 1/2] fix transparent navbar in high contrast mode --- site/assets/scss/_navbar.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/site/assets/scss/_navbar.scss b/site/assets/scss/_navbar.scss index 2b598bf676e5..2f06a5ca7ee1 100644 --- a/site/assets/scss/_navbar.scss +++ b/site/assets/scss/_navbar.scss @@ -1,6 +1,7 @@ .bd-navbar { padding: .75rem 0; background-color: transparent; + forced-color-adjust: none; box-shadow: 0 .5rem 1rem rgba($black, .15), inset 0 -1px 0 rgba($white, .15); &::after { From fcab0a379a9d7ac2f6b0323adfcb4f9b14d1c169 Mon Sep 17 00:00:00 2001 From: Mohamad Salman <139472418+MohamadSalman11@users.noreply.github.com> Date: Mon, 7 Oct 2024 11:03:44 +0200 Subject: [PATCH 2/2] fix transparent navbar in windows high contrast mode --- site/assets/scss/_navbar.scss | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/site/assets/scss/_navbar.scss b/site/assets/scss/_navbar.scss index 2f06a5ca7ee1..341b5dd135e7 100644 --- a/site/assets/scss/_navbar.scss +++ b/site/assets/scss/_navbar.scss @@ -1,9 +1,12 @@ .bd-navbar { padding: .75rem 0; background-color: transparent; - forced-color-adjust: none; 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;