unika-components 1.0.99 → 1.0.101
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/components/SwiperPage/index.d.ts +0 -2
- package/dist/src/components/UniMusic/index.d.ts +0 -2
- package/dist/src/index.d.ts +1 -3
- package/dist/unika-components.css +219 -373
- package/dist/unika-components.esm.js +61574 -62001
- package/dist/unika-components.umd.js +61574 -62003
- package/package.json +1 -1
package/dist/src/index.d.ts
CHANGED
|
@@ -3,9 +3,7 @@ import UniText from './components/UniText';
|
|
|
3
3
|
import UniImage from './components/UniImage';
|
|
4
4
|
import UniShape from './components/UniShape';
|
|
5
5
|
import LongPage from './components/LongPage';
|
|
6
|
-
import SwiperPage from './components/SwiperPage';
|
|
7
6
|
import UniBackground from './components/UniBackground';
|
|
8
|
-
import UniMusic from './components/UniMusic';
|
|
9
7
|
import UniVideo from './components/UniVideo';
|
|
10
8
|
import UniCalendar from './components/UniCalendar';
|
|
11
9
|
import UniCountdown from './components/UniCountdown';
|
|
@@ -19,7 +17,7 @@ import UniSwiper from './components/UniSwiper';
|
|
|
19
17
|
import UniButton from './components/UniButton';
|
|
20
18
|
import UniTest from './components/UniTest';
|
|
21
19
|
declare const install: (app: App) => void;
|
|
22
|
-
export { UniText, UniImage, UniShape, LongPage,
|
|
20
|
+
export { UniText, UniImage, UniShape, LongPage, UniBackground, UniVideo, UniCalendar, UniCountdown, UniMap, UniCall, UniLike, UniEffect, UniRegisterForm, UniLotties, UniSwiper, UniButton, UniTest, install };
|
|
23
21
|
declare const _default: {
|
|
24
22
|
install: (app: App<any>) => void;
|
|
25
23
|
};
|
|
@@ -11,167 +11,52 @@ button.uni-text-component {
|
|
|
11
11
|
white-space: pre-wrap;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
.slide-guide {
|
|
15
|
-
position: absolute;
|
|
16
|
-
bottom: 90px;
|
|
17
|
-
left: 50%;
|
|
18
|
-
transform: translateX(-50%);
|
|
19
|
-
}
|
|
20
|
-
.slide-guide img {
|
|
21
|
-
animation: flowing 2s ease-in-out infinite;
|
|
22
|
-
width: 33px;
|
|
23
|
-
vertical-align: middle;
|
|
24
|
-
border-style: none;
|
|
25
|
-
}
|
|
26
|
-
body, html {
|
|
27
|
-
position: relative;
|
|
28
|
-
width: 100%;
|
|
29
|
-
height: 100%;
|
|
30
|
-
margin: 0px;
|
|
31
|
-
}
|
|
32
|
-
.swiper-container {
|
|
33
|
-
width: 100%;
|
|
34
|
-
height: 100%;
|
|
35
|
-
}
|
|
36
|
-
.swiper-slide {
|
|
37
|
-
width: 100%;
|
|
38
|
-
height: 100%;
|
|
39
|
-
overflow: hidden;
|
|
40
|
-
background-size: cover;
|
|
41
|
-
background-position: center;
|
|
42
|
-
background-repeat: no-repeat;
|
|
43
|
-
}
|
|
44
|
-
.up-arrow {
|
|
45
|
-
width: 2rem;
|
|
46
|
-
height: 2rem;
|
|
47
|
-
position: fixed;
|
|
48
|
-
bottom: 2rem;
|
|
49
|
-
left: 50%;
|
|
50
|
-
transform: translate3d(-50%, 0, 0);
|
|
51
|
-
z-index: 999;
|
|
52
|
-
background: none;
|
|
53
|
-
border: none;
|
|
54
|
-
padding: 0;
|
|
55
|
-
animation: upArrowAni 2s infinite linear;
|
|
56
|
-
}
|
|
57
|
-
.up-arrow img {
|
|
58
|
-
width: 2rem;
|
|
59
|
-
height: 2rem;
|
|
60
|
-
text-align: center;
|
|
61
|
-
line-height: 2rem;
|
|
62
|
-
color: #fff;
|
|
63
|
-
font-size: 1.5rem;
|
|
64
|
-
}
|
|
65
|
-
@keyframes upArrowAni {
|
|
66
|
-
0% {
|
|
67
|
-
opacity: 0;
|
|
68
|
-
transform: translate3d(-50%, 30%, 0);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
30% {
|
|
72
|
-
opacity: 1;
|
|
73
|
-
transform: translate3d(-50%, -20%, 0);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
60% {
|
|
77
|
-
opacity: 0;
|
|
78
|
-
transform: translate3d(-50%, -35%, 0);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
100% {
|
|
82
|
-
opacity: 0;
|
|
83
|
-
transform: translate3d(-50%, -50%, 0);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
14
|
.uni-image-component {
|
|
88
15
|
max-width: 100%;
|
|
89
16
|
}
|
|
90
17
|
|
|
91
|
-
|
|
92
|
-
position: absolute;
|
|
93
|
-
right: 10px;
|
|
94
|
-
top: 10px;
|
|
95
|
-
z-index: 103;
|
|
96
|
-
width: 32px;
|
|
97
|
-
height: 32px;
|
|
98
|
-
display: -webkit-box;
|
|
99
|
-
display: -ms-flexbox;
|
|
100
|
-
display: flex;
|
|
101
|
-
-webkit-box-align: center;
|
|
102
|
-
-ms-flex-align: center;
|
|
103
|
-
align-items: center;
|
|
104
|
-
}
|
|
105
|
-
#audio .audio {
|
|
106
|
-
width: 100%;
|
|
107
|
-
height: 100%;
|
|
108
|
-
display: -webkit-box;
|
|
109
|
-
display: -ms-flexbox;
|
|
18
|
+
.like-button {
|
|
110
19
|
display: flex;
|
|
111
|
-
-
|
|
112
|
-
-ms-flex-align: center;
|
|
20
|
+
flex-direction: column;
|
|
113
21
|
align-items: center;
|
|
114
|
-
|
|
115
|
-
-ms-flex-pack: center;
|
|
116
|
-
justify-content: center;
|
|
117
|
-
color: #fff;
|
|
118
|
-
background: #666;
|
|
119
|
-
border-radius: 50%;
|
|
120
|
-
overflow: hidden;
|
|
121
|
-
will-change: transform;
|
|
122
|
-
}
|
|
123
|
-
#audio .audio .music-icon {
|
|
124
|
-
display: block;
|
|
125
|
-
width: 100%;
|
|
126
|
-
height: 100%;
|
|
22
|
+
cursor: pointer;
|
|
127
23
|
}
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
border-radius: 50%;
|
|
133
|
-
overflow: hidden;
|
|
134
|
-
padding: 14px 0;
|
|
24
|
+
|
|
25
|
+
.icon-heart {
|
|
26
|
+
font-size: 24px;
|
|
27
|
+
color: #e74c3c;
|
|
135
28
|
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
width: 100%;
|
|
140
|
-
height: 2px;
|
|
141
|
-
background: #fff;
|
|
29
|
+
|
|
30
|
+
.liked {
|
|
31
|
+
color: #f00; /* 更改颜色以示已赞 */
|
|
142
32
|
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
33
|
+
|
|
34
|
+
.like-count {
|
|
35
|
+
margin-top: 4px;
|
|
36
|
+
font-size: 16px;
|
|
37
|
+
color: #333;
|
|
146
38
|
}
|
|
147
39
|
|
|
148
|
-
.
|
|
40
|
+
.slot-number {
|
|
149
41
|
position: absolute;
|
|
150
|
-
|
|
151
|
-
|
|
42
|
+
bottom: 2px;
|
|
43
|
+
left: 7px;
|
|
44
|
+
font-size: 12px;
|
|
45
|
+
color: #666
|
|
152
46
|
}
|
|
153
47
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
transform: rotate(0deg);
|
|
158
|
-
}
|
|
159
|
-
to {
|
|
160
|
-
transform: rotate(360deg);
|
|
161
|
-
}
|
|
48
|
+
.swiper-warp {
|
|
49
|
+
width: 100%;
|
|
50
|
+
height: 100%;
|
|
162
51
|
}
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
}
|
|
167
|
-
to {
|
|
168
|
-
-webkit-transform: rotate(360deg);
|
|
169
|
-
}
|
|
52
|
+
|
|
53
|
+
.swiper-slide-component {
|
|
54
|
+
text-align: center;
|
|
170
55
|
}
|
|
171
56
|
|
|
172
|
-
.
|
|
173
|
-
width: 100%;
|
|
174
|
-
height: 100%;
|
|
57
|
+
.swiper-slide img {
|
|
58
|
+
max-width: 100%;
|
|
59
|
+
max-height: 100%;
|
|
175
60
|
}
|
|
176
61
|
|
|
177
62
|
.uni-video-component {
|
|
@@ -195,42 +80,6 @@ body, html {
|
|
|
195
80
|
background: rgba(0, 0, 0, 0.8);
|
|
196
81
|
}
|
|
197
82
|
|
|
198
|
-
.swiper-warp {
|
|
199
|
-
width: 100%;
|
|
200
|
-
height: 100%;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
.swiper-slide-component {
|
|
204
|
-
text-align: center;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
.swiper-slide img {
|
|
208
|
-
max-width: 100%;
|
|
209
|
-
max-height: 100%;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
.like-button {
|
|
213
|
-
display: flex;
|
|
214
|
-
flex-direction: column;
|
|
215
|
-
align-items: center;
|
|
216
|
-
cursor: pointer;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
.icon-heart {
|
|
220
|
-
font-size: 24px;
|
|
221
|
-
color: #e74c3c;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
.liked {
|
|
225
|
-
color: #f00; /* 更改颜色以示已赞 */
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
.like-count {
|
|
229
|
-
margin-top: 4px;
|
|
230
|
-
font-size: 16px;
|
|
231
|
-
color: #333;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
83
|
.ant-input-number {
|
|
235
84
|
box-sizing: border-box;
|
|
236
85
|
margin: 0;
|
|
@@ -266,12 +115,9 @@ body, html {
|
|
|
266
115
|
vertical-align: top;
|
|
267
116
|
}
|
|
268
117
|
|
|
269
|
-
.
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
left: 7px;
|
|
273
|
-
font-size: 12px;
|
|
274
|
-
color: #666
|
|
118
|
+
.effect {
|
|
119
|
+
width: 100%;
|
|
120
|
+
height: 100%;
|
|
275
121
|
}
|
|
276
122
|
/**
|
|
277
123
|
* Swiper 6.8.4
|
|
@@ -821,193 +667,6 @@ button.swiper-pagination-bullet {
|
|
|
821
667
|
backface-visibility: hidden;
|
|
822
668
|
}
|
|
823
669
|
|
|
824
|
-
|
|
825
|
-
.no-animation__card {
|
|
826
|
-
font-weight: 500;
|
|
827
|
-
font-size: var(--countdown-size, 2rem);
|
|
828
|
-
line-height: 1.5;
|
|
829
|
-
display: block;
|
|
830
|
-
color: var(--main-color, #EC685C);
|
|
831
|
-
}
|
|
832
|
-
|
|
833
|
-
.flip-clock {
|
|
834
|
-
text-align: center;
|
|
835
|
-
perspective: 600px;
|
|
836
|
-
margin: 0 auto;
|
|
837
|
-
}
|
|
838
|
-
|
|
839
|
-
.flip-clock *,
|
|
840
|
-
.flip-clock *:before,
|
|
841
|
-
.flip-clock *:after {
|
|
842
|
-
box-sizing: border-box;
|
|
843
|
-
}
|
|
844
|
-
|
|
845
|
-
.flip-clock__piece {
|
|
846
|
-
display: inline-block;
|
|
847
|
-
margin: 0 0.2vw;
|
|
848
|
-
}
|
|
849
|
-
|
|
850
|
-
@media (min-width: 1000px) {
|
|
851
|
-
.flip-clock__piece {
|
|
852
|
-
margin: 0 5px;
|
|
853
|
-
}
|
|
854
|
-
}
|
|
855
|
-
|
|
856
|
-
.flip-clock__slot {
|
|
857
|
-
font-size: var(--label-size, 1rem);
|
|
858
|
-
line-height: 1.5;
|
|
859
|
-
display: block;
|
|
860
|
-
color: var(--label-color, #222222);
|
|
861
|
-
}
|
|
862
|
-
|
|
863
|
-
.flip-card {
|
|
864
|
-
display: block;
|
|
865
|
-
position: relative;
|
|
866
|
-
padding-bottom: 0.72em; /* halfHeight */
|
|
867
|
-
font-size: var(--countdown-size, 2.25rem);
|
|
868
|
-
line-height: 0.95;
|
|
869
|
-
}
|
|
870
|
-
|
|
871
|
-
@media (min-width: 1000px) {
|
|
872
|
-
.flip-clock__slot {
|
|
873
|
-
font-size: 1.2rem;
|
|
874
|
-
}
|
|
875
|
-
|
|
876
|
-
.flip-card {
|
|
877
|
-
font-size: 3rem;
|
|
878
|
-
}
|
|
879
|
-
}
|
|
880
|
-
|
|
881
|
-
.flip-card__top,
|
|
882
|
-
.flip-card__bottom,
|
|
883
|
-
.flip-card__back-bottom,
|
|
884
|
-
.flip-card__back::before,
|
|
885
|
-
.flip-card__back::after{
|
|
886
|
-
display: block;
|
|
887
|
-
height: 0.72em; /* halfHeight */
|
|
888
|
-
color: var(--main-color, #EC685C);
|
|
889
|
-
background: var(--main-flip-background-color, #222222);
|
|
890
|
-
padding: 0.23em 0.15em 0.4em;
|
|
891
|
-
border-radius: 0.15em 0.15em 0 0; /* borderRadius */
|
|
892
|
-
backface-visibility: hidden;
|
|
893
|
-
-webkit-backface-visibility: hidden;
|
|
894
|
-
transform-style: preserve-3d;
|
|
895
|
-
width: 2.1em;
|
|
896
|
-
}
|
|
897
|
-
|
|
898
|
-
.flip-card__top-4digits,
|
|
899
|
-
.flip-card__bottom-4digits,
|
|
900
|
-
.flip-card__back-bottom-4digits,
|
|
901
|
-
.flip-card__back-4digits::before,
|
|
902
|
-
.flip-card__back-4digits::after {
|
|
903
|
-
display: block;
|
|
904
|
-
height: 0.72em; /* halfHeight */
|
|
905
|
-
color: var(--main-color, #EC685C);
|
|
906
|
-
background: var(--main-flip-background-color, #222222);
|
|
907
|
-
padding: 0.23em 0.15em 0.4em;
|
|
908
|
-
border-radius: 0.15em 0.15em 0 0; /* borderRadius */
|
|
909
|
-
backface-visibility: hidden;
|
|
910
|
-
-webkit-backface-visibility: hidden;
|
|
911
|
-
transform-style: preserve-3d;
|
|
912
|
-
width: 2.65em;
|
|
913
|
-
}
|
|
914
|
-
|
|
915
|
-
.flip-card__bottom,
|
|
916
|
-
.flip-card__back-bottom,
|
|
917
|
-
.flip-card__bottom-4digits,
|
|
918
|
-
.flip-card__back-bottom-4digits {
|
|
919
|
-
color: var(--second-flip-color, #EC685C);
|
|
920
|
-
position: absolute;
|
|
921
|
-
top: 50%;
|
|
922
|
-
left: 0;
|
|
923
|
-
border-top: solid 1px var(--second-flip-background-color, #000);
|
|
924
|
-
background: var(--second-flip-background-color, #393939);
|
|
925
|
-
border-radius: 0 0 0.15em 0.15em; /* borderRadius */
|
|
926
|
-
pointer-events: none;
|
|
927
|
-
overflow: hidden;
|
|
928
|
-
z-index: 2;
|
|
929
|
-
}
|
|
930
|
-
|
|
931
|
-
.flip-card__back-bottom,
|
|
932
|
-
.flip-card__back-bottom-4digits {
|
|
933
|
-
z-index: 1;
|
|
934
|
-
}
|
|
935
|
-
|
|
936
|
-
.flip-card__bottom::after,
|
|
937
|
-
.flip-card__back-bottom::after,
|
|
938
|
-
.flip-card__bottom-4digits::after,
|
|
939
|
-
.flip-card__back-bottom-4digits::after {
|
|
940
|
-
display: block;
|
|
941
|
-
margin-top: -0.72em; /* Negative halfHeight */
|
|
942
|
-
}
|
|
943
|
-
.flip-card__back::before,
|
|
944
|
-
.flip-card__bottom::after,
|
|
945
|
-
.flip-card__back-bottom::after,
|
|
946
|
-
.flip-card__back-4digits::before,
|
|
947
|
-
.flip-card__bottom-4digits::after,
|
|
948
|
-
.flip-card__back-bottom-4digits::after {
|
|
949
|
-
content: attr(data-value);
|
|
950
|
-
}
|
|
951
|
-
|
|
952
|
-
.flip-card__back,
|
|
953
|
-
.flip-card__back-4digits {
|
|
954
|
-
position: absolute;
|
|
955
|
-
top: 0;
|
|
956
|
-
height: 100%;
|
|
957
|
-
left: 0%;
|
|
958
|
-
pointer-events: none;
|
|
959
|
-
}
|
|
960
|
-
.flip-card__back::before,
|
|
961
|
-
.flip-card__back-4digits::before {
|
|
962
|
-
position: relative;
|
|
963
|
-
overflow: hidden;
|
|
964
|
-
z-index: -1;
|
|
965
|
-
}
|
|
966
|
-
|
|
967
|
-
.flip .flip-card__back::before,
|
|
968
|
-
.flip .flip-card__back-4digits::before {
|
|
969
|
-
z-index: 1;
|
|
970
|
-
animation: flipTop 0.3s cubic-bezier(0.37, 0.01, 0.94, 0.35);
|
|
971
|
-
animation-fill-mode: both;
|
|
972
|
-
transform-origin: center bottom;
|
|
973
|
-
}
|
|
974
|
-
|
|
975
|
-
.flip .flip-card__bottom,
|
|
976
|
-
.flip .flip-card__bottom-4digits {
|
|
977
|
-
transform-origin: center top;
|
|
978
|
-
animation-fill-mode: both;
|
|
979
|
-
animation: flipBottom 0.6s cubic-bezier(0.15, 0.45, 0.28, 1);
|
|
980
|
-
}
|
|
981
|
-
@keyframes flipTop {
|
|
982
|
-
0% {
|
|
983
|
-
transform: rotateX(0deg);
|
|
984
|
-
z-index: 2;
|
|
985
|
-
}
|
|
986
|
-
0%, 99% {
|
|
987
|
-
opacity: 1;
|
|
988
|
-
}
|
|
989
|
-
100% {
|
|
990
|
-
transform: rotateX(-90deg);
|
|
991
|
-
opacity: 0;
|
|
992
|
-
}
|
|
993
|
-
}
|
|
994
|
-
|
|
995
|
-
@keyframes flipBottom {
|
|
996
|
-
0%, 50% {
|
|
997
|
-
z-index: -1;
|
|
998
|
-
transform: rotateX(90deg);
|
|
999
|
-
opacity: 0;
|
|
1000
|
-
}
|
|
1001
|
-
51% {
|
|
1002
|
-
opacity: 1;
|
|
1003
|
-
}
|
|
1004
|
-
100% {
|
|
1005
|
-
opacity: 1;
|
|
1006
|
-
transform: rotateX(0deg);
|
|
1007
|
-
z-index: 5;
|
|
1008
|
-
}
|
|
1009
|
-
}
|
|
1010
|
-
|
|
1011
670
|
.unika-calendar-title {
|
|
1012
671
|
font-size: 25px;
|
|
1013
672
|
padding-bottom: 4px;
|
|
@@ -1259,3 +918,190 @@ button.swiper-pagination-bullet {
|
|
|
1259
918
|
padding: 0 0px;
|
|
1260
919
|
border-bottom: 1px solid
|
|
1261
920
|
}
|
|
921
|
+
|
|
922
|
+
|
|
923
|
+
.no-animation__card {
|
|
924
|
+
font-weight: 500;
|
|
925
|
+
font-size: var(--countdown-size, 2rem);
|
|
926
|
+
line-height: 1.5;
|
|
927
|
+
display: block;
|
|
928
|
+
color: var(--main-color, #EC685C);
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
.flip-clock {
|
|
932
|
+
text-align: center;
|
|
933
|
+
perspective: 600px;
|
|
934
|
+
margin: 0 auto;
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
.flip-clock *,
|
|
938
|
+
.flip-clock *:before,
|
|
939
|
+
.flip-clock *:after {
|
|
940
|
+
box-sizing: border-box;
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
.flip-clock__piece {
|
|
944
|
+
display: inline-block;
|
|
945
|
+
margin: 0 0.2vw;
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
@media (min-width: 1000px) {
|
|
949
|
+
.flip-clock__piece {
|
|
950
|
+
margin: 0 5px;
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
.flip-clock__slot {
|
|
955
|
+
font-size: var(--label-size, 1rem);
|
|
956
|
+
line-height: 1.5;
|
|
957
|
+
display: block;
|
|
958
|
+
color: var(--label-color, #222222);
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
.flip-card {
|
|
962
|
+
display: block;
|
|
963
|
+
position: relative;
|
|
964
|
+
padding-bottom: 0.72em; /* halfHeight */
|
|
965
|
+
font-size: var(--countdown-size, 2.25rem);
|
|
966
|
+
line-height: 0.95;
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
@media (min-width: 1000px) {
|
|
970
|
+
.flip-clock__slot {
|
|
971
|
+
font-size: 1.2rem;
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
.flip-card {
|
|
975
|
+
font-size: 3rem;
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
.flip-card__top,
|
|
980
|
+
.flip-card__bottom,
|
|
981
|
+
.flip-card__back-bottom,
|
|
982
|
+
.flip-card__back::before,
|
|
983
|
+
.flip-card__back::after{
|
|
984
|
+
display: block;
|
|
985
|
+
height: 0.72em; /* halfHeight */
|
|
986
|
+
color: var(--main-color, #EC685C);
|
|
987
|
+
background: var(--main-flip-background-color, #222222);
|
|
988
|
+
padding: 0.23em 0.15em 0.4em;
|
|
989
|
+
border-radius: 0.15em 0.15em 0 0; /* borderRadius */
|
|
990
|
+
backface-visibility: hidden;
|
|
991
|
+
-webkit-backface-visibility: hidden;
|
|
992
|
+
transform-style: preserve-3d;
|
|
993
|
+
width: 2.1em;
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
.flip-card__top-4digits,
|
|
997
|
+
.flip-card__bottom-4digits,
|
|
998
|
+
.flip-card__back-bottom-4digits,
|
|
999
|
+
.flip-card__back-4digits::before,
|
|
1000
|
+
.flip-card__back-4digits::after {
|
|
1001
|
+
display: block;
|
|
1002
|
+
height: 0.72em; /* halfHeight */
|
|
1003
|
+
color: var(--main-color, #EC685C);
|
|
1004
|
+
background: var(--main-flip-background-color, #222222);
|
|
1005
|
+
padding: 0.23em 0.15em 0.4em;
|
|
1006
|
+
border-radius: 0.15em 0.15em 0 0; /* borderRadius */
|
|
1007
|
+
backface-visibility: hidden;
|
|
1008
|
+
-webkit-backface-visibility: hidden;
|
|
1009
|
+
transform-style: preserve-3d;
|
|
1010
|
+
width: 2.65em;
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
.flip-card__bottom,
|
|
1014
|
+
.flip-card__back-bottom,
|
|
1015
|
+
.flip-card__bottom-4digits,
|
|
1016
|
+
.flip-card__back-bottom-4digits {
|
|
1017
|
+
color: var(--second-flip-color, #EC685C);
|
|
1018
|
+
position: absolute;
|
|
1019
|
+
top: 50%;
|
|
1020
|
+
left: 0;
|
|
1021
|
+
border-top: solid 1px var(--second-flip-background-color, #000);
|
|
1022
|
+
background: var(--second-flip-background-color, #393939);
|
|
1023
|
+
border-radius: 0 0 0.15em 0.15em; /* borderRadius */
|
|
1024
|
+
pointer-events: none;
|
|
1025
|
+
overflow: hidden;
|
|
1026
|
+
z-index: 2;
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
.flip-card__back-bottom,
|
|
1030
|
+
.flip-card__back-bottom-4digits {
|
|
1031
|
+
z-index: 1;
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
.flip-card__bottom::after,
|
|
1035
|
+
.flip-card__back-bottom::after,
|
|
1036
|
+
.flip-card__bottom-4digits::after,
|
|
1037
|
+
.flip-card__back-bottom-4digits::after {
|
|
1038
|
+
display: block;
|
|
1039
|
+
margin-top: -0.72em; /* Negative halfHeight */
|
|
1040
|
+
}
|
|
1041
|
+
.flip-card__back::before,
|
|
1042
|
+
.flip-card__bottom::after,
|
|
1043
|
+
.flip-card__back-bottom::after,
|
|
1044
|
+
.flip-card__back-4digits::before,
|
|
1045
|
+
.flip-card__bottom-4digits::after,
|
|
1046
|
+
.flip-card__back-bottom-4digits::after {
|
|
1047
|
+
content: attr(data-value);
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
.flip-card__back,
|
|
1051
|
+
.flip-card__back-4digits {
|
|
1052
|
+
position: absolute;
|
|
1053
|
+
top: 0;
|
|
1054
|
+
height: 100%;
|
|
1055
|
+
left: 0%;
|
|
1056
|
+
pointer-events: none;
|
|
1057
|
+
}
|
|
1058
|
+
.flip-card__back::before,
|
|
1059
|
+
.flip-card__back-4digits::before {
|
|
1060
|
+
position: relative;
|
|
1061
|
+
overflow: hidden;
|
|
1062
|
+
z-index: -1;
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
.flip .flip-card__back::before,
|
|
1066
|
+
.flip .flip-card__back-4digits::before {
|
|
1067
|
+
z-index: 1;
|
|
1068
|
+
animation: flipTop 0.3s cubic-bezier(0.37, 0.01, 0.94, 0.35);
|
|
1069
|
+
animation-fill-mode: both;
|
|
1070
|
+
transform-origin: center bottom;
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
.flip .flip-card__bottom,
|
|
1074
|
+
.flip .flip-card__bottom-4digits {
|
|
1075
|
+
transform-origin: center top;
|
|
1076
|
+
animation-fill-mode: both;
|
|
1077
|
+
animation: flipBottom 0.6s cubic-bezier(0.15, 0.45, 0.28, 1);
|
|
1078
|
+
}
|
|
1079
|
+
@keyframes flipTop {
|
|
1080
|
+
0% {
|
|
1081
|
+
transform: rotateX(0deg);
|
|
1082
|
+
z-index: 2;
|
|
1083
|
+
}
|
|
1084
|
+
0%, 99% {
|
|
1085
|
+
opacity: 1;
|
|
1086
|
+
}
|
|
1087
|
+
100% {
|
|
1088
|
+
transform: rotateX(-90deg);
|
|
1089
|
+
opacity: 0;
|
|
1090
|
+
}
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
@keyframes flipBottom {
|
|
1094
|
+
0%, 50% {
|
|
1095
|
+
z-index: -1;
|
|
1096
|
+
transform: rotateX(90deg);
|
|
1097
|
+
opacity: 0;
|
|
1098
|
+
}
|
|
1099
|
+
51% {
|
|
1100
|
+
opacity: 1;
|
|
1101
|
+
}
|
|
1102
|
+
100% {
|
|
1103
|
+
opacity: 1;
|
|
1104
|
+
transform: rotateX(0deg);
|
|
1105
|
+
z-index: 5;
|
|
1106
|
+
}
|
|
1107
|
+
}
|