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


6
7
8
9
10
11
12
// 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 {
13
  padding: 4px;
14
  line-height: @line-height-base;
15
16
17
  background-color: @thumbnail-bg;
  border: 1px solid @thumbnail-border;
  border-radius: @thumbnail-border-radius;
Mark Otto's avatar
Mark Otto committed
18
  .transition(all .2s ease-in-out);
19
}
20
21
22
.thumbnail {
  display: block;
}
23
.thumbnail > img,
24
.img-thumbnail {
25
  .img-responsive();
26
27
}

28
// Add a hover state for linked versions only
29
30
a.thumbnail:hover,
a.thumbnail:focus {
Mark Otto's avatar
Mark Otto committed
31
  border-color: @link-color;
32
}
33

34
35
// Images and captions
.thumbnail > img {
36
37
  margin-left: auto;
  margin-right: auto;
38
39
40
}
.thumbnail .caption {
  padding: 9px;
41
  color: @thumbnail-caption-color;
42
}