]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Remove .dl-horizontal; it's redundant to the grid system; fixes #18652 18669/head
authorChris Rebert <code@chrisrebert.com>
Fri, 25 Dec 2015 04:26:24 +0000 (21:26 -0700)
committerChris Rebert <code@chrisrebert.com>
Fri, 25 Dec 2015 04:26:26 +0000 (21:26 -0700)
[skip sauce]

docs/content/typography.md
docs/migration.md
scss/_type.scss

index 651e2c49c9fe2e775e080460b2c87fc7e1beb6dd..a028e5e1d243e3cc07f82cb0f6a8b5dd66d0fb86 100644 (file)
@@ -215,12 +215,12 @@ Place all list items on a single line with `display: inline-block;` and some bas
 </ul>
 {% endexample %}
 
-### Horizontal description
+### Description list alignment
 
 Align terms and descriptions horizontally by using our grid system's predefined classes (or semantic mixins). For longer terms, you can optionally add a `.text-truncate` class to truncate the text with an ellipsis.
 
 {% example html %}
-<dl class="dl-horizontal">
+<dl class="row">
   <dt class="col-sm-3">Description lists</dt>
   <dd class="col-sm-9">A description list is perfect for defining terms.</dd>
 
index d710d17683c21ab0957b8e3a2a9b0286d0ecd474..76e29a253d7aa5f15b1fdd9c0b5c0861ecf5387d 100644 (file)
@@ -54,7 +54,7 @@ New to Bootstrap 4 is the Reboot, a new stylesheet that builds on Normalize with
 
 - Moved all `.text-` utilities to the `_utilities.scss` file.
 - Dropped the `.page-header` class entirely.
-- `.dl-horizontal` now requires grid classes, increasing flexbility in column widths.
+- `.dl-horizontal` has been dropped. Instead, use `.row` on `<dl>` and use grid column classes on its `<dt>` and `<dd>` children.
 - Custom `<blockquote>` styling has moved to classes—`.blockquote` and the `.blockquote-reverse` modifier.
 
 ### Images
index f770d20ed8f6155dd7d7330076ed4dbf6392c7f2..60f983aaf7668a646b14fbb8f2a7bcc58035824d 100644 (file)
@@ -101,13 +101,6 @@ mark,
   }
 }
 
-// Horizontal description lists w/ grid classes
-.dl-horizontal {
-  margin-right: -$grid-gutter-width;
-  margin-left: -$grid-gutter-width;
-  @include clearfix;
-}
-
 
 //
 // Misc