mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-30 22:52:24 +01:00
more nesting in navbar.less
This commit is contained in:
parent
084291aac7
commit
d9cd5e4e0c
10
docs/assets/css/bootstrap.css
vendored
10
docs/assets/css/bootstrap.css
vendored
@ -2948,11 +2948,6 @@ button.close {
|
|||||||
background-color: #d5d5d5;
|
background-color: #d5d5d5;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar-nav > .dropdown > a .caret {
|
|
||||||
border-top-color: #777777;
|
|
||||||
border-bottom-color: #777777;
|
|
||||||
}
|
|
||||||
|
|
||||||
.navbar-nav > .open > a .caret,
|
.navbar-nav > .open > a .caret,
|
||||||
.navbar-nav > .open > a:hover .caret,
|
.navbar-nav > .open > a:hover .caret,
|
||||||
.navbar-nav > .open > a:focus .caret {
|
.navbar-nav > .open > a:focus .caret {
|
||||||
@ -2960,6 +2955,11 @@ button.close {
|
|||||||
border-bottom-color: #555555;
|
border-bottom-color: #555555;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.navbar-nav > .dropdown > a .caret {
|
||||||
|
border-top-color: #777777;
|
||||||
|
border-bottom-color: #777777;
|
||||||
|
}
|
||||||
|
|
||||||
.navbar-nav.pull-right > li > .dropdown-menu,
|
.navbar-nav.pull-right > li > .dropdown-menu,
|
||||||
.navbar-nav > li > .dropdown-menu.pull-right {
|
.navbar-nav > li > .dropdown-menu.pull-right {
|
||||||
right: 0;
|
right: 0;
|
||||||
|
@ -30,24 +30,28 @@
|
|||||||
color: @navbar-link-color;
|
color: @navbar-link-color;
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
border-radius: @border-radius-base;
|
border-radius: @border-radius-base;
|
||||||
}
|
&:hover,
|
||||||
> li > a:hover,
|
&:focus {
|
||||||
> li > a:focus {
|
|
||||||
color: @navbar-link-hover-color;
|
color: @navbar-link-hover-color;
|
||||||
background-color: @navbar-link-hover-bg;
|
background-color: @navbar-link-hover-bg;
|
||||||
}
|
}
|
||||||
> .active > a,
|
}
|
||||||
> .active > a:hover,
|
> .active > a {
|
||||||
> .active > a:focus {
|
&,
|
||||||
|
&:hover,
|
||||||
|
&:focus {
|
||||||
color: @navbar-link-active-color;
|
color: @navbar-link-active-color;
|
||||||
background-color: @navbar-link-active-bg;
|
background-color: @navbar-link-active-bg;
|
||||||
}
|
}
|
||||||
> .disabled > a,
|
}
|
||||||
> .disabled > a:hover,
|
> .disabled > a {
|
||||||
> .disabled > a:focus {
|
&,
|
||||||
|
&:hover,
|
||||||
|
&:focus {
|
||||||
color: @navbar-link-disabled-color;
|
color: @navbar-link-disabled-color;
|
||||||
background-color: @navbar-link-disabled-bg;
|
background-color: @navbar-link-disabled-bg;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Right aligned contents
|
// Right aligned contents
|
||||||
// Make them full width first so that they align properly on mobile
|
// Make them full width first so that they align properly on mobile
|
||||||
@ -168,22 +172,22 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Remove background color from open dropdown
|
// Remove background color from open dropdown
|
||||||
> .open > a,
|
> .open > a {
|
||||||
> .open > a:hover,
|
&,
|
||||||
> .open > a:focus {
|
&:hover,
|
||||||
|
&:focus {
|
||||||
background-color: @navbar-link-active-bg;
|
background-color: @navbar-link-active-bg;
|
||||||
color: @navbar-link-active-color;
|
color: @navbar-link-active-color;
|
||||||
|
.caret {
|
||||||
|
border-top-color: @navbar-link-active-color;
|
||||||
|
border-bottom-color: @navbar-link-active-color;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
> .dropdown > a .caret {
|
> .dropdown > a .caret {
|
||||||
border-top-color: @navbar-link-color;
|
border-top-color: @navbar-link-color;
|
||||||
border-bottom-color: @navbar-link-color;
|
border-bottom-color: @navbar-link-color;
|
||||||
}
|
}
|
||||||
> .open > a .caret,
|
|
||||||
> .open > a:hover .caret,
|
|
||||||
> .open > a:focus .caret {
|
|
||||||
border-top-color: @navbar-link-active-color;
|
|
||||||
border-bottom-color: @navbar-link-active-color;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Right aligned menus need alt position
|
// Right aligned menus need alt position
|
||||||
@ -217,25 +221,30 @@
|
|||||||
.navbar-nav {
|
.navbar-nav {
|
||||||
> li > a {
|
> li > a {
|
||||||
color: @navbar-inverse-link-color;
|
color: @navbar-inverse-link-color;
|
||||||
}
|
|
||||||
> li > a:hover,
|
&:hover,
|
||||||
> li > a:focus {
|
&:focus {
|
||||||
color: @navbar-inverse-link-hover-color;
|
color: @navbar-inverse-link-hover-color;
|
||||||
background-color: @navbar-inverse-link-hover-bg;
|
background-color: @navbar-inverse-link-hover-bg;
|
||||||
}
|
}
|
||||||
> .active > a,
|
}
|
||||||
> .active > a:hover,
|
> .active > a {
|
||||||
> .active > a:focus {
|
&,
|
||||||
|
&:hover,
|
||||||
|
&:focus {
|
||||||
color: @navbar-inverse-link-active-color;
|
color: @navbar-inverse-link-active-color;
|
||||||
background-color: @navbar-inverse-link-active-bg;
|
background-color: @navbar-inverse-link-active-bg;
|
||||||
}
|
}
|
||||||
> .disabled > a,
|
}
|
||||||
> .disabled > a:hover,
|
> .disabled > a {
|
||||||
> .disabled > a:focus {
|
&,
|
||||||
|
&:hover,
|
||||||
|
&:focus {
|
||||||
color: @navbar-inverse-link-disabled-color;
|
color: @navbar-inverse-link-disabled-color;
|
||||||
background-color: @navbar-inverse-link-disabled-bg;
|
background-color: @navbar-inverse-link-disabled-bg;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Darken the responsive nav toggle
|
// Darken the responsive nav toggle
|
||||||
.navbar-toggle {
|
.navbar-toggle {
|
||||||
@ -251,12 +260,14 @@
|
|||||||
|
|
||||||
// Dropdowns
|
// Dropdowns
|
||||||
.navbar-nav {
|
.navbar-nav {
|
||||||
> .open > a,
|
> .open > a {
|
||||||
> .open > a:hover,
|
&,
|
||||||
> .open > a:focus {
|
&:hover,
|
||||||
|
&:focus {
|
||||||
background-color: @navbar-inverse-link-active-bg;
|
background-color: @navbar-inverse-link-active-bg;
|
||||||
color: @navbar-inverse-link-active-color;
|
color: @navbar-inverse-link-active-color;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
> .dropdown > a:hover .caret {
|
> .dropdown > a:hover .caret {
|
||||||
border-top-color: @navbar-inverse-link-hover-color;
|
border-top-color: @navbar-inverse-link-hover-color;
|
||||||
border-bottom-color: @navbar-inverse-link-hover-color;
|
border-bottom-color: @navbar-inverse-link-hover-color;
|
||||||
@ -265,13 +276,16 @@
|
|||||||
border-top-color: @navbar-inverse-link-color;
|
border-top-color: @navbar-inverse-link-color;
|
||||||
border-bottom-color: @navbar-inverse-link-color;
|
border-bottom-color: @navbar-inverse-link-color;
|
||||||
}
|
}
|
||||||
> .open > a .caret,
|
> .open > a {
|
||||||
> .open > a:hover .caret,
|
&,
|
||||||
> .open > a:focus .caret {
|
&:hover,
|
||||||
|
&:focus {
|
||||||
|
.caret {
|
||||||
border-top-color: @navbar-inverse-link-active-color;
|
border-top-color: @navbar-inverse-link-active-color;
|
||||||
border-bottom-color: @navbar-inverse-link-active-color;
|
border-bottom-color: @navbar-inverse-link-active-color;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user