lism-css 0.10.1 → 0.10.3

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 (48) hide show
  1. package/README.ja.md +260 -0
  2. package/README.md +202 -17
  3. package/config/defaults/props.ts +6 -1
  4. package/config/defaults/tokens.ts +1 -1
  5. package/dist/components/Group/Group.d.ts +2 -1
  6. package/dist/components/Group/Group.stories.d.ts +7 -0
  7. package/dist/components/Heading/Heading.stories.d.ts +7 -0
  8. package/dist/components/Inline/Inline.d.ts +2 -1
  9. package/dist/components/Inline/Inline.stories.d.ts +9 -0
  10. package/dist/components/List/List.d.ts +2 -1
  11. package/dist/components/List/List.stories.d.ts +9 -0
  12. package/dist/components/List/ListItem.d.ts +2 -1
  13. package/dist/components/Text/Text.d.ts +2 -1
  14. package/dist/components/Text/Text.stories.d.ts +6 -0
  15. package/dist/components/atomic/Media/Media.d.ts +2 -1
  16. package/dist/components/atomic/Media/Media.stories.d.ts +3 -0
  17. package/dist/components/atomic/Media/index.js +5 -5
  18. package/dist/config/default-config.d.ts +2 -1
  19. package/dist/config/defaults/props.d.ts +1 -0
  20. package/dist/config/defaults/props.js +6 -1
  21. package/dist/config/defaults/tokens.d.ts +1 -1
  22. package/dist/config/defaults/tokens.js +1 -1
  23. package/dist/config/index.d.ts +4 -2
  24. package/dist/css/base/set.css +1 -1
  25. package/dist/css/base.css +1 -1
  26. package/dist/css/main.css +1 -1
  27. package/dist/css/main_no_layer.css +1 -1
  28. package/dist/css/props.css +1 -1
  29. package/dist/lib/types/allowedTags.d.ts +6 -0
  30. package/package.json +1 -1
  31. package/packages/astro/Group/Group.astro +3 -2
  32. package/packages/astro/Inline/Inline.astro +3 -2
  33. package/packages/astro/List/List.astro +3 -2
  34. package/packages/astro/List/ListItem.astro +3 -2
  35. package/packages/astro/Media/Media.astro +11 -6
  36. package/packages/astro/Text/Text.astro +3 -2
  37. package/packages/astro/types/MediaPolymorphic.ts +51 -0
  38. package/src/scss/_prop-config.scss +9 -3
  39. package/src/scss/_setting.scss +0 -1
  40. package/src/scss/base/_html.scss +61 -65
  41. package/src/scss/base/index.scss +1 -1
  42. package/src/scss/base/set/_bp.scss +4 -1
  43. package/src/scss/base/set/_cqUnit.scss +8 -12
  44. package/src/scss/base/tokens/_shadow.scss +4 -4
  45. package/src/scss/base/tokens/_tokens.scss +46 -49
  46. package/src/scss/base/tokens/_typography.scss +46 -67
  47. package/src/scss/reset.scss +34 -43
  48. package/src/scss/base/tokens/_property.scss +0 -21
@@ -1,23 +1,18 @@
1
- /* ------------------------------------------------------------
2
- 方針:
3
- できるだけブラウザの標準スタイルに従いながら、レイアウト崩れを防止し、最低限のアクセシビリティの確保する。
4
- 文書構造を壊して読みづらくなるようなスタイルリセットはしない。
1
+ /*
2
+ 方針:
3
+ できるだけブラウザの標準スタイルに従いながら、レイアウト崩れを防止し、最低限のアクセシビリティの確保する。
4
+ 文書構造を壊して読みづらくなるようなスタイルリセットはしない。
5
+ @layer で優先度を下げる。
6
+
7
+ 参考:
8
+ https://gist.github.com/EllyLoel/4ff8a6472247e6dd2315fd4038926522
9
+ https://keithjgrant.com/posts/2024/01/my-css-resets/
10
+ https://www.joshwcomeau.com/css/custom-css-reset/
11
+ https://piccalil.li/blog/a-modern-css-reset/
12
+ https://codepen.io/argyleink/pen/KKvRORE
13
+ */
5
14
 
