@zyzgroup/core-web 0.0.50 → 0.0.52

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,78 @@
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-family: inherit;
86
+ vertical-align: baseline;
21
87
  /* 去掉点击时的蓝色外边框和灰色半透明背景 */
22
88
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
23
89
  }
@@ -32,6 +98,9 @@
32
98
  :target {
33
99
  scroll-margin-block: 5ex;
34
100
  }
101
+ :focus {
102
+ outline: 0;
103
+ }
35
104
 
36
105
  html {
37
106
  font-family: system-ui, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI",
@@ -104,6 +173,12 @@ picture {
104
173
  background-color: #808080;
105
174
  /* 禁止长按链接与图片弹出菜单 */
106
175
  -webkit-touch-callout: none;
176
+ /*
177
+ * Added 2009/02/04 to fix IE7's issue with interpolated
178
+ * scaling not turned on by default. Based on an idea from
179
+ * http://acidmartin.wordpress.com/2009/01/05/better-image-scaling-and-resampling-in-internet-explorer/
180
+ */
181
+ -ms-interpolation-mode: bicubic;
107
182
  }
108
183
 
109
184
  pre {
@@ -115,6 +190,12 @@ table {
115
190
  border-collapse: collapse;
116
191
  border-spacing: 0;
117
192
  }
193
+ caption,
194
+ th,
195
+ td {
196
+ text-align: left;
197
+ font-weight: normal;
198
+ }
118
199
 
119
200
  ul,
120
201
  ol {
@@ -144,6 +225,17 @@ h4 {
144
225
  text-wrap: balance;
145
226
  }
146
227
 
228
+ blockquote:before,
229
+ blockquote:after,
230
+ q:before,
231
+ q:after {
232
+ content: "";
233
+ }
234
+ blockquote,
235
+ q {
236
+ quotes: "" "";
237
+ }
238
+
147
239
  /*
148
240
  清除浮动
149
241
  浮动特性
@@ -206,38 +298,9 @@ h4 {
206
298
  /* 触发重排 */
207
299
  /* zoom: 0.83; */
208
300
  -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;
301
+ -moz-transform: scale(0.83);
302
+ -o-transform: scale(0.83);
303
+ transform: scale(0.83);
241
304
  }
242
305
 
243
306
  .one-pixel-line {
@@ -269,16 +332,6 @@ h4 {
269
332
  }
270
333
  }
271
334
 
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
335
  @supports (display: grid) {
283
336
  }
284
337
 
@@ -292,9 +345,7 @@ The solution for this is to use the hover media query. It's possible to detect i
292
345
  https://developer.mozilla.org/en-US/docs/Web/CSS/@media/hover
293
346
  */
294
347
  @media (hover: hover) {
295
- /* .card:hover {
296
- background-color: gray;
297
- } */
348
+ /* .card:hover {} */
298
349
  }
299
350
 
300
351
  @media (prefers-color-scheme: dark) {
@@ -307,7 +358,6 @@ https://developer.mozilla.org/en-US/docs/Web/CSS/@media/hover
307
358
  }
308
359
 
309
360
  /* 设备断点 */
310
-
311
361
  @media (max-width: 375px) {
312
362
  }
313
363
 
@@ -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
+ }