Search
 
SCRIPT & CODE EXAMPLE
 

HTML

changing navbar color bootstrap

$bgDefault   : #e74c3c;
$bgHighlight : #c0392b;
$colDefault  : #ecf0f1;
$colHighlight: #ffbbbc;
.navbar-default {
  background-color: $bgDefault;
  border-color: $bgHighlight;
  .navbar-brand {
    color: $colDefault;
    &:hover, &:focus {
      color: $colHighlight; }}
  .navbar-text {
    color: $colDefault; }
  .navbar-nav {
    > li {
      > a {
        color: $colDefault;
        &:hover,  &:focus {
          color: $colHighlight; }}}
    > .active {
      > a, > a:hover, > a:focus {
        color: $colHighlight;
        background-color: $bgHighlight; }}
    > .open {
      > a, > a:hover, > a:focus {
        color: $colHighlight;
        background-color: $bgHighlight; }}}
  .navbar-toggle {
    border-color: $bgHighlight;
    &:hover, &:focus {
      background-color: $bgHighlight; }
    .icon-bar {
      background-color: $colDefault; }}
  .navbar-collapse,
  .navbar-form {
    border-color: $colDefault; }
  .navbar-link {
    color: $colDefault;
    &:hover {
      color: $colHighlight; }}}
@media (max-width: 767px) {
  .navbar-default .navbar-nav .open .dropdown-menu {
    > li > a {
      color: $colDefault;
      &:hover, &:focus {
        color: $colHighlight; }}
    > .active {
      > a, > a:hover, > a:focus, {
        color: $colHighlight;
        background-color: $bgHighlight; }}}
}
Comment

PREVIOUS NEXT
Code Example
Html :: font awesome icons html 
Html :: vue transition 
Html :: ion input file 
Html :: draw vertical line tailwind css 
Html :: how to show code with html 
Html :: smooth scroll button by element id 
Html :: strong tag html 
Html :: link href 
Html :: get data from database html select option django 
Html :: licença anydesk gratis 
Html :: favicon x shortcut icon 
Html :: button that links to controller html 
Html :: how to call a script from another script in javascript 
Html :: em tag in html5 
Html :: remove action in woocommerce 
Html :: del tag html 
Html :: html set input type date to disable previous dates 
Html :: bootstrap 5 font color 
Html :: button with icon android 
Html :: django html vscode 
Html :: tr , th , td , table 
Html :: how open url in html in new window with custom size 
Html :: html p tag 
Html :: Copyright code 
Html :: viewport 
Html :: th colspan html 
Html :: angular nested if else 
Html :: bootstrap cards 
Html :: how to select only one checkbox in html 
Html :: input hidden selected 
ADD CONTENT
Topic
Content
Source link
Name
6+8 =