thumbnails.less 664 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;
Melvin's avatar
Melvin committed
10
  line-height: @baseLineHeight;
11
  border: 1px solid #ddd;
12
  border-radius: @baseBorderRadius;
13
  .box-shadow(0 1px 3px rgba(0,0,0,.055));
Mark Otto's avatar
Mark Otto committed
14
  .transition(all .2s ease-in-out);
15
16
17
18
19
20
}
// Add a hover state for linked versions only
a.thumbnail:hover {
  border-color: @linkColor;
  .box-shadow(0 1px 4px rgba(0,105,214,.25));
}
21

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