diff options
| author | Mark Otto <[email protected]> | 2012-02-12 14:09:13 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2012-02-12 14:10:07 -0800 |
| commit | 0ff88f2db3b9fa4604886494a711d74652a2fb4f (patch) | |
| tree | 39696fff4a18f28a918ada00d7c2bdf0ebb03dde /less | |
| parent | a9e469e75aba9edb6e4b0eb29f0a51dbef3167b7 (diff) | |
| download | bootstrap-0ff88f2db3b9fa4604886494a711d74652a2fb4f.tar.xz bootstrap-0ff88f2db3b9fa4604886494a711d74652a2fb4f.zip | |
enable the use of .nav-header in dropdowns per #1827
Diffstat (limited to 'less')
| -rw-r--r-- | less/navs.less | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/less/navs.less b/less/navs.less index 0d37ea388..06219fa62 100644 --- a/less/navs.less +++ b/less/navs.less @@ -21,6 +21,21 @@ background-color: @grayLighter; } +// Nav headers (for dropdowns and lists) +.nav .nav-header { + display: block; + padding: 3px 15px; + font-size: 11px; + font-weight: bold; + line-height: @baseLineHeight; + color: @grayLight; + text-shadow: 0 1px 0 rgba(255,255,255,.5); + text-transform: uppercase; +} +// Space them out when they follow another list item (link) +.nav li + .nav-header { + margin-top: 9px; +} // NAV LIST @@ -33,21 +48,12 @@ } .nav-list > li > a, .nav-list .nav-header { - display: block; - padding: 3px 15px; margin-left: -15px; margin-right: -15px; text-shadow: 0 1px 0 rgba(255,255,255,.5); } -.nav-list .nav-header { - font-size: 11px; - font-weight: bold; - line-height: @baseLineHeight; - color: @grayLight; - text-transform: uppercase; -} -.nav-list > li + .nav-header { - margin-top: 9px; +.nav-list > li > a { + padding: 3px 15px; } .nav-list .active > a, .nav-list .active > a:hover { |
