1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00
twbs--bootstrap/less/thumbnails.less

37 lines
750 B
Text
Raw Normal View History

2012-06-29 00:46:45 -04:00
//
// Thumbnails
// --------------------------------------------------
// Mixin and adjust the regular image class
.thumbnail {
display: block;
padding: @thumbnail-padding;
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,
a > img {
2014-02-06 18:39:15 -05:00
&:extend(.img-responsive);
margin-left: auto;
margin-right: auto;
}
2013-11-01 17:09:01 -04:00
// Add a hover state for linked versions only
a&:hover,
a&:focus,
a&.active {
border-color: @link-color;
}
2013-11-01 17:09:01 -04:00
// Image captions
.caption {
padding: @thumbnail-caption-padding;
color: @thumbnail-caption-color;
}
}