aboutsummaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-03-05 00:38:26 -0800
committerMark Otto <[email protected]>2012-03-05 00:38:26 -0800
commitfb1d4a0f04504935eb17d13ac6d1dbb72c70b102 (patch)
tree7d669dfc850360fb8fd89cddd41fe696a5d179c7 /less
parent1fa42e2f71ad2df0e2781e55bcb8e1487ad345df (diff)
parent0b78033f0b5645778d42289a5820a7708b4a71a7 (diff)
downloadbootstrap-fb1d4a0f04504935eb17d13ac6d1dbb72c70b102.tar.xz
bootstrap-fb1d4a0f04504935eb17d13ac6d1dbb72c70b102.zip
Merge pull request #2267 from dominicbarnes/dl_horizontal
Horizontal mode for description lists
Diffstat (limited to 'less')
-rw-r--r--less/type.less25
1 files changed, 24 insertions, 1 deletions
diff --git a/less/type.less b/less/type.less
index bbe15f6cf..2a4757eda 100644
--- a/less/type.less
+++ b/less/type.less
@@ -130,6 +130,29 @@ 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-small {
+ dt { width: 50px; }
+ dd { margin-left: 60px; }
+ }
+ &.horizontal-normal {
+ // no additional styles needed
+ }
+ &.horizontal-large {
+ dt { width: 190px; }
+ dd { margin-left: 200px; }
+ }
+}
// MISC
// ----
@@ -198,7 +221,7 @@ blockquote {
// Quotes
q:before,
q:after,
-blockquote:before,
+blockquote:before,
blockquote:after {
content: "";
}