mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
fixes #9622: reset to inline-block for img-thumbnail, but keep block for .thumbnail > img
This commit is contained in:
parent
0664b3f0da
commit
418ca6c09b
4 changed files with 19 additions and 5 deletions
|
@ -437,6 +437,13 @@ body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Images */
|
||||||
|
.bs-example > .img-circle,
|
||||||
|
.bs-example > .img-rounded,
|
||||||
|
.bs-example > .img-thumbnail {
|
||||||
|
margin: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
/* Buttons */
|
/* Buttons */
|
||||||
.bs-example > .btn,
|
.bs-example > .btn,
|
||||||
.bs-example > .btn-group {
|
.bs-example > .btn-group {
|
||||||
|
|
9
dist/css/bootstrap.css
vendored
9
dist/css/bootstrap.css
vendored
|
@ -4592,13 +4592,18 @@ button.close {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.thumbnail > img,
|
.thumbnail > img {
|
||||||
.img-thumbnail {
|
|
||||||
display: block;
|
display: block;
|
||||||
height: auto;
|
height: auto;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.img-thumbnail {
|
||||||
|
display: inline-block;
|
||||||
|
height: auto;
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
a.thumbnail:hover,
|
a.thumbnail:hover,
|
||||||
a.thumbnail:focus {
|
a.thumbnail:focus {
|
||||||
border-color: #428bca;
|
border-color: #428bca;
|
||||||
|
|
2
dist/css/bootstrap.min.css
vendored
2
dist/css/bootstrap.min.css
vendored
File diff suppressed because one or more lines are too long
|
@ -20,10 +20,12 @@
|
||||||
.thumbnail {
|
.thumbnail {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
.thumbnail > img,
|
.thumbnail > img {
|
||||||
.img-thumbnail {
|
|
||||||
.img-responsive();
|
.img-responsive();
|
||||||
}
|
}
|
||||||
|
.img-thumbnail {
|
||||||
|
.img-responsive(inline-block);
|
||||||
|
}
|
||||||
|
|
||||||
// Add a hover state for linked versions only
|
// Add a hover state for linked versions only
|
||||||
a.thumbnail:hover,
|
a.thumbnail:hover,
|
||||||
|
|
Loading…
Add table
Reference in a new issue