aboutsummaryrefslogtreecommitdiff
path: root/less/type.less
diff options
context:
space:
mode:
authorDominic Barnes <[email protected]>2012-02-25 21:21:05 -0600
committerDominic Barnes <[email protected]>2012-02-25 21:21:05 -0600
commit0a8efd5320dca80ad911c2d5e4a9404a010ff78e (patch)
tree41f25c45317bf93d45dcaed907b2865bb842ed08 /less/type.less
parent43760eb2029c73b6be6b0dbeb753be1e247697d9 (diff)
downloadbootstrap-0a8efd5320dca80ad911c2d5e4a9404a010ff78e.tar.xz
bootstrap-0a8efd5320dca80ad911c2d5e4a9404a010ff78e.zip
Adding a 'horizontal' option to description lists, similar to .form-horizontal
Diffstat (limited to 'less/type.less')
-rw-r--r--less/type.less37
1 files changed, 36 insertions, 1 deletions
diff --git a/less/type.less b/less/type.less
index bbe15f6cf..57eba9b91 100644
--- a/less/type.less
+++ b/less/type.less
@@ -130,6 +130,41 @@ dt {
dd {
margin-left: @baseLineHeight / 2;
}
+// Horizontal layout (like forms)
+dl.horizontal {
+ dt {
+ float: left;
+ clear: left;
+ width: 120px;
+ text-align: right;
+ }
+ dd {
+ margin-left: 130px;
+ }
+ &.horizontal-mini {
+ dt { width: 50px; }
+ dd { margin-left: 60px; }
+ }
+ &.horizontal-small {
+ dt { width: 90px; }
+ dd { margin-left: 100px; }
+ }
+ &.horizontal-normal {
+ // no additional styles needed
+ }
+ &.horizontal-large {
+ dt { width: 140px; }
+ dd { margin-left: 150px; }
+ }
+ &.horizontal-xlarge {
+ dt { width: 170px; }
+ dd { margin-left: 180px; }
+ }
+ &.horizontal-xxlarge {
+ dt { width: 190px; }
+ dd { margin-left: 200px; }
+ }
+}
// MISC
// ----
@@ -198,7 +233,7 @@ blockquote {
// Quotes
q:before,
q:after,
-blockquote:before,
+blockquote:before,
blockquote:after {
content: "";
}