thumbnails.less 1.02 KB
Newer Older
1
2
// THUMBNAILS
// ----------
3
// Note: `.thumbnails` and `.thumbnails > li` are overriden in responsive files
4

5
// Make wrapper ul behave like the grid
6
.thumbnails {
7
  margin-left: -@gridGutterWidth;
8
  list-style: none;
9
  .clearfix();
10
}
Mark Otto's avatar
Mark Otto committed
11
12
13
14
// Fluid rows have no left margin
.row-fluid .thumbnails {
  margin-left: 0;
}
15
16

// Float li to make thumbnails appear in a row
17
.thumbnails > li {
18
  float: left; // Explicity set the float since we don't require .span* classes
19
  margin-bottom: @baseLineHeight;
20
  margin-left: @gridGutterWidth;
21
}
22
23

// The actual thumbnail (can be `a` or `div`)
24
25
.thumbnail {
  display: block;
26
  padding: 4px;
27
28
29
30
31
32
33
34
35
36
  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));
}
37

38
39
40
// Images and captions
.thumbnail > img {
  display: block;
41
  max-width: 100%;
42
43
  margin-left: auto;
  margin-right: auto;
44
45
46
}
.thumbnail .caption {
  padding: 9px;
47
}