@zyzgroup/core-web 0.0.49 → 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",
@@ -97,11 +167,19 @@ img,
97
167
  picture {
98
168
  display: block;
99
169
  max-width: 100%;
170
+ width: 100%;
171
+ height: 100%;
100
172
  border: 0 none;
101
173
  object-fit: cover;
102
174
  background-color: #808080;
103
175
  /* 禁止长按链接与图片弹出菜单 */
104
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;
105
183
  }
106
184
 
107
185
  pre {
@@ -113,6 +191,12 @@ table {
113
191
  border-collapse: collapse;
114
192
  border-spacing: 0;
115
193
  }
194
+ caption,
195
+ th,
196
+ td {
197
+ text-align: left;
198
+ font-weight: normal;
199
+ }
116
200
 
117
201
  ul,
118
202
  ol {
@@ -142,6 +226,17 @@ h4 {
142
226
  text-wrap: balance;
143
227
  }
144
228
 
229
+ blockquote:before,
230
+ blockquote:after,
231
+ q:before,
232
+ q:after {
233
+ content: "";
234
+ }
235
+ blockquote,
236
+ q {
237
+ quotes: "" "";
238
+ }
239
+
145
240
  /*
146
241
  清除浮动
147
242
  浮动特性
@@ -204,38 +299,9 @@ h4 {
204
299
  /* 触发重排 */
205
300
  /* zoom: 0.83; */
206
301
  -webkit-transform: scale(0.83);
207
- }
208
-
209
- .modal-underground-no-scroll-1 {
210
- overflow: hidden;
211
- }
212
- .modal-underground-no-scroll-2 {
213
- position: fixed;
214
- /* 计算top */
215
- }
216
- .modal-underground-scroll-2 {
217
- position: static;
218
- top: auto;
219
- }
220
- .modal-underground {
221
- transition: 0.6s filter;
222
- filter: blur(5px);
223
- }
224
- .modal-mask {
225
- position: absolute;
226
- top: 0;
227
- left: 0;
228
- width: 100%;
229
- height: 100%;
230
- background: rgba(0, 0, 0, 0.6);
231
- z-index: 10000;
232
- }
233
- .modal-content {
234
- /* avoid scroll chaining */
235
- overscroll-behavior-y: contain;
236
- /* the scrollbar will only be visible if the content is long */
237
- overflow-y: auto;
238
- scrollbar-gutter: stable;
302
+ -moz-transform: scale(0.83);
303
+ -o-transform: scale(0.83);
304
+ transform: scale(0.83);
239
305
  }
240
306
 
241
307
  .one-pixel-line {
@@ -267,16 +333,6 @@ h4 {
267
333
  }
268
334
  }
269
335
 
270
- .border-sample {
271
- border: 5px solid #b4a078;
272
- outline: 6px solid #b4a078;
273
- outline-offset: -10px;
274
- box-shadow: 0 0 0 10px #b4a078;
275
- box-shadow: 0 0 0 0.3em #e8e2d6, 0 0 0 0.6em #e1d9c9, 0 0 0 1em #d9cfbb,
276
- 0 0 0 1.3em #d2c6ae, 0 0 0 1.6em #cabca0, 0 0 0 2em #c3b393,
277
- 0 0 0 2.3em #bba985, 0 0 0 2em #b4a078;
278
- }
279
-
280
336
  @supports (display: grid) {
281
337
  }
282
338
 
@@ -290,9 +346,7 @@ The solution for this is to use the hover media query. It's possible to detect i
290
346
  https://developer.mozilla.org/en-US/docs/Web/CSS/@media/hover
291
347
  */
292
348
  @media (hover: hover) {
293
- /* .card:hover {
294
- background-color: gray;
295
- } */
349
+ /* .card:hover {} */
296
350
  }
297
351
 
298
352
  @media (prefers-color-scheme: dark) {
@@ -305,7 +359,6 @@ https://developer.mozilla.org/en-US/docs/Web/CSS/@media/hover
305
359
  }
306
360
 
307
361
  /* 设备断点 */
308
-
309
362
  @media (max-width: 375px) {
310
363
  }
311
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
+ }