unika-components 1.0.44 → 1.0.45

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.
@@ -1,102 +1,19 @@
1
1
 
2
+ h2.uni-text-component, p.uni-text-component {
3
+ margin-bottom: 0;
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;
12
+ }
13
+
2
14
  .uni-image-component {
3
15
  max-width: 100%;
4
16
  }
5
-
6
- #audio {
7
- position: absolute;
8
- right: 10px;
9
- top: 10px;
10
- z-index: 103;
11
- width: 30px;
12
- height: 30px;
13
- display: -webkit-box;
14
- display: -ms-flexbox;
15
- display: flex;
16
- -webkit-box-align: center;
17
- -ms-flex-align: center;
18
- align-items: center;
19
- }
20
- #audio .audio {
21
- width: 100%;
22
- height: 100%;
23
- display: -webkit-box;
24
- display: -ms-flexbox;
25
- display: flex;
26
- -webkit-box-align: center;
27
- -ms-flex-align: center;
28
- align-items: center;
29
- -webkit-box-pack: center;
30
- -ms-flex-pack: center;
31
- justify-content: center;
32
- color: #fff;
33
- background: #666;
34
- border-radius: 50%;
35
- overflow: hidden;
36
- will-change: transform;
37
- }
38
- #audio .audio .music-icon {
39
- display: block;
40
- width: 100%;
41
- height: 100%;
42
- }
43
- #audio .icon-cancel {
44
- position: absolute;
45
- width: 100%;
46
- height: 100%;
47
- border-radius: 50%;
48
- overflow: hidden;
49
- padding: 14px 0;
50
- }
51
- #audio .icon-cancel .icon-h {
52
- -webkit-transform: rotate(45deg);
53
- transform: rotate(45deg);
54
- width: 100%;
55
- height: 2px;
56
- background: #fff;
57
- }
58
- #audio .mrotate {
59
- -webkit-animation: mrotate 5s linear infinite;
60
- animation: mrotate 5s linear infinite;
61
- }
62
- .video-play-audio {
63
- position: absolute;
64
- left: -9999px;
65
- top: -9999px;
66
- width: 0;
67
- height: 0;
68
- z-index: -1;
69
- opacity: 1;
70
- overflow: hidden;
71
- }
72
-
73
- .music-img {
74
- position: relative;
75
- display: inline-block;
76
- width: 100%;
77
- height: 100%;
78
- }
79
-
80
- .uni-music-component {
81
- }
82
-
83
- /* 无限旋转 */
84
- @keyframes mrotate {
85
- from {
86
- transform: rotate(0deg);
87
- }
88
- to {
89
- transform: rotate(360deg);
90
- }
91
- }
92
- @-webkit-keyframes mrotate {
93
- from {
94
- -webkit-transform: rotate(0deg);
95
- }
96
- to {
97
- -webkit-transform: rotate(360deg);
98
- }
99
- }
100
17
 
101
18
  .slide-guide {
102
19
  position: absolute;
@@ -171,14 +88,6 @@ body, html {
171
88
  }
172
89
  }
173
90
 
174
- .slot-number {
175
- position: absolute;
176
- bottom: 2px;
177
- left: 7px;
178
- font-size: 12px;
179
- color: #666
180
- }
181
-
182
91
  .uni-background-component {
183
92
  width: 100%;
184
93
  }
@@ -215,6 +124,101 @@ body, html {
215
124
  opacity: 0.1;
216
125
  }
217
126
 
