Back to home page

EIC code displayed by LXR

 
 

    


Warning, /iDDS/monitor/data/scss/bootstrap/_navbar.scss is written in an unsupported language. File is not indexed.

0001 // Contents
0002 //
0003 // Navbar
0004 // Navbar brand
0005 // Navbar nav
0006 // Navbar text
0007 // Responsive navbar
0008 // Navbar position
0009 // Navbar themes
0010 
0011 
0012 // Navbar
0013 //
0014 // Provide a static navbar from which we expand to create full-width, fixed, and
0015 // other navbar variations.
0016 
0017 .navbar {
0018   position: relative;
0019   display: flex;
0020   flex-wrap: wrap; // allow us to do the line break for collapsing content
0021   align-items: center;
0022   justify-content: space-between; // space out brand from logo
0023   padding-top: $navbar-padding-y;
0024   padding-right: $navbar-padding-x; // default: null
0025   padding-bottom: $navbar-padding-y;
0026   padding-left: $navbar-padding-x; // default: null
0027   @include gradient-bg();
0028 
0029   // Because flex properties aren't inherited, we need to redeclare these first
0030   // few properties so that content nested within behave properly.
0031   // The `flex-wrap` property is inherited to simplify the expanded navbars
0032   %container-flex-properties {
0033     display: flex;
0034     flex-wrap: inherit;
0035     align-items: center;
0036     justify-content: space-between;
0037   }
0038 
0039   > .container,
0040   > .container-fluid {
0041     @extend %container-flex-properties;
0042   }
0043 
0044   @each $breakpoint, $container-max-width in $container-max-widths {
0045     > .container#{breakpoint-infix($breakpoint, $container-max-widths)} {
0046       @extend %container-flex-properties;
0047     }
0048   }
0049 }
0050 
0051 
0052 // Navbar brand
0053 //
0054 // Used for brand, project, or site names.
0055 
0056 .navbar-brand {
0057   padding-top: $navbar-brand-padding-y;
0058   padding-bottom: $navbar-brand-padding-y;
0059   margin-right: $navbar-brand-margin-end;
0060   @include font-size($navbar-brand-font-size);
0061   text-decoration: if($link-decoration == none, null, none);
0062   white-space: nowrap;
0063 
0064   &:hover,
0065   &:focus {
0066     text-decoration: if($link-hover-decoration == underline, none, null);
0067   }
0068 }
0069 
0070 
0071 // Navbar nav
0072 //
0073 // Custom navbar navigation (doesn't require `.nav`, but does make use of `.nav-link`).
0074 
0075 .navbar-nav {
0076   display: flex;
0077   flex-direction: column; // cannot use `inherit` to get the `.navbar`s value
0078   padding-left: 0;
0079   margin-bottom: 0;
0080   list-style: none;
0081 
0082   .nav-link {
0083     padding-right: 0;
0084     padding-left: 0;
0085   }
0086 
0087   .dropdown-menu {
0088     position: static;
0089   }
0090 }
0091 
0092 
0093 // Navbar text
0094 //
0095 //
0096 
0097 .navbar-text {
0098   padding-top: $nav-link-padding-y;
0099   padding-bottom: $nav-link-padding-y;
0100 }
0101 
0102 
0103 // Responsive navbar
0104 //
0105 // Custom styles for responsive collapsing and toggling of navbar contents.
0106 // Powered by the collapse Bootstrap JavaScript plugin.
0107 
0108 // When collapsed, prevent the toggleable navbar contents from appearing in
0109 // the default flexbox row orientation. Requires the use of `flex-wrap: wrap`
0110 // on the `.navbar` parent.
0111 .navbar-collapse {
0112   // For always expanded or extra full navbars, ensure content aligns itself
0113   // properly vertically. Can be easily overridden with flex utilities.
0114   align-items: center;
0115   width: 100%;
0116 }
0117 
0118 // Button for toggling the navbar when in its collapsed state
0119 .navbar-toggler {
0120   padding: $navbar-toggler-padding-y $navbar-toggler-padding-x;
0121   @include font-size($navbar-toggler-font-size);
0122   line-height: 1;
0123   background-color: transparent; // remove default button style
0124   border: $border-width solid transparent; // remove default button style
0125   @include border-radius($navbar-toggler-border-radius);
0126   @include transition($navbar-toggler-transition);
0127 
0128   &:hover {
0129     text-decoration: none;
0130   }
0131 
0132   &:focus {
0133     text-decoration: none;
0134     outline: 0;
0135     box-shadow: 0 0 0 $navbar-toggler-focus-width;
0136   }
0137 }
0138 
0139 // Keep as a separate element so folks can easily override it with another icon
0140 // or image file as needed.
0141 .navbar-toggler-icon {
0142   display: inline-block;
0143   width: 1.5em;
0144   height: 1.5em;
0145   vertical-align: middle;
0146   background-repeat: no-repeat;
0147   background-position: center;
0148   background-size: 100%;
0149 }
0150 
0151 // Generate series of `.navbar-expand-*` responsive classes for configuring
0152 // where your navbar collapses.
0153 .navbar-expand {
0154   @each $breakpoint in map-keys($grid-breakpoints) {
0155     $next: breakpoint-next($breakpoint, $grid-breakpoints);
0156     $infix: breakpoint-infix($next, $grid-breakpoints);
0157 
0158     // stylelint-disable-next-line scss/selector-no-union-class-name
0159     &#{$infix} {
0160       @include media-breakpoint-up($next) {
0161         flex-wrap: nowrap;
0162         justify-content: flex-start;
0163 
0164         .navbar-nav {
0165           flex-direction: row;
0166 
0167           .dropdown-menu {
0168             position: absolute;
0169           }
0170 
0171           .nav-link {
0172             padding-right: $navbar-nav-link-padding-x;
0173             padding-left: $navbar-nav-link-padding-x;
0174           }
0175         }
0176 
0177         .navbar-collapse {
0178           display: flex !important; // stylelint-disable-line declaration-no-important
0179         }
0180 
0181         .navbar-toggler {
0182           display: none;
0183         }
0184       }
0185     }
0186   }
0187 }
0188 
0189 
0190 // Navbar themes
0191 //
0192 // Styles for switching between navbars with light or dark background.
0193 
0194 // Dark links against a light background
0195 .navbar-light {
0196   .navbar-brand {
0197     color: $navbar-light-brand-color;
0198 
0199     &:hover,
0200     &:focus {
0201       color: $navbar-light-brand-hover-color;
0202     }
0203   }
0204 
0205   .navbar-nav {
0206     .nav-link {
0207       color: $navbar-light-color;
0208 
0209       &:hover,
0210       &:focus {
0211         color: $navbar-light-hover-color;
0212       }
0213 
0214       &.disabled {
0215         color: $navbar-light-disabled-color;
0216       }
0217     }
0218 
0219     .show > .nav-link,
0220     .nav-link.active {
0221       color: $navbar-light-active-color;
0222     }
0223   }
0224 
0225   .navbar-toggler {
0226     color: $navbar-light-color;
0227     border-color: $navbar-light-toggler-border-color;
0228   }
0229 
0230   .navbar-toggler-icon {
0231     background-image: escape-svg($navbar-light-toggler-icon-bg);
0232   }
0233 
0234   .navbar-text {
0235     color: $navbar-light-color;
0236 
0237     a,
0238     a:hover,
0239     a:focus  {
0240       color: $navbar-light-active-color;
0241     }
0242   }
0243 }
0244 
0245 // White links against a dark background
0246 .navbar-dark {
0247   .navbar-brand {
0248     color: $navbar-dark-brand-color;
0249 
0250     &:hover,
0251     &:focus {
0252       color: $navbar-dark-brand-hover-color;
0253     }
0254   }
0255 
0256   .navbar-nav {
0257     .nav-link {
0258       color: $navbar-dark-color;
0259 
0260       &:hover,
0261       &:focus {
0262         color: $navbar-dark-hover-color;
0263       }
0264 
0265       &.disabled {
0266         color: $navbar-dark-disabled-color;
0267       }
0268     }
0269 
0270     .show > .nav-link,
0271     .nav-link.active {
0272       color: $navbar-dark-active-color;
0273     }
0274   }
0275 
0276   .navbar-toggler {
0277     color: $navbar-dark-color;
0278     border-color: $navbar-dark-toggler-border-color;
0279   }
0280 
0281   .navbar-toggler-icon {
0282     background-image: escape-svg($navbar-dark-toggler-icon-bg);
0283   }
0284 
0285   .navbar-text {
0286     color: $navbar-dark-color;
0287     a,
0288     a:hover,
0289     a:focus {
0290       color: $navbar-dark-active-color;
0291     }
0292   }
0293 }