Stackedit/js/libs/bootstrap/less/thumbnails.less

45 lines
908 B
Plaintext
Raw Normal View History

2013-08-04 00:54:25 +00:00
//
// Thumbnails
// --------------------------------------------------
// Base classes
// For thumbnail block-level composite components and simple image styles
// The actual thumbnailed element
// Can be `a`, `div`, or `img`
.thumbnail,
.img-thumbnail {
2013-08-14 23:44:51 +00:00
padding: @thumbnail-padding;
2013-08-04 00:54:25 +00:00
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);
}
.thumbnail {
display: block;
}
2013-08-15 23:17:16 +00:00
.thumbnail > img {
2013-08-04 00:54:25 +00:00
.img-responsive();
}
2013-08-15 23:17:16 +00:00
.img-thumbnail {
.img-responsive(inline-block);
}
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;
}