0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-01 13:24:25 +01:00

fixes #9622: reset to inline-block for img-thumbnail, but keep block for .thumbnail > img

This commit is contained in:
Mark Otto 2013-08-15 13:40:21 -07:00
parent 0664b3f0da
commit 418ca6c09b
4 changed files with 19 additions and 5 deletions

View File

@ -437,6 +437,13 @@ body {
margin: 0;
}
/* Images */
.bs-example > .img-circle,
.bs-example > .img-rounded,
.bs-example > .img-thumbnail {
margin: 5px;
}
/* Buttons */
.bs-example > .btn,
.bs-example > .btn-group {

View File

@ -4592,13 +4592,18 @@ button.close {
display: block;
}
.thumbnail > img,
.img-thumbnail {
.thumbnail > img {
display: block;
height: auto;
max-width: 100%;
}
.img-thumbnail {
display: inline-block;
height: auto;
max-width: 100%;
}
a.thumbnail:hover,
a.thumbnail:focus {
border-color: #428bca;

File diff suppressed because one or more lines are too long

View File

@ -20,10 +20,12 @@
.thumbnail {
display: block;
}
.thumbnail > img,
.img-thumbnail {
.thumbnail > img {
.img-responsive();
}
.img-thumbnail {
.img-responsive(inline-block);
}
// Add a hover state for linked versions only
a.thumbnail:hover,