lism-css 0.7.1 → 0.7.2

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.
@@ -253,7 +253,7 @@ export default {
253
253
  presets: ['subgrid', 'liquid'],
254
254
  exUtility: {
255
255
  // repeat: { '--cols': '1', '--gtc': 'repeat(var(--cols), 1fr)' },
256
- liquid: { '--cols': 'var(--sz--min)', '--gtc': 'repeat(auto-fill, minmax(min(var(--cols), 100%), 1fr))' },
256
+ liquid: { '--cols': 'var(--sz--min)', '--gtc': 'repeat(auto-fit, minmax(min(var(--cols), 100%), 1fr))' },
257
257
  },
258
258
  bp: 1,
259
259
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lism-css",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "description": "A layout-first CSS framework for websites.",
5
5
  "author": {
6
6
  "name": "ddryo",
@@ -2,4 +2,4 @@
2
2
  import Lism from '../Lism/Lism.astro';
3
3
  ---
4
4
 
5
- <Lism tag='button' {...Astro.props}><slot /></Lism>
5
+ <Lism tag='button' setPlain {...Astro.props}><slot /></Lism>
@@ -197,8 +197,7 @@ $props: (
197
197
  'l': 'var(--sz--l)',
198
198
  'xl': 'var(--sz--xl)',
199
199
  ),
200
- exUtility: (
201
- ),
200
+ exUtility: (),
202
201
  ),
203
202
  'bg': (
204
203
  prop: 'background',
@@ -657,8 +656,7 @@ $props: (
657
656
  ),
658
657
  'gt': (
659
658
  prop: 'grid-template',
660
- utilities: (
661
- ),
659
+ utilities: (),
662
660
  exUtility: (
663
661
  'repeat': (
664
662
  'grid-template': 'repeat(var(--rows,1), 1fr) / repeat(var(--cols,1), 1fr)',
@@ -678,7 +676,7 @@ $props: (
678
676
  exUtility: (
679
677
  'liquid': (
680
678
  '--cols': 'var(--sz--min)',
681
- '--gtc': 'repeat(auto-fill, minmax(min(var(--cols), 100%), 1fr))',
679
+ '--gtc': 'repeat(auto-fit, minmax(min(var(--cols), 100%), 1fr))',
682
680
  ),
683
681
  ),
684
682
  bp: 1,
@@ -856,5 +854,4 @@ $props: (
856
854
  'isolate': 'isolate',
857
855
  ),
858
856
  ),
859
-
860
857
  );
@@ -75,7 +75,7 @@ h6 {
75
75
  ---------------------------------------- */
76
76
  // link
77
77
  @include mixin.maybe_where('a') {
78
- color: var(--c--link);
78
+ color: var(--link-c, var(--c--link));
79
79
  text-decoration: var(--link-td, underline);
80
80
  // text-underline-offset: var(--underline-offset, auto);
81
81
  // text-decoration-thickness: var(--underline-thickness, 1px);
@@ -28,6 +28,7 @@
28
28
  --translate: 0 0; // アニメーション用
29
29
  background-color: var(--c--base);
30
30
  transition: translate var(--duration);
31
+ max-height: 100%;
31
32
  }
32
33
 
33
34
  // .d--modal_body {
@@ -10,9 +10,12 @@
10
10
  isolation: isolate; // 内部のz-index順位と外部のz-indexを混同させない。
11
11
  }
12
12
 
13
- // リンクを全てクリック可能にしておく
14
- @include mixin.switch_selector('.is--linkBox > a', 'is--linkBox > :where(a)') {
15
- pointer-events: auto; // カードメディア内のタグラベルをクリックできるようにする場合などに必要
16
- position: relative; // isolation: isolate;
17
- z-index: 1;
13
+ // リンクをクリック可能にするためにz-indexあげる
14
+ .is--linkBox a {
15
+ z-index: 2; // .u-linkExpand::before + 1
18
16
  }
17
+
18
+ /* これをしてしまうと z-index 関係がややこしくなる。リンク以外のz-indexはデフォのままにする。 */
19
+ // .is--linkBox > * {
20
+ // z-index: 0;
21
+ // }
@@ -5,7 +5,7 @@
5
5
  --c: color-mix(in srgb, var(--c--text), var(--keycolor) var(--cbox-cPct, 40%));
6
6
  --bgc: color-mix(in srgb, var(--c--base), var(--keycolor) var(--cbox-bgPct, 5%));
7
7
  --bdc: var(--keycolor);
8
- --c--link: var(--keycolor);
8
+ --link-c: var(--keycolor); // --c--link を上書きすると、keycolorに --c--link が使えなくなる
9
9
  // --link-td: underline;
10
10
  color: var(--c);
11
11
  background-color: var(--bgc);
@@ -4,7 +4,7 @@
4
4
  &::before {
5
5
  position: absolute;
6
6
  inset: 0;
7
- z-index: 0;
7
+ z-index: 1;
8
8
  content: '';
9
9
  }
10
10
  }