Skip to content

Commit 040469e

Browse files
committed
fix bug where navbar secondary level dropdown items did not inherit the same colour as the primary navbar links
1 parent c474616 commit 040469e

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

assets/css/beautifuljekyll.css

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -173,15 +173,6 @@ img {
173173
height: 2.5rem;
174174
}
175175

176-
.navbar-custom .navbar-brand:hover,
177-
.navbar-custom .navbar-brand:focus ,
178-
.navbar-custom .navbar-nav .nav-link:hover,
179-
.navbar-custom .navbar-nav .nav-link:focus,
180-
.navbar-custom .navbar-nav .dropdown-item:hover,
181-
.navbar-custom .navbar-nav .dropdown-item:focus {
182-
color: {{ site.hover-col | default: "#0085A1" }};
183-
}
184-
185176
.navbar-custom .navbar-nav .nav-item {
186177
text-transform: uppercase;
187178
font-size: 0.8125rem;
@@ -270,6 +261,7 @@ img {
270261
text-decoration: none !important;
271262
border-width: 0 1px 1px 1px;
272263
font-weight: normal;
264+
color: {{ site.navbar-text-col | default: "#404040" }};
273265
}
274266

275267
@media (min-width: 1200px) {
@@ -306,6 +298,14 @@ img {
306298
padding-left: 2rem;
307299
}
308300
}
301+
.navbar-custom .navbar-brand:hover,
302+
.navbar-custom .navbar-brand:focus ,
303+
.navbar-custom .navbar-nav .nav-link:hover,
304+
.navbar-custom .navbar-nav .nav-link:focus,
305+
.navbar-custom .navbar-nav .dropdown-menu .dropdown-item:hover,
306+
.navbar-custom .navbar-nav .dropdown-menu .dropdown-item:focus {
307+
color: {{ site.hover-col | default: "#0085A1" }};
308+
}
309309

310310
.navbar-custom .avatar-container {
311311
position: absolute;
@@ -874,7 +874,9 @@ pre {
874874
.highlight > pre:not([class~="highlight"]) { /* code block with line number */
875875
padding: 0;
876876
}
877-
.highlight table, .highlight tr, .highlight td { /* to be removed after fixing table styles */
877+
.highlight table,
878+
.highlight tr,
879+
.highlight td { /* to be removed after fixing table styles */
878880
border: none;
879881
background: none;
880882
padding: 0;
@@ -915,7 +917,10 @@ pre {
915917
}
916918

917919
/* --- Notification boxes --- */
918-
.box-note, .box-warning, .box-error, .box-success {
920+
.box-note,
921+
.box-warning,
922+
.box-error,
923+
.box-success {
919924
padding: 0.9375rem 0.9375rem 0.9375rem 0.625rem;
920925
margin: 1.25rem 1.25rem 1.25rem 0.3125rem;
921926
border: 1px solid #eee;

0 commit comments

Comments
 (0)