enr 0.2.3-alpha.2 → 1.0.0

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.
Files changed (121) hide show
  1. package/README.md +8 -8
  2. package/client.mjs +2 -2
  3. package/client.mjs.map +1 -0
  4. package/layoutUtil.mjs +2 -2
  5. package/layoutUtil.mjs.map +1 -1
  6. package/package.json +14 -23
  7. package/server.mjs +2 -2
  8. package/server.mjs.map +1 -1
  9. package/styles/common.css +1 -1012
  10. package/styles/common.scss +23 -345
  11. package/styles/flex.scss +38 -0
  12. package/styles/header.scss +54 -0
  13. package/styles/image.scss +10 -0
  14. package/styles/input.scss +131 -0
  15. package/styles/loading-keyframes.scss +242 -0
  16. package/styles/reset.css +1 -0
  17. package/styles/reset.scss +5 -4
  18. package/styles/root-normal-dark.scss +85 -0
  19. package/styles/root-normal-light.scss +83 -0
  20. package/styles/root-weird-dark.scss +1 -0
  21. package/styles/root.scss +307 -193
  22. package/styles/text.scss +61 -0
  23. package/styles/vars-color.scss +281 -233
  24. package/styles/vars-size.scss +6 -0
  25. package/type/components/ThemeContext/index.d.ts +25 -0
  26. package/{components → type/components}/ThemeContext/types.d.ts +4 -2
  27. package/{components → type/components}/button/button.d.ts +1 -1
  28. package/{components → type/components}/button/index.d.ts +1 -1
  29. package/{components → type/components}/image/index.d.ts +1 -1
  30. package/{components → type/components}/image/types.d.ts +1 -1
  31. package/{components → type/components}/image/useSrcChange.d.ts +1 -1
  32. package/{components → type/components}/layout/content.d.ts +1 -1
  33. package/{components → type/components}/layout/footer.d.ts +1 -1
  34. package/{components → type/components}/layout/get-value.d.ts +1 -1
  35. package/{components → type/components}/layout/header.d.ts +1 -1
  36. package/{components → type/components}/layout/index.d.ts +1 -1
  37. package/{components → type/components}/layout/is-fragment.d.ts +1 -1
  38. package/{components → type/components}/layout/layout.d.ts +1 -1
  39. package/{components → type/components}/layout/sidebar.d.ts +1 -1
  40. package/{components → type/components}/layout/types.d.ts +4 -2
  41. package/{components → type/components}/marquee/MarqueeEle.d.ts +1 -1
  42. package/{components → type/components}/marquee/index.d.ts +1 -1
  43. package/{components → type/components}/marquee/type.d.ts +1 -1
  44. package/{components → type/components}/menu/index.d.ts +1 -1
  45. package/{components → type/components}/menu/menu.d.ts +1 -1
  46. package/{components → type/components}/ripples/Content.d.ts +1 -1
  47. package/{components → type/components}/ripples/LazyRippleEle.d.ts +1 -1
  48. package/{components → type/components}/ripples/RipplesEle.d.ts +1 -1
  49. package/{components → type/components}/ripples/index.d.ts +1 -1
  50. package/{components → type/components}/ripples/types.d.ts +1 -1
  51. package/{components → type/components}/ripples/useOptionUpdate.d.ts +1 -1
  52. package/{components → type/components}/shared/EnLayoutContent/index.d.ts +2 -2
  53. package/{components → type/components}/shared/EnLayoutContent/types.d.ts +1 -1
  54. package/{components → type/components}/switch/SwitchContainer.d.ts +1 -1
  55. package/{components → type/components}/switch/SwitchContent.d.ts +1 -1
  56. package/{components → type/components}/switch/SwitchLabel.d.ts +1 -1
  57. package/{components → type/components}/switch/index.d.ts +1 -1
  58. package/type/customHooks/use-xcn/index.d.ts +14 -0
  59. package/{customHooks → type/customHooks}/useAnimationFrame.d.ts +1 -1
  60. package/{customHooks → type/customHooks}/useInputIsComposing.d.ts +1 -1
  61. package/{customHooks → type/customHooks}/useRipples/buildBackground/create-background-color.d.ts +1 -1
  62. package/{customHooks → type/customHooks}/useRipples/buildBackground/create-linear-gradient.d.ts +1 -1
  63. package/{customHooks → type/customHooks}/useRipples/buildBackground/default-background/_createImageData.d.ts +1 -1
  64. package/{customHooks → type/customHooks}/useRipples/buildBackground/default-background/circleDataList.d.ts +1 -1
  65. package/{customHooks → type/customHooks}/useRipples/buildBackground/default-background/createCanvasElementBySize.d.ts +1 -1
  66. package/{customHooks → type/customHooks}/useRipples/buildBackground/default-background/createDefault.d.ts +1 -1
  67. package/{customHooks → type/customHooks}/useRipples/buildBackground/default-background/index.d.ts +1 -1
  68. package/{customHooks → type/customHooks}/useRipples/buildBackground/load-image.d.ts +1 -1
  69. package/{customHooks → type/customHooks}/useRipples/buildBackground/run-side.d.ts +1 -1
  70. package/{customHooks → type/customHooks}/useRipples/buildBackground/type.d.ts +1 -1
  71. package/{customHooks → type/customHooks}/useRipples/buildBackground/utils/bind-image.d.ts +1 -1
  72. package/{customHooks → type/customHooks}/useRipples/buildBackground/utils/create-canvas-element.d.ts +1 -1
  73. package/{customHooks → type/customHooks}/useRipples/buildBackground/utils/create-image-by-src.d.ts +1 -1
  74. package/{customHooks → type/customHooks}/useRipples/buildBackground/utils/get-background-style.d.ts +1 -1
  75. package/{customHooks → type/customHooks}/useRipples/buildBackground/utils/hide-css-background.d.ts +1 -1
  76. package/{customHooks → type/customHooks}/useRipples/buildBackground/utils/restore-css-background.d.ts +1 -1
  77. package/{customHooks → type/customHooks}/useRipples/callback/can-side.d.ts +1 -1
  78. package/{customHooks → type/customHooks}/useRipples/callback/destroy.d.ts +1 -1
  79. package/{customHooks → type/customHooks}/useRipples/callback/drop.d.ts +1 -1
  80. package/{customHooks → type/customHooks}/useRipples/callback/extract-url.d.ts +1 -1
  81. package/{customHooks → type/customHooks}/useRipples/callback/fade.d.ts +1 -1
  82. package/{customHooks → type/customHooks}/useRipples/callback/get-new-image.d.ts +1 -1
  83. package/{customHooks → type/customHooks}/useRipples/callback/reload-background.d.ts +1 -1
  84. package/{customHooks → type/customHooks}/useRipples/callback/scale.d.ts +1 -1
  85. package/{customHooks → type/customHooks}/useRipples/index.d.ts +1 -1
  86. package/{customHooks → type/customHooks}/useRipples/init/index.d.ts +1 -1
  87. package/{customHooks → type/customHooks}/useRipples/init/initEvent.d.ts +1 -1
  88. package/{customHooks → type/customHooks}/useRipples/init/initShaders.d.ts +1 -1
  89. package/{customHooks → type/customHooks}/useRipples/init/initTexture.d.ts +1 -1
  90. package/{customHooks → type/customHooks}/useRipples/render/computeTextureBoundaries.d.ts +1 -1
  91. package/{customHooks → type/customHooks}/useRipples/render/draw.d.ts +1 -1
  92. package/{customHooks → type/customHooks}/useRipples/render/drawQuad.d.ts +1 -1
  93. package/{customHooks → type/customHooks}/useRipples/render/dropAtPointer.d.ts +1 -1
  94. package/{customHooks → type/customHooks}/useRipples/render/index.d.ts +1 -1
  95. package/{customHooks → type/customHooks}/useRipples/render/swapBufferIndices.d.ts +1 -1
  96. package/{customHooks → type/customHooks}/useRipples/render/update.d.ts +1 -1
  97. package/{customHooks → type/customHooks}/useRipples/rippersData/defaultData.d.ts +1 -1
  98. package/{customHooks → type/customHooks}/useRipples/rippersData/fadeData.d.ts +1 -1
  99. package/{customHooks → type/customHooks}/useRipples/rippersData/index.d.ts +1 -1
  100. package/{customHooks → type/customHooks}/useRipples/rippersData/loadConfig.d.ts +1 -1
  101. package/{customHooks → type/customHooks}/useRipples/rippersData/renderData.d.ts +1 -1
  102. package/{customHooks → type/customHooks}/useRipples/rippersData/useOptions.d.ts +1 -1
  103. package/{customHooks → type/customHooks}/useRipples/rippersData/vertexSource.d.ts +1 -1
  104. package/{customHooks → type/customHooks}/useRipples/ripple.html.d.ts +1 -1
  105. package/{customHooks → type/customHooks}/useRipples/ripplesClass.d.ts +1 -1
  106. package/{customHooks → type/customHooks}/useRipples/tools.d.ts +1 -1
  107. package/{customHooks → type/customHooks}/useRipples/types.d.ts +1 -1
  108. package/{customHooks → type/customHooks}/useRipples/use-lazy-ripple.d.ts +1 -1
  109. package/{customHooks → type/customHooks}/useTimeId.d.ts +1 -1
  110. package/type/dog.d.ts +8 -0
  111. package/{index.client.d.ts → type/index.client.d.ts} +1 -1
  112. package/{index.d.ts → type/index.d.ts} +1 -1
  113. package/{index.server.d.ts → type/index.server.d.ts} +1 -1
  114. package/{storage → type/storage}/main-logic .d.ts +1 -1
  115. package/{storage → type/storage}/storage-store.d.ts +1 -1
  116. package/{utilities → type/utilities}/cookie.d.ts +3 -10
  117. package/{utilities → type/utilities}/sys.d.ts +1 -1
  118. package/209.mjs +0 -10
  119. package/209.mjs.map +0 -1
  120. package/components/ThemeContext/index.d.ts +0 -11
  121. package/customHooks/use-xcn/index.d.ts +0 -14
