diff --git a/docs/base-css.html b/docs/base-css.html index 1d4dadc36..95b490682 100644 --- a/docs/base-css.html +++ b/docs/base-css.html @@ -287,7 +287,7 @@

Lists

-
+

Unordered

<ul>

    @@ -308,7 +308,7 @@
  • Eget porttitor lorem
-
+

Unstyled

<ul class="unstyled">

    @@ -329,7 +329,7 @@
  • Eget porttitor lorem
-
+

Ordered

<ol>

    @@ -343,7 +343,9 @@
  1. Eget porttitor lorem
-
+
+
+

Description

<dl>

@@ -356,6 +358,19 @@
Etiam porta sem malesuada magna mollis euismod.
+
+

Horizontal

+

<dl class="horizontal">

+
+
Description lists
+
A description list is perfect for defining terms.
+
Euismod
+
Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.
+
Donec id elit non mi porta gravida at eget metus.
+
Malesuada porta
+
Etiam porta sem malesuada magna mollis euismod.
+
+
@@ -1299,7 +1314,7 @@ For example, <code>section</code> should be wrapped as inline. .btn-danger Indicates a dangerous or potentially negative action - + .btn-inverse Alternate dark gray button, not tied to a semantic action or use diff --git a/docs/templates/pages/base-css.mustache b/docs/templates/pages/base-css.mustache index 71e129af0..382b5e7ae 100644 --- a/docs/templates/pages/base-css.mustache +++ b/docs/templates/pages/base-css.mustache @@ -211,7 +211,7 @@

{{_i}}Lists{{/i}}

-
+

{{_i}}Unordered{{/i}}

<ul>

    @@ -232,7 +232,7 @@
  • Eget porttitor lorem
-
+

{{_i}}Unstyled{{/i}}

<ul class="unstyled">

    @@ -253,7 +253,7 @@
  • Eget porttitor lorem
-
+

{{_i}}Ordered{{/i}}

<ol>

    @@ -267,7 +267,9 @@
  1. Eget porttitor lorem
-
+
+
+

{{_i}}Description{{/i}}

<dl>

@@ -280,7 +282,25 @@
Etiam porta sem malesuada magna mollis euismod.
-
+
+

{{_i}}Horizontal{{/i}}

+

<dl class="horizontal">

+
+
{{_i}}Description lists{{/i}}
+
{{_i}}A description list is perfect for defining terms.{{/i}}
+
Euismod
+
Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.
+
Donec id elit non mi porta gravida at eget metus.
+
Malesuada porta
+
Etiam porta sem malesuada magna mollis euismod.
+
+
+
+
+

{{_i}}Horizontal description lists have two additional sizes: .horizontal-small and .horizontal-large.{{/i}}

+
+
+
@@ -1223,7 +1243,7 @@ .btn-danger {{_i}}Indicates a dangerous or potentially negative action{{/i}} - + .btn-inverse {{_i}}Alternate dark gray button, not tied to a semantic action or use{{/i}} 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: ""; }