thumbnails.less 663 Bytes
Newer Older
1
2
// THUMBNAILS
// ----------
3

4
.thumbnails {
5
  margin-left: -@gridGutterWidth;
6
  list-style: none;
7
  .clearfix();
8
9
10
}
.thumbnails > li {
  float: left;
11
  margin: 0 0 @baseLineHeight @gridGutterWidth;
12
13
14
}
.thumbnail {
  display: block;
15
  padding: 4px;
16
17
18
19
20
21
22
23
24
25
26
27
28
  line-height: 1;
  border: 1px solid #ddd;
  .border-radius(4px);
  .box-shadow(0 1px 1px rgba(0,0,0,.075));
}
// Add a hover state for linked versions only
a.thumbnail:hover {
  border-color: @linkColor;
  .box-shadow(0 1px 4px rgba(0,105,214,.25));
}
// Images and captions
.thumbnail > img {
  display: block;
29
  max-width: 100%;
30
31
  margin-left: auto;
  margin-right: auto;
32
33
34
}
.thumbnail .caption {
  padding: 9px;
35
}