diff --git a/docs/assets/css/bootstrap-responsive.css b/docs/assets/css/bootstrap-responsive.css index a0b4f468..72814d3f 100644 --- a/docs/assets/css/bootstrap-responsive.css +++ b/docs/assets/css/bootstrap-responsive.css @@ -901,10 +901,8 @@ float: none; margin-bottom: 10px; } - .media .pull-left { + .media-object { margin-right: 0; - } - .media .pull-right { margin-left: 0; } .modal { diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css index 5b8073bf..ae09c212 100644 --- a/docs/assets/css/bootstrap.css +++ b/docs/assets/css/bootstrap.css @@ -5279,12 +5279,21 @@ a.thumbnail:hover { zoom: 1; } -.media { - margin-bottom: 10px; +.media, +.media .media { + margin-top: 15px; } -.media .media { - margin-top: 20px; +.media:first-child { + margin-top: 0; +} + +.media-object { + display: block; +} + +.media-heading { + margin: 0 0 5px; } .media .pull-left { @@ -5295,58 +5304,9 @@ a.thumbnail:hover { margin-left: 10px; } -.media .media-object { - display: block; -} - -.medias { - margin-top: 20px; +.media-list { margin-left: 0; - list-style-type: none; -} - -.medias .media { - padding-bottom: 10px; - border-bottom: 1px solid rgba(0, 0, 0, 0.07); -} - -.medias > .media.last { - margin: 0; - border-bottom: none; -} - -.medias > .media .media { - padding-bottom: 0; - margin-bottom: 0; - border-bottom: none; -} - -.media-box { - padding: 10px; - margin-bottom: 19px; - background-color: #fff; - border: 1px solid rgba(0, 0, 0, 0.09); - -webkit-border-radius: 4px; - -moz-border-radius: 4px; - border-radius: 4px; - -webkit-box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1); - -moz-box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1); - box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1); -} - -@media (max-width: 480px) { - .media .pull-left, - .media .pull-right { - display: block; - float: none; - margin-bottom: 10px; - } - .media .pull-left { - margin-right: 0; - } - .media .pull-right { - margin-left: 0; - } + list-style: none; } .label, diff --git a/docs/components.html b/docs/components.html index f47aecbf..0605fe8a 100644 --- a/docs/components.html +++ b/docs/components.html @@ -98,6 +98,7 @@
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.
++<div class="media"> + <a class="pull-left" href="#"> + <img class="media-object" src="http://placehold.it/64x64"> + </a> + <div class="media-body"> + <h4 class="media-heading">Media heading</h4> + ... + + <!-- Nested media object --> + <div class="media"> + ... + </div> + </div> +</div> ++ + +
With a bit of extra markup, you can use media inside list (useful for comment threads or articles lists).
+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.
+ ++<ul class="media-list"> + <li class="media"> + <a class="pull-left" href="#"> + <img class="media-object" src="http://placehold.it/64x64"> + </a> + <div class="media-body"> + <h4 class="media-heading">Media heading</h4> + ... + + <!-- Nested media object --> + <div class="media"> + ... + </div> + </div> + </li> +</ul> ++ +
{{_i}}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.{{/i}}
+ +{{_i}}The default media allow to float a media object (images, video, audio) to the left or right of a content block.{{/i}}
+
+<div class="media">
+ <a class="pull-left" href="#">
+ <img class="media-object" src="http://placehold.it/64x64">
+ </a>
+ <div class="media-body">
+ <h4 class="media-heading">{{_i}}Media heading{{/i}}</h4>
+ ...
+
+ <!-- Nested media object -->
+ <div class="media">
+ ...
+ </div>
+ </div>
+</div>
+
+
+
+ {{_i}}With a bit of extra markup, you can use media inside list (useful for comment threads or articles lists).{{/i}}
+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.
+ +
+<ul class="media-list">
+ <li class="media">
+ <a class="pull-left" href="#">
+ <img class="media-object" src="http://placehold.it/64x64">
+ </a>
+ <div class="media-body">
+ <h4 class="media-heading">{{_i}}Media heading{{/i}}</h4>
+ ...
+
+ <!-- Nested media object -->
+ <div class="media">
+ ...
+ </div>
+ </div>
+ </li>
+</ul>
+
+
+