_carousel.scss
3.84 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
.swiper-pagination-bullet {
background: #fff !important;
border: 0.125rem solid #2c2c2c !important;
height: 0.625rem !important;
width: 0.625rem !important;
border-radius: 0% !important;
background-color: #666666 !important;
border: 0.0625rem solid #666666 !important;
opacity: 0.25 !important;
}
.swiper-pagination-bullet-active {
opacity: 1 !important;
}
.swiper-pagination{
bottom: -2.5rem !important;
}
// carousel css
.carousel:not(.is-admin) {
background-color: transparent !important;
left: -1.25rem;
width: 100vw;
margin-top: 1.875rem;
margin-bottom: 1.875rem;
padding: 0rem 3.125rem;
}
.carousel-items {
text-align: center;
font-size: 1.125rem;
background: #fff;
display: flex;
justify-content: center;
align-items: center;
max-width: 75rem;
margin: 0 auto;
overflow: hidden;
}
.carousel-content{
padding: 0rem 3.125rem;
@media only screen and (max-width: 48.875rem) {
padding: 0rem 0.625rem;
}
}
.promo-image{
img{
width: 100%;
}
}
.promo-carousel{
h2{
font-size: 1.5rem;
line-height: 1.875rem;
text-align: left;
}
p{
font-size: 1rem;
line-height: 1.5rem;
text-align: left;
}
.promo-text{
margin-left: 1.25rem;
@media only screen and (max-width: 62.5rem) {
margin-left: 0rem;
margin-top: 1.25rem;
}
}
}
.swiper-button-next.swiper-button-disabled,
.swiper-button-prev.swiper-button-disabled {
pointer-events: all !important;
}
.carousel-items.slick-initialized.slick-slider {
margin-right: 0.9375rem; //for the scroll bar
}
.swiper-button-prev{
background-color: #EE0000;
width:2.1875rem !important;
height:2.1875rem !important;
border: 0rem solid #EE0000;
border-radius: 0rem 1.25rem 1.25rem 0rem;
display: none;
&:after{
content:"" !important;
width: 0.6875rem;
height: 1.125rem;
background-repeat: no-repeat;
background-size: contain;
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="9.095" height="15" viewBox="0 0 9.095 15"><path id="Path_1291" data-name="Path 1291" d="M7.515,5.543c.52-.526,1.03-1.048,1.546-1.564Q10.918,2.123,12.779.272a.834.834,0,0,1,1.232,0c.236.242.477.479.716.718a.817.817,0,0,1,0,1.222L11.379,5.557Q9.758,7.18,8.138,8.8a.9.9,0,0,1-.606.289.864.864,0,0,1-.667-.288Q5.614,7.551,4.363,6.3L.956,2.889c-.232-.232-.465-.463-.7-.7A.812.812,0,0,1,.269.993l.71-.71a.833.833,0,0,1,1.25,0l3.016,3L7.429,5.462Z" transform="translate(9.095 0) rotate(90)" fill="%23fff"/></svg>');
display: inline-block;
position: absolute;
top: 0.5rem;
left: 0.8125rem;
}
}
.swiper-button-next{
background-color: #EE0000;
right: 0rem !important;
@media only screen and (max-width:25rem) {
right: -0.625rem !important;
}
width:2.1875rem !important;
height:2.1875rem !important;
border: 0rem solid #EE0000;
border-radius: 1.25rem 0rem 0rem 1.25rem;
display: none;
&:after{
content:"" !important;
width: 0.6875rem;
height: 1.125rem;
background-repeat: no-repeat;
background-size: contain;
transform: rotate(180deg);
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="9.095" height="15" viewBox="0 0 9.095 15"><path id="Path_1291" data-name="Path 1291" d="M7.515,5.543c.52-.526,1.03-1.048,1.546-1.564Q10.918,2.123,12.779.272a.834.834,0,0,1,1.232,0c.236.242.477.479.716.718a.817.817,0,0,1,0,1.222L11.379,5.557Q9.758,7.18,8.138,8.8a.9.9,0,0,1-.606.289.864.864,0,0,1-.667-.288Q5.614,7.551,4.363,6.3L.956,2.889c-.232-.232-.465-.463-.7-.7A.812.812,0,0,1,.269.993l.71-.71a.833.833,0,0,1,1.25,0l3.016,3L7.429,5.462Z" transform="translate(9.095 0) rotate(90)" fill="%23fff"/></svg>');
display: inline-block;
position: absolute;
top: 0.5rem;
left: 0.8125rem;
}
}
.swiper-button-next:hover,
.swiper-button-prev:hover{
background-color: #669999;
}