@neatui/css 3.3.13 → 3.4.1

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.
Files changed (2) hide show
  1. package/core/basic.scss +31 -48
  2. package/package.json +1 -1
package/core/basic.scss CHANGED
@@ -397,79 +397,62 @@ code,
397
397
  font-family: Menlo, Monaco, 'Courier New', monospace;
398
398
  }
399
399
 
400
- // 容器
401
- .box,
402
- .box-base {
403
- position: relative;
404
- width: 100%;
405
- max-width: 95rem;
406
- margin: 0 auto;
407
- }
408
- // 全屏的
409
400
  [layout='full'] {
410
401
  &,
411
402
  body {
412
403
  width: 100%;
413
404
  height: 100%;
414
- max-width: 100%;
415
405
  }
416
406
  }
407
+
417
408
  [layout='full'] {
418
409
  .box {
419
410
  width: 100%;
420
411
  max-width: 100%;
421
412
  }
422
413
  }
423
- // 宽阔的
424
- [layout='wide'] {
425
- .box {
426
- width: 96%;
427
- max-width: 100%;
428
- }
429
- }
430
- .box-wide {
414
+ // 容器
415
+ .box,
416
+ .box-base {
431
417
  position: relative;
418
+ width: 100%;
419
+ max-width: 94rem;
432
420
  margin: 0 auto;
433
- width: 96%;
421
+ }
422
+ .box-full,
423
+ [layout='full'] .box {
424
+ width: 100%;
434
425
  max-width: 100%;
435
426
  }
436
-
437
- [layout='full'] {
438
- .box {
439
- padding: 0;
440
- }
427
+ .box-wide,
428
+ [layout='wide'] .box {
429
+ width: 94%;
430
+ max-width: 100%;
441
431
  }
442
-
443
- [layout='slim'] {
444
- .box {
445
- width: 100%;
446
- max-width: 640px;
447
- padding: 0;
448
- }
432
+ .box-auto,
433
+ [layout='auto'] .box {
434
+ width: 76%;
435
+ max-width: 100%;
449
436
  }
450
- .box-slim {
451
- position: relative;
452
- margin: 0 auto;
437
+ .box-slim,
438
+ [layout='slim'] .box {
453
439
  width: 100%;
454
440
  max-width: 640px;
455
- padding: 0;
456
441
  }
457
442
 
458
- // 小于桌面时
459
- @include med('>pad') {
460
- // 自动的
461
- [layout='auto'] {
462
- .box {
463
- width: 80%;
464
- max-width: 100%;
465
- }
466
- }
443
+ .box-wide,
444
+ .box-auto,
445
+ .box-slim {
446
+ position: relative;
447
+ margin: 0 auto;
448
+ }
467
449
 
468
- .box-auto {
469
- position: relative;
470
- margin: 0 auto;
471
- width: 80%;
450
+ @include mob {
451
+ .box-base,
452
+ [layout] .box {
453
+ width: 100%;
472
454
  max-width: 100%;
455
+ padding: 0 4%;
473
456
  }
474
457
  }
475
458
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neatui/css",
3
- "version": "3.3.13",
3
+ "version": "3.4.1",
4
4
  "description": "neatui",
5
5
  "main": "./neatui.scss",
6
6
  "license": "MIT",