aboutsummaryrefslogtreecommitdiff
path: root/lib/patterns.less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2011-10-31 21:45:46 -0700
committerMark Otto <[email protected]>2011-10-31 21:45:46 -0700
commit31ea00304626ea68b758def41769606d4c049671 (patch)
tree49014c0aae72ca63e3b78355a54b3f4b0e602ee1 /lib/patterns.less
parentac9073e1e4b118c47f3f6c91bf81840cc9a346f6 (diff)
downloadbootstrap-31ea00304626ea68b758def41769606d4c049671.tar.xz
bootstrap-31ea00304626ea68b758def41769606d4c049671.zip
remove alt tab styles for now, too complicated to accomplish both static and tabble; fix up CSS a bit
Diffstat (limited to 'lib/patterns.less')
-rw-r--r--lib/patterns.less53
1 files changed, 30 insertions, 23 deletions
diff --git a/lib/patterns.less b/lib/patterns.less
index 1db315831..367347e27 100644
--- a/lib/patterns.less
+++ b/lib/patterns.less
@@ -378,34 +378,48 @@
border-color: transparent #ddd #ddd #ddd;
}
- // Tabs on left
- &.tabs-left {
+ // Tabs on left and right
+ &.tabs-left,
+ &.tabs-right {
.clearfix();
+ .tabs {
+ // Give a fixed width to avoid floating .tab-con
+ width: 100px;
+ // Unfloat them so they stack
+ > li {
+ float: none;
+ margin-bottom: -1px;
+ > a {
+ margin-bottom: 2px;
+ &:hover {
+ border-color: transparent;
+ }
+ }
+ }
+ }
+ }
+ // Tabs on left
+ &.tabs-left {
.tab-content {
- float: left;
+ margin-left: 100px;
}
.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 {
+ // Active state
+ .active > a,
+ .active > a:hover {
border-color: #ddd;
border-right-color: transparent;
}
@@ -414,32 +428,25 @@
// Tabs on right
&.tabs-right {
- .clearfix();
-
.tab-content {
- float: right;
+ margin-right: 100px;
}
.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);
+ .border-radius(0 4px 4px 0);
&:hover {
- border-color: transparent;
border-left-color: #ddd;
}
}
}
-
- > .active > a,
- > .active > a:hover {
+ // Active state
+ .active > a,
+ .active > a:hover {
border-color: #ddd;
border-left-color: transparent;
}