From 0c680824ca9e9fe2df50aa5077c2c21dc543a4cb Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Wed, 31 Jul 2024 11:08:22 -0400 Subject: [PATCH] Omit the nav bar title when it has no use (#5316) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Turns out this is needed for navigation on mobile, but useless on larger screens. Closes #5130 Screenshot 2024-07-22 at 5 47 49 PM Screenshot 2024-07-22 at 5 48 02 PM Screenshot 2024-07-22 at 5 48 08 PM --- docs/stylesheets/extra.css | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css index 565a760597e0..a4d3ffc7d763 100644 --- a/docs/stylesheets/extra.css +++ b/docs/stylesheets/extra.css @@ -112,6 +112,20 @@ This is a consequence of the reduced nav spacing below. */ box-shadow: none; } +/* Omits the nav title "uv" entirely unless on a small screen, in which case +the nav title is needed for backwards navigation in the collapsible +nav variant. + +See https://github.com/astral-sh/uv/issues/5130 */ +.md-nav__title { + display: none; +} +@media screen and (max-width: 1219px) { + .md-nav__title { + display: flex ; + } +} + /* Reducing spacing between nav items to fit more content */ .md-nav__link { margin-top: 0.25em;