thumbnails.less 563 Bytes
Newer Older
1
2
3
4
5
//
// Thumbnails
// --------------------------------------------------


6
// Mixin and adjust the regular image class
7
.thumbnail {
8
9
10
11
12
13
  .img-thumbnail();
  display: block; // Override the inline-block from `.img-thumbnail`

  > img {
    .img-responsive();
  }
14
}
15

16

17
// Add a hover state for linked versions only
18
19
a.thumbnail:hover,
a.thumbnail:focus {
Mark Otto's avatar
Mark Otto committed
20
  border-color: @link-color;
21
}
22

23
24
// Images and captions
.thumbnail > img {
25
26
  margin-left: auto;
  margin-right: auto;
27
28
}
.thumbnail .caption {
29
  padding: @thumbnail-caption-padding;
30
  color: @thumbnail-caption-color;
31
}