Commit c76a2c32 authored by Mark Otto's avatar Mark Otto
Browse files

Merge pull request #18669 from twbs/fix-18652

Remove .dl-horizontal; it's redundant to the grid system
parents 16552b24 4c86e37c
Showing with 3 additions and 10 deletions
+3 -10
...@@ -215,12 +215,12 @@ Place all list items on a single line with `display: inline-block;` and some bas ...@@ -215,12 +215,12 @@ Place all list items on a single line with `display: inline-block;` and some bas
</ul> </ul>
{% endexample %} {% 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. 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 %} {% example html %}
<dl class="dl-horizontal"> <dl class="row">
<dt class="col-sm-3">Description lists</dt> <dt class="col-sm-3">Description lists</dt>
<dd class="col-sm-9">A description list is perfect for defining terms.</dd> <dd class="col-sm-9">A description list is perfect for defining terms.</dd>
......
...@@ -54,7 +54,7 @@ New to Bootstrap 4 is the Reboot, a new stylesheet that builds on Normalize with ...@@ -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. - Moved all `.text-` utilities to the `_utilities.scss` file.
- Dropped the `.page-header` class entirely. - 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. - Custom `<blockquote>` styling has moved to classes—`.blockquote` and the `.blockquote-reverse` modifier.
### Images ### Images
......
...@@ -101,13 +101,6 @@ mark, ...@@ -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 // Misc
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment