From efac0bf8d6cda1e6af85fb84d30d673c8e0a2ee8 Mon Sep 17 00:00:00 2001 From: liuyl Date: Sun, 28 Jul 2013 14:05:47 +0800 Subject: make pull-right !important --- less/type.less | 1 - 1 file changed, 1 deletion(-) (limited to 'less/type.less') diff --git a/less/type.less b/less/type.less index 0acb7f35d..ba0a33692 100644 --- a/less/type.less +++ b/less/type.less @@ -195,7 +195,6 @@ blockquote { // Float right with text-align: right &.pull-right { - float: right; padding-right: 15px; padding-left: 0; border-right: 5px solid @blockquote-border-color; -- cgit v1.2.3 From 6af693d1602d9e4c052c23215ac3130580bfcb17 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 5 Aug 2013 09:10:52 -0700 Subject: Fixes #8770: mobile-first (stacked by default) horizontal dls --- less/type.less | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) (limited to 'less/type.less') diff --git a/less/type.less b/less/type.less index 0acb7f35d..41581a66a 100644 --- a/less/type.less +++ b/less/type.less @@ -141,18 +141,25 @@ dt { dd { margin-left: 0; // Undo browser default } -// Horizontal layout (like forms) -.dl-horizontal { - dt { - float: left; - width: (@component-offset-horizontal - 20); - clear: left; - text-align: right; - .text-overflow(); - } - dd { - .clearfix(); // Clear the floated `dt` if an empty `dd` is present - margin-left: @component-offset-horizontal; + +// Horizontal description lists +// +// Defaults to being stacked without any of the below styles applied, until the +// grid breakpoint is reached (default of ~768px). + +@media (min-width: @grid-float-breakpoint) { + .dl-horizontal { + dt { + float: left; + width: (@component-offset-horizontal - 20); + clear: left; + text-align: right; + .text-overflow(); + } + dd { + margin-left: @component-offset-horizontal; + .clearfix(); // Clear the floated `dt` if an empty `dd` is present + } } } -- cgit v1.2.3