From e0b51d9cf50908e5ccb20d89301f10b2133bcc10 Mon Sep 17 00:00:00 2001 From: Nan Xiao Date: Wed, 24 Jul 2024 00:11:45 -0400 Subject: [PATCH] Update navbar style for pkgdown 2.1.0 --- pkgdown/extra.css | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pkgdown/extra.css b/pkgdown/extra.css index 1feaddd..4726e88 100644 --- a/pkgdown/extra.css +++ b/pkgdown/extra.css @@ -1,5 +1,5 @@ /* navbar background */ -.bg-light, .navbar-light { +nav.bg-light { background-color: #00857c !important; } @@ -9,11 +9,16 @@ } /* navbar link status */ -.navbar-light .navbar-nav .nav-item>.nav-link:hover { +nav.bg-light .navbar-nav .nav-item.active .nav-link { + color: #212529; + background-color: #e9ecef; +} + +nav.bg-light .navbar-nav .nav-item>.nav-link:hover { background: #005c55; } -.navbar-light .navbar-nav .nav-item.active>.nav-link:hover { +nav.bg-light .navbar-nav .nav-item.active>.nav-link:hover { color: #fff; }