mdb-ui-kit/sass/_navbar.scss

212 lines
4.0 KiB
SCSS
Raw Normal View History

// This file has been autogenerated by grunt task lessToSass. Any changes will be overwritten.
2014-10-03 15:58:24 +04:00
.navbar {
background-color: $brand-primary;
border: $zero;
border-radius: $zero;
.navbar-brand {
position: relative;
height: 60px;
line-height: 30px;
color: inherit;
&:hover,
&:focus {
color: inherit;
background-color: transparent;
2014-10-03 15:58:24 +04:00
}
}
.navbar-text {
color: inherit;
margin-top: 20px;
margin-bottom: 20px;
}
.navbar-nav {
> li > a {
color: inherit;
padding-top: 20px;
padding-bottom: 20px;
&:hover,
&:focus {
color: inherit;
background-color: transparent;
}
}
> .active > a {
&,
&:hover,
&:focus {
color: inherit;
background-color: rgba(255, 255, 255, 0.1);
}
}
> .disabled > a {
&,
&:hover,
&:focus {
color: inherit;
background-color: transparent;
opacity: 0.9;
}
}
}
// Darken the responsive nav toggle
.navbar-toggle {
border: $zero;
&:hover,
&:focus {
background-color: transparent;
}
.icon-bar {
background-color: inherit;
border: 1px solid;
}
}
.navbar-default .navbar-toggle,
.navbar-inverse .navbar-toggle {
border-color: transparent;
}
.navbar-collapse,
.navbar-form {
border-color: rgba(0,0,0,0.1);
}
// Dropdowns
.navbar-nav {
> .open > a {
&,
&:hover,
&:focus {
background-color: transparent;
color: inherit;
}
2014-10-03 15:58:24 +04:00
}
2015-11-22 00:36:03 +03:00
@media (max-width: $grid-float-breakpoint-max) {
.navbar-text {
color: inherit;
margin-top: 15px;
margin-bottom: 15px;
}
// Dropdowns get custom display
.open .dropdown-menu {
> .dropdown-header {
border: $zero;
color: inherit;
}
.divider {
border-bottom: 1px solid;
opacity: 0.08;
}
2014-10-03 15:58:24 +04:00
> li > a {
color: inherit;
&:hover,
&:focus {
color: inherit;
background-color: transparent;
}
2014-10-03 15:58:24 +04:00
}
> .active > a {
&,
&:hover,
&:focus {
color: inherit;
background-color: transparent;
}
2014-10-03 15:58:24 +04:00
}
> .disabled > a {
&,
&:hover,
&:focus {
color: inherit;
background-color: transparent;
}
2014-10-03 15:58:24 +04:00
}
}
2014-10-03 15:58:24 +04:00
}
}
2014-10-03 15:58:24 +04:00
.navbar-link {
color: inherit;
&:hover {
color: inherit;
2014-10-03 15:58:24 +04:00
}
}
2014-10-03 15:58:24 +04:00
.btn-link {
color: inherit;
&:hover,
&:focus {
color: inherit;
2014-10-03 15:58:24 +04:00
}
&[disabled],
fieldset[disabled] & {
&:hover,
&:focus {
color: inherit;
}
2014-10-03 15:58:24 +04:00
}
}
2014-10-03 15:58:24 +04:00
.navbar-form {
margin-top: 16px;
.form-group {
margin: 0;
padding: 0;
.material-input:before,
&.is-focused .material-input:after {
background-color: inherit;
}
}
.form-group .form-control,
.form-control {
border-color: inherit;
color: inherit;
padding: 0;
margin: 0;
// re-normalize inputs in a navbar the size of standard bootstrap since our normal inputs are larger by spec than bootstrap
//---
//height: $mdb-input-height-base;
$bs-line-height-base: 1.428571429 !default;
$bs-line-height-computed: floor(($font-size-base * $bs-line-height-base)) !default; // ~20px
height: ($bs-line-height-computed + 8px);
font-size: $font-size-base;
line-height: $bs-line-height-base;
//---
}
}
// SASS conversion note: please mirror any content change in _mixins-shared.scss navbar-variations-content
@include navbar-variations(unquote(".navbar"), $brand-primary);
2014-10-03 15:58:24 +04:00
&-inverse {
background-color: $indigo;
}
2014-10-03 15:58:24 +04:00
2015-11-22 00:36:03 +03:00
@media (max-width: $screen-md-max) {
2014-10-03 15:58:24 +04:00
.navbar-brand {
height: 50px;
padding: 10px 15px;
}
.navbar-form {
margin-top: 10px;
2014-10-03 15:58:24 +04:00
}
.navbar-nav > li > a {
padding-top: 15px;
padding-bottom: 15px;
}
}
2014-10-03 15:58:24 +04:00
}