aboutsummaryrefslogtreecommitdiff
path: root/docs/assets
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-06-28 00:09:10 -0700
committerMark Otto <[email protected]>2013-06-28 00:09:10 -0700
commit09cdee2f03aaad5c5a767fbec2e3896ad3d1f980 (patch)
tree74724b9edea8a32aa53183b27f485034bcb9805d /docs/assets
parent1a09eada35259de198ffad56a460c6ffafe890a4 (diff)
downloadbootstrap-09cdee2f03aaad5c5a767fbec2e3896ad3d1f980.tar.xz
bootstrap-09cdee2f03aaad5c5a767fbec2e3896ad3d1f980.zip
Overall responsive `img` styles
`img`s are no longer responsive by default. Instead, use `.img-responsive` as a class or mixin. Existing `.thumbnail > img` and `.img-thumbnail` classes now make use of this as a mixin as well.
Diffstat (limited to 'docs/assets')
-rw-r--r--docs/assets/css/bootstrap.css15
1 files changed, 12 insertions, 3 deletions
diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css
index bffe638ee..9f037b333 100644
--- a/docs/assets/css/bootstrap.css
+++ b/docs/assets/css/bootstrap.css
@@ -325,9 +325,13 @@ a:focus {
}
img {
+ vertical-align: middle;
+}
+
+.img-responsive {
+ display: block;
height: auto;
max-width: 100%;
- vertical-align: middle;
}
.img-rounded {
@@ -3958,6 +3962,13 @@ button.close {
transition: all 0.2s ease-in-out;
}
+.thumbnail > img,
+.img-thumbnail {
+ display: block;
+ height: auto;
+ max-width: 100%;
+}
+
.thumbnail {
display: block;
}
@@ -3972,8 +3983,6 @@ a.thumbnail:focus {
}
.thumbnail > img {
- display: block;
- max-width: 100%;
margin-right: auto;
margin-left: auto;
}