aboutsummaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2014-07-09 13:51:49 -0700
committerMark Otto <[email protected]>2014-07-09 13:51:49 -0700
commita0d8c62f184f6615b9fcdc1a7c57f2eda208aece (patch)
tree577864c39e20eac903be31ec86f235ef71e32602 /less
parent4d5243674a0a236af2ff218da1decaafbdeaa719 (diff)
downloadbootstrap-a0d8c62f184f6615b9fcdc1a7c57f2eda208aece.tar.xz
bootstrap-a0d8c62f184f6615b9fcdc1a7c57f2eda208aece.zip
more navs work
Diffstat (limited to 'less')
-rw-r--r--less/navs.less54
1 files changed, 54 insertions, 0 deletions
diff --git a/less/navs.less b/less/navs.less
index 3782fdf8d..5b64cc48c 100644
--- a/less/navs.less
+++ b/less/navs.less
@@ -3,6 +3,60 @@
// --------------------------------------------------
+// - Mixins for horizontal and vertical nav
+// - Classes for tabs and pills
+
+
+.nav {
+ margin-bottom: @line-height-computed;
+ .list-unstyled();
+ &:extend(.clearfix all);
+}
+
+.nav-item {
+ position: relative;
+ display: block;
+}
+
+.nav-link {
+ display: block;
+ padding: @nav-link-padding;
+ line-height: @line-height-base;
+
+ &:hover,
+ &:focus {
+ text-decoration: none;
+ background-color: @nav-link-hover-bg;
+ }
+
+ // Open dropdown and active states
+ .open > &,
+ .active > & {
+ &,
+ &:hover,
+ &:focus {
+ color: @component-active-color;
+ background-color: @component-active-bg;
+ }
+ }
+
+ // Disabled state sets text to gray and nukes hover/tab effects
+ .disabled > & {
+ color: @nav-disabled-link-color;
+
+ &,
+ &:hover,
+ &:focus {
+ color: @nav-disabled-link-hover-color;
+ background-color: transparent;
+ cursor: not-allowed;
+ }
+ }
+}
+
+
+
+
// Base class
// --------------------------------------------------