Stackedit/res/libs/bootstrap/less/thumbnails.less

32 lines
563 B
Plaintext
Raw Normal View History

2013-08-04 00:54:25 +00:00
//
// Thumbnails
// --------------------------------------------------
2013-08-23 23:50:14 +00:00
// Mixin and adjust the regular image class
2013-08-04 00:54:25 +00:00
.thumbnail {
2013-08-23 23:50:14 +00:00
.img-thumbnail();
display: block; // Override the inline-block from `.img-thumbnail`
> img {
.img-responsive();
}
2013-08-15 23:17:16 +00:00
}
2013-08-04 00:54:25 +00:00
2013-08-23 23:50:14 +00:00
2013-08-04 00:54:25 +00:00
// Add a hover state for linked versions only
a.thumbnail:hover,
a.thumbnail:focus {
border-color: @link-color;
}
// Images and captions
.thumbnail > img {
margin-left: auto;
margin-right: auto;
}
.thumbnail .caption {
2013-08-14 23:44:51 +00:00
padding: @thumbnail-caption-padding;
2013-08-04 00:54:25 +00:00
color: @thumbnail-caption-color;
}