|
1 | | - |
2 | | -//@imageCarouselCaptionWidth: 400px; |
3 | | -@imageCarouselSidePadding: 20px; |
4 | | - |
5 | | -.imageCarouselSizes (@imageCarouselCaptionWidth, @imageWidth) { |
| 1 | +.imageCarouselSizes (@imageCarouselCaptionWidth, @imageCarouselCaptionPadding, @imageWidth) { |
6 | 2 | .item { |
7 | 3 | img { |
8 | 4 | margin-left: @imageCarouselCaptionWidth + 20px; |
|
11 | 7 | .box-sizing(border-box); |
12 | 8 | .carousel-caption { |
13 | 9 | width: @imageCarouselCaptionWidth; |
| 10 | + padding: 0 @imageCarouselCaptionPadding 0 @imageCarouselCaptionPadding; |
14 | 11 | } |
15 | 12 | } |
16 | 13 |
|
|
20 | 17 | } |
21 | 18 |
|
22 | 19 | #imageCarousel { |
23 | | - margin: 0; |
| 20 | + margin: 20px 0 0 0; |
24 | 21 | //height: 450px; |
25 | 22 | position: relative; |
26 | 23 |
|
|
35 | 32 | .box-sizing(border-box); |
36 | 33 | .carousel-caption { |
37 | 34 | position: absolute; |
38 | | - top: 0; |
| 35 | + top: 45%; |
39 | 36 | left: 0; |
40 | 37 | bottom: auto; |
41 | 38 | //width: @imageCarouselCaptionWidth; |
42 | | - height: 100%; |
43 | 39 | //background-color: rgba(255, 255, 255, 0.4); |
44 | 40 | background: none; |
45 | 41 | .box-sizing(border-box); |
46 | | - padding: 0 @imageCarouselSidePadding 0 @imageCarouselSidePadding; |
| 42 | + text-align: center; |
47 | 43 | p { |
48 | 44 | font-size: 18px; |
49 | 45 | line-height: 23px; |
|
55 | 51 |
|
56 | 52 | .carousel-controls { |
57 | 53 | position: absolute; |
58 | | - bottom: 0; |
59 | | - top: auto; |
| 54 | + bottom: auto; |
| 55 | + top: 30px; |
60 | 56 | left: 0; |
| 57 | + height: 42px; |
61 | 58 | .box-sizing(border-box); |
62 | 59 | //background-color: red; |
63 | | - //width: @imageCarouselCaptionWidth; |
64 | | - height: 42px; |
65 | 60 | ol.carousel-indicators { |
66 | 61 | position: static; |
67 | 62 | .box-sizing(border-box); |
68 | 63 | margin: 0; |
69 | | - padding: 16px 0 0 0; |
| 64 | + padding: 12px 0 0 0; |
70 | 65 | width: 100%; |
71 | 66 | text-align: center; |
72 | 67 | display: block; |
|
78 | 73 | } |
79 | 74 | } |
80 | 75 | .carousel-control { |
81 | | - position: absolute |
82 | | - top: 0; |
83 | | - left: @imageCarouselSidePadding; |
| 76 | + position: absolute; |
| 77 | + bottom: auto; |
| 78 | + top: 12px; |
| 79 | + left: 20px; |
84 | 80 | font-size: 120px; |
85 | 81 | text-shadow: 0 1px 1px rgba(0,0,0,.4); |
86 | 82 | background-color: transparent; |
87 | 83 | border: 0; |
88 | 84 | z-index: 10; |
89 | 85 | &.right { |
90 | | - right: @imageCarouselSidePadding; |
| 86 | + right: 20px; |
91 | 87 | left: auto; |
92 | 88 | } |
93 | 89 | } |
94 | 90 | } |
95 | 91 |
|
96 | | - .imageCarouselSizes(@imageCarouselCaptionWidth: 310px, @imageWidth: 605px); |
| 92 | + .imageCarouselSizes(@imageCarouselCaptionWidth: 310px, @imageCarouselCaptionPadding: 50px, @imageWidth: 605px); |
97 | 93 |
|
98 | 94 | @media (min-width: 1200px) { /* Large desktop */ |
99 | | - .imageCarouselSizes(@imageCarouselCaptionWidth: 400px, @imageWidth: 745px); |
| 95 | + .imageCarouselSizes(@imageCarouselCaptionWidth: 400px, @imageCarouselCaptionPadding: 70px, @imageWidth: 745px); |
100 | 96 | } |
101 | 97 | @media (min-width: 768px) and (max-width: 979px) { /* Portrait tablet to landscape and desktop */ |
102 | | - .imageCarouselSizes(@imageCarouselCaptionWidth: 245px, @imageWidth: 455px); |
| 98 | + .imageCarouselSizes(@imageCarouselCaptionWidth: 245px, @imageCarouselCaptionPadding: 10px, @imageWidth: 455px); |
103 | 99 | } |
104 | 100 | @media (max-width: 767px) { /* Tablets */ |
105 | 101 | .item { |
|
128 | 124 | } |
129 | 125 | .carousel-controls { |
130 | 126 | width: 100%; |
131 | | - //top: 0; |
| 127 | + top: auto; |
132 | 128 | bottom: 10px; |
133 | 129 | .carousel-control { |
134 | 130 | &.left { |
|
144 | 140 | .item { |
145 | 141 | .carousel-caption { |
146 | 142 | padding: 12px 50px 12px 50px; |
147 | | - min-height: 60px; |
| 143 | + min-height: 65px; |
148 | 144 | p { |
149 | 145 | font-size: 13px; |
150 | 146 | line-height: 16px; |
|
0 commit comments