aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-01-07 22:06:44 -0800
committerMark Otto <[email protected]>2012-01-07 22:06:44 -0800
commit22e0c5f7c8c092531b111b6042a7d7ee87d406b6 (patch)
treedebb444455dba6b601b3cc22620d1597a88e1340 /lib
parentd0eecc85f89fd258a2e58d7be06a8b6068da90e4 (diff)
downloadbootstrap-22e0c5f7c8c092531b111b6042a7d7ee87d406b6.tar.xz
bootstrap-22e0c5f7c8c092531b111b6042a7d7ee87d406b6.zip
redoing the tabs on bottom, left, and right
Diffstat (limited to 'lib')
-rw-r--r--lib/navs.less113
1 files changed, 87 insertions, 26 deletions
diff --git a/lib/navs.less b/lib/navs.less
index 0d31cf3bc..f76f1acad 100644
--- a/lib/navs.less
+++ b/lib/navs.less
@@ -203,36 +203,97 @@
// TABBABLE
// --------
-/*
+
+// COMMON STYLES
+// -------------
+
+// Clear any floats
.tabbable {
- margin-bottom: @baseLineHeight;
+ .clearfix();
+}
+// Remove border on bottom, left, right
+.tabs-below .tabs,
+.tabs-right .tabs,
+.tabs-left .tabs {
+ border-bottom: 0;
+}
- // Tabs on top
- .tabs {
- margin-bottom: 0;
- border-bottom: 0;
- }
- .tab-content {
- padding: 19px;
- border: 1px solid #ddd;
- }
+// BOTTOM
+// ------
- // Tabs on bottom
- &.tabs-bottom .tabs > li {
- margin-top: -1px;
- margin-bottom: 0;
- }
- &.tabs-bottom .tabs > li > a {
- .border-radius(0 0 4px 4px);
- &:hover {
- border-bottom-color: transparent;
- border-top-color: #ddd;
- }
- }
- &.tabs-bottom .tabs > .active > a,
- &.tabs-bottom .tabs > .active > a:hover {
- border-color: transparent #ddd #ddd #ddd;
+.tabs-below .tabs {
+ border-top: 1px solid #ddd;
+}
+.tabs-below .tabs > li {
+ margin-top: -1px;
+ margin-bottom: 0;
+}
+.tabs-below .tabs > li > a {
+ .border-radius(0 0 4px 4px);
+ &:hover {
+ border-bottom-color: transparent;
+ border-top-color: #ddd;
}
+}
+.tabs-below .tabs .active > a,
+.tabs-below .tabs .active > a:hover {
+ border-color: transparent #ddd #ddd #ddd;
+}
+
+// LEFT & RIGHT
+// ------------
+
+// Common styles
+.tabs-left .tabs > li,
+.tabs-right .tabs > li {
+ float: none;
+}
+.tabs-left .tabs > li > a,
+.tabs-right .tabs > li > a {
+ min-width: 74px;
+ margin-right: 0;
+ margin-bottom: 3px;
+}
+
+// Tabs on the left
+.tabs-left .tabs {
+ float: left;
+ margin-right: 19px;
+ border-right: 1px solid #ddd;
+}
+.tabs-left .tabs > li > a {
+ margin-right: -1px;
+ .border-radius(4px 0 0 4px);
+}
+.tabs-left .tabs > li > a:hover {
+ border-color: #eee #ddd #eee #eee;
+}
+.tabs-left .tabs .active > a,
+.tabs-left .tabs .active > a:hover {
+ border-color: #ddd transparent #ddd #ddd;
+}
+
+// Tabs on the right
+.tabs-right .tabs {
+ float: right;
+ margin-left: 19px;
+ border-left: 1px solid #ddd;
+}
+.tabs-right .tabs > li > a {
+ margin-left: -1px;
+ .border-radius(0 4px 4px 0);
+}
+.tabs-right .tabs > li > a:hover {
+ border-color: #eee #eee #eee #ddd;
+}
+.tabs-right .tabs .active > a,
+.tabs-right .tabs .active > a:hover {
+ border-color: #ddd #ddd #ddd transparent;
+}
+
+
+/*
+.tabbable {
// Tabs on left and right
&.tabs-left,