3 // --------------------------------------------------
11 margin-bottom: @baseLineHeight;
15 // Make links block level
21 text-decoration: none;
22 background-color: @grayLighter;
25 // Prevent IE8 from misplacing imgs
26 // See https://github.com/h5bp/html5-boilerplate/issues/984#issuecomment-3985989
31 // Redeclare pull classes because of specifity
36 // Nav headers (for dropdowns and lists)
42 line-height: @baseLineHeight;
44 text-shadow: 0 1px 0 rgba(255,255,255,.5);
45 text-transform: uppercase;
47 // Space them out when they follow another list item (link)
48 .nav li + .nav-header {
63 .nav-list .nav-header {
66 text-shadow: 0 1px 0 rgba(255,255,255,.5);
71 .nav-list > .active > a,
72 .nav-list > .active > a:hover,
73 .nav-list > .active > a:focus {
75 text-shadow: 0 -1px 0 rgba(0,0,0,.2);
76 background-color: @linkColor;
78 .nav-list [class^="icon-"],
79 .nav-list [class*=" icon-"] {
82 // Dividers (basically an hr) within the dropdown
102 .nav-pills > li > a {
106 line-height: 14px; // keeps the overall height an even number
112 // Give the tabs something to sit on
114 border-bottom: 1px solid #ddd;
116 // Make the list-items overlay the bottom border
120 // Actual tabs (as links)
124 line-height: @baseLineHeight;
125 border: 1px solid transparent;
126 .border-radius(4px 4px 0 0);
129 border-color: @grayLighter @grayLighter #ddd;
132 // Active state, and it's :hover/:focus to override normal :hover/:focus
133 .nav-tabs > .active > a,
134 .nav-tabs > .active > a:hover,
135 .nav-tabs > .active > a:focus {
137 background-color: @bodyBackground;
138 border: 1px solid #ddd;
139 border-bottom-color: transparent;
147 // Links rendered as pills
148 .nav-pills > li > a {
157 .nav-pills > .active > a,
158 .nav-pills > .active > a:hover,
159 .nav-pills > .active > a:focus {
161 background-color: @linkColor;
169 // Stacked tabs and pills
173 .nav-stacked > li > a {
174 margin-right: 0; // no need for the gap between nav items
178 .nav-tabs.nav-stacked {
181 .nav-tabs.nav-stacked > li > a {
182 border: 1px solid #ddd;
185 .nav-tabs.nav-stacked > li:first-child > a {
186 .border-top-radius(4px);
188 .nav-tabs.nav-stacked > li:last-child > a {
189 .border-bottom-radius(4px);
191 .nav-tabs.nav-stacked > li > a:hover,
192 .nav-tabs.nav-stacked > li > a:focus {
198 .nav-pills.nav-stacked > li > a {
201 .nav-pills.nav-stacked > li:last-child > a {
202 margin-bottom: 1px; // decrease margin to match sizing of stacked tabs
210 .nav-tabs .dropdown-menu {
211 .border-radius(0 0 6px 6px); // remove the top rounded corners here since there is a hard edge above the menu
213 .nav-pills .dropdown-menu {
214 .border-radius(6px); // make rounded corners match the pills
217 // Default dropdown links
218 // -------------------------
219 // Make carets use linkColor to start
220 .nav .dropdown-toggle .caret {
221 border-top-color: @linkColor;
222 border-bottom-color: @linkColor;
225 .nav .dropdown-toggle:hover .caret,
226 .nav .dropdown-toggle:focus .caret {
227 border-top-color: @linkColorHover;
228 border-bottom-color: @linkColorHover;
230 /* move down carets for tabs */
231 .nav-tabs .dropdown-toggle .caret {
235 // Active dropdown links
236 // -------------------------
237 .nav .active .dropdown-toggle .caret {
238 border-top-color: #fff;
239 border-bottom-color: #fff;
241 .nav-tabs .active .dropdown-toggle .caret {
242 border-top-color: @gray;
243 border-bottom-color: @gray;
246 // Active:hover/:focus dropdown links
247 // -------------------------
248 .nav > .dropdown.active > a:hover,
249 .nav > .dropdown.active > a:focus {
254 // -------------------------
255 .nav-tabs .open .dropdown-toggle,
256 .nav-pills .open .dropdown-toggle,
257 .nav > li.dropdown.open.active > a:hover,
258 .nav > li.dropdown.open.active > a:focus {
260 background-color: @grayLight;
261 border-color: @grayLight;
263 .nav li.dropdown.open .caret,
264 .nav li.dropdown.open.active .caret,
265 .nav li.dropdown.open a:hover .caret,
266 .nav li.dropdown.open a:focus .caret {
267 border-top-color: @white;
268 border-bottom-color: @white;
272 // Dropdowns in stacked tabs
273 .tabs-stacked .open > a:hover,
274 .tabs-stacked .open > a:focus {
275 border-color: @grayLight;
292 overflow: auto; // prevent content from running below tabs
295 // Remove border on bottom, left, right
296 .tabs-below > .nav-tabs,
297 .tabs-right > .nav-tabs,
298 .tabs-left > .nav-tabs {
302 // Show/hide tabbable areas
303 .tab-content > .tab-pane,
304 .pill-content > .pill-pane {
307 .tab-content > .active,
308 .pill-content > .active {
316 .tabs-below > .nav-tabs {
317 border-top: 1px solid #ddd;
319 .tabs-below > .nav-tabs > li {
323 .tabs-below > .nav-tabs > li > a {
324 .border-radius(0 0 4px 4px);
327 border-bottom-color: transparent;
328 border-top-color: #ddd;
331 .tabs-below > .nav-tabs > .active > a,
332 .tabs-below > .nav-tabs > .active > a:hover,
333 .tabs-below > .nav-tabs > .active > a:focus {
334 border-color: transparent #ddd #ddd #ddd;
341 .tabs-left > .nav-tabs > li,
342 .tabs-right > .nav-tabs > li {
345 .tabs-left > .nav-tabs > li > a,
346 .tabs-right > .nav-tabs > li > a {
353 .tabs-left > .nav-tabs {
356 border-right: 1px solid #ddd;
358 .tabs-left > .nav-tabs > li > a {
360 .border-radius(4px 0 0 4px);
362 .tabs-left > .nav-tabs > li > a:hover,
363 .tabs-left > .nav-tabs > li > a:focus {
364 border-color: @grayLighter #ddd @grayLighter @grayLighter;
366 .tabs-left > .nav-tabs .active > a,
367 .tabs-left > .nav-tabs .active > a:hover,
368 .tabs-left > .nav-tabs .active > a:focus {
369 border-color: #ddd transparent #ddd #ddd;
370 *border-right-color: @white;
374 .tabs-right > .nav-tabs {
377 border-left: 1px solid #ddd;
379 .tabs-right > .nav-tabs > li > a {
381 .border-radius(0 4px 4px 0);
383 .tabs-right > .nav-tabs > li > a:hover,
384 .tabs-right > .nav-tabs > li > a:focus {
385 border-color: @grayLighter @grayLighter @grayLighter #ddd;
387 .tabs-right > .nav-tabs .active > a,
388 .tabs-right > .nav-tabs .active > a:hover,
389 .tabs-right > .nav-tabs .active > a:focus {
390 border-color: #ddd #ddd #ddd transparent;
391 *border-left-color: @white;
400 .nav > .disabled > a {
403 // Nuke hover/focus effects
404 .nav > .disabled > a:hover,
405 .nav > .disabled > a:focus {
406 text-decoration: none;
407 background-color: transparent;