lism-css 0.18.0 → 0.20.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.
@@ -61,11 +61,6 @@ $props: (
61
61
  exUtility: (
62
62
  ),
63
63
  ),
64
- 'hl': (
65
- prop: '--hl',
66
- bp: 1,
67
- isVar: 1,
68
- ),
69
64
  'lts': (
70
65
  prop: 'letter-spacing',
71
66
  utilities: (
@@ -74,6 +69,7 @@ $props: (
74
69
  'l': 'var(--lts--l)',
75
70
  'xl': 'var(--lts--xl)',
76
71
  ),
72
+ bp: 0,
77
73
  ),
78
74
  'ta': (
79
75
  prop: 'text-align',
@@ -108,7 +104,7 @@ $props: (
108
104
  'inline': 'inline',
109
105
  'inline-block': 'inline-block',
110
106
  ),
111
- bp: 1,
107
+ bp: lg,
112
108
  ),
113
109
  'o': (
114
110
  prop: 'opacity',
@@ -217,10 +213,6 @@ $props: (
217
213
  exUtility: (
218
214
  ),
219
215
  ),
220
- 'bg': (
221
- prop: 'background',
222
- bp: 1,
223
- ),
224
216
  'bgr': (
225
217
  prop: 'background-repeat',
226
218
  utilities: (
@@ -446,38 +438,22 @@ $props: (
446
438
  ),
447
439
  bp: 1,
448
440
  ),
449
- 'px-s': (
441
+ 'ps': (
450
442
  prop: 'padding-inline-start',
451
443
  bp: 1,
452
444
  ),
453
- 'px-e': (
445
+ 'pe': (
454
446
  prop: 'padding-inline-end',
455
447
  bp: 1,
456
448
  ),
457
- 'py-s': (
449
+ 'pbs': (
458
450
  prop: 'padding-block-start',
459
451
  bp: 1,
460
452
  ),
461
- 'py-e': (
453
+ 'pbe': (
462
454
  prop: 'padding-block-end',
463
455
  bp: 1,
464
456
  ),
465
- 'pl': (
466
- prop: 'padding-left',
467
- bp: 1,
468
- ),
469
- 'pr': (
470
- prop: 'padding-right',
471
- bp: 1,
472
- ),
473
- 'pt': (
474
- prop: 'padding-top',
475
- bp: 1,
476
- ),
477
- 'pb': (
478
- prop: 'padding-bottom',
479
- bp: 1,
480
- ),
481
457
  'm': (
482
458
  prop: 'margin',
483
459
  utilities: (
@@ -539,21 +515,21 @@ $props: (
539
515
  ),
540
516
  bp: 1,
541
517
  ),
542
- 'mx-s': (
518
+ 'ms': (
543
519
  prop: 'margin-inline-start',
544
520
  utilities: (
545
521
  'auto': 'auto',
546
522
  ),
547
523
  bp: 1,
548
524
  ),
549
- 'mx-e': (
525
+ 'me': (
550
526
  prop: 'margin-inline-end',
551
527
  utilities: (
552
528
  'auto': 'auto',
553
529
  ),
554
530
  bp: 1,
555
531
  ),
556
- 'my-s': (
532
+ 'mbs': (
557
533
  prop: 'margin-block-start',
558
534
  utilities: (
559
535
  '0': '0',
@@ -573,29 +549,13 @@ $props: (
573
549
  ),
574
550
  bp: 1,
575
551
  ),
576
- 'my-e': (
552
+ 'mbe': (
577
553
  prop: 'margin-block-end',
578
554
  utilities: (
579
555
  'auto': 'auto',
580
556
  ),
581
557
  bp: 1,
582
558
  ),
583
- 'ml': (
584
- prop: 'margin-left',
585
- bp: 1,
586
- ),
587
- 'mr': (
588
- prop: 'margin-right',
589
- bp: 1,
590
- ),
591
- 'mt': (
592
- prop: 'margin-top',
593
- bp: 1,
594
- ),
595
- 'mb': (
596
- prop: 'margin-bottom',
597
- bp: 1,
598
- ),
599
559
  'g': (
600
560
  prop: 'gap',
601
561
  utilities: (
@@ -618,19 +578,11 @@ $props: (
618
578
  'gap': 'inherit',
619
579
  ),
620
580
  ),
621
- bp: 1,
622
- ),
623
- 'cg': (
624
- prop: 'column-gap',
625
- bp: 1,
626
- ),
627
- 'rg': (
628
- prop: 'row-gap',
629
- bp: 1,
581
+ bp: lg,
630
582
  ),
631
583
  'cols': (
632
584
  prop: '--cols',
633
- bp: 1,
585
+ bp: lg,
634
586
  isVar: 1,
635
587
  ),
636
588
  'rows': (
@@ -683,21 +635,21 @@ $props: (
683
635
  ),
684
636
  'gta': (
685
637
  prop: 'grid-template-areas',
686
- bp: 1,
638
+ bp: lg,
687
639
  ),
688
640
  'gtc': (
689
641
  prop: 'grid-template-columns',
690
642
  utilities: (
691
643
  'subgrid': 'subgrid',
692
644
  ),
693
- bp: 1,
645
+ bp: lg,
694
646
  ),
695
647
  'gtr': (
696
648
  prop: 'grid-template-rows',
697
649
  utilities: (
698
650
  'subgrid': 'subgrid',
699
651
  ),
700
- bp: 1,
652
+ bp: lg,
701
653
  ),
702
654
  'gaf': (
703
655
  prop: 'grid-auto-flow',
@@ -712,21 +664,21 @@ $props: (
712
664
  utilities: (
713
665
  '1\\/1': '1 / 1',
714
666
  ),
715
- bp: 1,
667
+ bp: lg,
716
668
  ),
717
669
  'gc': (
718
670
  prop: 'grid-column',
719
671
  utilities: (
720
672
  '1\\/-1': '1 / -1',
721
673
  ),
722
- bp: 1,
674
+ bp: lg,
723
675
  ),
724
676
  'gr': (
725
677
  prop: 'grid-row',
726
678
  utilities: (
727
679
  '1\\/-1': '1 / -1',
728
680
  ),
729
- bp: 1,
681
+ bp: lg,
730
682
  ),
731
683
  'ai': (
732
684
  prop: 'align-items',
@@ -8,7 +8,7 @@ body {
8
8
  letter-spacing: var(--lts--base);
9
9
  background-color: var(--base);
10
10
  color: var(--text);
11
- text-underline-offset: var(--under-offset, 0.125em);
11
+ text-underline-offset: var(--under-offset, 0.25em);
12
12
  }
13
13
 
14
14
  /* --------------------------------------------------
@@ -71,6 +71,11 @@ kbd,
71
71
  var,
72
72
  samp {
73
73
  font-family: var(--ff--mono);
74
+ letter-spacing: normal;
75
+ }
76
+
77
+ :where(blockquote > p) + p {
78
+ margin-block-start: var(--s10);
74
79
  }
75
80
 
76
81
  q,
@@ -102,7 +107,7 @@ hr {
102
107
  // Property Class だけの ul/ol など、明示的に戻したい場合は `.set--revert` を付与する(base/set/_revert.scss)。
103
108
  :is(ul, ol):where(:not([class])) {
104
109
  list-style: revert;
105
- padding-inline-start: var(--list-px-s, 1.75em);
110
+ padding-inline-start: var(--list-ps, 1.75em);
106
111
  }
107
112
 
108
113
  dt {
@@ -2,5 +2,5 @@
2
2
  // set--revert 単体では何も適用されず、HTML要素と組み合わせて使う想定。現状は ul / ol のみ対象だが、ユーザーが a / button など他要素に対しても自由に使える。
3
3
  :is(ul, ol).set--revert {
4
4
  list-style: revert;
5
- padding-inline-start: var(--list-px-s, 1.75em);
5
+ padding-inline-start: var(--list-ps, 1.75em);
6
6
  }
@@ -41,7 +41,7 @@
41
41
  --blue: oklch(calc(var(--L) - 4%) calc(var(--C) + 0.01) 264);
42
42
  --purple: oklch(calc(var(--L) - 4%) calc(var(--C) + 0.01) 288);
43
43
  --pink: oklch(calc(var(--L) + 2%) calc(var(--C) + 0.01) 352);
44
- --gray: oklch(calc(var(--L) - 4%) 0.04 256);
44
+ --gray: oklch(calc(var(--L) - 4%) calc(var(--C) / 10) 240);
45
45
 
46
46
  /**
47
47
  * セマンティックカラー
@@ -66,6 +66,10 @@
66
66
  // shadow color
67
67
  --shadow: hsl(220 4% 8% / 12%);
68
68
 
69
+ // ライトモード・ダークモードのどちらでもブレンドして使えるようなニュートラルカラー。
70
+ // Memo: 黒からの変化の方がわかりづらいため、明るめにする。
71
+ --neutral: hsl(220, 2%, 80%);
72
+
69
73
  /**
70
74
  * opacity
71
75
  * 音楽の強弱記号(piano 系列)に由来。p の反復回数が多いほど透明度が増す。
@@ -94,4 +98,14 @@
94
98
  * Memo: -max-sz\:full などからも参照されるのでrootで定義している
95
99
  */
96
100
  --gutter-size: var(--s30);
101
+
102
+ /**
103
+ * コンテンツ間の余白バリエーションを定義
104
+ */
105
+ --flow--base: var(--s30);
106
+ --flow--s: var(--s20);
107
+ }
108
+
109
+ :root:where([lang='ja']) {
110
+ --flow--base: var(--s35);
97
111
  }
@@ -1,8 +1,4 @@
1
1
  .l--flow {
2
- // コンテンツ間の余白バリエーションを定義
3
- --flow--base: var(--s30);
4
- --flow--s: var(--s20);
5
-
6
2
  display: flow-root;
7
3
 
8
4
  > * + * {
@@ -34,10 +34,10 @@
34
34
  .-bd-y {
35
35
  border-block-style: var(--bds) #{mixin.$maybe_important};
36
36
  }
37
- .-bd-x-s {
37
+ .-bd-s {
38
38
  border-inline-start-style: var(--bds) #{mixin.$maybe_important};
39
39
  }
40
- .-bd-x-e {
40
+ .-bd-e {
41
41
  border-inline-end-style: var(--bds) #{mixin.$maybe_important};
42
42
  }
43
43
  .-bd-t {
@@ -52,9 +52,9 @@
52
52
  .-bd-r {
53
53
  border-right-style: var(--bds) #{mixin.$maybe_important};
54
54
  }
55
- .-bd-y-s {
55
+ .-bd-bs {
56
56
  border-block-start-style: var(--bds) #{mixin.$maybe_important};
57
57
  }
58
- .-bd-y-e {
58
+ .-bd-be {
59
59
  border-block-end-style: var(--bds) #{mixin.$maybe_important};
60
60
  }
@@ -11,7 +11,9 @@
11
11
  border-color: var(--hov-bdc, currentColor) #{mixin.$maybe_important};
12
12
  }
13
13
  .-hov\:-bgc:hover {
14
- background-color: var(--hov-bgc, var(--base-2)) #{mixin.$maybe_important};
14
+ // デフォルトでニュートラルグレーを配色し、背景色明るくても暗くても使えるようにしておく。
15
+ background-color: var(--hov-bgc, var(--hov-bgc--default, color-mix(in srgb, var(--bgc, var(--base)), var(--neutral) 25%)))
16
+ #{mixin.$maybe_important};
15
17
  }
16
18
  .-hov\:-o:hover {
17
19
  opacity: var(--hov-o, var(--o--p)) #{mixin.$maybe_important};
@@ -27,11 +29,6 @@
27
29
  .-hov\:underline:hover {
28
30
  text-decoration: underline;
29
31
  }
30
- // 背景色が暗くも明るくても使えるように、ニュートラルグレーを配色。
31
- // Memo: 黒からの変化の方がわかりづらいため、グレーの中でも少し明るめを混ぜる。
32
- .-hov\:neutral:hover {
33
- background-color: color-mix(in srgb, var(--bgc, var(--base)), hsl(220, 5%, 75%) 25%) #{mixin.$maybe_important};
34
- }
35
32
  }
36
33
 
37
34
  // ----------------------------------------