127
+ #audio {
128
+ position: absolute;
129
+ right: 10px;
130
+ top: 10px;
131
+ z-index: 103;
132
+ width: 30px;
133
+ height: 30px;
134
+ display: -webkit-box;
135
+ display: -ms-flexbox;
136
+ display: flex;
137
+ -webkit-box-align: center;
138
+ -ms-flex-align: center;
139
+ align-items: center;
140
+ }
141
+ #audio .audio {
142
+ width: 100%;
143
+ height: 100%;
144
+ display: -webkit-box;
145
+ display: -ms-flexbox;
146
+ display: flex;
147
+ -webkit-box-align: center;
148
+ -ms-flex-align: center;
149
+ align-items: center;
150
+ -webkit-box-pack: center;
151
+ -ms-flex-pack: center;
152
+ justify-content: center;
153
+ color: #fff;
154
+ background: #666;
155
+ border-radius: 50%;
156
+ overflow: hidden;
157
+ will-change: transform;
158
+ }
159
+ #audio .audio .music-icon {
160
+ display: block;
161
+ width: 100%;
162
+ height: 100%;
163
+ }
164
+ #audio .icon-cancel {
165
+ position: absolute;
166
+ width: 100%;
167
+ height: 100%;
168
+ border-radius: 50%;
169
+ overflow: hidden;
170
+ padding: 14px 0;
171
+ }
172
+ #audio .icon-cancel .icon-h {
173
+ -webkit-transform: rotate(45deg);
174
+ transform: rotate(45deg);
175
+ width: 100%;
176
+ height: 2px;
177
+ background: #fff;
178
+ }
179
+ #audio .mrotate {
180
+ -webkit-animation: mrotate 5s linear infinite;
181
+ animation: mrotate 5s linear infinite;
182
+ }
183
+ .video-play-audio {
184
+ position: absolute;
185
+ left: -9999px;
186
+ top: -9999px;
187
+ width: 0;
188
+ height: 0;
189
+ z-index: -1;
190
+ opacity: 1;
191
+ overflow: hidden;
192
+ }
193
+
194
+ .music-img {
195
+ position: relative;
196
+ display: inline-block;
197
+ width: 100%;
198
+ height: 100%;
199
+ }
200
+
201
+ .uni-music-component {
202
+ }
203
+
204
+ /* 无限旋转 */
205
+ @keyframes mrotate {
206
+ from {
207
+ transform: rotate(0deg);
208
+ }
209
+ to {
210
+ transform: rotate(360deg);
211
+ }
212
+ }
213
+ @-webkit-keyframes mrotate {
214
+ from {
215
+ -webkit-transform: rotate(0deg);
216
+ }
217
+ to {
218
+ -webkit-transform: rotate(360deg);
219
+ }
220
+ }
221
+
218
222
  .uni-video-component {
219
223
  position: relative;
220
224
  text-align: center;
@@ -235,39 +239,13 @@ body, html {
235
239
  .play-pause-button:hover {
236
240
  background: rgba(0, 0, 0, 0.8);
237
241
  }
238
-
239
- h2.uni-text-component, p.uni-text-component {
240
- margin-bottom: 0;
241
- }
242
- button.uni-text-component {
243
- padding: 5px 10px;
244
- cursor: pointer;
245
- }
246
- .uni-text-component {
247
- box-sizing: border-box;
248
- white-space: pre-wrap;
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
242
 
267
- .like-count {
268
- margin-top: 4px;
269
- font-size: 16px;
270
- color: #333;
243
+ .slot-number {
244
+ position: absolute;
245
+ bottom: 2px;
246
+ left: 7px;
247
+ font-size: 12px;
248
+ color: #666
271
249
  }
272
250
 
273
251
  #app1 {
@@ -313,6 +291,28 @@ button.uni-text-component {
313
291
  background: rgba(0, 0, 0, 0.8);
314
292
  }
315
293
 
294
+ .like-button {
295
+ display: flex;
296
+ flex-direction: column;
297
+ align-items: center;
298
+ cursor: pointer;
299
+ }
300
+
301
+ .icon-heart {
302
+ font-size: 24px;
303
+ color: #e74c3c;
304
+ }
305
+
306
+ .liked {
307
+ color: #f00; /* 更改颜色以示已赞 */
308
+ }
309
+
310
+ .like-count {
311
+ margin-top: 4px;
312
+ font-size: 16px;
313
+ color: #333;
314
+ }
315
+
316
316
  /*.swiper-container {
317
317
  width: 100%;
318
318
  height: 300px;
@@ -874,6 +874,193 @@ button.swiper-pagination-bullet {
874
874
  backface-visibility: hidden;
875
875
  }
876
876
 
877
+
878
+ .no-animation__card {
879
+ font-weight: 500;
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 #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
+
877
1064
  .unika-calendar-title {
878
1065
  font-size: 25px;
879
1066
  padding-bottom: 4px;
@@ -1125,190 +1312,3 @@ button.swiper-pagination-bullet {
1125
1312
  padding: 0 0px;
1126
1313
  border-bottom: 1px solid
1127
1314
  }
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 #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
- }
@@ -11938,7 +11938,6 @@ function render$e(_ctx, _cache, $props, $setup, $data, $options) {
11938
11938
  style: normalizeStyle(_ctx.styleProps),
11939
11939
  class: "uni-background-component"
11940
11940
  }, [
11941
- createCommentVNode(" <a-watermark v-if=\"watermark\" content=\"Unika\" class=\"watermark\">\r\n <div style=\"\" />\r\n </a-watermark> "),
11942
11941
  (_ctx.watermark)
11943
11942
  ? (openBlock(), createElementBlock("div", _hoisted_1$8, "Unika"))
11944
11943
  : createCommentVNode("v-if", true),
@@ -11945,7 +11945,6 @@
11945
11945
  style: vue.normalizeStyle(_ctx.styleProps),
11946
11946
  class: "uni-background-component"
11947
11947
  }, [
11948
- vue.createCommentVNode(" <a-watermark v-if=\"watermark\" content=\"Unika\" class=\"watermark\">\r\n <div style=\"\" />\r\n </a-watermark> "),
11949
11948
  (_ctx.watermark)
11950
11949
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$8, "Unika"))
11951
11950
  : vue.createCommentVNode("v-if", true),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unika-components",
3
- "version": "1.0.44",
3
+ "version": "1.0.45",
4
4
  "private": false,
5
5
  "main": "dist/unika-components.umd.js",
6
6
  "module": "dist/unika-components.esm.js",