@@ -1,14 +1,29 @@
1
- @use "./vars-color.scss" as *;
2
- @use "./respond" as rp;
3
- @use "root.scss";
1
+ @use "./vars-color.scss"as *;
2
+ @use "./respond"as rp;
3
+ @use "./root.scss";
4
+ @use "./loading-keyframes.scss";
5
+ @use "./flex.scss";
6
+ @use "./header.scss";
7
+ @use "./image.scss";
8
+ @use "./text.scss";
9
+ @use './input.scss';
4
10
 
5
11
  .en-full-container {
6
12
  width: 100%;
7
13
  height: 100%;
8
14
  }
9
15
 
16
+ @for $i from 1 through 10 {
17
+ $v: #{calc($i * 10)};
18
+
19
+ .en-box-shadow-light-red-#{$v} {
20
+ box-shadow: 0 1px 2px rgb(var(--en-color-red-#{$v}-rgb));
21
+ }
22
+ }
23
+
10
24
  @for $i from 1 through 10 {
11
25
  $v: #{calc($i * 4)};
26
+
12
27
  // 水平方向的 padding
13
28
  .en-padding-horizontal-#{$v} {
14
29
  padding-left: #{$v}px;
@@ -44,7 +59,8 @@
44
59
  }
45
60
 
46
61
  // 圆角
47
- .en-border-radius-#{$v} {
62
+ .en-border-radius-#{$v},
63
+ .en-radius-#{$v} {
48
64
  border-radius: #{$v}px;
49
65
  }
