-
Notifications
You must be signed in to change notification settings - Fork 59
/
responsive-carousel.scss
71 lines (62 loc) · 1.12 KB
/
responsive-carousel.scss
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
@import 'topcoder-includes';
@import '../partials/combined';
.tc-carousel {
ul {
display: block;
height: 148px;
margin: 0 auto;
@media only screen and (max-width: 767px) {
display: none;
}
&[slide-count="1"] {
width: 170px;
}
&[slide-count="2"] {
width: 340px;
}
&[slide-count="3"] {
width: 510px;
}
&[slide-count="4"] {
width: 680px;
}
&[slide-count="5"] {
width: 850px;
}
&[slide-count="6"] {
width: 1020px;
}
&[slide-count="7"] {
width: 1190px;
}
li {
div:last-child {
margin-right: 0;
}
}
}
.rn-carousel-controls {
position: relative;
@media only screen and (max-width: 767px) {
display: none;
}
.rn-carousel-control {
height: 148px;
width: 80px;
line-height: 148px;
top: -148px;
background-color: $gray-lightest;
color: $accent-gray;
text-align: center;
}
.rn-carousel-control-prev {
left: 0;
}
.rn-carousel-control-next {
right: 0;
}
}
.slide {
display: inline-block;
}
}