diff --git a/dist/css/bootstrap.css b/dist/css/bootstrap.css index 02a92e639..3c224382e 100644 --- a/dist/css/bootstrap.css +++ b/dist/css/bootstrap.css @@ -4886,29 +4886,34 @@ a.thumbnail.active { background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); } -.media, -.media-body { - overflow: hidden; - zoom: 1; -} -.media, -.media .media { +.media { margin-top: 15px; } +.media .media-right, +.media .pull-right { + padding-left: 10px; +} +.media .media-left, +.media .pull-left { + padding-right: 10px; +} .media:first-child { margin-top: 0; } -.media-object { - display: block; +.media .media-left, +.media .media-right, +.media .media-body { + display: table-cell; + vertical-align: top; +} +.media .media-middle { + vertical-align: middle; +} +.media .media-bottom { + vertical-align: bottom; } .media-heading { - margin: 0 0 5px; -} -.media > .pull-left { - margin-right: 10px; -} -.media > .pull-right { - margin-left: 10px; + margin: 0 0 5px 0; } .media-list { padding-left: 0; diff --git a/docs/_includes/components/media.html b/docs/_includes/components/media.html index 57aee1e1d..9c166375e 100644 --- a/docs/_includes/components/media.html +++ b/docs/_includes/components/media.html @@ -4,10 +4,10 @@
Abstract object styles for building various types of components (like blog comments, Tweets, etc) that feature a left- or right-aligned image alongside textual content.
The default media allow to float a media object (images, video, audio) to the left or right of a content block.
+The default media displays a media object (images, video, audio) to the left or right of a content block.
The classes .pull-left and .pull-right also exist and were previously used as part of the media component, but are deprecated for that use as of v3.3.0. They are approximately equivalent to .media-left and .media-right, except that .media-right should be placed after the .media-body in the html.
The images or other media can be aligned top, middle, or bottom. The default is top aligned.
+Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.