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


6
// The actual thumbnail (can be `a` or `div`)
7
8
.thumbnail {
  display: block;
9
  padding: 4px;
10
  line-height: @line-height-base;
11
  border: 1px solid #ddd;
12
  border-radius: @border-radius-base;
Mark Otto's avatar
Mark Otto committed
13
  .transition(all .2s ease-in-out);
14
15
16
}
// Add a hover state for linked versions only
a.thumbnail:hover {
Mark Otto's avatar
Mark Otto committed
17
  border-color: @link-color;
18
}
19

20
21
22
// Images and captions
.thumbnail > img {
  display: block;
23
  max-width: 100%;
24
25
  margin-left: auto;
  margin-right: auto;
26
27
28
}
.thumbnail .caption {
  padding: 9px;
29
  color: @gray;
30
}