50
66
  }
@@ -57,43 +73,6 @@
57
73
  position: relative;
58
74
  }
59
75
 
60
- .en-flex,
61
- .en-flex-row,
62
- .en-flex-column,
63
- .en-flex-row-reverse,
64
- .en-flex-column-reverse {
65
- display: flex;
66
- flex-wrap: nowrap;
67
- }
68
-
69
- .en-flex,
70
- .en-flex-row {
71
- flex-direction: row;
72
- }
73
-
74
- .en-flex-row-reverse {
75
- flex-direction: row-reverse;
76
- }
77
-
78
- .en-flex-column {
79
- flex-direction: column;
80
- }
81
-
82
- .en-flex-column {
83
- flex-direction: column-reverse;
84
- }
85
-
86
- .en-flex-wrap {
87
- flex-wrap: wrap;
88
- }
89
-
90
- .en-flex-nowrap {
91
- flex-wrap: nowrap;
92
- }
93
-
94
- .en-flex-warp-reverse {
95
- flex-wrap: wrap-reverse;
96
- }
97
76
 
98
77
  .en-center {
99
78
  position: absolute;
@@ -103,46 +82,12 @@
103
82
  }
104
83
 
105
84
  .en-dust {
106
- color: var(--primary-dust);
85
+ color: var(---en-text-dust);
107
86
  }
