@neatui/css 3.3.12 → 3.4.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.
@@ -15,7 +15,8 @@
15
15
  top: 100%;
16
16
  left: 0;
17
17
  }
18
- &::after {
18
+ [ui-tips-arrow],
19
+ &[ui-tips-arrow~='true']::after {
19
20
  top: auto;
20
21
  right: 0.75em;
21
22
  bottom: -0.25em;
@@ -37,7 +38,8 @@
37
38
  top: 100%;
38
39
  left: 0;
39
40
  }
40
- &::after {
41
+ [ui-tips-arrow],
42
+ &[ui-tips-arrow~='true']::after {
41
43
  top: auto;
42
44
  right: auto;
43
45
  bottom: -0.25em;
@@ -60,7 +62,8 @@
60
62
  top: 100%;
61
63
  left: 0;
62
64
  }
63
- &::after {
65
+ [ui-tips-arrow],
66
+ &[ui-tips-arrow~='true']::after {
64
67
  top: auto;
65
68
  right: auto;
66
69
  bottom: -0.25em;
@@ -83,7 +86,8 @@
83
86
  top: 0;
84
87
  left: 100%;
85
88
  }
86
- &::after {
89
+ [ui-tips-arrow],
90
+ &[ui-tips-arrow~='true']::after {
87
91
  top: auto;
88
92
  right: -0.25em;
89
93
  bottom: 0.75em;
@@ -104,7 +108,8 @@
104
108
  top: 0;
105
109
  left: 100%;
106
110
  }
107
- &::after {
111
+ [ui-tips-arrow],
112
+ &[ui-tips-arrow~='true']::after {
108
113
  top: 50%;
109
114
  right: -0.25em;
110
115
  bottom: auto;
@@ -126,7 +131,8 @@
126
131
  top: 0;
127
132
  left: 100%;
128
133
  }
129
- &::after {
134
+ [ui-tips-arrow],
135
+ &[ui-tips-arrow~='true']::after {
130
136
  top: 0.75em;
131
137
  right: -0.25em;
132
138
  bottom: auto;
package/core/basic.scss CHANGED
@@ -396,80 +396,55 @@ code,
396
396
  .code {
397
397
  font-family: Menlo, Monaco, 'Courier New', monospace;
398
398
  }
399
-
399
+ [layout='full'] {
400
+ .box {
401
+ width: 100%;
402
+ max-width: 100%;
403
+ }
404
+ }
400
405
  // 容器
401
406
  .box,
402
407
  .box-base {
403
408
  position: relative;
404
409
  width: 100%;
405
- max-width: 95rem;
410
+ max-width: 94rem;
406
411
  margin: 0 auto;
412
+ padding: 0 2%;
407
413
  }
408
- // 全屏的
409
- [layout='full'] {
410
- &,
411
- body {
412
- width: 100%;
413
- height: 100%;
414
- max-width: 100%;
415
- }
416
- }
417
- [layout='full'] {
418
- .box {
419
- width: 100%;
420
- max-width: 100%;
421
- }
414
+ .box-full,
415
+ [layout='full'] .box {
416
+ width: 100%;
417
+ max-width: 100%;
422
418
  }
423
- // 宽阔的
424
- [layout='wide'] {
425
- .box {
426
- width: 96%;
427
- max-width: 100%;
428
- }
419
+ .box-wide,
420
+ [layout='wide'] .box {
421
+ width: 94%;
422
+ max-width: 100%;
429
423
  }
430
- .box-wide {
431
- position: relative;
432
- margin: 0 auto;
433
- width: 96%;
424
+ .box-auto,
425
+ [layout='auto'] .box {
426
+ width: 76%;
434
427
  max-width: 100%;
435
428
  }
436
-
437
- [layout='full'] {
438
- .box {
439
- padding: 0;
440
- }
429
+ .box-slim,
430
+ [layout='slim'] .box {
431
+ width: 100%;
432
+ max-width: 640px;
441
433
  }
442
434
 
443
- [layout='slim'] {
444
- .box {
445
- width: 100%;
446
- max-width: 640px;
447
- padding: 0;
448
- }
449
- }
435
+ .box-wide,
436
+ .box-auto,
450
437
  .box-slim {
451
438
  position: relative;
452
439
  margin: 0 auto;
453
- width: 100%;
454
- max-width: 640px;
455
- padding: 0;
456
440
  }
457
441
 
458
- // 小于桌面时
459
- @include med('>pad') {
460
- // 自动的
461
- [layout='auto'] {
462
- .box {
463
- width: 80%;
464
- max-width: 100%;
465
- }
466
- }
467
-
468
- .box-auto {
469
- position: relative;
470
- margin: 0 auto;
471
- width: 80%;
442
+ @include mob {
443
+ .box-base,
444
+ [layout] .box {
445
+ width: 100%;
472
446
  max-width: 100%;
447
+ padding: 0 4%;
473
448
  }
474
449
  }
475
450
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neatui/css",
3
- "version": "3.3.12",
3
+ "version": "3.4.0",
4
4
  "description": "neatui",
5
5
  "main": "./neatui.scss",
6
6
  "license": "MIT",