-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyle.scss
150 lines (134 loc) · 3.35 KB
/
style.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
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
@import "@splidejs/splide/dist/css/splide-core.min";
.wp-block-pulsar-carousel {
--accent-color: var(--wp--custom--pulsar--carousel--accent-color, #1f1f1f);
--transition-duration: var(--wp--custom--pulsar--carousel--transition-duration, 250ms);
--arrow-color: var(--wp--custom--pulsar--carousel--arrow-color, #fff);
--arrow-color-active: var(--wp--custom--pulsar--carousel--arrow-color-active, var(--accent-color));
--pagination-color: var(--wp--custom--pulsar--carousel--pagination-color, #fff);
--pagination-color-active: var(--wp--custom--pulsar--carousel--pagination-color-active, var(--accent-color));
--pagination-offset: var(--wp--custom--pulsar--carousel--pagination-offset, 20px);
--toggle-color: var(--wp--custom--pulsar--carousel--toggle-color, #fff);
--toggle-offset: var(--wp--custom--pulsar--carousel--toggle-offset, 20px);
.splide__arrows {
display: flex;
justify-content: space-between;
left: 0;
pointer-events: none;
position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%);
width: 100%;
z-index: 1;
}
.splide__arrow {
align-items: center;
background-color: unset;
border: unset;
box-shadow: unset;
color: var(--arrow-color);
cursor: pointer;
display: flex;
height: 32px;
justify-content: center;
pointer-events: all;
transition: color var(--transition-duration) linear;
width: 32px;
&::before {
background-color: currentcolor;
content: "";
display: block;
height: 100%;
mask-image: url("../../assets/svg/arrow-right.svg");
mask-position: center;
mask-repeat: no-repeat;
mask-size: contain;
width: 100%;
}
&:hover {
color: var(--arrow-color-active);
}
&:where(:disabled) {
opacity: 0.3;
pointer-events: none;
}
&--prev::before {
mask-image: url("../../assets/svg/arrow-left.svg");
}
}
.splide__pagination {
align-items: center;
bottom: var(--pagination-offset);
display: flex;
flex-wrap: wrap;
justify-content: center;
left: 0;
margin: 0;
padding: 0;
pointer-events: none;
position: absolute;
right: 0;
button {
background: var(--pagination-color);
border: 0;
border-radius: 50%;
cursor: pointer;
display: inline-block;
height: 10px;
margin: 3px;
padding: 0;
position: relative;
transition: background-color var(--transition-duration) linear, transform var(--transition-duration) linear;
width: 10px;
&:where(.is-active) {
background: var(--pagination-color-active);
transform: scale(1.4);
z-index: 1;
}
}
}
.splide__toggle {
align-items: center;
background: unset;
border: unset;
bottom: var(--toggle-offset);
color: var(--toggle-color);
cursor: pointer;
display: flex;
justify-content: center;
position: absolute;
right: var(--toggle-offset);
> * {
&::before {
background-color: currentcolor;
content: "";
display: inline-block;
height: 24px;
mask-position: center;
mask-repeat: no-repeat;
mask-size: contain;
width: 24px;
}
}
}
.splide__toggle__pause {
&::before {
mask-image: url("../../assets/svg/pause.svg");
}
}
.splide__toggle__play {
&::before {
mask-image: url("../../assets/svg/play.svg");
}
}
.splide__progress {
background: #ccc;
}
.splide__progress__bar {
background-color: var(--accent-color);
height: 2px;
transition-property: width;
transition-timing-function: ease;
width: 0;
}
}