unika-components 1.0.46 → 1.0.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/defaultProps.d.ts +16 -32
- package/dist/unika-components.css +306 -306
- package/dist/unika-components.esm.js +10 -1
- package/dist/unika-components.umd.js +10 -1
- package/package.json +1 -1
|
@@ -251,24 +251,16 @@ export declare const calendarDefaultProps: {
|
|
|
251
251
|
language: string;
|
|
252
252
|
};
|
|
253
253
|
export declare const countdownDefaultProps: {
|
|
254
|
-
actionType: string;
|
|
255
|
-
url: string;
|
|
256
|
-
height: string;
|
|
257
|
-
width: string;
|
|
258
|
-
paddingLeft: string;
|
|
259
|
-
paddingRight: string;
|
|
260
|
-
paddingTop: string;
|
|
261
|
-
paddingBottom: string;
|
|
262
|
-
borderStyle: string;
|
|
263
|
-
borderColor: string;
|
|
264
|
-
borderWidth: string;
|
|
265
|
-
borderRadius: string;
|
|
266
|
-
boxShadow: string;
|
|
267
|
-
opacity: number;
|
|
268
|
-
position: string;
|
|
269
254
|
left: string;
|
|
270
255
|
top: string;
|
|
271
|
-
|
|
256
|
+
opacity: number;
|
|
257
|
+
mainColor: string;
|
|
258
|
+
mainFlipBackgroundColor: string;
|
|
259
|
+
labelColor: string;
|
|
260
|
+
showLabels: boolean;
|
|
261
|
+
language: string;
|
|
262
|
+
size: string;
|
|
263
|
+
flipAnimation: boolean;
|
|
272
264
|
};
|
|
273
265
|
export declare const mapDefaultProps: {
|
|
274
266
|
actionType: string;
|
|
@@ -571,24 +563,16 @@ export declare const componentsDefaultProps: {
|
|
|
571
563
|
};
|
|
572
564
|
'uni-countdown': {
|
|
573
565
|
props: {
|
|
574
|
-
actionType: string;
|
|
575
|
-
url: string;
|
|
576
|
-
height: string;
|
|
577
|
-
width: string;
|
|
578
|
-
paddingLeft: string;
|
|
579
|
-
paddingRight: string;
|
|
580
|
-
paddingTop: string;
|
|
581
|
-
paddingBottom: string;
|
|
582
|
-
borderStyle: string;
|
|
583
|
-
borderColor: string;
|
|
584
|
-
borderWidth: string;
|
|
585
|
-
borderRadius: string;
|
|
586
|
-
boxShadow: string;
|
|
587
|
-
opacity: number;
|
|
588
|
-
position: string;
|
|
589
566
|
left: string;
|
|
590
567
|
top: string;
|
|
591
|
-
|
|
568
|
+
opacity: number;
|
|
569
|
+
mainColor: string;
|
|
570
|
+
mainFlipBackgroundColor: string;
|
|
571
|
+
labelColor: string;
|
|
572
|
+
showLabels: boolean;
|
|
573
|
+
language: string;
|
|
574
|
+
size: string;
|
|
575
|
+
flipAnimation: boolean;
|
|
592
576
|
};
|
|
593
577
|
};
|
|
594
578
|
'uni-map': {
|
|
@@ -1,23 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
button.uni-text-component {
|
|
6
|
-
padding: 5px 10px;
|
|
7
|
-
cursor: pointer;
|
|
8
|
-
}
|
|
9
|
-
.uni-text-component {
|
|
10
|
-
box-sizing: border-box;
|
|
11
|
-
white-space: pre-wrap;
|
|
2
|
+
.uni-image-component {
|
|
3
|
+
max-width: 100%;
|
|
12
4
|
}
|
|
13
|
-
|
|
14
|
-
.slot-number {
|
|
15
|
-
position: absolute;
|
|
16
|
-
bottom: 2px;
|
|
17
|
-
left: 7px;
|
|
18
|
-
font-size: 12px;
|
|
19
|
-
color: #666
|
|
20
|
-
}
|
|
21
5
|
|
|
22
6
|
.slide-guide {
|
|
23
7
|
position: absolute;
|
|
@@ -91,6 +75,18 @@ body, html {
|
|
|
91
75
|
transform: translate3d(-50%, -50%, 0);
|
|
92
76
|
}
|
|
93
77
|
}
|
|
78
|
+
|
|
79
|
+
h2.uni-text-component, p.uni-text-component {
|
|
80
|
+
margin-bottom: 0;
|
|
81
|
+
}
|
|
82
|
+
button.uni-text-component {
|
|
83
|
+
padding: 5px 10px;
|
|
84
|
+
cursor: pointer;
|
|
85
|
+
}
|
|
86
|
+
.uni-text-component {
|
|
87
|
+
box-sizing: border-box;
|
|
88
|
+
white-space: pre-wrap;
|
|
89
|
+
}
|
|
94
90
|
|
|
95
91
|
.uni-video-component {
|
|
96
92
|
position: relative;
|
|
@@ -112,104 +108,6 @@ body, html {
|
|
|
112
108
|
.play-pause-button:hover {
|
|
113
109
|
background: rgba(0, 0, 0, 0.8);
|
|
114
110
|
}
|
|
115
|
-
|
|
116
|
-
.uni-image-component {
|
|
117
|
-
max-width: 100%;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.like-button {
|
|
121
|
-
display: flex;
|
|
122
|
-
flex-direction: column;
|
|
123
|
-
align-items: center;
|
|
124
|
-
cursor: pointer;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.icon-heart {
|
|
128
|
-
font-size: 24px;
|
|
129
|
-
color: #e74c3c;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.liked {
|
|
133
|
-
color: #f00; /* 更改颜色以示已赞 */
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.like-count {
|
|
137
|
-
margin-top: 4px;
|
|
138
|
-
font-size: 16px;
|
|
139
|
-
color: #333;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
/*.swiper-container {
|
|
143
|
-
width: 100%;
|
|
144
|
-
height: 300px;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.swiper-slide {
|
|
148
|
-
text-align: center;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.swiper-slide img {
|
|
152
|
-
max-width: 100%;
|
|
153
|
-
max-height: 100%;
|
|
154
|
-
}*/
|
|
155
|
-
|
|
156
|
-
.uni-background-component {
|
|
157
|
-
width: 100%;
|
|
158
|
-
}
|
|
159
|
-
.bg-img {
|
|
160
|
-
width: 100%;
|
|
161
|
-
height: 100%;
|
|
162
|
-
object-fit: cover;
|
|
163
|
-
z-index:1;
|
|
164
|
-
}
|
|
165
|
-
.watermark {
|
|
166
|
-
height: 100%;
|
|
167
|
-
position: absolute;
|
|
168
|
-
top: 0;
|
|
169
|
-
left: 0;
|
|
170
|
-
right: 0;
|
|
171
|
-
bottom: 0;
|
|
172
|
-
}
|
|
173
|
-
.watermark-div {
|
|
174
|
-
height: 100%;
|
|
175
|
-
width:100%;
|
|
176
|
-
position:absolute;
|
|
177
|
-
z-index:99999999;
|
|
178
|
-
}
|
|
179
|
-
body:before{
|
|
180
|
-
content: '';
|
|
181
|
-
position: fixed;
|
|
182
|
-
top: 0;
|
|
183
|
-
bottom: 0;
|
|
184
|
-
left: 0;
|
|
185
|
-
right: 0;
|
|
186
|
-
z-index: -1;
|
|
187
|
-
/* background: url(https://unika-static-dev.unika.cc/logo.png) 0 0 repeat; */
|
|
188
|
-
background-position: center;
|
|
189
|
-
opacity: 0.1;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
#app1 {
|
|
193
|
-
position: relative;
|
|
194
|
-
}
|
|
195
|
-
.snowflake {
|
|
196
|
-
position: absolute;
|
|
197
|
-
top: 0;
|
|
198
|
-
left: 0;
|
|
199
|
-
width: 10px;
|
|
200
|
-
height: 10px;
|
|
201
|
-
background: red;
|
|
202
|
-
border-radius: 50%;
|
|
203
|
-
animation: falling 10s linear infinite;
|
|
204
|
-
}
|
|
205
|
-
@keyframes falling {
|
|
206
|
-
from {
|
|
207
|
-
transform: translateY(0) rotate(0deg);
|
|
208
|
-
}
|
|
209
|
-
to {
|
|
210
|
-
transform: translateY(100vh) rotate(360deg);
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
111
|
|
|
214
112
|
#audio {
|
|
215
113
|
position: absolute;
|
|
@@ -306,6 +204,72 @@ body, html {
|
|
|
306
204
|
}
|
|
307
205
|
}
|
|
308
206
|
|
|
207
|
+
.uni-background-component {
|
|
208
|
+
width: 100%;
|
|
209
|
+
}
|
|
210
|
+
.bg-img {
|
|
211
|
+
width: 100%;
|
|
212
|
+
height: 100%;
|
|
213
|
+
object-fit: cover;
|
|
214
|
+
z-index:1;
|
|
215
|
+
}
|
|
216
|
+
.watermark {
|
|
217
|
+
height: 100%;
|
|
218
|
+
position: absolute;
|
|
219
|
+
top: 0;
|
|
220
|
+
left: 0;
|
|
221
|
+
right: 0;
|
|
222
|
+
bottom: 0;
|
|
223
|
+
}
|
|
224
|
+
.watermark-div {
|
|
225
|
+
height: 100%;
|
|
226
|
+
width:100%;
|
|
227
|
+
position:absolute;
|
|
228
|
+
z-index:99999999;
|
|
229
|
+
}
|
|
230
|
+
body:before{
|
|
231
|
+
content: '';
|
|
232
|
+
position: fixed;
|
|
233
|
+
top: 0;
|
|
234
|
+
bottom: 0;
|
|
235
|
+
left: 0;
|
|
236
|
+
right: 0;
|
|
237
|
+
z-index: -1;
|
|
238
|
+
/* background: url(https://unika-static-dev.unika.cc/logo.png) 0 0 repeat; */
|
|
239
|
+
background-position: center;
|
|
240
|
+
opacity: 0.1;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.slot-number {
|
|
244
|
+
position: absolute;
|
|
245
|
+
bottom: 2px;
|
|
246
|
+
left: 7px;
|
|
247
|
+
font-size: 12px;
|
|
248
|
+
color: #666
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.like-button {
|
|
252
|
+
display: flex;
|
|
253
|
+
flex-direction: column;
|
|
254
|
+
align-items: center;
|
|
255
|
+
cursor: pointer;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.icon-heart {
|
|
259
|
+
font-size: 24px;
|
|
260
|
+
color: #e74c3c;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.liked {
|
|
264
|
+
color: #f00; /* 更改颜色以示已赞 */
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.like-count {
|
|
268
|
+
margin-top: 4px;
|
|
269
|
+
font-size: 16px;
|
|
270
|
+
color: #333;
|
|
271
|
+
}
|
|
272
|
+
|
|
309
273
|
.video-player {
|
|
310
274
|
position: relative;
|
|
311
275
|
text-align: center;
|
|
@@ -326,6 +290,42 @@ body, html {
|
|
|
326
290
|
.play-pause-button:hover {
|
|
327
291
|
background: rgba(0, 0, 0, 0.8);
|
|
328
292
|
}
|
|
293
|
+
|
|
294
|
+
#app1 {
|
|
295
|
+
position: relative;
|
|
296
|
+
}
|
|
297
|
+
.snowflake {
|
|
298
|
+
position: absolute;
|
|
299
|
+
top: 0;
|
|
300
|
+
left: 0;
|
|
301
|
+
width: 10px;
|
|
302
|
+
height: 10px;
|
|
303
|
+
background: red;
|
|
304
|
+
border-radius: 50%;
|
|
305
|
+
animation: falling 10s linear infinite;
|
|
306
|
+
}
|
|
307
|
+
@keyframes falling {
|
|
308
|
+
from {
|
|
309
|
+
transform: translateY(0) rotate(0deg);
|
|
310
|
+
}
|
|
311
|
+
to {
|
|
312
|
+
transform: translateY(100vh) rotate(360deg);
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
/*.swiper-container {
|
|
317
|
+
width: 100%;
|
|
318
|
+
height: 300px;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.swiper-slide {
|
|
322
|
+
text-align: center;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.swiper-slide img {
|
|
326
|
+
max-width: 100%;
|
|
327
|
+
max-height: 100%;
|
|
328
|
+
}*/
|
|
329
329
|
/**
|
|
330
330
|
* Swiper 6.8.4
|
|
331
331
|
* Most modern mobile touch slider and framework with hardware accelerated transitions
|
|
@@ -874,196 +874,9 @@ button.swiper-pagination-bullet {
|
|
|
874
874
|
backface-visibility: hidden;
|
|
875
875
|
}
|
|
876
876
|
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
font-size: var(--countdown-size, 2rem);
|
|
881
|
-
line-height: 1.5;
|
|
882
|
-
display: block;
|
|
883
|
-
color: var(--main-color, #EC685C);
|
|
884
|
-
}
|
|
885
|
-
|
|
886
|
-
.flip-clock {
|
|
887
|
-
text-align: center;
|
|
888
|
-
perspective: 600px;
|
|
889
|
-
margin: 0 auto;
|
|
890
|
-
}
|
|
891
|
-
|
|
892
|
-
.flip-clock *,
|
|
893
|
-
.flip-clock *:before,
|
|
894
|
-
.flip-clock *:after {
|
|
895
|
-
box-sizing: border-box;
|
|
896
|
-
}
|
|
897
|
-
|
|
898
|
-
.flip-clock__piece {
|
|
899
|
-
display: inline-block;
|
|
900
|
-
margin: 0 0.2vw;
|
|
901
|
-
}
|
|
902
|
-
|
|
903
|
-
@media (min-width: 1000px) {
|
|
904
|
-
.flip-clock__piece {
|
|
905
|
-
margin: 0 5px;
|
|
906
|
-
}
|
|
907
|
-
}
|
|
908
|
-
|
|
909
|
-
.flip-clock__slot {
|
|
910
|
-
font-size: var(--label-size, 1rem);
|
|
911
|
-
line-height: 1.5;
|
|
912
|
-
display: block;
|
|
913
|
-
color: var(--label-color, #222222);
|
|
914
|
-
}
|
|
915
|
-
|
|
916
|
-
.flip-card {
|
|
917
|
-
display: block;
|
|
918
|
-
position: relative;
|
|
919
|
-
padding-bottom: 0.72em; /* halfHeight */
|
|
920
|
-
font-size: var(--countdown-size, 2.25rem);
|
|
921
|
-
line-height: 0.95;
|
|
922
|
-
}
|
|
923
|
-
|
|
924
|
-
@media (min-width: 1000px) {
|
|
925
|
-
.flip-clock__slot {
|
|
926
|
-
font-size: 1.2rem;
|
|
927
|
-
}
|
|
928
|
-
|
|
929
|
-
.flip-card {
|
|
930
|
-
font-size: 3rem;
|
|
931
|
-
}
|
|
932
|
-
}
|
|
933
|
-
|
|
934
|
-
.flip-card__top,
|
|
935
|
-
.flip-card__bottom,
|
|
936
|
-
.flip-card__back-bottom,
|
|
937
|
-
.flip-card__back::before,
|
|
938
|
-
.flip-card__back::after{
|
|
939
|
-
display: block;
|
|
940
|
-
height: 0.72em; /* halfHeight */
|
|
941
|
-
color: var(--main-color, #EC685C);
|
|
942
|
-
background: var(--main-flip-background-color, #222222);
|
|
943
|
-
padding: 0.23em 0.15em 0.4em;
|
|
944
|
-
border-radius: 0.15em 0.15em 0 0; /* borderRadius */
|
|
945
|
-
backface-visibility: hidden;
|
|
946
|
-
-webkit-backface-visibility: hidden;
|
|
947
|
-
transform-style: preserve-3d;
|
|
948
|
-
width: 2.1em;
|
|
949
|
-
}
|
|
950
|
-
|
|
951
|
-
.flip-card__top-4digits,
|
|
952
|
-
.flip-card__bottom-4digits,
|
|
953
|
-
.flip-card__back-bottom-4digits,
|
|
954
|
-
.flip-card__back-4digits::before,
|
|
955
|
-
.flip-card__back-4digits::after {
|
|
956
|
-
display: block;
|
|
957
|
-
height: 0.72em; /* halfHeight */
|
|
958
|
-
color: var(--main-color, #EC685C);
|
|
959
|
-
background: var(--main-flip-background-color, #222222);
|
|
960
|
-
padding: 0.23em 0.15em 0.4em;
|
|
961
|
-
border-radius: 0.15em 0.15em 0 0; /* borderRadius */
|
|
962
|
-
backface-visibility: hidden;
|
|
963
|
-
-webkit-backface-visibility: hidden;
|
|
964
|
-
transform-style: preserve-3d;
|
|
965
|
-
width: 2.65em;
|
|
966
|
-
}
|
|
967
|
-
|
|
968
|
-
.flip-card__bottom,
|
|
969
|
-
.flip-card__back-bottom,
|
|
970
|
-
.flip-card__bottom-4digits,
|
|
971
|
-
.flip-card__back-bottom-4digits {
|
|
972
|
-
color: var(--second-flip-color, #EC685C);
|
|
973
|
-
position: absolute;
|
|
974
|
-
top: 50%;
|
|
975
|
-
left: 0;
|
|
976
|
-
border-top: solid 1px var(--second-flip-background-color, #000);
|
|
977
|
-
background: var(--second-flip-background-color, #393939);
|
|
978
|
-
border-radius: 0 0 0.15em 0.15em; /* borderRadius */
|
|
979
|
-
pointer-events: none;
|
|
980
|
-
overflow: hidden;
|
|
981
|
-
z-index: 2;
|
|
982
|
-
}
|
|
983
|
-
|
|
984
|
-
.flip-card__back-bottom,
|
|
985
|
-
.flip-card__back-bottom-4digits {
|
|
986
|
-
z-index: 1;
|
|
987
|
-
}
|
|
988
|
-
|
|
989
|
-
.flip-card__bottom::after,
|
|
990
|
-
.flip-card__back-bottom::after,
|
|
991
|
-
.flip-card__bottom-4digits::after,
|
|
992
|
-
.flip-card__back-bottom-4digits::after {
|
|
993
|
-
display: block;
|
|
994
|
-
margin-top: -0.72em; /* Negative halfHeight */
|
|
995
|
-
}
|
|
996
|
-
.flip-card__back::before,
|
|
997
|
-
.flip-card__bottom::after,
|
|
998
|
-
.flip-card__back-bottom::after,
|
|
999
|
-
.flip-card__back-4digits::before,
|
|
1000
|
-
.flip-card__bottom-4digits::after,
|
|
1001
|
-
.flip-card__back-bottom-4digits::after {
|
|
1002
|
-
content: attr(data-value);
|
|
1003
|
-
}
|
|
1004
|
-
|
|
1005
|
-
.flip-card__back,
|
|
1006
|
-
.flip-card__back-4digits {
|
|
1007
|
-
position: absolute;
|
|
1008
|
-
top: 0;
|
|
1009
|
-
height: 100%;
|
|
1010
|
-
left: 0%;
|
|
1011
|
-
pointer-events: none;
|
|
1012
|
-
}
|
|
1013
|
-
.flip-card__back::before,
|
|
1014
|
-
.flip-card__back-4digits::before {
|
|
1015
|
-
position: relative;
|
|
1016
|
-
overflow: hidden;
|
|
1017
|
-
z-index: -1;
|
|
1018
|
-
}
|
|
1019
|
-
|
|
1020
|
-
.flip .flip-card__back::before,
|
|
1021
|
-
.flip .flip-card__back-4digits::before {
|
|
1022
|
-
z-index: 1;
|
|
1023
|
-
animation: flipTop 0.3s cubic-bezier(0.37, 0.01, 0.94, 0.35);
|
|
1024
|
-
animation-fill-mode: both;
|
|
1025
|
-
transform-origin: center bottom;
|
|
1026
|
-
}
|
|
1027
|
-
|
|
1028
|
-
.flip .flip-card__bottom,
|
|
1029
|
-
.flip .flip-card__bottom-4digits {
|
|
1030
|
-
transform-origin: center top;
|
|
1031
|
-
animation-fill-mode: both;
|
|
1032
|
-
animation: flipBottom 0.6s cubic-bezier(0.15, 0.45, 0.28, 1);
|
|
1033
|
-
}
|
|
1034
|
-
@keyframes flipTop {
|
|
1035
|
-
0% {
|
|
1036
|
-
transform: rotateX(0deg);
|
|
1037
|
-
z-index: 2;
|
|
1038
|
-
}
|
|
1039
|
-
0%, 99% {
|
|
1040
|
-
opacity: 1;
|
|
1041
|
-
}
|
|
1042
|
-
100% {
|
|
1043
|
-
transform: rotateX(-90deg);
|
|
1044
|
-
opacity: 0;
|
|
1045
|
-
}
|
|
1046
|
-
}
|
|
1047
|
-
|
|
1048
|
-
@keyframes flipBottom {
|
|
1049
|
-
0%, 50% {
|
|
1050
|
-
z-index: -1;
|
|
1051
|
-
transform: rotateX(90deg);
|
|
1052
|
-
opacity: 0;
|
|
1053
|
-
}
|
|
1054
|
-
51% {
|
|
1055
|
-
opacity: 1;
|
|
1056
|
-
}
|
|
1057
|
-
100% {
|
|
1058
|
-
opacity: 1;
|
|
1059
|
-
transform: rotateX(0deg);
|
|
1060
|
-
z-index: 5;
|
|
1061
|
-
}
|
|
1062
|
-
}
|
|
1063
|
-
|
|
1064
|
-
.unika-calendar-title {
|
|
1065
|
-
font-size: 25px;
|
|
1066
|
-
padding-bottom: 4px;
|
|
877
|
+
.unika-calendar-title {
|
|
878
|
+
font-size: 25px;
|
|
879
|
+
padding-bottom: 4px;
|
|
1067
880
|
}
|
|
1068
881
|
.unika-calendar-header {
|
|
1069
882
|
display: -webkit-box;
|
|
@@ -1312,3 +1125,190 @@ button.swiper-pagination-bullet {
|
|
|
1312
1125
|
padding: 0 0px;
|
|
1313
1126
|
border-bottom: 1px solid
|
|
1314
1127
|
}
|
|
1128
|
+
|
|
1129
|
+
|
|
1130
|
+
.no-animation__card {
|
|
1131
|
+
font-weight: 500;
|
|
1132
|
+
font-size: var(--countdown-size, 2rem);
|
|
1133
|
+
line-height: 1.5;
|
|
1134
|
+
display: block;
|
|
1135
|
+
color: var(--main-color, #EC685C);
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
.flip-clock {
|
|
1139
|
+
text-align: center;
|
|
1140
|
+
perspective: 600px;
|
|
1141
|
+
margin: 0 auto;
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
.flip-clock *,
|
|
1145
|
+
.flip-clock *:before,
|
|
1146
|
+
.flip-clock *:after {
|
|
1147
|
+
box-sizing: border-box;
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
.flip-clock__piece {
|
|
1151
|
+
display: inline-block;
|
|
1152
|
+
margin: 0 0.2vw;
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
@media (min-width: 1000px) {
|
|
1156
|
+
.flip-clock__piece {
|
|
1157
|
+
margin: 0 5px;
|
|
1158
|
+
}
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
.flip-clock__slot {
|
|
1162
|
+
font-size: var(--label-size, 1rem);
|
|
1163
|
+
line-height: 1.5;
|
|
1164
|
+
display: block;
|
|
1165
|
+
color: var(--label-color, #222222);
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
.flip-card {
|
|
1169
|
+
display: block;
|
|
1170
|
+
position: relative;
|
|
1171
|
+
padding-bottom: 0.72em; /* halfHeight */
|
|
1172
|
+
font-size: var(--countdown-size, 2.25rem);
|
|
1173
|
+
line-height: 0.95;
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
@media (min-width: 1000px) {
|
|
1177
|
+
.flip-clock__slot {
|
|
1178
|
+
font-size: 1.2rem;
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1181
|
+
.flip-card {
|
|
1182
|
+
font-size: 3rem;
|
|
1183
|
+
}
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
.flip-card__top,
|
|
1187
|
+
.flip-card__bottom,
|
|
1188
|
+
.flip-card__back-bottom,
|
|
1189
|
+
.flip-card__back::before,
|
|
1190
|
+
.flip-card__back::after{
|
|
1191
|
+
display: block;
|
|
1192
|
+
height: 0.72em; /* halfHeight */
|
|
1193
|
+
color: var(--main-color, #EC685C);
|
|
1194
|
+
background: var(--main-flip-background-color, #222222);
|
|
1195
|
+
padding: 0.23em 0.15em 0.4em;
|
|
1196
|
+
border-radius: 0.15em 0.15em 0 0; /* borderRadius */
|
|
1197
|
+
backface-visibility: hidden;
|
|
1198
|
+
-webkit-backface-visibility: hidden;
|
|
1199
|
+
transform-style: preserve-3d;
|
|
1200
|
+
width: 2.1em;
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
.flip-card__top-4digits,
|
|
1204
|
+
.flip-card__bottom-4digits,
|
|
1205
|
+
.flip-card__back-bottom-4digits,
|
|
1206
|
+
.flip-card__back-4digits::before,
|
|
1207
|
+
.flip-card__back-4digits::after {
|
|
1208
|
+
display: block;
|
|
1209
|
+
height: 0.72em; /* halfHeight */
|
|
1210
|
+
color: var(--main-color, #EC685C);
|
|
1211
|
+
background: var(--main-flip-background-color, #222222);
|
|
1212
|
+
padding: 0.23em 0.15em 0.4em;
|
|
1213
|
+
border-radius: 0.15em 0.15em 0 0; /* borderRadius */
|
|
1214
|
+
backface-visibility: hidden;
|
|
1215
|
+
-webkit-backface-visibility: hidden;
|
|
1216
|
+
transform-style: preserve-3d;
|
|
1217
|
+
width: 2.65em;
|
|
1218
|
+
}
|
|
1219
|
+
|
|
1220
|
+
.flip-card__bottom,
|
|
1221
|
+
.flip-card__back-bottom,
|
|
1222
|
+
.flip-card__bottom-4digits,
|
|
1223
|
+
.flip-card__back-bottom-4digits {
|
|
1224
|
+
color: var(--second-flip-color, #EC685C);
|
|
1225
|
+
position: absolute;
|
|
1226
|
+
top: 50%;
|
|
1227
|
+
left: 0;
|
|
1228
|
+
border-top: solid 1px var(--second-flip-background-color, #000);
|
|
1229
|
+
background: var(--second-flip-background-color, #393939);
|
|
1230
|
+
border-radius: 0 0 0.15em 0.15em; /* borderRadius */
|
|
1231
|
+
pointer-events: none;
|
|
1232
|
+
overflow: hidden;
|
|
1233
|
+
z-index: 2;
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1236
|
+
.flip-card__back-bottom,
|
|
1237
|
+
.flip-card__back-bottom-4digits {
|
|
1238
|
+
z-index: 1;
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1241
|
+
.flip-card__bottom::after,
|
|
1242
|
+
.flip-card__back-bottom::after,
|
|
1243
|
+
.flip-card__bottom-4digits::after,
|
|
1244
|
+
.flip-card__back-bottom-4digits::after {
|
|
1245
|
+
display: block;
|
|
1246
|
+
margin-top: -0.72em; /* Negative halfHeight */
|
|
1247
|
+
}
|
|
1248
|
+
.flip-card__back::before,
|
|
1249
|
+
.flip-card__bottom::after,
|
|
1250
|
+
.flip-card__back-bottom::after,
|
|
1251
|
+
.flip-card__back-4digits::before,
|
|
1252
|
+
.flip-card__bottom-4digits::after,
|
|
1253
|
+
.flip-card__back-bottom-4digits::after {
|
|
1254
|
+
content: attr(data-value);
|
|
1255
|
+
}
|
|
1256
|
+
|
|
1257
|
+
.flip-card__back,
|
|
1258
|
+
.flip-card__back-4digits {
|
|
1259
|
+
position: absolute;
|
|
1260
|
+
top: 0;
|
|
1261
|
+
height: 100%;
|
|
1262
|
+
left: 0%;
|
|
1263
|
+
pointer-events: none;
|
|
1264
|
+
}
|
|
1265
|
+
.flip-card__back::before,
|
|
1266
|
+
.flip-card__back-4digits::before {
|
|
1267
|
+
position: relative;
|
|
1268
|
+
overflow: hidden;
|
|
1269
|
+
z-index: -1;
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
.flip .flip-card__back::before,
|
|
1273
|
+
.flip .flip-card__back-4digits::before {
|
|
1274
|
+
z-index: 1;
|
|
1275
|
+
animation: flipTop 0.3s cubic-bezier(0.37, 0.01, 0.94, 0.35);
|
|
1276
|
+
animation-fill-mode: both;
|
|
1277
|
+
transform-origin: center bottom;
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
.flip .flip-card__bottom,
|
|
1281
|
+
.flip .flip-card__bottom-4digits {
|
|
1282
|
+
transform-origin: center top;
|
|
1283
|
+
animation-fill-mode: both;
|
|
1284
|
+
animation: flipBottom 0.6s cubic-bezier(0.15, 0.45, 0.28, 1);
|
|
1285
|
+
}
|
|
1286
|
+
@keyframes flipTop {
|
|
1287
|
+
0% {
|
|
1288
|
+
transform: rotateX(0deg);
|
|
1289
|
+
z-index: 2;
|
|
1290
|
+
}
|
|
1291
|
+
0%, 99% {
|
|
1292
|
+
opacity: 1;
|
|
1293
|
+
}
|
|
1294
|
+
100% {
|
|
1295
|
+
transform: rotateX(-90deg);
|
|
1296
|
+
opacity: 0;
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
@keyframes flipBottom {
|
|
1301
|
+
0%, 50% {
|
|
1302
|
+
z-index: -1;
|
|
1303
|
+
transform: rotateX(90deg);
|
|
1304
|
+
opacity: 0;
|
|
1305
|
+
}
|
|
1306
|
+
51% {
|
|
1307
|
+
opacity: 1;
|
|
1308
|
+
}
|
|
1309
|
+
100% {
|
|
1310
|
+
opacity: 1;
|
|
1311
|
+
transform: rotateX(0deg);
|
|
1312
|
+
z-index: 5;
|
|
1313
|
+
}
|
|
1314
|
+
}
|
|
@@ -4187,7 +4187,16 @@ const calendarDefaultProps = {
|
|
|
4187
4187
|
language: 'en',
|
|
4188
4188
|
};
|
|
4189
4189
|
const countdownDefaultProps = {
|
|
4190
|
-
|
|
4190
|
+
left: '25px',
|
|
4191
|
+
top: '204.5px',
|
|
4192
|
+
opacity: 1,
|
|
4193
|
+
mainColor: "red",
|
|
4194
|
+
mainFlipBackgroundColor: "green",
|
|
4195
|
+
labelColor: "blue",
|
|
4196
|
+
showLabels: true,
|
|
4197
|
+
language: "th",
|
|
4198
|
+
size: "small",
|
|
4199
|
+
flipAnimation: true
|
|
4191
4200
|
};
|
|
4192
4201
|
const mapDefaultProps = {
|
|
4193
4202
|
...commonDefaultProps
|
|
@@ -4194,7 +4194,16 @@
|
|
|
4194
4194
|
language: 'en',
|
|
4195
4195
|
};
|
|
4196
4196
|
const countdownDefaultProps = {
|
|
4197
|
-
|
|
4197
|
+
left: '25px',
|
|
4198
|
+
top: '204.5px',
|
|
4199
|
+
opacity: 1,
|
|
4200
|
+
mainColor: "red",
|
|
4201
|
+
mainFlipBackgroundColor: "green",
|
|
4202
|
+
labelColor: "blue",
|
|
4203
|
+
showLabels: true,
|
|
4204
|
+
language: "th",
|
|
4205
|
+
size: "small",
|
|
4206
|
+
flipAnimation: true
|
|
4198
4207
|
};
|
|
4199
4208
|
const mapDefaultProps = {
|
|
4200
4209
|
...commonDefaultProps
|