From 040469e9ed972fe1e793fa923e1d4c0f01f64fa2 Mon Sep 17 00:00:00 2001 From: Dean Attali Date: Wed, 16 Sep 2020 22:32:56 +0000 Subject: [PATCH] fix bug where navbar secondary level dropdown items did not inherit the same colour as the primary navbar links --- assets/css/beautifuljekyll.css | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/assets/css/beautifuljekyll.css b/assets/css/beautifuljekyll.css index 8a9a239..08e3459 100644 --- a/assets/css/beautifuljekyll.css +++ b/assets/css/beautifuljekyll.css @@ -173,15 +173,6 @@ img { height: 2.5rem; } -.navbar-custom .navbar-brand:hover, -.navbar-custom .navbar-brand:focus , -.navbar-custom .navbar-nav .nav-link:hover, -.navbar-custom .navbar-nav .nav-link:focus, -.navbar-custom .navbar-nav .dropdown-item:hover, -.navbar-custom .navbar-nav .dropdown-item:focus { - color: {{ site.hover-col | default: "#0085A1" }}; -} - .navbar-custom .navbar-nav .nav-item { text-transform: uppercase; font-size: 0.8125rem; @@ -270,6 +261,7 @@ img { text-decoration: none !important; border-width: 0 1px 1px 1px; font-weight: normal; + color: {{ site.navbar-text-col | default: "#404040" }}; } @media (min-width: 1200px) { @@ -306,6 +298,14 @@ img { padding-left: 2rem; } } +.navbar-custom .navbar-brand:hover, +.navbar-custom .navbar-brand:focus , +.navbar-custom .navbar-nav .nav-link:hover, +.navbar-custom .navbar-nav .nav-link:focus, +.navbar-custom .navbar-nav .dropdown-menu .dropdown-item:hover, +.navbar-custom .navbar-nav .dropdown-menu .dropdown-item:focus { + color: {{ site.hover-col | default: "#0085A1" }}; +} .navbar-custom .avatar-container { position: absolute; @@ -874,7 +874,9 @@ pre { .highlight > pre:not([class~="highlight"]) { /* code block with line number */ padding: 0; } -.highlight table, .highlight tr, .highlight td { /* to be removed after fixing table styles */ +.highlight table, +.highlight tr, +.highlight td { /* to be removed after fixing table styles */ border: none; background: none; padding: 0; @@ -915,7 +917,10 @@ pre { } /* --- Notification boxes --- */ -.box-note, .box-warning, .box-error, .box-success { +.box-note, +.box-warning, +.box-error, +.box-success { padding: 0.9375rem 0.9375rem 0.9375rem 0.625rem; margin: 1.25rem 1.25rem 1.25rem 0.3125rem; border: 1px solid #eee;