2018-09-19 04:00:22 +08:00
|
|
|
// stylelint-disable selector-no-qualifying-type
|
2017-11-26 10:06:34 +08:00
|
|
|
|
2012-06-29 12:46:45 +08:00
|
|
|
//
|
|
|
|
// Thumbnails
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
|
2013-08-19 10:24:10 +08:00
|
|
|
// Mixin and adjust the regular image class
|
2013-01-18 12:18:03 +08:00
|
|
|
.thumbnail {
|
2013-11-30 15:19:04 +08:00
|
|
|
display: block;
|
|
|
|
padding: @thumbnail-padding;
|
2013-08-27 08:48:32 +08:00
|
|
|
margin-bottom: @line-height-computed;
|
2013-11-30 15:19:04 +08:00
|
|
|
line-height: @line-height-base;
|
|
|
|
background-color: @thumbnail-bg;
|
|
|
|
border: 1px solid @thumbnail-border;
|
|
|
|
border-radius: @thumbnail-border-radius;
|
2014-09-02 03:48:19 +08:00
|
|
|
.transition(border .2s ease-in-out);
|
2013-08-19 10:24:10 +08:00
|
|
|
|
2013-09-16 23:21:09 +08:00
|
|
|
> img,
|
|
|
|
a > img {
|
2014-02-07 07:39:15 +08:00
|
|
|
&:extend(.img-responsive);
|
2013-10-30 17:00:28 +08:00
|
|
|
margin-right: auto;
|
2017-11-26 10:06:34 +08:00
|
|
|
margin-left: auto;
|
2013-08-19 10:24:10 +08:00
|
|
|
}
|
|
|
|
|
2013-11-02 05:09:01 +08:00
|
|
|
// Add a hover state for linked versions only
|
|
|
|
a&:hover,
|
|
|
|
a&:focus,
|
|
|
|
a&.active {
|
|
|
|
border-color: @link-color;
|
|
|
|
}
|
2012-04-01 15:59:34 +08:00
|
|
|
|
2013-11-02 05:09:01 +08:00
|
|
|
// Image captions
|
|
|
|
.caption {
|
|
|
|
padding: @thumbnail-caption-padding;
|
|
|
|
color: @thumbnail-caption-color;
|
|
|
|
}
|
2011-11-17 15:58:36 +08:00
|
|
|
}
|