ffffng/app/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/_thumbnails.scss

39 lines
892 B
SCSS
Raw Permalink Normal View History

2014-05-12 20:08:19 +02: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;
2016-05-16 13:33:49 +02:00
@include transition(border .2s ease-in-out);
2014-05-12 20:08:19 +02:00
> img,
a > img {
2016-05-16 13:33:49 +02:00
@include img-responsive;
2014-05-12 20:08:19 +02:00
margin-right: auto;
2019-03-29 22:00:08 +01:00
margin-left: auto;
2014-05-12 20:08:19 +02:00
}
// [converter] extracted a&:hover, a&:focus, a&.active to a.thumbnail:hover, a.thumbnail:focus, a.thumbnail.active
// Image captions
.caption {
padding: $thumbnail-caption-padding;
color: $thumbnail-caption-color;
}
}
// Add a hover state for linked versions only
a.thumbnail:hover,
a.thumbnail:focus,
a.thumbnail.active {
border-color: $link-color;
}