From 2a31380dbc4ecdeba5204040a279906c0e658b61 Mon Sep 17 00:00:00 2001 From: Ben Phelps Date: Thu, 20 Jun 2024 12:33:16 +0300 Subject: [PATCH] increase contrast, fix safari --- docs/stylesheets/extra.css | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css index 4dd8a4b17..de1221790 100644 --- a/docs/stylesheets/extra.css +++ b/docs/stylesheets/extra.css @@ -97,7 +97,15 @@ body { background-attachment: fixed; background-position: center; background-color: transparent; - color: #ffffffee; + color: rgba(255, 255, 255, 0.7); +} + +.md-typeset h1 { + color: #fff; +} + +body[data-md-color-scheme="default"] { + color: rgba(255, 255, 255, 1); } .blur-overlay { @@ -105,9 +113,9 @@ body { position: fixed; width: 100%; height: 100%; - background: hsla(0, 0%, 0%, 0); - backdrop-filter: blur(128px); - -webkit-backdrop-filter: blur(128px); + background: hsl(0deg 0% 0% / 20%); + backdrop-filter: blur(192px); + -webkit-backdrop-filter: blur(192px); } .md-nav--lifted > .md-nav__list > .md-nav__item--active > .md-nav__link, @@ -253,3 +261,7 @@ body { .md-typeset details.danger { box-shadow: 0 0 1rem 0.25rem hsl(0deg 100% 37.45% / 20%); } + +.md-tabs__link { + transform: translateZ(0); +}