aboutsummaryrefslogtreecommitdiff
path: root/lib/thumbnails.less
blob: 6ac3cb51f1ba8c67088942053f9ac0e0629086c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
// THUMBNAILS
// ----------

.thumbnails {
  margin-left: -20px;
  margin-bottom: 0;
  list-style: none;
  .clearfix();
}
.thumbnails > li {
  float: left;
  margin: 0 0 20px 20px;
}
.thumbnail {
  display: block;
  padding: 4px;
  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;
  max-width: 100%;
}
.thumbnail .caption {
  padding: 9px;
}

.carousel {

  position: relative;

  .carousel-inner {
    overflow: hidden;
    width: 100%;
    position: relative;
  }

  .item {
    display: none;
    position: relative;
    .transition(.6s ease-in-out left);
  }

  .active, .next, .prev { display: block; }

  .next, .prev {
    position: absolute;
    top: 0;
    width: 100%;
  }

  .next { left: 100%; }
  .prev { left: -100%; }
  .next.left, .prev.right { left: 0% }

  .active.left { left: -100% }
  .active.right { left: 100% }

  .nav {
    width: auto;
    .border-radius(0);
    height: 50px;
    position: absolute;
    top: 50%;
    margin: -25px 0 0;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 42px;
    left: 5px;
    font-weight: 100;
    padding: 0 15px;
    &.right { right: 5px; left: auto; }
    &:hover { text-decoration: none; background: rgba(0, 0, 0, 0.8); }
  }
}