mdb-ui-kit/less/_navbar.less

218 lines
4.0 KiB
Plaintext
Raw Normal View History

2014-08-18 18:25:33 +04:00
.navbar {
2014-12-13 14:26:25 +03:00
background-color: @primary;
2015-03-24 06:25:48 +03:00
border: @zero;
border-radius: @zero;
2014-12-13 14:26:25 +03:00
.navbar-brand {
position: relative;
height: 60px;
line-height: 30px;
color: inherit;
&:hover,
&:focus {
color: inherit;
background-color: transparent;
2014-08-18 18:25:33 +04:00
}
2014-12-13 14:26:25 +03: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);
2014-12-13 14:26:25 +03:00
}
}
> .disabled > a {
&,
&:hover,
&:focus {
color: inherit;
background-color: transparent;
opacity: 0.9;
2014-12-13 14:26:25 +03:00
}
}
}
2014-08-18 18:25:33 +04:00
2014-12-13 14:26:25 +03:00
// Darken the responsive nav toggle
.navbar-toggle {
2015-03-24 06:25:48 +03:00
border: @zero;
2014-12-13 14:26:25 +03:00
&: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-08-18 18:25:33 +04:00
}
2014-12-13 14:26:25 +03:00
@media (max-width: 767px) {
.navbar-text {
color: inherit;
margin-top: 15px;
margin-bottom: 15px;
}
2014-12-13 14:26:25 +03:00
// Dropdowns get custom display
.open .dropdown-menu {
> .dropdown-header {
2015-03-24 06:25:48 +03:00
border: @zero;
2014-12-13 14:26:25 +03:00
color: inherit;
}
.divider {
border-bottom: 1px solid;
opacity: 0.08;
}
2014-08-18 18:25:33 +04:00
> li > a {
2014-12-13 14:26:25 +03:00
color: inherit;
&:hover,
&:focus {
color: inherit;
background-color: transparent;
}
2014-08-18 18:25:33 +04:00
}
> .active > a {
2014-12-13 14:26:25 +03:00
&,
&:hover,
&:focus {
color: inherit;
background-color: transparent;
}
2014-08-18 18:25:33 +04:00
}
> .disabled > a {
2014-12-13 14:26:25 +03:00
&,
&:hover,
&:focus {
color: inherit;
background-color: transparent;
}
2014-08-18 18:25:33 +04:00
}
2014-12-13 14:26:25 +03:00
}
2014-08-18 18:25:33 +04:00
}
2014-12-13 14:26:25 +03:00
}
2014-08-18 18:25:33 +04:00
2014-12-13 14:26:25 +03:00
.navbar-link {
color: inherit;
&:hover {
color: inherit;
2014-08-18 18:25:33 +04:00
}
2014-12-13 14:26:25 +03:00
}
2014-08-18 18:25:33 +04:00
2014-12-13 14:26:25 +03:00
.btn-link {
color: inherit;
&:hover,
&:focus {
color: inherit;
2014-10-02 13:36:05 +04:00
}
2014-12-13 14:26:25 +03:00
&[disabled],
fieldset[disabled] & {
&:hover,
&:focus {
color: inherit;
}
2014-08-18 18:25:33 +04:00
}
2014-12-13 14:26:25 +03:00
}
2014-08-18 18:25:33 +04:00
2014-12-13 14:26:25 +03:00
.navbar-form {
margin-top: 16px;
.form-control-wrapper .form-control, .form-control {
border-color: inherit;
color: inherit;
2014-08-18 18:25:33 +04:00
}
2014-12-13 14:26:25 +03:00
.form-control-wrapper {
.material-input:before, input:focus ~ .material-input:after {
background-color: inherit;
}
}
}
2014-12-26 20:42:06 +03:00
.generic-variations(~".navbar", @primary, {
background-color: @material-color;
color: @text-color;
// deeply defined to override welljumbo class without !impotant need
.navbar-form .form-control-wrapper input.form-control::placeholder, .navbar-form input.form-control::placeholder {
2014-12-19 22:13:22 +03:00
color: @text-color;
2014-08-18 18:25:33 +04:00
}
.dropdown-menu {
2015-03-24 06:25:48 +03:00
border-radius: @dropdown-radius;
li > a {
2015-03-24 06:25:48 +03:00
font-size: @dropdown-font-size;
padding: 13px 16px;
&:hover,
&:focus {
color: @material-color;
2015-03-24 06:25:48 +03:00
background-color: @lightgrey;
}
}
.active > a {
&:hover,
&:focus {
color: @text-color;
}
background-color: @material-color;
color: @text-color;
}
}
2014-12-26 20:42:06 +03:00
});
2014-09-18 11:38:53 +04:00
2014-12-26 20:42:06 +03:00
&-inverse {
background-color: @indigo;
2014-12-13 14:26:25 +03:00
}
2014-10-03 11:46:24 +04:00
2014-12-13 14:26:25 +03:00
@media (max-width: 1199px) {
2014-10-03 11:46:24 +04:00
2014-12-13 14:26:25 +03:00
.navbar-brand {
height: 50px;
padding: 10px 15px;
}
.navbar-form {
margin-top: 10px;
}
2014-10-03 11:46:24 +04:00
2014-12-13 14:26:25 +03:00
.navbar-nav > li > a {
padding-top: 15px;
padding-bottom: 15px;
2014-10-03 11:46:24 +04:00
}
2014-12-13 14:26:25 +03:00
}
2014-08-18 18:25:33 +04:00
}