-
Beta Was this translation helpful? Give feedback.
Answered by
crftwrk
Jun 6, 2023
Replies: 2 comments 2 replies
-
Sure, here is a rough example how to target classes inside the
#masthead {
// Navbar bg
.bg-light {
background-color: var(--#{$prefix}secondary) !important;
}
// Nav links
.nav-link {
color: $navbar-dark-color;
&:hover,
&:focus {
color: $navbar-dark-hover-color;
}
.active {
color: $navbar-dark-active-color;
}
}
// Offcanvas
#offcanvas-navbar {
.offcanvas-body {
background-color: var(--#{$prefix}secondary);
}
}
} Since bootScore 5.3, |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
cahoskins
-
crftwrk You are so amazing! Thank you, this is really fun. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sure, here is a rough example how to target classes inside the
#masthead
wrapper. You need!important
to override Bootstrap utilities.navbar-secondary
does not existnavbar-brand
, but override display utilities with!important
offcanvas-title
has alreadymargin-bottom: 0;
, no need to addmb-0
class