fix bug where navbar secondary level dropdown items did not inherit the same colour as the primary navbar links

This commit is contained in:
Dean Attali 2020-09-16 22:32:56 +00:00
parent c474616842
commit 040469e9ed

View File

@ -173,15 +173,6 @@ img {
height: 2.5rem; 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 { .navbar-custom .navbar-nav .nav-item {
text-transform: uppercase; text-transform: uppercase;
font-size: 0.8125rem; font-size: 0.8125rem;
@ -270,6 +261,7 @@ img {
text-decoration: none !important; text-decoration: none !important;
border-width: 0 1px 1px 1px; border-width: 0 1px 1px 1px;
font-weight: normal; font-weight: normal;
color: {{ site.navbar-text-col | default: "#404040" }};
} }
@media (min-width: 1200px) { @media (min-width: 1200px) {
@ -306,6 +298,14 @@ img {
padding-left: 2rem; 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 { .navbar-custom .avatar-container {
position: absolute; position: absolute;
@ -874,7 +874,9 @@ pre {
.highlight > pre:not([class~="highlight"]) { /* code block with line number */ .highlight > pre:not([class~="highlight"]) { /* code block with line number */
padding: 0; 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; border: none;
background: none; background: none;
padding: 0; padding: 0;
@ -915,7 +917,10 @@ pre {
} }
/* --- Notification boxes --- */ /* --- 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; padding: 0.9375rem 0.9375rem 0.9375rem 0.625rem;
margin: 1.25rem 1.25rem 1.25rem 0.3125rem; margin: 1.25rem 1.25rem 1.25rem 0.3125rem;
border: 1px solid #eee; border: 1px solid #eee;