1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-18 03:11:19 +02:00

improve dependencies for image thumbnails and thumbnail component

This commit is contained in:
Mark Otto
2013-08-18 19:24:10 -07:00
parent 5bd2d7ed7e
commit d5cd040f57
4 changed files with 46 additions and 42 deletions

View File

@@ -354,6 +354,19 @@ img {
border-radius: 6px;
}
.img-thumbnail {
display: inline-block;
height: auto;
max-width: 100%;
padding: 4px;
line-height: 1.428571429;
background-color: #ffffff;
border: 1px solid #dddddd;
border-radius: 4px;
-webkit-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
}
.img-circle {
border-radius: 50%;
}
@@ -4884,8 +4897,11 @@ a.list-group-item.active > .badge,
}
}
.thumbnail,
.img-thumbnail {
.thumbnail {
display: inline-block;
display: block;
height: auto;
max-width: 100%;
padding: 4px;
line-height: 1.428571429;
background-color: #ffffff;
@@ -4895,22 +4911,12 @@ a.list-group-item.active > .badge,
transition: all 0.2s ease-in-out;
}
.thumbnail {
display: block;
}
.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