]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fixes #7438: remove max-height from justified nav tabs with some CSS wankery
authorMark Otto <otto@github.com>
Mon, 1 Apr 2013 02:26:40 +0000 (19:26 -0700)
committerMark Otto <otto@github.com>
Mon, 1 Apr 2013 02:26:40 +0000 (19:26 -0700)
docs/assets/css/bootstrap.css
less/navs.less

index f359629952fffaf68b09ee70d3a2a04e31a18dff..c59d1aae74250e446057a76470775ecb03853de7 100644 (file)
@@ -3250,7 +3250,7 @@ button.close {
 }
 
 .nav-justified {
-  max-height: 40px;
+  width: 100%;
 }
 
 .nav-justified > li {
@@ -3260,6 +3260,22 @@ button.close {
   text-align: center;
 }
 
+.nav-justified.nav-tabs {
+  border-bottom: 0;
+}
+
+.nav-justified.nav-tabs > li > a {
+  border-bottom: 1px solid #ddd;
+}
+
+.nav-justified.nav-tabs > .active > a {
+  border-bottom-color: #ffffff;
+}
+
+.nav-justified > li > a {
+  margin-right: 0;
+}
+
 .nav > .disabled > a {
   color: #999999;
 }
index 88641229cf50914181ab88fca839765045057d2e..ff65f85337dc3648671125acf96bbf9010d66e77 100644 (file)
 // -------------------------
 
 .nav-justified {
-  // Negative margin doesn't work, so we hack it
-  max-height: 40px;
+  width: 100%;
 }
 .nav-justified > li {
   float: none;
   width: 1%;
   text-align: center;
 }
+// Move borders to anchors instead of bottom of list
+.nav-justified.nav-tabs {
+  border-bottom: 0;
+  > li > a {
+    border-bottom: 1px solid #ddd;
+  }
+  > .active > a {
+    border-bottom-color: @body-bg;
+  }
+}
+// Override margin from .nav-tabs
+.nav-justified > li > a {
+  margin-right: 0;
+}