From 3822a43560de6a5c9b19a70ab84dda16b571363e Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Tue, 23 Jul 2024 18:33:57 -0400 Subject: [PATCH] Fix blurring from nav title box shadow (#5374) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes blur noted in https://github.com/astral-sh/uv/pull/5316 but doesn't drop the title entirely. https://github.com/astral-sh/uv/pull/5316 is my preferred design, if the implementation was cost-free. Screenshot 2024-07-23 at 3 53 48 PM (nothing to see at the rest of the breakpoints >1220) Screenshot 2024-07-23 at 3 53 56 PM --- docs/stylesheets/extra.css | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css index 9772af243..e339ba4a4 100644 --- a/docs/stylesheets/extra.css +++ b/docs/stylesheets/extra.css @@ -104,6 +104,14 @@ background-color: var(--md-code-bg-color); } +/* Prevent the shadow from the nav title from blurring the top link. +The box shadow isn't really doing anything anyway. + +This is a consequence of the reduced nav spacing below. */ +.md-nav--primary .md-nav__title { + box-shadow: none; +} + /* Reducing spacing between nav items to fit more content */ .md-nav__link { margin-top: 0.25em;