arrfab / centos / centos.org

Forked from centos/centos.org 3 years ago
Clone

Blame content/assets/css/bootstrap/_thumbnails.scss

e8ec7a
//
e8ec7a
// Thumbnails
e8ec7a
// --------------------------------------------------
e8ec7a
e8ec7a
e8ec7a
// Mixin and adjust the regular image class
e8ec7a
.thumbnail {
e8ec7a
  @extend .img-thumbnail;
e8ec7a
  display: block; // Override the inline-block from `.img-thumbnail`
e8ec7a
e8ec7a
  > img {
e8ec7a
    @include img-responsive();
e8ec7a
  }
e8ec7a
}
e8ec7a
e8ec7a
e8ec7a
// Add a hover state for linked versions only
e8ec7a
a.thumbnail:hover,
e8ec7a
a.thumbnail:focus {
e8ec7a
  border-color: $link-color;
e8ec7a
}
e8ec7a
e8ec7a
// Images and captions
e8ec7a
.thumbnail > img {
e8ec7a
  margin-left: auto;
e8ec7a
  margin-right: auto;
e8ec7a
}
e8ec7a
.thumbnail .caption {
e8ec7a
  padding: $thumbnail-caption-padding;
e8ec7a
  color: $thumbnail-caption-color;
e8ec7a
}