From 37f4a25be436e8b25004d22541809032d8354600 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 17 Jun 2013 14:19:44 -0700 Subject: Better clearing on `.dl-horizontal` for empty `dd` elements Instead of clearing the entire `.dl-horizontal`, we've moved the clearfix mixin to the `dd` level to solve two problems in one: empty `dd`s mid-list, and empty `dd` as the last child. Addresses a few old issues, including #2824, #3819, #3821, #4062, #6707, and #7180. Sorry that took so long :D. --- docs/assets/css/bootstrap.css | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'docs/assets/css/bootstrap.css') diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css index 04d5bc1fd..a99125994 100644 --- a/docs/assets/css/bootstrap.css +++ b/docs/assets/css/bootstrap.css @@ -548,38 +548,38 @@ dd { margin-left: 10px; } -.dl-horizontal:before, -.dl-horizontal:after { - display: table; - content: " "; +.dl-horizontal dt { + float: left; + width: 160px; + overflow: hidden; + clear: left; + text-align: right; + text-overflow: ellipsis; + white-space: nowrap; } -.dl-horizontal:after { - clear: both; +.dl-horizontal dd { + margin-left: 180px; } -.dl-horizontal:before, -.dl-horizontal:after { +.dl-horizontal dd:before, +.dl-horizontal dd:after { display: table; content: " "; } -.dl-horizontal:after { +.dl-horizontal dd:after { clear: both; } -.dl-horizontal dt { - float: left; - width: 160px; - overflow: hidden; - clear: left; - text-align: right; - text-overflow: ellipsis; - white-space: nowrap; +.dl-horizontal dd:before, +.dl-horizontal dd:after { + display: table; + content: " "; } -.dl-horizontal dd { - margin-left: 180px; +.dl-horizontal dd:after { + clear: both; } hr { -- cgit v1.2.3