diff options
author | Mark Otto <markdotto@gmail.com> | 2014-10-26 04:13:35 +0300 |
---|---|---|
committer | Mark Otto <markdotto@gmail.com> | 2014-10-26 04:13:35 +0300 |
commit | 42c2918372aaf66d0cf8689d7a4375cdd3279920 (patch) | |
tree | 967e985d92b4470fe355f53279e1d54f5c6c3888 | |
parent | e8643ed8b3e9253d6d42cb811267525e931eb873 (diff) |
Fix up margins and unnest code
-rw-r--r-- | less/media.less | 52 |
1 files changed, 25 insertions, 27 deletions
diff --git a/less/media.less b/less/media.less index eee1c78f3a..292e98dbd7 100644 --- a/less/media.less +++ b/less/media.less @@ -2,46 +2,44 @@ // Proper spacing between instances of .media margin-top: 15px; - // Proper spacing of .media-right - .media-right, - .pull-right { - padding-left: 10px; - } - - // Proper spacing of .media-left - .media-left, - .pull-left { - padding-right: 10px; - } - &:first-child { margin-top: 0; } +} - .media-left, - .media-right, - .media-body { - display: table-cell; - vertical-align: top; - } +.media-right, +.media > .pull-right { + padding-left: 10px; +} - .media-middle { - vertical-align: middle; - } +.media-left, +.media > .pull-left { + padding-right: 10px; +} - .media-bottom { - vertical-align: bottom; - } +.media-left, +.media-right, +.media-body { + display: table-cell; + vertical-align: top; +} + +.media-middle { + vertical-align: middle; +} + +.media-bottom { + vertical-align: bottom; } // Reset margins on headings for tighter default spacing .media-heading { - margin: 0 0 5px 0; + margin-top: 0; + margin-bottom: 5px; } // Media list variation -// ------------------------- - +// // Undo default ul/ol styles .media-list { padding-left: 0; |