@zyzgroup/core-web 0.0.50 → 0.0.51

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/better.css CHANGED
@@ -12,12 +12,79 @@
12
12
  );
13
13
  }
14
14
 
15
+ /*
15
16
  *,
16
17
  *::before,
17
- *::after {
18
+ *::after
19
+ */
20
+ html,
21
+ body,
22
+ div,
23
+ span,
24
+ applet,
25
+ object,
26
+ iframe,
27
+ h1,
28
+ h2,
29
+ h3,
30
+ h4,
31
+ h5,
32
+ h6,
33
+ p,
34
+ blockquote,
35
+ pre,
36
+ a,
37
+ abbr,
38
+ acronym,
39
+ address,
40
+ big,
41
+ cite,
42
+ code,
43
+ del,
44
+ dfn,
45
+ em,
46
+ font,
47
+ img,
48
+ ins,
49
+ kbd,
50
+ q,
51
+ s,
52
+ samp,
53
+ small,
54
+ strike,
55
+ strong,
56
+ sub,
57
+ sup,
58
+ tt,
59
+ var,
60
+ dl,
61
+ dt,
62
+ dd,
63
+ ol,
64
+ ul,
65
+ li,
66
+ fieldset,
67
+ form,
68
+ label,
69
+ legend,
70
+ table,
71
+ caption,
72
+ tbody,
73
+ tfoot,
74
+ thead,
75
+ tr,
76
+ th,
77
+ td {
18
78
  box-sizing: border-box;
19
79
  margin: 0;
20
80
  padding: 0;
81
+ border: 0;
82
+ outline: 0;
83
+ font-weight: inherit;
84
+ font-style: inherit;
85
+ font-size: 100%;
86
+ font-family: inherit;
87
+ vertical-align: baseline;
21
88
  /* 去掉点击时的蓝色外边框和灰色半透明背景 */
22
89
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
23
90
  }
@@ -32,6 +99,9 @@
32
99
  :target {
33
100
  scroll-margin-block: 5ex;
34
101
  }
102
+ :focus {
103
+ outline: 0;
104
+ }
35
105
 
