zhl-methods 1.1.17 → 2.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.
package/VERSION.md CHANGED
@@ -1,7 +1,11 @@
1
1
  # zhl-methods
2
2
 
3
- npm publish 发布命令
4
- 版本更新日志
3
+ ### npm 命令
4
+
5
+ npm login 登录
6
+ npm publish 发布
7
+
8
+ # 版本更新日志
5
9
 
6
10
  ### 1.1.17
7
11
 
@@ -0,0 +1,733 @@
1
+ /* ====== 布局 ====== */
2
+ /* -- flex弹性布局 -- */
3
+
4
+ .flex {
5
+ display: flex;
6
+ }
7
+ .flex-wrap {
8
+ flex-wrap: wrap;
9
+ }
10
+
11
+ .align-start {
12
+ align-items: flex-start;
13
+ }
14
+
15
+ .align-end {
16
+ align-items: flex-end;
17
+ }
18
+
19
+ .align-center {
20
+ align-items: center;
21
+ }
22
+
23
+ .align-stretch {
24
+ align-items: stretch;
25
+ }
26
+
27
+ .self-start {
28
+ align-self: flex-start;
29
+ }
30
+
31
+ .self-center {
32
+ align-self: flex-center;
33
+ }
34
+
35
+ .self-end {
36
+ align-self: flex-end;
37
+ }
38
+
39
+ .self-stretch {
40
+ align-self: stretch;
41
+ }
42
+
43
+ .align-stretch {
44
+ align-items: stretch;
45
+ }
46
+
47
+ .justify-start {
48
+ justify-content: flex-start;
49
+ }
50
+
51
+ .justify-end {
52
+ justify-content: flex-end;
53
+ }
54
+
55
+ .justify-center {
56
+ justify-content: center;
57
+ }
58
+
59
+ .justify-between {
60
+ justify-content: space-between;
61
+ }
62
+
63
+ .justify-around {
64
+ justify-content: space-around;
65
+ }
66
+
67
+ /* -- 内外边距 -- */
68
+ .margin-0 {
69
+ margin: 0;
70
+ }
71
+
72
+ .margin-xs {
73
+ margin: 10px;
74
+ }
75
+
76
+ .margin-sm {
77
+ margin: 20px;
78
+ }
79
+
80
+ .margin {
81
+ margin: 30px;
82
+ }
83
+
84
+ .margin-lg {
85
+ margin: 40px;
86
+ }
87
+
88
+ .margin-xl {
89
+ margin: 50px;
90
+ }
91
+
92
+ .margin-top-xs {
93
+ margin-top: 10px;
94
+ }
95
+
96
+ .margin-top-sm {
97
+ margin-top: 20px;
98
+ }
99
+
100
+ .margin-top {
101
+ margin-top: 30px;
102
+ }
103
+
104
+ .margin-top-lg {
105
+ margin-top: 40px;
106
+ }
107
+
108
+ .margin-top-xl {
109
+ margin-top: 50px;
110
+ }
111
+
112
+ .margin-right-xs {
113
+ margin-right: 10px;
114
+ }
115
+
116
+ .margin-right-sm {
117
+ margin-right: 20px;
118
+ }
119
+
120
+ .margin-right {
121
+ margin-right: 30px;
122
+ }
123
+
124
+ .margin-right-lg {
125
+ margin-right: 40px;
126
+ }
127
+
128
+ .margin-right-xl {
129
+ margin-right: 50px;
130
+ }
131
+
132
+ .margin-bottom-xs {
133
+ margin-bottom: 10px;
134
+ }
135
+
136
+ .margin-bottom-sm {
137
+ margin-bottom: 20px;
138
+ }
139
+
140
+ .margin-bottom {
141
+ margin-bottom: 30px;
142
+ }
143
+
144
+ .margin-bottom-lg {
145
+ margin-bottom: 40px;
146
+ }
147
+
148
+ .margin-bottom-xl {
149
+ margin-bottom: 50px;
150
+ }
151
+
152
+ .margin-left-xs {
153
+ margin-left: 10px;
154
+ }
155
+
156
+ .margin-left-sm {
157
+ margin-left: 20px;
158
+ }
159
+
160
+ .margin-left {
161
+ margin-left: 30px;
162
+ }
163
+
164
+ .margin-left-lg {
165
+ margin-left: 40px;
166
+ }
167
+
168
+ .margin-left-xl {
169
+ margin-left: 50px;
170
+ }
171
+
172
+ .margin-lr-xs {
173
+ margin-left: 10px;
174
+ margin-right: 10px;
175
+ }
176
+
177
+ .margin-lr-sm {
178
+ margin-left: 20px;
179
+ margin-right: 20px;
180
+ }
181
+
182
+ .margin-lr {
183
+ margin-left: 30px;
184
+ margin-right: 30px;
185
+ }
186
+
187
+ .margin-lr-lg {
188
+ margin-left: 40px;
189
+ margin-right: 40px;
190
+ }
191
+
192
+ .margin-lr-xl {
193
+ margin-left: 50px;
194
+ margin-right: 50px;
195
+ }
196
+
197
+ .margin-tb-xs {
198
+ margin-top: 10px;
199
+ margin-bottom: 10px;
200
+ }
201
+
202
+ .margin-tb-sm {
203
+ margin-top: 20px;
204
+ margin-bottom: 20px;
205
+ }
206
+
207
+ .margin-tb {
208
+ margin-top: 30px;
209
+ margin-bottom: 30px;
210
+ }
211
+
212
+ .margin-tb-lg {
213
+ margin-top: 40px;
214
+ margin-bottom: 40px;
215
+ }
216
+
217
+ .margin-tb-xl {
218
+ margin-top: 50px;
219
+ margin-bottom: 50px;
220
+ }
221
+
222
+ .padding-0 {
223
+ padding: 0;
224
+ }
225
+
226
+ .padding-xs {
227
+ padding: 10px;
228
+ }
229
+
230
+ .padding-sm {
231
+ padding: 20px;
232
+ }
233
+
234
+ .padding {
235
+ padding: 30px;
236
+ }
237
+
238
+ .padding-lg {
239
+ padding: 40px;
240
+ }
241
+
242
+ .padding-xl {
243
+ padding: 50px;
244
+ }
245
+
246
+ .padding-top-xs {
247
+ padding-top: 10px;
248
+ }
249
+
250
+ .padding-top-sm {
251
+ padding-top: 20px;
252
+ }
253
+
254
+ .padding-top {
255
+ padding-top: 30px;
256
+ }
257
+
258
+ .padding-top-lg {
259
+ padding-top: 40px;
260
+ }
261
+
262
+ .padding-top-xl {
263
+ padding-top: 50px;
264
+ }
265
+
266
+ .padding-right-xs {
267
+ padding-right: 10px;
268
+ }
269
+
270
+ .padding-right-sm {
271
+ padding-right: 20px;
272
+ }
273
+
274
+ .padding-right {
275
+ padding-right: 30px;
276
+ }
277
+
278
+ .padding-right-lg {
279
+ padding-right: 40px;
280
+ }
281
+
282
+ .padding-right-xl {
283
+ padding-right: 50px;
284
+ }
285
+
286
+ .padding-bottom-xs {
287
+ padding-bottom: 10px;
288
+ }
289
+
290
+ .padding-bottom-sm {
291
+ padding-bottom: 20px;
292
+ }
293
+
294
+ .padding-bottom {
295
+ padding-bottom: 30px;
296
+ }
297
+
298
+ .padding-bottom-lg {
299
+ padding-bottom: 40px;
300
+ }
301
+
302
+ .padding-bottom-xl {
303
+ padding-bottom: 50px;
304
+ }
305
+
306
+ .padding-left-xs {
307
+ padding-left: 10px;
308
+ }
309
+
310
+ .padding-left-sm {
311
+ padding-left: 20px;
312
+ }
313
+
314
+ .padding-left {
315
+ padding-left: 30px;
316
+ }
317
+
318
+ .padding-left-lg {
319
+ padding-left: 40px;
320
+ }
321
+
322
+ .padding-left-xl {
323
+ padding-left: 50px;
324
+ }
325
+
326
+ .padding-lr-xs {
327
+ padding-left: 10px;
328
+ padding-right: 10px;
329
+ }
330
+
331
+ .padding-lr-sm {
332
+ padding-left: 20px;
333
+ padding-right: 20px;
334
+ }
335
+
336
+ .padding-lr {
337
+ padding-left: 30px;
338
+ padding-right: 30px;
339
+ }
340
+
341
+ .padding-lr-lg {
342
+ padding-left: 40px;
343
+ padding-right: 40px;
344
+ }
345
+
346
+ .padding-lr-xl {
347
+ padding-left: 50px;
348
+ padding-right: 50px;
349
+ }
350
+
351
+ .padding-tb-xs {
352
+ padding-top: 10px;
353
+ padding-bottom: 10px;
354
+ }
355
+
356
+ .padding-tb-sm {
357
+ padding-top: 20px;
358
+ padding-bottom: 20px;
359
+ }
360
+
361
+ .padding-tb {
362
+ padding-top: 30px;
363
+ padding-bottom: 30px;
364
+ }
365
+
366
+ .padding-tb-lg {
367
+ padding-top: 40px;
368
+ padding-bottom: 40px;
369
+ }
370
+
371
+ .padding-tb-xl {
372
+ padding-top: 50px;
373
+ padding-bottom: 50px;
374
+ }
375
+
376
+ /* -- 浮动 -- */
377
+
378
+ .clear-both::after,
379
+ .clear-both::before {
380
+ content: " ";
381
+ display: table;
382
+ }
383
+
384
+ .clear-both::after {
385
+ clear: both;
386
+ }
387
+
388
+ .float-left {
389
+ float: left;
390
+ }
391
+
392
+ .float-right {
393
+ float: right;
394
+ }
395
+
396
+ /* ==================
397
+ 背景
398
+ ==================== */
399
+ .bg-red {
400
+ background-color: #e54d42;
401
+ color: #ffffff;
402
+ }
403
+
404
+ .bg-orange {
405
+ background-color: #f37b1d;
406
+ color: #ffffff;
407
+ }
408
+
409
+ .bg-yellow {
410
+ background-color: #fbbd08;
411
+ color: #333333;
412
+ }
413
+
414
+ .bg-olive {
415
+ background-color: #8dc63f;
416
+ color: #ffffff;
417
+ }
418
+
419
+ .bg-green {
420
+ background-color: #39b54a;
421
+ color: #ffffff;
422
+ }
423
+
424
+ .bg-cyan {
425
+ background-color: #1cbbb4;
426
+ color: #ffffff;
427
+ }
428
+
429
+ .bg-blue {
430
+ background-color: #0081ff;
431
+ color: #ffffff;
432
+ }
433
+
434
+ .bg-purple {
435
+ background-color: #6739b6;
436
+ color: #ffffff;
437
+ }
438
+
439
+ .bg-mauve {
440
+ background-color: #9c26b0;
441
+ color: #ffffff;
442
+ }
443
+
444
+ .bg-pink {
445
+ background-color: #e03997;
446
+ color: #ffffff;
447
+ }
448
+
449
+ .bg-brown {
450
+ background-color: #a5673f;
451
+ color: #ffffff;
452
+ }
453
+
454
+ .bg-grey {
455
+ background-color: #8799a3;
456
+ color: #ffffff;
457
+ }
458
+
459
+ .bg-gray {
460
+ background-color: #f0f0f0;
461
+ color: #333333;
462
+ }
463
+
464
+ .bg-black {
465
+ background-color: #333333;
466
+ color: #ffffff;
467
+ }
468
+
469
+ .bg-white {
470
+ background-color: #ffffff;
471
+ color: #666666;
472
+ }
473
+
474
+ .bg-shadeTop {
475
+ background-image: linear-gradient(rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.01));
476
+ color: #ffffff;
477
+ }
478
+
479
+ .bg-shadeBottom {
480
+ background-image: linear-gradient(rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 1));
481
+ color: #ffffff;
482
+ }
483
+
484
+ .bg-red.light {
485
+ color: #e54d42;
486
+ background-color: #fadbd9;
487
+ }
488
+
489
+ .bg-orange.light {
490
+ color: #f37b1d;
491
+ background-color: #fde6d2;
492
+ }
493
+
494
+ .bg-yellow.light {
495
+ color: #fbbd08;
496
+ background-color: #fef2ced2;
497
+ }
498
+
499
+ .bg-olive.light {
500
+ color: #8dc63f;
501
+ background-color: #e8f4d9;
502
+ }
503
+
504
+ .bg-green.light {
505
+ color: #39b54a;
506
+ background-color: #d7f0dbff;
507
+ }
508
+
509
+ .bg-cyan.light {
510
+ color: #1cbbb4;
511
+ background-color: #d2f1f0;
512
+ }
513
+
514
+ .bg-blue.light {
515
+ color: #0081ff;
516
+ background-color: #cce6ff;
517
+ }
518
+
519
+ .bg-purple.light {
520
+ color: #6739b6;
521
+ background-color: #e1d7f0;
522
+ }
523
+
524
+ .bg-mauve.light {
525
+ color: #9c26b0;
526
+ background-color: #ebd4ef;
527
+ }
528
+
529
+ .bg-pink.light {
530
+ color: #e03997;
531
+ background-color: #f9d7ea;
532
+ }
533
+
534
+ .bg-brown.light {
535
+ color: #a5673f;
536
+ background-color: #ede1d9;
537
+ }
538
+
539
+ .bg-grey.light {
540
+ color: #8799a3;
541
+ background-color: #e7ebed;
542
+ }
543
+
544
+ .bg-gradual-red {
545
+ background-image: linear-gradient(45deg, #f43f3b, #ec008c);
546
+ color: #ffffff;
547
+ }
548
+
549
+ .bg-gradual-orange {
550
+ background-image: linear-gradient(45deg, #ff9700, #ed1c24);
551
+ color: #ffffff;
552
+ }
553
+
554
+ .bg-gradual-green {
555
+ background-image: linear-gradient(45deg, #39b54a, #8dc63f);
556
+ color: #ffffff;
557
+ }
558
+
559
+ .bg-gradual-purple {
560
+ background-image: linear-gradient(45deg, #9000ff, #5e00ff);
561
+ color: #ffffff;
562
+ }
563
+
564
+ .bg-gradual-pink {
565
+ background-image: linear-gradient(45deg, #ec008c, #6739b6);
566
+ color: #ffffff;
567
+ }
568
+
569
+ .bg-gradual-blue {
570
+ background-image: linear-gradient(45deg, #0081ff, #1cbbb4);
571
+ color: #ffffff;
572
+ }
573
+ .bg-main-yellow {
574
+ background: #fecf3e;
575
+ color: #000;
576
+ }
577
+
578
+ .bg-img {
579
+ background-size: cover;
580
+ background-position: center;
581
+ background-repeat: no-repeat;
582
+ }
583
+
584
+ /* ==================
585
+ 文本
586
+ ==================== */
587
+
588
+ .text-xs {
589
+ font-size: 20px;
590
+ }
591
+
592
+ .text-sm {
593
+ font-size: 24px;
594
+ }
595
+
596
+ .text-df {
597
+ font-size: 28px;
598
+ }
599
+
600
+ .text-lg {
601
+ font-size: 32px;
602
+ }
603
+
604
+ .text-xl {
605
+ font-size: 36px;
606
+ }
607
+
608
+ .text-xxl {
609
+ font-size: 44px;
610
+ }
611
+
612
+ .text-sl {
613
+ font-size: 80px;
614
+ }
615
+
616
+ .text-xsl {
617
+ font-size: 120px;
618
+ }
619
+
620
+ .text-Abc {
621
+ text-transform: Capitalize;
622
+ }
623
+
624
+ .text-ABC {
625
+ text-transform: Uppercase;
626
+ }
627
+
628
+ .text-abc {
629
+ text-transform: Lowercase;
630
+ }
631
+
632
+ .text-price::before {
633
+ content: "¥";
634
+ font-size: 80%;
635
+ margin-right: 4px;
636
+ }
637
+
638
+ .text-nowrap {
639
+ /*溢出部分隐藏*/
640
+ overflow: hidden;
641
+ /*禁止换行*/
642
+ white-space: nowrap;
643
+ /*显示省略号*/
644
+ text-overflow: ellipsis;
645
+ }
646
+
647
+ .text-manyWrap {
648
+ /* 必须结合的属性 ,将对象作为弹性伸缩盒子模型显示 。*/
649
+ display: -webkit-box;
650
+ /* 必须结合的属性 ,设置或检索伸缩盒对象的子元素的排列方式 。*/
651
+ -webkit-box-orient: vertical;
652
+ /*要显示的行数*/
653
+ line-clamp: 3;
654
+ -webkit-line-clamp: 3;
655
+ /* 溢出部分隐藏 */
656
+ overflow: hidden;
657
+ }
658
+
659
+ .text-bold {
660
+ font-weight: bold;
661
+ }
662
+
663
+ .text-center {
664
+ text-align: center;
665
+ }
666
+
667
+ .text-left {
668
+ text-align: left;
669
+ }
670
+
671
+ .text-right {
672
+ text-align: right;
673
+ }
674
+
675
+ .text-red {
676
+ color: #e54d42;
677
+ }
678
+
679
+ .text-orange {
680
+ color: #f37b1d;
681
+ }
682
+
683
+ .text-yellow {
684
+ color: #fbbd08;
685
+ }
686
+
687
+ .text-olive {
688
+ color: #8dc63f;
689
+ }
690
+
691
+ .text-green {
692
+ color: #39b54a;
693
+ }
694
+
695
+ .text-cyan {
696
+ color: #1cbbb4;
697
+ }
698
+
699
+ .text-blue {
700
+ color: #0081ff;
701
+ }
702
+
703
+ .text-purple {
704
+ color: #6739b6;
705
+ }
706
+
707
+ .text-mauve {
708
+ color: #9c26b0;
709
+ }
710
+
711
+ .text-pink {
712
+ color: #e03997;
713
+ }
714
+
715
+ .text-brown {
716
+ color: #a5673f;
717
+ }
718
+
719
+ .text-grey {
720
+ color: #8799a3;
721
+ }
722
+
723
+ .text-gray {
724
+ color: #aaaaaa;
725
+ }
726
+
727
+ .text-black {
728
+ color: #333333;
729
+ }
730
+
731
+ .text-white {
732
+ color: #ffffff;
733
+ }