diff options
| author | Mark Otto <[email protected]> | 2012-11-04 00:52:10 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2012-11-04 00:52:10 -0700 |
| commit | 83a3789b5e8ccedc16db3a284c764067e6b25c25 (patch) | |
| tree | b6cd575b3bebf47aa1fd71d2cde7c2355c519876 /less | |
| parent | 05a2d375594779d534a200ed112787649b67f3a2 (diff) | |
| download | bootstrap-83a3789b5e8ccedc16db3a284c764067e6b25c25.tar.xz bootstrap-83a3789b5e8ccedc16db3a284c764067e6b25c25.zip | |
add justified nav links for tabs and pills
Diffstat (limited to 'less')
| -rw-r--r-- | less/navs.less | 74 |
1 files changed, 45 insertions, 29 deletions
diff --git a/less/navs.less b/less/navs.less index 5ca43f9e0..bfdec50ed 100644 --- a/less/navs.less +++ b/less/navs.less @@ -85,6 +85,51 @@ +// Pills +// ------------------------- + +// Links rendered as pills +.nav-pills > li > a { + border-radius: 5px; +} +.nav-pills > li + li > a { + margin-left: 2px; +} + +// Active state +.nav-pills > .active > a, +.nav-pills > .active > a:hover { + color: @white; + background-color: @linkColor; +} + +// Stacked pills +.nav-stacked > li { + float: none; +} +.nav-stacked > li + li > a { + margin-top: 2px; + margin-left: 0; // no need for the gap between nav items +} + + + +// Justified navs +// ------------------------- + +.nav-justified { + // Negative margin doesn't work, so we hack it + max-height: 37px; +} +.nav-justified > li { + float: none; + display: table-cell; + width: 1%; + text-align: center; +} + + + // Lists // ------------------------- @@ -123,35 +168,6 @@ -// Pills -// ------------------------- - -// Links rendered as pills -.nav-pills > li > a { - border-radius: 5px; -} -.nav-pills > li + li > a { - margin-left: 2px; -} - -// Active state -.nav-pills > .active > a, -.nav-pills > .active > a:hover { - color: @white; - background-color: @linkColor; -} - -// Stacked pills -.nav-stacked > li { - float: none; -} -.nav-stacked > li + li > a { - margin-top: 2px; - margin-left: 0; // no need for the gap between nav items -} - - - // Dropdowns // ------------------------- |
