aboutsummaryrefslogtreecommitdiff
path: root/lib/patterns.less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2011-10-31 21:25:21 -0700
committerMark Otto <[email protected]>2011-10-31 21:25:21 -0700
commitac9073e1e4b118c47f3f6c91bf81840cc9a346f6 (patch)
treef417879ca23dcfd4976cacd58f4fb9d00b6fd61f /lib/patterns.less
parent27b8e5e4fce71ccc5ebd56230dedd9c2403239eb (diff)
parentcb13f010e2dd1eb8f37048b5664ff455b60eba05 (diff)
downloadbootstrap-ac9073e1e4b118c47f3f6c91bf81840cc9a346f6.tar.xz
bootstrap-ac9073e1e4b118c47f3f6c91bf81840cc9a346f6.zip
Merge branch '2.0-left-and-right-tabs' of https://github.com/avalanche123/bootstrap into avalanche123-2.0-left-and-right-tabs
Diffstat (limited to 'lib/patterns.less')
-rw-r--r--lib/patterns.less72
1 files changed, 62 insertions, 10 deletions
diff --git a/lib/patterns.less b/lib/patterns.less
index f1badc46d..1db315831 100644
--- a/lib/patterns.less
+++ b/lib/patterns.less
@@ -379,19 +379,71 @@
}
// Tabs on left
- &.tabs-left .tabs {
- float: left;
- }
- &.tabs-left .tabs > li {
- float: none;
+ &.tabs-left {
+ .clearfix();
+
+ .tab-content {
+ float: left;
+ }
+ .tabs {
+ float: left;
+
+ > li {
+ float: none;
+ margin-bottom: -1px;
+ margin-right: -1px;
+ > a {
+ margin-right: 0;
+ margin-bottom: 2px;
+ .border-radius(4px 0 0 4px);
+
+ &:hover {
+ border-color: transparent;
+ border-right-color: #ddd;
+ }
+ }
+ }
+
+ > .active > a,
+ > .active > a:hover {
+ border-color: #ddd;
+ border-right-color: transparent;
+ }
+ }
}
// Tabs on right
- &.tabs-right .tabs {
- float: right;
- }
- &.tabs-right .tabs > li {
- float: none;
+ &.tabs-right {
+ .clearfix();
+
+ .tab-content {
+ float: right;
+ }
+ .tabs {
+ float: right;
+
+ > li {
+ float: none;
+ margin-bottom: -1px;
+ margin-left: -1px;
+ > a {
+ margin-left: 0;
+ margin-bottom: 2px;
+ .border-radius(4px 0 0 4px);
+
+ &:hover {
+ border-color: transparent;
+ border-left-color: #ddd;
+ }
+ }
+ }
+
+ > .active > a,
+ > .active > a:hover {
+ border-color: #ddd;
+ border-left-color: transparent;
+ }
+ }
}
}