mdb-ui-kit/less/_navbar.import.less

231 lines
5.8 KiB
Plaintext
Raw Normal View History

2014-08-18 18:25:33 +04:00
// main: material.less
.navbar {
background-color: @navbar-default-bg;
border: 0;
border-radius: 0;
.navbar-brand {
position: relative;
height: 60px;
line-height: 30px;
color: @navbar-brand-color;
&:hover,
&:focus {
color: @navbar-brand-color;
background-color: transparent;
}
}
.navbar-text {
color: @navbar-color;
2014-10-03 11:46:24 +04:00
margin-top: 20px;
margin-bottom: 20px;
2014-08-18 18:25:33 +04:00
}
.navbar-nav {
> li > a {
color: @navbar-link-color;
padding-top: 20px;
padding-bottom: 20px;
&:hover,
&:focus {
color: @navbar-link-hover-color;
background-color: @navbar-link-hover-bg;
}
}
> .active > a {
&,
&:hover,
&:focus {
color: @navbar-link-active-color;
background-color: @navbar-link-active-bg;
}
}
> .disabled > a {
&,
&:hover,
&:focus {
color: @navbar-link-disabled-color;
background-color: @navbar-link-disabled-bg;
}
}
}
// Darken the responsive nav toggle
.navbar-toggle {
2014-10-02 13:36:05 +04:00
margin-top: 13px;
border-color: transparent;
2014-08-18 18:25:33 +04:00
&:hover,
&:focus {
background-color: @navbar-toggle-hover-bg;
}
.icon-bar {
background-color: @navbar-toggle-icon-bar-bg;
}
}
2014-10-02 13:36:05 +04:00
.navbar-default .navbar-toggle,
.navbar-inverse .navbar-toggle {
border-color: transparent;
}
2014-08-18 18:25:33 +04:00
.navbar-collapse,
.navbar-form {
border-color: rgba(0,0,0,0.1);
2014-08-18 18:25:33 +04:00
}
// Dropdowns
.navbar-nav {
> .open > a {
&,
&:hover,
&:focus {
background-color: @navbar-link-active-bg;
color: @navbar-link-active-color;
}
}
@media (max-width: 767px) {
// Dropdowns get custom display
.open .dropdown-menu {
> .dropdown-header {
border: 0;
color: darken(@navbar-link-color, 17%)
}
.divider {
background-color: @navbar-border;
}
> li > a {
color: @navbar-link-color;
&:hover,
&:focus {
color: @navbar-link-hover-color;
background-color: @navbar-link-hover-bg;
}
}
> .active > a {
&,
&:hover,
&:focus {
color: @navbar-link-active-color;
background-color: @navbar-link-active-bg;
}
}
> .disabled > a {
&,
&:hover,
&:focus {
color: @navbar-link-disabled-color;
background-color: @navbar-link-disabled-bg;
}
}
}
}
}
.navbar-link {
color: @navbar-link-color;
&:hover {
color: @navbar-link-hover-color;
}
}
.btn-link {
color: @navbar-link-color;
&:hover,
&:focus {
color: @navbar-link-hover-color;
}
&[disabled],
fieldset[disabled] & {
&:hover,
&:focus {
color: @navbar-link-disabled-color;
}
}
}
.navbar-form {
2014-09-29 11:36:47 +04:00
margin-top: 16px;
.form-control-wrapper .form-control, .form-control {
border-color: @navbar-border;
color: @navbar-border;
}
2014-08-18 18:25:33 +04:00
.form-control-wrapper {
.material-input:before, input:focus ~ .material-input:after {
background-color: @navbar-border;
}
}
::-webkit-input-placeholder { color: @navbar-border; }
:-moz-placeholder { color: @navbar-border; };
::-moz-placeholder { color: @navbar-border; };
:-ms-input-placeholder { color: @navbar-border; };
}
.variations(~"", background-color, @primary);
&-inverse {
background-color: @indigo;
2014-08-18 18:25:33 +04:00
}
2014-09-18 11:38:53 +04:00
&-material-white {
background-color: #FFF;
.navbar-brand, .navbar-brand:hover, .navbar-brand:focus {
color: @lightbg-text;
}
.navbar-nav {
& > li > a {
color: @lightbg-text;
&:hover,
&:focus {
color: @lightbg-text;
background-color: @navbar-link-hover-bg;
}
}
& > .active > a {
&,
&:hover,
&:focus {
color: @lightbg-text;
background-color: @navbar-link-active-bg;
}
}
& > .disabled > a {
&,
&:hover,
&:focus {
color: @lightbg-text;
background-color: @navbar-link-disabled-bg;
}
}
& > .open > a {
&,
&:hover,
&:focus {
background-color: @navbar-link-active-bg;
color: @lightbg-text;
}
}
}
}
2014-10-03 11:46:24 +04:00
@media (max-width: 1199px) {
.navbar-brand {
height: 50px;
padding: 10px 15px;
}
.navbar-form {
margin-top: 10px;
}
.navbar-nav > li > a {
padding-top: 15px;
padding-bottom: 15px;
}
}
2014-08-18 18:25:33 +04:00
}