6
-
7
- 参考:
8
- https://gist.github.com/EllyLoel/4ff8a6472247e6dd2315fd4038926522
9
- https://keithjgrant.com/posts/2024/01/my-css-resets/
10
- https://www.joshwcomeau.com/css/custom-css-reset/
11
- https://piccalil.li/blog/a-modern-css-reset/
12
- https://codepen.io/argyleink/pen/KKvRORE
13
-
14
- ------------------------------------------------------------ */
15
-
16
- /* @layer で 優先度を下げる */
17
15
  @layer reset {
18
- /* ------------------------------------------------------------
19
- Universal
20
- ------------------------------------------------------------ */
21
16
  *,
22
17
  ::before,
23
18
  ::after {
@@ -25,23 +20,20 @@
25
20
  box-sizing: border-box;
26
21
  }
27
22
 
28
- /*
29
- - margin は dialog以外 0 にリセット
30
- - padding はそのままにする
31
- */
23
+ /* margin は(dialog以外)全て 0 にリセットする (padding はリセットしない) */
32
24
  *:not(dialog) {
33
25
  margin: 0;
34
26
  }
35
27
 
36
- /* ------------------------------------------------------------
37
- Documents
38
- ------------------------------------------------------------ */
28
+ /* --------------------------------------------------
29
+ Documents
30
+ -------------------------------------------------- */
39
31
  html {
40
- /* iOSで横向きにした時のフォントサイズ自動調節をオフにする. */
32
+ /* iOSで横向きにした時のフォントサイズ自動調節をオフにする */
41
33
  -webkit-text-size-adjust: none;
42
34
  text-size-adjust: none;
43
35
 
44
- /* 文章の折り返し指定 see: https://ics.media/entry/240411/ */
36
+ /* 文章の折り返し指定 🔗:https://ics.media/entry/240411/ */
45
37
  word-break: normal; /* 単語の分割はデフォルトに依存 */
46
38
  line-break: strict; /* 禁則処理を厳格に適用 */
47
39
  overflow-wrap: anywhere; /* 収まらない場合に折り返す */
@@ -66,9 +58,9 @@
66
58
  min-height: 100dvh;
67
59
  }
68
60
 
69
- /* ------------------------------------------------------------
70
- Texts
71
- ------------------------------------------------------------ */
61
+ /* --------------------------------------------------
62
+ Texts
63
+ -------------------------------------------------- */
72
64
  abbr[title] {
73
65
  /* Safar で アンダーラインが出ないので明示的に指定して統一する */
74
66
  text-decoration: underline;
@@ -87,10 +79,9 @@
87
79
  padding: 0;
88
80
  }
89
81
 
90
- /* ------------------------------------------------------------
91
- Medias
92
- ------------------------------------------------------------ */
93
-
82
+ /* --------------------------------------------------
83
+ Medias
84
+ -------------------------------------------------- */
94
85
  svg,
95
86
  img,
96
87
  video,
@@ -115,9 +106,9 @@
115
106
  border: none;
116
107
  }
117
108
 
118
- /* ------------------------------------------------------------
119
- Form Fields
120
- ------------------------------------------------------------ */
109
+ /* --------------------------------------------------
110
+ Form Fields
111
+ -------------------------------------------------- */
121
112
  input,
122
113
  button,
123
114
  textarea,
@@ -142,9 +133,9 @@
142
133
  max-inline-size: 100%;
143
134
  }
144
135
 
145
- /* ------------------------------------------------------------
146
- cursor 初期セット
147
- ------------------------------------------------------------ */
136
+ /* --------------------------------------------------
137
+ cursor 初期セット
138
+ -------------------------------------------------- */
148
139
  label[for],
149
140
  select,
150
141
  summary,
@@ -171,9 +162,9 @@
171
162
  cursor: not-allowed;
172
163
  }
173
164
 
174
- /* ------------------------------------------------------------
175
- その他
176
- ------------------------------------------------------------ */
165
+ /* --------------------------------------------------
166
+ その他
167
+ -------------------------------------------------- */
177
168
  [hidden='until-found'] {
178
169
  /* 意図せず他の要素の上にかぶってしまうのを防ぐ (until-found は stacking context を生成する) */
179
170
  z-index: -1;
@@ -1,21 +0,0 @@
1
- // @property が使える環境であればコンテナのさらに親要素の幅を参照できるので、containerを1段階飛び出せる。
2
- // cqi を算出値で保持するために登録済みカスタムプロパティとして定義
3
- // --parent-cq
4
- @property --sz--container {
5
- syntax: '<length-percentage>';
6
- initial-value: 100cqi;
7
- inherits: true;
8
- }
9
-
10
- // :lang(ja) {
11
- // --hl: calc((1lh - 1em) / 2);
12
- // }
13
- // :lang(en) {
14
- // --hl: calc((1lh - 1cap) / 2);
15
- // }
16
- // lh非サポートブラウザ用のフォールバック
17
- // @supports not (gap: 1lh) {
18
- // :root {
19
- // --HL: 0px;
20
- // }
21
- // }