]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
fixes #8345: use inline-block on .img-responsive
authorMark Otto <otto@github.com>
Tue, 2 Jul 2013 02:42:26 +0000 (19:42 -0700)
committerMark Otto <otto@github.com>
Tue, 2 Jul 2013 02:42:43 +0000 (19:42 -0700)
docs/assets/css/bootstrap.css
docs/assets/css/docs.css
less/mixins.less
less/scaffolding.less
less/thumbnails.less

index 24d2b690cd3ddbce9aae3407dc6460cd77ef3329..cb80d5c36f0e0e1c9a9a7051a59b6ab9539573e7 100644 (file)
@@ -329,7 +329,7 @@ img {
 }
 
 .img-responsive {
-  display: block;
+  display: inline-block;
   height: auto;
   max-width: 100%;
 }
@@ -3957,19 +3957,15 @@ button.close {
           transition: all 0.2s ease-in-out;
 }
 
-.thumbnail > img,
-.img-thumbnail {
-  display: block;
-  height: auto;
-  max-width: 100%;
-}
-
 .thumbnail {
   display: block;
 }
 
+.thumbnail > img,
 .img-thumbnail {
   display: inline-block;
+  height: auto;
+  max-width: 100%;
 }
 
 a.thumbnail:hover,
@@ -4308,7 +4304,7 @@ a.list-group-item.active > .badge,
 
 .carousel-inner > .item > img,
 .carousel-inner > .item > a > img {
-  display: block;
+  display: inline-block;
   height: auto;
   max-width: 100%;
   line-height: 1;
index f07654a98fb42c3ddb6b0f670fee254cb786febd..31047b5d78b9ad961b47f23b4977bfa788f3831d 100644 (file)
@@ -602,6 +602,7 @@ body {
 }
 .footer-links {
   margin: 10px 0;
+  padding-left: 0;
 }
 .footer-links li {
   display: inline;
@@ -617,7 +618,8 @@ body {
 }
 .bs-social-buttons {
   display: inline-block;
-  margin: 0;
+  margin-bottom: 0;
+  padding-left: 0;
   list-style: none;
 }
 .bs-social-buttons li {
index 6a24beb03dd9204194b19472fda445393183566b..7d93843b953ae2bffb43cbf34c6dde6a53af1719 100644 (file)
   td& { display: table-cell !important; }
 }
 
-
-
 // Grid System
 // -----------
 
index 79447c3f5b1a85ee1950d92b2138ea403631467b..88b6c7c6e6f87f3e0397c120fd996c196b102a45 100644 (file)
@@ -64,7 +64,7 @@ img {
 
 // Responsive images (ensure images don't scale beyond their parents)
 .img-responsive {
-  display: block;
+  display: inline-block;
   max-width: 100%; // Part 1: Set a maximum relative to the parent
   height: auto; // Part 2: Scale the height according to the width, otherwise you get stretching
 }
index b15b8d25abb8a29cc1e76a6ae1601b4119a96530..1f896708d8a52a7041d476bc7e1c0b43d0ef3c79 100644 (file)
   border-radius: @thumbnail-border-radius;
   .transition(all .2s ease-in-out);
 }
-.thumbnail > img,
-.img-thumbnail {
-  .img-responsive();
-}
 .thumbnail {
   display: block;
 }
+.thumbnail > img,
 .img-thumbnail {
-  display: inline-block;
+  .img-responsive();
 }
 
 // Add a hover state for linked versions only