Blame view

app/bower_components/bootstrap/less/carousel.less 5.52 KB
f986e111b   TRUONG   add libs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  //
  // Carousel
  // --------------------------------------------------
  
  
  // Wrapper for the slide container and indicators
  .carousel {
    position: relative;
  }
  
  .carousel-inner {
    position: relative;
    overflow: hidden;
    width: 100%;
  
    > .item {
      display: none;
      position: relative;
      .transition(.6s ease-in-out left);
  
      // Account for jankitude on images
      > img,
      > a > img {
87c93a029   Dang YoungWorld   add modal
24
        &:extend(.img-responsive);
f986e111b   TRUONG   add libs
25
26
        line-height: 1;
      }
87c93a029   Dang YoungWorld   add modal
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
  
      // WebKit CSS3 transforms for supported devices
      @media all and (transform-3d), (-webkit-transform-3d) {
        .transition-transform(~'0.6s ease-in-out');
        .backface-visibility(~'hidden');
        .perspective(1000px);
  
        &.next,
        &.active.right {
          .translate3d(100%, 0, 0);
          left: 0;
        }
        &.prev,
        &.active.left {
          .translate3d(-100%, 0, 0);
          left: 0;
        }
        &.next.left,
        &.prev.right,
        &.active {
          .translate3d(0, 0, 0);
          left: 0;
        }
      }
f986e111b   TRUONG   add libs
51
52
53
54
    }
  
    > .active,
    > .next,
87c93a029   Dang YoungWorld   add modal
55
56
57
    > .prev {
      display: block;
    }
f986e111b   TRUONG   add libs
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
  
    > .active {
      left: 0;
    }
  
    > .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%;
    }
  
  }
  
  // Left/right controls for nav
  // ---------------------------
  
  .carousel-control {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: @carousel-control-width;
    .opacity(@carousel-control-opacity);
    font-size: @carousel-control-font-size;
    color: @carousel-control-color;
    text-align: center;
    text-shadow: @carousel-text-shadow;
87c93a029   Dang YoungWorld   add modal
104
    background-color: rgba(0, 0, 0, 0); // Fix IE9 click-thru bug
f986e111b   TRUONG   add libs
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
    // We can't have this transition here because WebKit cancels the carousel
    // animation if you trip this while in the middle of another animation.
  
    // Set gradients for backgrounds
    &.left {
      #gradient > .horizontal(@start-color: rgba(0,0,0,.5); @end-color: rgba(0,0,0,.0001));
    }
    &.right {
      left: auto;
      right: 0;
      #gradient > .horizontal(@start-color: rgba(0,0,0,.0001); @end-color: rgba(0,0,0,.5));
    }
  
    // Hover/focus state
    &:hover,
    &:focus {
87c93a029   Dang YoungWorld   add modal
121
      outline: 0;
f986e111b   TRUONG   add libs
122
123
124
125
126
127
128
129
130
131
132
133
      color: @carousel-control-color;
      text-decoration: none;
      .opacity(.9);
    }
  
    // Toggles
    .icon-prev,
    .icon-next,
    .glyphicon-chevron-left,
    .glyphicon-chevron-right {
      position: absolute;
      top: 50%;
87c93a029   Dang YoungWorld   add modal
134
      margin-top: -10px;
f986e111b   TRUONG   add libs
135
136
137
138
139
140
      z-index: 5;
      display: inline-block;
    }
    .icon-prev,
    .glyphicon-chevron-left {
      left: 50%;
87c93a029   Dang YoungWorld   add modal
141
      margin-left: -10px;
f986e111b   TRUONG   add libs
142
143
144
145
    }
    .icon-next,
    .glyphicon-chevron-right {
      right: 50%;
87c93a029   Dang YoungWorld   add modal
146
      margin-right: -10px;
f986e111b   TRUONG   add libs
147
148
149
150
151
    }
    .icon-prev,
    .icon-next {
      width:  20px;
      height: 20px;
87c93a029   Dang YoungWorld   add modal
152
      line-height: 1;
f986e111b   TRUONG   add libs
153
154
      font-family: serif;
    }
87c93a029   Dang YoungWorld   add modal
155

f986e111b   TRUONG   add libs
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
    .icon-prev {
      &:before {
        content: '\2039';// SINGLE LEFT-POINTING ANGLE QUOTATION MARK (U+2039)
      }
    }
    .icon-next {
      &:before {
        content: '\203a';// SINGLE RIGHT-POINTING ANGLE QUOTATION MARK (U+203A)
      }
    }
  }
  
  // Optional indicator pips
  //
  // Add an unordered list with the following class and add a list item for each
  // slide your carousel holds.
  
  .carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    z-index: 15;
    width: 60%;
    margin-left: -30%;
    padding-left: 0;
    list-style: none;
    text-align: center;
  
    li {
      display: inline-block;
      width:  10px;
      height: 10px;
      margin: 1px;
      text-indent: -999px;
      border: 1px solid @carousel-indicator-border-color;
      border-radius: 10px;
      cursor: pointer;
  
      // IE8-9 hack for event handling
      //
      // Internet Explorer 8-9 does not support clicks on elements without a set
      // `background-color`. We cannot use `filter` since that's not viewed as a
      // background color by the browser. Thus, a hack is needed.
87c93a029   Dang YoungWorld   add modal
199
      // See https://developer.mozilla.org/en-US/docs/Web/Events/click#Internet_Explorer
f986e111b   TRUONG   add libs
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
      //
      // For IE8, we set solid black as it doesn't support `rgba()`. For IE9, we
      // set alpha transparency for the best results possible.
      background-color: #000 \9; // IE8
      background-color: rgba(0,0,0,0); // IE9
    }
    .active {
      margin: 0;
      width:  12px;
      height: 12px;
      background-color: @carousel-indicator-active-bg;
    }
  }
  
  // Optional captions
  // -----------------------------
  // Hidden by default for smaller viewports
  .carousel-caption {
    position: absolute;
    left: 15%;
    right: 15%;
    bottom: 20px;
    z-index: 10;
    padding-top: 20px;
    padding-bottom: 20px;
    color: @carousel-caption-color;
    text-align: center;
    text-shadow: @carousel-text-shadow;
    & .btn {
      text-shadow: none; // No shadow for button elements in carousel-caption
    }
  }
  
  
  // Scale up controls for tablets and up
  @media screen and (min-width: @screen-sm-min) {
  
    // Scale up the controls a smidge
    .carousel-control {
87c93a029   Dang YoungWorld   add modal
239
240
      .glyphicon-chevron-left,
      .glyphicon-chevron-right,
f986e111b   TRUONG   add libs
241
242
      .icon-prev,
      .icon-next {
87c93a029   Dang YoungWorld   add modal
243
244
245
246
247
248
249
250
251
252
253
254
        width: (@carousel-control-font-size * 1.5);
        height: (@carousel-control-font-size * 1.5);
        margin-top: (@carousel-control-font-size / -2);
        font-size: (@carousel-control-font-size * 1.5);
      }
      .glyphicon-chevron-left,
      .icon-prev {
        margin-left: (@carousel-control-font-size / -2);
      }
      .glyphicon-chevron-right,
      .icon-next {
        margin-right: (@carousel-control-font-size / -2);
f986e111b   TRUONG   add libs
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
      }
    }
  
    // Show and left align the captions
    .carousel-caption {
      left: 20%;
      right: 20%;
      padding-bottom: 30px;
    }
  
    // Move up the indicators
    .carousel-indicators {
      bottom: 20px;
    }
  }