diff options
| author | Mark Otto <[email protected]> | 2012-11-04 12:36:37 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2012-11-04 12:36:37 -0800 |
| commit | 28da31218fc5dc39ece625705c37b8c86d494801 (patch) | |
| tree | fd83bf046a15afbe269d893f73aa0ce79ca1ce6d /less | |
| parent | 68f26d959f97c761206bf5f6f808e6199d620ca2 (diff) | |
| download | bootstrap-28da31218fc5dc39ece625705c37b8c86d494801.tar.xz bootstrap-28da31218fc5dc39ece625705c37b8c86d494801.zip | |
Refine new inline list option
Diffstat (limited to 'less')
| -rw-r--r-- | less/type.less | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/less/type.less b/less/type.less index d23ecc917..0d5b9c37e 100644 --- a/less/type.less +++ b/less/type.less @@ -106,25 +106,23 @@ ol ul { li { line-height: @baseLineHeight; } + +// Remove default list styles ul.unstyled, ol.unstyled { margin-left: 0; list-style: none; } + +// Single-line list items ul.inline, ol.inline { - .clearfix(); -} -ul.inline > li, -ol.inline > li { - float: left; - margin-right: 14px; - margin-left: 12px; -} -// Reset left padding for unstyled -ul.unstyled.inline > li, -ol.unstyled.inline > li { - padding-left: 0; + list-style: none; + & > li { + display: inline-block; + padding-left: 5px; + padding-right: 5px; + } } // Description Lists |