36
106
  html {
37
107
  font-family: system-ui, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI",
@@ -104,6 +174,12 @@ picture {
104
174
  background-color: #808080;
105
175
  /* 禁止长按链接与图片弹出菜单 */
106
176
  -webkit-touch-callout: none;
177
+ /*
178
+ * Added 2009/02/04 to fix IE7's issue with interpolated
179
+ * scaling not turned on by default. Based on an idea from
180
+ * http://acidmartin.wordpress.com/2009/01/05/better-image-scaling-and-resampling-in-internet-explorer/
181
+ */
182
+ -ms-interpolation-mode: bicubic;
107
183
  }
108
184
 
109
185
  pre {
@@ -115,6 +191,12 @@ table {
115
191
  border-collapse: collapse;
116
192
  border-spacing: 0;
117
193
  }
194
+ caption,
195
+ th,
196
+ td {
197
+ text-align: left;
198
+ font-weight: normal;
199
+ }
118
200
 
119
201
  ul,
120
202
  ol {
@@ -144,6 +226,17 @@ h4 {
144
226
  text-wrap: balance;
145
227
  }
146
228
 
229
+ blockquote:before,
230
+ blockquote:after,
231
+ q:before,
232
+ q:after {
233
+ content: "";
234
+ }
235
+ blockquote,
236
+ q {
237
+ quotes: "" "";
238
+ }
239
+
147
240
  /*
148
241
  清除浮动
149
242
  浮动特性
@@ -206,38 +299,9 @@ h4 {
206
299
  /* 触发重排 */
207
300
  /* zoom: 0.83; */
208
301
  -webkit-transform: scale(0.83);
209
- }
210
-
211
- .modal-underground-no-scroll-1 {
212
- overflow: hidden;
213
- }
214
- .modal-underground-no-scroll-2 {
215
- position: fixed;
216
- /* 计算top */
217
- }
218
- .modal-underground-scroll-2 {
219
- position: static;
220
- top: auto;
221
- }
222
- .modal-underground {
223
- transition: 0.6s filter;
224
- filter: blur(5px);
225
- }
226
- .modal-mask {
227
- position: absolute;
228
- top: 0;
229
- left: 0;
230
- width: 100%;
231
- height: 100%;
232
- background: rgba(0, 0, 0, 0.6);
233
- z-index: 10000;
234
- }
235
- .modal-content {
236
- /* avoid scroll chaining */
237
- overscroll-behavior-y: contain;
238
- /* the scrollbar will only be visible if the content is long */
239
- overflow-y: auto;
240
- scrollbar-gutter: stable;
302
+ -moz-transform: scale(0.83);
303
+ -o-transform: scale(0.83);
304
+ transform: scale(0.83);
241
305
  }
242
306
 
243
307
  .one-pixel-line {
@@ -269,16 +333,6 @@ h4 {
269
333
  }
270
334
  }
271
335
 
272
- .border-sample {
273
- border: 5px solid #b4a078;
274
- outline: 6px solid #b4a078;
275
- outline-offset: -10px;
276
- box-shadow: 0 0 0 10px #b4a078;
277
- box-shadow: 0 0 0 0.3em #e8e2d6, 0 0 0 0.6em #e1d9c9, 0 0 0 1em #d9cfbb,
278
- 0 0 0 1.3em #d2c6ae, 0 0 0 1.6em #cabca0, 0 0 0 2em #c3b393,
279
- 0 0 0 2.3em #bba985, 0 0 0 2em #b4a078;
280
- }
281
-
282
336
  @supports (display: grid) {
283
337
  }
284
338
 
@@ -292,9 +346,7 @@ The solution for this is to use the hover media query. It's possible to detect i
292
346
  https://developer.mozilla.org/en-US/docs/Web/CSS/@media/hover
293
347
  */
294
348
  @media (hover: hover) {
295
- /* .card:hover {
296
- background-color: gray;
297
- } */
349
+ /* .card:hover {} */
298
350
  }
299
351
 
300
352
  @media (prefers-color-scheme: dark) {
@@ -307,7 +359,6 @@ https://developer.mozilla.org/en-US/docs/Web/CSS/@media/hover
307
359
  }
308
360
 
309
361
  /* 设备断点 */
310
-
311
362
  @media (max-width: 375px) {
312
363
  }
313
364
 
@@ -0,0 +1,41 @@
1
+ .border-sample {
2
+ border: 5px solid #b4a078;
3
+ outline: 6px solid #b4a078;
4
+ outline-offset: -10px;
5
+ box-shadow: 0 0 0 10px #b4a078;
6
+ box-shadow: 0 0 0 0.3em #e8e2d6, 0 0 0 0.6em #e1d9c9, 0 0 0 1em #d9cfbb,
7
+ 0 0 0 1.3em #d2c6ae, 0 0 0 1.6em #cabca0, 0 0 0 2em #c3b393,
8
+ 0 0 0 2.3em #bba985, 0 0 0 2em #b4a078;
9
+ }
10
+
11
+ .modal-underground-no-scroll-1 {
12
+ overflow: hidden;
13
+ }
14
+ .modal-underground-no-scroll-2 {
15
+ position: fixed;
16
+ /* 计算top */
17
+ }
18
+ .modal-underground-scroll-2 {
19
+ position: static;
20
+ top: auto;
21
+ }
22
+ .modal-underground {
23
+ transition: 0.6s filter;
24
+ filter: blur(5px);
25
+ }
26
+ .modal-mask {
27
+ position: absolute;
28
+ top: 0;
29
+ left: 0;
30
+ width: 100%;
31
+ height: 100%;
32
+ background: rgba(0, 0, 0, 0.6);
33
+ z-index: 10000;
34
+ }
35
+ .modal-content {
36
+ /* avoid scroll chaining */
37
+ overscroll-behavior-y: contain;
38
+ /* the scrollbar will only be visible if the content is long */
39
+ overflow-y: auto;
40
+ scrollbar-gutter: stable;
41
+ }