108
87
 
109
- /** 文本显示一行,超出点点点 */
110
- .en-text-in-one-line {
111
- white-space: nowrap;
112
- text-overflow: ellipsis;
113
- overflow: hidden;
114
- word-break: break-all;
115
- }
116
-
117
- .en-text-in-one-line-hide {
118
- white-space: nowrap;
119
- text-overflow: clip;
120
- overflow: hidden;
121
- word-break: break-all;
122
- }
123
-
124
- /** 文本显示两行,超出点点点 */
125
- .en-text-in-two-line {
126
- overflow: hidden;
127
- text-overflow: ellipsis;
128
- display: -webkit-box;
129
- -webkit-line-clamp: 2;
130
- line-clamp: 2;
131
- -webkit-box-orient: vertical;
132
- }
133
-
134
- /* 彩色字 */
135
- .en-color-text {
136
- color: transparent;
137
- background-image: linear-gradient(45deg, #ff0, #0f0, #f00, #0ff, #00f, #f0f, #ff0);
138
- background-position: 0% 0%;
139
- background-size: 400% 200%;
140
- background-clip: text;
141
- animation: 6s ease-in 0s infinite colorText alternate;
142
- }
143
88
 
144
89
  .en-red-bg {
145
- background-color: #f12;
90
+ background-color: var(--en-color-red-70);
146
91
  }
147
92
 
148
93
  .en-float-left {
@@ -173,20 +118,6 @@
173
118
  animation: 2.4s ease-in-out 0s infinite loading;
174
119
  }
175
120
 
176
- // 文本剧中
177
- .en-text-center {
178
- text-align: center;
179
- }
180
-
181
- // 文本靠右
182
- .en-text-right {
183
- text-align: end;
184
- }
185
- //小文本
186
- .en-text-small {
187
- font-size: 0.6rem;
188
- }
189
-
190
121
  // 用户可操作
191
122
  .en-user-select-text {
192
123
  -khtml-user-select: text;
@@ -197,257 +128,4 @@
197
128
 
198
129
  .en-cursor-pointer {
199
130
  cursor: pointer;
200
- }
201
-
202
- @keyframes loading {
203
- // 45 - 25 * Math.sin((Math.PI * 5) / 12)
204
- // 位置公式 35 - 25 * Math.cos((Math.PI * 5) / 12)
205
-
206
- 100%,
207
- 0% {
208
- background-size:
209
- 10% 10%,
210
- 10% 10%,
211
- 10% 10%,
212
- 10% 10%;
213
- background-position:
214
- 25% 45%,
215
- 41.7% 45%,
216
- 58.3% 45%,
217
- 75% 45%;
218
- }
219
-
220
- 20%,
221
- 80% {
222
- background-size: 2.5% 2.5%;
223
- background-position: 25% 45%;
224
- }
225
-
226
- 22% {
227
- background-size:
228
- 3.75% 3.75%,
229
- 2.5% 2.5%,
230
- 2.5% 2.5%,
231
- 2.5% 2.5%;
232
- background-position:
233
- // 位置 1
234
- 25.85% 38.53%,
235
- 25% 45%,
236
- 25% 45%,
237
- 25% 45%;
238
- }
239
-
240
- 24% {
241
- background-size:
242
- 5% 5%,
243
- 2.5% 2.5%,
244
- 2.5% 2.5%,
245
- 2.5% 2.5%;
246
- background-position:
247
- // 位置 2
248
- 28.35% 32.5%,
249
- 25% 45%,
250
- 25% 45%,
251
- 25% 45%;
252
- }
253
-
254
- 26% {
255
- background-size:
256
- 6.25% 6.25%,
257
- 2.5% 2.5%,
258
- 2.5% 2.5%,
259
- 2.5% 2.5%;
260
- background-position:
261
- // 位置 3
262
- 32.32% 27.32%,
263
- 25% 45%,
264
- 25% 45%,
265
- 25% 45%;
266
- }
267
-
268
- 28% {
269
- background-size:
270
- 7.5% 7.5%,
271
- 3.75% 3.75%,
272
- 2.5% 2.5%,
273
- 2.5% 2.5%;
274
- background-position:
275
- // 位置 4
276
- 37.5% 23.35%,
277
- // 位置 1
278
- 25.85% 38.53%,
279
- 25% 45%,
280
- 25% 45%;
281
- }
282
-
283
- 30% {
284
- background-size:
285
- 8.75% 8.75%,
286
- 5% 5%,
287
- 2.5% 2.5%,
288
- 2.5% 2.5%;
289
- background-position:
290
- // 位置 5
291
- 43.53% 20.85%,
292
- // 位置 2
293
- 28.35% 32.5%,
294
- 25% 45%,
295
- 25% 45%;
296
- }
297
-
298
- 32% {
299
- background-size:
300
- 10% 10%,
301
- 6.25% 6.25%,
302
- 3.75% 3.75%,
303
- 2.5% 2.5%;
304
- background-position:
305
- // 位置 6
306
- 50% 20%,
307
- // 位置 3
308
- 32.32% 27.32%,
309
- // 位置 1
310
- 25.85% 38.53%,
311
- 25% 45%;
312
- }
313
-
314
- 34% {
315
- background-size:
316
- 10% 10%,
317
- 7.5% 7.5%,
318
- 5% 5%,
319
- 2.5% 2.5%;
320
- background-position:
321
- // 位置 7
322
- 56.47% 20.85%,
323
- // 位置 4
324
- 37.32% 23.35%,
325
- // 位置 2
326
- 28.35% 32.5%,
327
- // 位置 1
328
- 25.85% 38.53%;
329
- }
330
-
331
- $Pi: 3.1415926;
332
-
333
- @for $i from 18 through 33 {
334
- #{calc($i / 50 * 100%)} {
335
- background-position:
336
- #{(50 - (25 * cos(($Pi * ($i - 10)) / 12))) * 1%} #{(45 - 25 * sin(($Pi * ($i - 10)) / 12)) * 1%},
337
- #{(50 - (25 * cos(($Pi * ($i - 13)) / 12))) * 1%} #{(45 - 25 * sin(($Pi * ($i - 13)) / 12)) * 1%},
338
- #{(50 - (25 * cos(($Pi * ($i - 15)) / 12))) * 1%} #{(45 - 25 * sin(($Pi * ($i - 15)) / 12)) * 1%},
339
- #{(50 - (25 * cos(($Pi * ($i - 17)) / 12))) * 1%} #{(45 - 25 * sin(($Pi * ($i - 17)) / 12)) * 1%};
340
- }
341
- }
342
-
343
- 68% {
344
- background-size:
345
- 10% 10%,
346
- 7.5% 7.5%,
347
- 5% 5%,
348
- 2.5% 2.5%;
349
- background-position:
350
- // 位置 0
351
- 25% 45%,
352
- // 位置 22
353
- 28.35% 57.45%,
354
- // 位置 20
355
- 37.45% 66.65%,
356
- // 位置 18
357
- 48% 70%;
358
- }
359
-
360
- 70% {
361
- background-size:
362
- 8.75% 8.75%,
363
- 7.5% 7.5%,
364
- 5% 5%,
365
- 2.5% 2.5%;
366
- background-position:
367
- // 位置 0
368
- 25% 45%,
369
- // 位置 23
370
- 25.85% 51.47%,
371
- // 位置 21
372
- 32.32% 62.68%,
373
- // 位置 19
374
- 43.53% 69.15%;
375
- }
376
-
377
- 72% {
378
- background-size:
379
- 7.5% 7.5%,
380
- 7.5% 7.5%,
381
- 5% 5%,
382
- 2.5% 2.5%;
383
- background-position:
384
- // 位置 0
385
- 25% 45%,
386
- // 位置 0
387
- 25% 45%,
388
- // 位置 22
389
- 28.35% 57.45%,
390
- // 位置 20
391
- 37.45% 66.65%;
392
- }
393
- 74% {
394
- background-size:
395
- 6.25% 6.25%,
396
- 6.25% 6.25%,
397
- 5% 5%,
398
- 2.5% 2.5%;
399
- background-position:
400
- // 位置 0
401
- 25% 45%,
402
- // 位置 0
403
- 25% 45%,
404
- // 位置 23
405
- 25.85% 51.47%,
406
- // 位置 21
407
- 32.32% 62.68%;
408
- }
409
-
410
- 76% {
411
- background-size:
412
- 5% 5%,
413
- 5% 5%,
414
- 5% 5%,
415
- 2.5% 2.5%;
416
- background-position:
417
- // 位置 0
418
- 25% 45%,
419
- // 位置 0
420
- 25% 45%,
421
- // 位置 0
422
- 25% 45%,
423
- // 位置 22
424
- 28.35% 57.45%;
425
- }
426
-
427
- 78% {
428
- background-size:
429
- 3.75% 3.75%,
430
- 3.75% 3.75%,
431
- 3.75% 3.75%,
432
- 2.5% 2.5%;
433
- background-position:
434
- // 位置 0
435
- 25% 45%,
436
- // 位置 0
437
- 25% 45%,
438
- // 位置 0
439
- 25% 45%,
440
- // 位置 23
441
- 25.85% 51.47%;
442
- }
443
- }
444
-
445
- @keyframes colorText {
446
- 0% {
447
- background-position: 400% 0%;
448
- }
449
-
450
- 100% {
451
- background-position: 0% 0%;
452
- }
453
- }
131
+ }
@@ -0,0 +1,38 @@
1
+ .en-flex,
2
+ .en-flex-row,
3
+ .en-flex-column,
4
+ .en-flex-row-reverse,
5
+ .en-flex-column-reverse {
6
+ display: flex;
7
+ flex-wrap: nowrap;
8
+ flex: 1;
9
+ }
10
+
11
+ .en-flex,
12
+ .en-flex-row {
13
+ flex-direction: row;
14
+ }
15
+
16
+ .en-flex-row-reverse {
17
+ flex-direction: row-reverse;
18
+ }
19
+
20
+ .en-flex-column {
21
+ flex-direction: column;
22
+ }
23
+
24
+ .en-flex-column-reverse {
25
+ flex-direction: column-reverse;
26
+ }
27
+
28
+ .en-flex-wrap {
29
+ flex-wrap: wrap;
30
+ }
31
+
32
+ .en-flex-nowrap {
33
+ flex-wrap: nowrap;
34
+ }
35
+
36
+ .en-flex-warp-reverse {
37
+ flex-wrap: wrap-reverse;
38
+ }
@@ -0,0 +1,54 @@
1
+ .en-h1,
2
+ h1.en-h1,
3
+ .en-style h1 {
4
+ font-size: 2.8rem;
5
+ line-height: 3rem;
6
+ margin-block: 0.87rem;
7
+ font-weight: 800;
8
+ text-align: center;
9
+ }
10
+
11
+ .en-h2,
12
+ h2.en-h2,
13
+ .en-style h2 {
14
+ font-size: 2.2rem;
15
+ line-height: 2.4rem;
16
+ margin-block: 0.94rem;
17
+ font-weight: 700;
18
+ }
19
+
20
+ .en-h3,
21
+ h3.en-h3,
22
+ .en-style h3 {
23
+ font-size: 1.6rem;
24
+ line-height: 1.8rem;
25
+ margin-block: 1rem;
26
+ font-weight: 600;
27
+ }
28
+
29
+ .en-h4,
30
+ h4.en-h4,
31
+ .en-style h4 {
32
+ font-size: 1.2rem;
33
+ line-height: 1.4rem;
34
+ margin-block: 1.02rem;
35
+ font-weight: 600;
36
+ }
37
+
38
+ .en-h5,
39
+ h5.en-h5,
40
+ .en-style h5 {
41
+ font-size: 0.94rem;
42
+ line-height: 1.14rem;
43
+ margin-block: 1.42rem;
44
+ font-weight: 600;
45
+ }
46
+
47
+ .en-h6,
48
+ h6.en-h6,
49
+ .en-style h6 {
50
+ font-size: 0.84rem;
51
+ line-height: 1.04rem;
52
+ margin-block: 2.12rem;
53
+ font-weight: 600;
54
+ }
@@ -0,0 +1,10 @@
1
+ img.en-img,
2
+ .en-img,
3
+ .en-style img {
4
+ -webkit-touch-callout: none;
5
+ -webkit-user-select: none;
6
+ -khtml-user-select: none;
7
+ -moz-user-select: none;
8
+ -ms-user-select: none;
9
+ user-select: none;
10
+ }
@@ -0,0 +1,131 @@
1
+ .en-input-focus-visible-none,
2
+ input.en-input-focus-visible-none,
3
+ .en-style input:focus-visible {
4
+ outline: none;
5
+ }
6
+
7
+ .en-style input[type='button'],
8
+ .cursor-pointer input[type='button'].cursor-pointer {
9
+ cursor: pointer;
10
+ }
11
+
12
+ .en-input-type-text-revers,
13
+ input[type='text'].en-input-type-text-revers,
14
+ .en-input-type-text-primary,
15
+ input[type='text'].en-input-type-text-primary,
16
+ .en-style input[type='text'] {
17
+ width: calc(var(--en-spacing) * 40);
18
+ border-radius: var(--en-spacing-3);
19
+ padding: var(--en-spacing-1) var(--en-spacing-3);
20
+
21
+ &:focus::placeholder {
22
+ color: transparent;
23
+ }
24
+ }
25
+
26
+ .en-input-type-text-primary,
27
+ input[type='text'].en-input-type-text-primary,
28
+ .en-style input[type='text'] {
29
+ background-color: var(--en-input-primary-background);
30
+ color: var(--en-input-primary-text);
31
+ border-style: outset;
32
+
33
+ &::placeholder {
34
+ color: var(--en-input-primary-placeholder-text);
35
+ }
36
+
37
+ &:focus-visible {
38
+ outline: var(--en-input-primary-focus-visible-outline);
39
+ border-color: transparent;
40
+ box-shadow: 0 2px 24px rgba(var(--en-input-primary-text-rgb), 0.6);
41
+ }
42
+ }
43
+
44
+ input[type='text'].en-input-type-text-revers,
45
+ .en-input-type-text-revers {
46
+ background-color: var(--en-input-revers-background);
47
+ color: var(--en-input-revers-text);
48
+ border-style: outset;
49
+
50
+ &::placeholder {
51
+ color: var(--en-input-revers-placeholder-text);
52
+ }
53
+
54
+ &:focus-visible {
55
+ outline: var(--en-input-revers-focus-visible-outline);
56
+ border-color: transparent;
57
+ box-shadow: 0 2px 12px rgba(var(--en-input-revers-text-rgb), 0.6);
58
+ }
59
+ }
60
+
61
+ .en-input-type-radio-primary,
62
+ .en-style input[type='radio'] {
63
+ width: 0;
64
+ height: 0;
65
+ overflow: hidden;
66
+
67
+ + label {
68
+ padding-left: 15px;
69
+
70
+ &::before,
71
+ &::after {
72
+ content: '';
73
+ position: absolute;
74
+ border-radius: 50%;
75
+ top: 50%;
76
+ transform: translate(0, -50%);
77
+ overflow: hidden;
78
+ }
79
+
80
+ $with: var(--en-spacing-base);
81
+
82
+ // 默认/未选中的前置
83
+ &::before {
84
+ left: 0px;
85
+ height: $with;
86
+ width: $with;
87
+ box-shadow: 1px 1px 3px var(--en-text-primary);
88
+ z-index: 1;
89
+ }
90
+
91
+ // 选中的项的额外涂色
92
+ &::after {
93
+ font-size: $with;
94
+ line-height: $with;
95
+ z-index: 2;
96
+ left: 0px;
97
+ height: $with;
98
+ width: $with;
99
+ color: var(--en-background-primary);
100
+ background-color: var(--en-text-primary);
101
+ clip-path: circle(0%);
102
+ transition: all var(--en-transition-slow);
103
+ }
104
+ }
105
+
106
+ &:checked {
107
+ color: #f00;
108
+
109
+ & + label {
110
+ color: var(--en-color-green-30);
111
+
112
+ &::before {
113
+ box-shadow:
114
+ 1px 1px 3px var(--en-color-green-10),
115
+ -1px -1px 3px var(--en-color-green-10);
116
+ }
117
+
118
+ &::after {
119
+ background-color: var(--en-color-green-30);
120
+ clip-path: circle(100%);
121
+ transition: all 0.8s;
122
+ }
123
+ }
124
+ }
125
+ }
126
+
127
+ .en-input-type-image-primary,
128
+ .en-style input[type='image'] {
129
+ -webkit-user-select: none;
130
+ user-select: none;
131
+ }