style.css
9.33 KB
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
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
199
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
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
/* --------------------------------
Main Components
-------------------------------- */
.cd-gallery {
margin: 1.5em auto;
padding: 0;
}
.cd-gallery::after {
clear: both;
content: "";
display: table;
}
.cd-gallery > li {
overflow: hidden;
position: relative;
margin-bottom: 2em;
border-radius: .25em;
-webkit-box-shadow: 0 5px 5px -5px rgba(0, 0, 0, 0.1);
-moz-box-shadow: 0 5px 5px -5px rgba(0, 0, 0, 0.1);
box-shadow: 0 5px 5px -5px rgba(0, 0, 0, 0.1);
background: #fff;
}
.cd-gallery > li > a {
display: block;
}
@media only screen and (min-width: 1110px) {
.cd-gallery {
margin: 0 auto;
}
.cd-gallery > li {
width: 22%;
float: left;
margin-right: 4%;
margin-bottom: 2.5em;
}
.cd-gallery > li:nth-of-type(4n) {
margin-right: 0;
}
}
@media (min-width: 768px) and (max-width: 1110px) {
.cd-gallery {
margin: 0 auto;
}
.cd-gallery > li {
width: 48%;
float: left;
margin-right: 4%;
margin-bottom: 2.5em;
}
.cd-gallery > li:nth-of-type(2n) {
margin-right: 0;
}
}
@media only screen and (min-width: 1048px) {
.cd-gallery {
margin: 2.5em auto;
}
.no-touch .cd-gallery > li:hover .cd-dots li.selected a {
/* Slider dots - change background-color of the selected dot when hover over the its parent list item */
background: #2f2933;
border-color: #2f2933;
}
.no-touch .cd-gallery > li:hover .cd-dots a {
/* Slider dots - change dot border-color when hover over the its parent list item */
border-color: #9688a0;
}
.no-touch .cd-gallery > li:hover li.move-right, .no-touch .cd-gallery > li:hover li.move-left {
/* show preview items when hover over the its parent list item */
opacity: 0.3;
}
}
.cd-item-wrapper {
position: relative;
overflow: hidden;
margin: 3em 0;
padding: 0;
}
.cd-item-wrapper li {
list-style-type: none;
position: absolute;
top: 0;
left: 25%;
height: 100%;
width: 50%;
opacity: 0;
/* Force Hardware Acceleration */
-webkit-transform: translateZ(0);
-moz-transform: translateZ(0);
-ms-transform: translateZ(0);
-o-transform: translateZ(0);
transform: translateZ(0);
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
will-change: transform, opacity;
-webkit-transition: -webkit-transform 0.4s, opacity 0.4s;
-moz-transition: -moz-transform 0.4s, opacity 0.4s;
transition: transform 0.4s, opacity 0.4s;
}
.cd-item-wrapper li.selected {
/* selected item */
position: relative;
opacity: 1;
}
.cd-item-wrapper li.move-left {
/* item on left - preview visible */
-webkit-transform: translateX(-100%) scale(0.7);
-moz-transform: translateX(-100%) scale(0.7);
-ms-transform: translateX(-100%) scale(0.7);
-o-transform: translateX(-100%) scale(0.7);
transform: translateX(-100%) scale(0.7);
opacity: 0.3;
}
.cd-item-wrapper li.move-right {
/* item on right - preview visible */
-webkit-transform: translateX(100%) scale(0.7);
-moz-transform: translateX(100%) scale(0.7);
-ms-transform: translateX(100%) scale(0.7);
-o-transform: translateX(100%) scale(0.7);
transform: translateX(100%) scale(0.7);
opacity: 0.3;
}
.cd-item-wrapper li img {
display: block;
width: 100%;
}
@media only screen and (min-width: 1048px) {
.cd-item-wrapper li.move-left,
.cd-item-wrapper li.move-right {
/* hide preview items */
opacity: 0;
}
.cd-item-wrapper li.focus-on-left {
/* class added to the .selected and .move-right items when user hovers over the .move-left item (item preview on the left) */
-webkit-transform: translateX(3%) scale(1.25);
-moz-transform: translateX(3%) scale(1.25);
-ms-transform: translateX(3%) scale(1.25);
-o-transform: translateX(3%) scale(1.25);
transform: translateX(3%) scale(1.25);
}
.cd-item-wrapper li.focus-on-left.move-right {
-webkit-transform: translateX(103%) scale(0.7);
-moz-transform: translateX(103%) scale(0.7);
-ms-transform: translateX(103%) scale(0.7);
-o-transform: translateX(103%) scale(0.7);
transform: translateX(103%) scale(0.7);
}
.cd-item-wrapper li.focus-on-right {
/* class added to the .selected and .move-left items when user hovers over the .move-right item (item preview on the right) */
-webkit-transform: translateX(-3%) scale(1.25);
-moz-transform: translateX(-3%) scale(1.25);
-ms-transform: translateX(-3%) scale(1.25);
-o-transform: translateX(-3%) scale(1.25);
transform: translateX(-3%) scale(1.25);
}
.cd-item-wrapper li.focus-on-right.move-left {
-webkit-transform: translateX(-103%) scale(0.7);
-moz-transform: translateX(-103%) scale(0.7);
-ms-transform: translateX(-103%) scale(0.7);
-o-transform: translateX(-103%) scale(0.7);
transform: translateX(-103%) scale(0.7);
}
.cd-item-wrapper li.hover {
/* class added to the preview items (.move-left or .move-right) when user hovers over them */
opacity: 1 !important;
}
.cd-item-wrapper li.hover.move-left {
-webkit-transform: translateX(-97%) scale(0.75);
-moz-transform: translateX(-97%) scale(0.75);
-ms-transform: translateX(-97%) scale(0.75);
-o-transform: translateX(-97%) scale(0.75);
transform: translateX(-97%) scale(0.75);
}
.cd-item-wrapper li.hover.move-right {
-webkit-transform: translateX(97%) scale(0.75);
-moz-transform: translateX(97%) scale(0.75);
-ms-transform: translateX(97%) scale(0.75);
-o-transform: translateX(97%) scale(0.75);
transform: translateX(97%) scale(0.75);
}
}
.cd-dots {
/* not visible in the html document - created using jQuery */
margin-left: 50%;
right: auto;
-webkit-transform: translateX(-50%);
-moz-transform: translateX(-50%);
-ms-transform: translateX(-50%);
-o-transform: translateX(-50%);
transform: translateX(-50%);
}
.cd-dots::after {
clear: both;
content: "";
display: table;
}
.cd-dots li {
display: inline-block;
float: left;
margin: 0 5px;
pointer-events: none;
}
.cd-dots li.selected a {
background: #2f2933;
border-color: #2f2933;
}
.cd-dots a {
display: block;
height: 6px;
width: 6px;
border-radius: 50%;
border: 1px solid #9688a0;
/* image replacement */
overflow: hidden;
text-indent: 100%;
white-space: nowrap;
-webkit-transition: border-color 0.2s, background-color 0.2s;
-moz-transition: border-color 0.2s, background-color 0.2s;
transition: border-color 0.2s, background-color 0.2s;
}
@media only screen and (min-width: 1048px) {
.cd-dots li {
pointer-events: auto;
}
.cd-dots li.selected a {
background: #cccccc;
border-color: #cccccc;
}
.cd-dots a {
height: 8px;
width: 8px;
border-color: #cccccc;
/* fix a bug in IE9/10 - transparent anchor not clickable */
background-color: rgba(255, 255, 255, 0);
}
}
.cd-item-info {
padding: 2em;
border-bottom: 1px solid #f1f1f1;
}
.cd-item-info::after {
clear: both;
content: "";
display: table;
}
.cd-item-info b, .cd-item-info .cd-price, .cd-item-info .cd-new-price {
font-weight: bold;
font-size: 14px;
}
.cd-item-info b {
margin-bottom: 5px;
display: block;
}
.cd-item-info b a {
color: #2f2933;
display: block;
width: 100%;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
.cd-item-info .cd-price {
color: #22BAA0;
position: relative;
-webkit-transition: color 0.2s;
-moz-transition: color 0.2s;
transition: color 0.2s;
}
.cd-item-info .cd-price::after {
/* crossing line - visible if price is on sale */
content: '';
position: absolute;
top: 50%;
bottom: auto;
-webkit-transform: translateY(-50%);
-moz-transform: translateY(-50%);
-ms-transform: translateY(-50%);
-o-transform: translateY(-50%);
transform: translateY(-50%);
left: 0;
height: 2px;
width: 0%;
background-color: #22BAA0;
opacity: 0;
-webkit-transition: width 0.2s 0s, opacity 0s 0.2s;
-moz-transition: width 0.2s 0s, opacity 0s 0.2s;
transition: width 0.2s 0s, opacity 0s 0.2s;
}
.cd-item-info .cd-price.on-sale::after {
opacity: 1;
width: 100%;
-webkit-transition: width 0.2s 0s, opacity 0s 0s;
-moz-transition: width 0.2s 0s, opacity 0s 0s;
transition: width 0.2s 0s, opacity 0s 0s;
}
.cd-item-info .cd-new-price {
/* new price - visible if price is on sale */
color: #F25656;
opacity: 0;
-webkit-transform: translateX(5px);
-moz-transform: translateX(5px);
-ms-transform: translateX(5px);
-o-transform: translateX(5px);
transform: translateX(5px);
-webkit-transition: -webkit-transform 0.2s, opacity 0.2s;
-moz-transition: -moz-transform 0.2s, opacity 0.2s;
transition: transform 0.2s, opacity 0.2s;
}
.cd-item-info .cd-new-price.is-visible {
-webkit-transform: translateX(0);
-moz-transform: translateX(0);
-ms-transform: translateX(0);
-o-transform: translateX(0);
transform: translateX(0);
opacity: 1;
}
.no-js .move-right,
.no-js .move-left {
display: none;
}
/* --------------------------------
xcredits
-------------------------------- */
.credits {
width: 90%;
margin: 2em auto;
text-align: center;
}
.no-touch .credits a:hover {
text-decoration: underline;
}
.cd-item-details a {
color: #333;
margin: 1em 2em;
font-size: 12px;
text-decoration: none;
}
.cd-item-details a:hover {
color: #22BAA0;
}
.cd-item-details a i {
margin-right: 5px;
}
.cd-sale {
display: block;
position: absolute;
top: 10px;
right: 10px;
border-radius: 2px;
padding: 3px 10px;
color: #fff;
z-index: 9;
font-size: 11px;
}