mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-27 07:14:36 +02:00
Fix #10979: Don't use .img-thumbnail as a mixin for .thumbnail to avoid dupe and unnecessary styles
This commit is contained in:
3
dist/css/bootstrap.css
vendored
3
dist/css/bootstrap.css
vendored
@@ -5198,10 +5198,7 @@ a.list-group-item.active > .badge,
|
|||||||
}
|
}
|
||||||
|
|
||||||
.thumbnail {
|
.thumbnail {
|
||||||
display: inline-block;
|
|
||||||
display: block;
|
display: block;
|
||||||
height: auto;
|
|
||||||
max-width: 100%;
|
|
||||||
padding: 4px;
|
padding: 4px;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
line-height: 1.428571429;
|
line-height: 1.428571429;
|
||||||
|
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
@@ -5,9 +5,14 @@
|
|||||||
|
|
||||||
// Mixin and adjust the regular image class
|
// Mixin and adjust the regular image class
|
||||||
.thumbnail {
|
.thumbnail {
|
||||||
.img-thumbnail();
|
display: block;
|
||||||
display: block; // Override the inline-block from `.img-thumbnail`
|
padding: @thumbnail-padding;
|
||||||
margin-bottom: @line-height-computed;
|
margin-bottom: @line-height-computed;
|
||||||
|
line-height: @line-height-base;
|
||||||
|
background-color: @thumbnail-bg;
|
||||||
|
border: 1px solid @thumbnail-border;
|
||||||
|
border-radius: @thumbnail-border-radius;
|
||||||
|
.transition(all .2s ease-in-out);
|
||||||
|
|
||||||
> img {
|
> img {
|
||||||
.img-responsive();
|
.img-responsive();
|
||||||
|
Reference in New Issue
Block a user