lism-css 0.13.1 → 0.14.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.
Files changed (44) hide show
  1. package/config/defaults/props.ts +8 -7
  2. package/config/defaults/tokens.ts +1 -1
  3. package/config/defaults/traits.ts +0 -1
  4. package/dist/components/Dummy/Dummy.d.ts +1 -1
  5. package/dist/components/Lism/Lism.stories.d.ts +1 -2
  6. package/dist/components/atomic/Decorator/Decorator.d.ts +0 -2
  7. package/dist/components/atomic/Icon/getProps.d.ts +1 -1
  8. package/dist/components/atomic/Icon/getProps.js +37 -37
  9. package/dist/components/index.d.ts +1 -1
  10. package/dist/config/default-config.d.ts +13 -9
  11. package/dist/config/defaults/props.d.ts +12 -7
  12. package/dist/config/defaults/props.js +10 -9
  13. package/dist/config/defaults/tokens.d.ts +1 -1
  14. package/dist/config/defaults/tokens.js +1 -1
  15. package/dist/config/defaults/traits.d.ts +0 -1
  16. package/dist/config/defaults/traits.js +3 -4
  17. package/dist/config/index.d.ts +26 -18
  18. package/dist/css/base/set.css +1 -1
  19. package/dist/css/base.css +1 -1
  20. package/dist/css/main.css +1 -1
  21. package/dist/css/main_no_layer.css +1 -1
  22. package/dist/css/primitives/layout.css +1 -1
  23. package/dist/css/primitives/trait.css +1 -1
  24. package/dist/css/props.css +1 -1
  25. package/dist/lib/getAtomicProps.d.ts +0 -3
  26. package/dist/lib/getAtomicProps.js +16 -18
  27. package/dist/lib/getLayoutProps.d.ts +0 -1
  28. package/dist/lib/getLismProps.d.ts +0 -3
  29. package/dist/lib/getLismProps.js +89 -106
  30. package/dist/lib/getMaybeTokenValue.js +20 -20
  31. package/dist/lib/types/AtomicProps.d.ts +0 -2
  32. package/dist/lib/types/TraitProps.d.ts +1 -1
  33. package/package.json +1 -1
  34. package/packages/astro/Dummy/Dummy.astro +1 -1
  35. package/packages/astro/index.ts +1 -1
  36. package/src/scss/_prop-config.scss +13 -6
  37. package/src/scss/base/_html.scss +1 -1
  38. package/src/scss/base/set/_bp.scss +2 -2
  39. package/src/scss/base/set/index.scss +1 -1
  40. package/src/scss/base/tokens/_tokens.scss +6 -7
  41. package/src/scss/primitives/layout/_fluidCols.scss +1 -1
  42. package/src/scss/primitives/layout/_sideMain.scss +1 -1
  43. package/src/scss/primitives/trait/index.scss +0 -1
  44. package/src/scss/primitives/trait/_vertical.scss +0 -9
@@ -1,144 +1,127 @@
1
- import { TRAITS as P, PROPS as m } from "../config/index.js";
1
+ import { TRAITS as C, PROPS as d } from "../config/index.js";
2
2
  import E from "./getLayoutProps.js";
3
3
  import V from "./getAtomicProps.js";
4
- import b from "./isPresetValue.js";
4
+ import P from "./isPresetValue.js";
5
5
  import x from "./isTokenValue.js";
6
- import p from "./getUtilKey.js";
7
- import y from "./getMaybeCssVar.js";
6
+ import S from "./getUtilKey.js";
7
+ import u from "./getMaybeCssVar.js";
8
8
  import w from "./getBpData.js";
9
9
  import A from "./helper/atts.js";
10
- import L from "./helper/isEmptyObj.js";
11
- import S from "./helper/filterEmptyObj.js";
12
- import U from "./helper/mergeSet.js";
13
- import O from "./helper/splitWithComma.js";
14
- const _ = (o) => {
15
- const s = m[o];
16
- return s && s?.token || "";
10
+ import _ from "./helper/isEmptyObj.js";
11
+ import p from "./helper/filterEmptyObj.js";
12
+ import b from "./helper/mergeSet.js";
13
+ import U from "./helper/splitWithComma.js";
14
+ const z = (n) => {
15
+ const i = d[n];
16
+ return i && i?.token || "";
17
17
  };
18
- function z(o, s) {
19
- if (!o) return "";
20
- if (!s) return o;
21
- const t = o.split(" ")[0];
22
- return `${o} ${t}--${s}`;
23
- }
24
- class T {
18
+ class L {
25
19
  // 最終出力 className
26
20
  className = "";
27
- // 出力順のためのクラスバケット: [lismClass] [primitiveClass] [uClasses]
28
- // - lismClass : c--* 基底クラス(variant BEM 展開の対象)
21
+ // 出力順のためのクラスバケット: [primitiveClass] [uClasses]
29
22
  // - primitiveClass : a--* / l--* / is--* の primitive クラス(getAtomicProps → getLayoutProps → analyzeTrait の順で push)
30
23
  // - uClasses : set--* → u--* → -property の順で push される utility クラス
31
- lismClass = "";
32
24
  primitiveClass = [];
33
25
  uClasses = [];
34
26
  styles = {};
35
27
  attrs = {};
36
28
  _propConfig;
37
- constructor(s) {
38
- const {
39
- forwardedRef: t,
40
- class: i,
41
- className: e,
42
- lismClass: l,
43
- primitiveClass: r,
44
- variant: n,
45
- style: c = {},
46
- _propConfig: d = {},
47
- ...a
48
- } = s;
49
- this.styles = { ...c }, this._propConfig = { ...d }, this.lismClass = z(l, n), r && r.length && (this.primitiveClass = [...r]), L(a) || (this.attrs = { ...a }, this.analyzeProps()), t && (this.attrs.ref = t), this.className = this.buildClassName(e, i);
29
+ constructor(i) {
30
+ const { forwardedRef: t, class: s, className: e, primitiveClass: l, style: r = {}, _propConfig: o = {}, ...c } = i;
31
+ this.styles = { ...r }, this._propConfig = { ...o }, l && l.length && (this.primitiveClass = [...l]), _(c) || (this.attrs = { ...c }, this.analyzeProps()), t && (this.attrs.ref = t), this.className = this.buildClassName(e, s);
50
32
  }
51
33
  // 最終クラス文字列の組み立て(出力順の唯一の確定地点)
52
- // 出力順: [user/astro className] [lismClass] [primitiveClass] [uClasses]
53
- buildClassName(s, t) {
54
- return A(s || t || void 0, this.lismClass, this.primitiveClass, this.uClasses);
34
+ // 出力順: [className&class] [primitiveClass] [uClasses]
35
+ // className と class が両方来た場合は両方マージする(atts 内で重複は除去される)。
36
+ buildClassName(i, t) {
37
+ return A(i, t, this.primitiveClass, this.uClasses);
55
38
  }
56
- analyzeTrait(s, t) {
57
- const { className: i, preset: e, presetClass: l, customVar: r, tokenKey: n } = s;
58
- t === !0 ? this.primitiveClass.push(i) : e && b(e, t) ? this.primitiveClass.push(`${i} ${l}:${String(t)}`) : t && (this.primitiveClass.push(i), n && r && this.addStyle(r, y(t, n)));
39
+ analyzeTrait(i, t) {
40
+ const { className: s, preset: e, presetClass: l, customVar: r, tokenKey: o } = i;
41
+ t === !0 ? this.primitiveClass.push(s) : e && P(e, t) ? this.primitiveClass.push(`${s} ${l}:${String(t)}`) : t && (this.primitiveClass.push(s), o && r && this.addStyle(r, u(t, o)));
59
42
  }
60
43
  // prop解析
61
44
  analyzeProps() {
62
- const s = this.extractProp("set"), t = this.extractProp("util");
63
- U(void 0, s).forEach((i) => this.addUtil(`set--${i}`)), U(void 0, t).forEach((i) => this.addUtil(`u--${i}`)), Object.keys(this.attrs).forEach((i) => {
64
- if (Object.hasOwn(P, i)) {
65
- const e = this.extractProp(i), l = P[i];
45
+ const i = this.extractProp("set"), t = this.extractProp("util");
46
+ b(void 0, i).forEach((s) => this.addUtil(`set--${s}`)), b(void 0, t).forEach((s) => this.addUtil(`u--${s}`)), Object.keys(this.attrs).forEach((s) => {
47
+ if (Object.hasOwn(C, s)) {
48
+ const e = this.extractProp(s), l = C[s];
66
49
  typeof l == "string" ? e && this.primitiveClass.push(l) : this.analyzeTrait(l, e);
67
- } else if (Object.hasOwn(m, i)) {
68
- const e = this.attrs[i];
69
- delete this.attrs[i], this.analyzeLismProp(i, e);
70
- } else if (i === "hov") {
71
- const e = this.extractProp(i);
50
+ } else if (Object.hasOwn(d, s)) {
51
+ const e = this.attrs[s];
52
+ delete this.attrs[s], this.analyzeLismProp(s, e);
53
+ } else if (s === "hov") {
54
+ const e = this.extractProp(s);
72
55
  this.setHovProps(e);
73
- } else if (i === "css") {
56
+ } else if (s === "css") {
74
57
  const e = this.extractProp("css");
75
58
  this.addStyles(e);
76
59
  }
77
60
  });
78
61
  }
79
62
  // Lism Prop 解析
80
- analyzeLismProp(s, t) {
63
+ analyzeLismProp(i, t) {
81
64
  if (t == null) return;
82
- let i = m[s] || null;
83
- if (i === null) return;
84
- this._propConfig?.[s] && (i = Object.assign({}, i, this._propConfig[s]));
65
+ let s = d[i] || null;
66
+ if (s === null) return;
67
+ this._propConfig?.[i] && (s = Object.assign({}, s, this._propConfig[i]));
85
68
  const { base: e, ...l } = w(t);
86
- this.setAttrs(s, e, i), Object.keys(l).forEach((r) => {
87
- i && this.setAttrs(s, l[r], i, r);
69
+ this.setAttrs(i, e, s), Object.keys(l).forEach((r) => {
70
+ s && this.setAttrs(i, l[r], s, r);
88
71
  });
89
72
  }
90
- addUtil(s) {
91
- this.uClasses.push(s);
73
+ addUtil(i) {
74
+ this.uClasses.push(i);
92
75
  }
93
- addUtils(s) {
94
- this.uClasses.push(...s);
76
+ addUtils(i) {
77
+ this.uClasses.push(...i);
95
78
  }
96
79
  // addState(state) {
97
80
  // this.stateClasses.push(state);
98
81
  // }
99
- addStyle(s, t) {
100
- this.styles[s] = t;
82
+ addStyle(i, t) {
83
+ this.styles[i] = t;
101
84
  }
102
- addStyles(s) {
103
- this.styles = { ...this.styles, ...s };
85
+ addStyles(i) {
86
+ this.styles = { ...this.styles, ...i };
104
87
  }
105
- addAttrs(s) {
106
- this.addStyles(s.styles || {}), this.addUtils(s.utils || []);
88
+ addAttrs(i) {
89
+ this.addStyles(i.styles || {}), this.addUtils(i.utils || []);
107
90
  }
108
- extractProp(s) {
109
- const t = this.attrs[s];
110
- return this.attrs[s] === void 0 ? null : (delete this.attrs[s], t);
91
+ extractProp(i) {
92
+ const t = this.attrs[i];
93
+ return this.attrs[i] === void 0 ? null : (delete this.attrs[i], t);
111
94
  }
112
- extractProps(s) {
95
+ extractProps(i) {
113
96
  const t = {};
114
- return s.forEach((i) => {
115
- this.attrs[i] !== void 0 && (t[i] = this.attrs[i], delete this.attrs[i]);
97
+ return i.forEach((s) => {
98
+ this.attrs[s] !== void 0 && (t[s] = this.attrs[s], delete this.attrs[s]);
116
99
  }), t;
117
100
  }
118
101
  // utilクラスを追加するか、styleにセットするかの分岐処理 @base
119
102
  // 値が null, undefined, '', false の時はスキップ
120
- setAttrs(s, t, i = {}, e = "") {
103
+ setAttrs(i, t, s = {}, e = "") {
121
104
  if (t == null || t === "" || t === !1) return;
122
- let l = `--${s}`, r = `-${String(i.utilKey || s)}`;
123
- if (e && (l = `--${s}_${e}`, r += `_${e}`), typeof t == "string" && t.startsWith(":")) {
105
+ let l = `--${i}`, r = `-${String(s.utilKey || i)}`;
106
+ if (e && (l = `--${i}_${e}`, r += `_${e}`), typeof t == "string" && t.startsWith(":")) {
124
107
  this.addUtil(`${r}:${t.replace(":", "")}`);
125
108
  return;
126
109
  }
127
110
  if (!e) {
128
- const { presets: g, tokenClass: j, utils: $, shorthands: C } = i;
129
- if (g && b(g, t)) {
130
- const u = typeof t == "string" || typeof t == "number" ? String(t) : "";
131
- u && this.addUtil(`${r}:${u}`);
111
+ const { presets: m, tokenClass: j, utils: g, shorthands: $ } = s;
112
+ if (m && P(m, t)) {
113
+ const h = typeof t == "string" || typeof t == "number" ? String(t) : "";
114
+ h && this.addUtil(`${r}:${h}`);
132
115
  return;
133
116
  }
134
- if (j && i.token && x(i.token, t)) {
135
- const u = typeof t == "string" || typeof t == "number" ? String(t) : "";
136
- u && this.addUtil(`${r}:${u}`);
117
+ if (j && s.token && x(s.token, t)) {
118
+ const h = typeof t == "string" || typeof t == "number" ? String(t) : "";
119
+ h && this.addUtil(`${r}:${h}`);
137
120
  return;
138
121
  }
139
- let h = "";
140
- if ($ && typeof t == "string" && (h = p($, t)), !h && C && typeof t == "string" && (h = p(C, t, !0)), h) {
141
- this.addUtil(`${r}:${h}`);
122
+ let a = "";
123
+ if (g && typeof t == "string" && (a = S(g, t)), !a && $ && typeof t == "string" && (a = S($, t, !0)), a) {
124
+ this.addUtil(`${r}:${a}`);
142
125
  return;
143
126
  }
144
127
  }
@@ -146,14 +129,14 @@ class T {
146
129
  this.addUtil(r);
147
130
  return;
148
131
  }
149
- const { prop: n, isVar: c, alwaysVar: d, token: a, bp: k } = i;
132
+ const { prop: o, isVar: c, alwaysVar: O, token: y, bp: k } = s;
150
133
  let f;
151
- if (a && (typeof t == "string" || typeof t == "number") ? f = y(t, a) : typeof t == "string" || typeof t == "number" ? f = t : f = JSON.stringify(t), !e) {
134
+ if (y && (typeof t == "string" || typeof t == "number") ? f = u(t, y) : typeof t == "string" || typeof t == "number" ? f = t : f = JSON.stringify(t), !e) {
152
135
  if (c) {
153
- this.addStyle(`--${s}`, f);
136
+ this.addStyle(`--${i}`, f);
154
137
  return;
155
- } else if (!k && !d) {
156
- this.addStyle(n, f);
138
+ } else if (!k && !O) {
139
+ this.addStyle(o, f);
157
140
  return;
158
141
  }
159
142
  }
@@ -172,40 +155,40 @@ class T {
172
155
  // this.addStyle(`--pass_${propName}`, value);
173
156
  // });
174
157
  // }
175
- setHovProps(s) {
176
- s && (s === "-" || s === !0 ? this.addUtil("-hov") : typeof s == "string" ? O(s).forEach((t) => {
158
+ setHovProps(i) {
159
+ i && (i === "-" || i === !0 ? this.addUtil("-hov") : typeof i == "string" ? U(i).forEach((t) => {
177
160
  this.addUtil(`-hov:${t}`);
178
- }) : typeof s == "object" && Object.keys(s).forEach((t) => {
179
- const i = s[t];
180
- if (!(i == null || i === "" || i === !1)) {
181
- if (i === "-" || i === !0)
161
+ }) : typeof i == "object" && Object.keys(i).forEach((t) => {
162
+ const s = i[t];
163
+ if (!(s == null || s === "" || s === !1)) {
164
+ if (s === "-" || s === !0)
182
165
  this.addUtil(`-hov:${t}`);
183
166
  else if (t === "class")
184
- O(i).forEach((e) => {
167
+ U(s).forEach((e) => {
185
168
  this.addUtil(`-hov:${e}`);
186
169
  });
187
- else if (typeof i == "string" || typeof i == "number") {
188
- const e = y(i, _(t));
170
+ else if (typeof s == "string" || typeof s == "number") {
171
+ const e = u(s, z(t));
189
172
  this.addUtil(`-hov:${t}`), this.addStyle(`--hov-${t}`, e);
190
173
  }
191
174
  }
192
175
  }));
193
176
  }
194
177
  }
195
- function Z(o) {
196
- if (Object.keys(o).length === 0)
178
+ function Y(n) {
179
+ if (Object.keys(n).length === 0)
197
180
  return {};
198
- const { atomic: s, layout: t, ...i } = o, e = V(s, i), l = E(t, e), r = new T(l);
181
+ const { atomic: i, layout: t, ...s } = n, e = V(i, s), l = E(t, e), r = new L(l);
199
182
  return {
200
- ...S({
183
+ ...p({
201
184
  className: r.className,
202
- style: S(r.styles)
185
+ style: p(r.styles)
203
186
  }),
204
187
  ...r.attrs
205
188
  // data-* などHTMLの標準属性はそのまま渡す
206
189
  };
207
190
  }
208
191
  export {
209
- T as LismPropsData,
210
- Z as default
192
+ L as LismPropsData,
193
+ Y as default
211
194
  };
@@ -1,25 +1,25 @@
1
- function a(n, t, f) {
2
- if (n === "color") {
3
- let e = a("c", t, f);
4
- return e === String(t) && (e = a("palette", t, f)), e;
1
+ function a(i, r, f) {
2
+ if (i === "color") {
3
+ let n = a("c", r, f);
4
+ return n === String(r) && (n = a("palette", r, f)), n;
5
5
  }
6
- const i = f[n];
7
- if (!i) return String(t);
8
- let r = typeof t == "number" ? `${t}` : t;
9
- if (i instanceof Set) {
10
- if (i.has(r))
11
- return r.startsWith("-") && (r = `n${r.slice(1)}`), `var(--${n}--${r})`;
12
- } else if (Array.isArray(i)) {
13
- if (i.includes(r))
14
- return r.startsWith("-") && (r = `n${r.slice(1)}`), `var(--${n}--${r})`;
15
- } else if ("pre" in i || "values" in i) {
16
- const { pre: e = "", values: s = [] } = i;
17
- if (s instanceof Set && s.has(r))
18
- return `var(${e}${r})`;
19
- if (Array.isArray(s) && s.includes(r))
20
- return `var(${e}${r})`;
6
+ const e = f[i];
7
+ if (!e) return String(r);
8
+ const t = typeof r == "number" ? `${r}` : r;
9
+ if (e instanceof Set) {
10
+ if (e.has(t))
11
+ return `var(--${i}--${t})`;
12
+ } else if (Array.isArray(e)) {
13
+ if (e.includes(t))
14
+ return `var(--${i}--${t})`;
15
+ } else if ("pre" in e || "values" in e) {
16
+ const { pre: n = "", values: s = [] } = e;
17
+ if (s instanceof Set && s.has(t))
18
+ return `var(${n}${t})`;
19
+ if (Array.isArray(s) && s.includes(t))
20
+ return `var(${n}${t})`;
21
21
  }
22
- return String(t);
22
+ return String(r);
23
23
  }
24
24
  export {
25
25
  a as default
@@ -11,8 +11,6 @@ export interface SpacerAtomicProps {
11
11
  export interface DecoratorAtomicProps {
12
12
  atomic: 'decorator';
13
13
  size?: CssValue;
14
- clipPath?: string;
15
- boxSizing?: string;
16
14
  }
17
15
  export interface IconAtomicProps {
18
16
  atomic: 'icon';
@@ -23,7 +23,7 @@ export type TraitProps = {
23
23
  [K in keyof TraitsConfig]?: ExtractTraitValue<TraitsConfig[K]>;
24
24
  };
25
25
  /** set prop で使われるプリセット値(エディタ補完用) */
26
- type SetPreset = 'gutter' | 'shadow' | 'hov' | 'transition' | 'mask' | 'plain' | 'innerRs' | 'bp';
26
+ type SetPreset = 'gutter' | 'shadow' | 'hov' | 'transition' | 'mask' | 'plain' | 'innerRs';
27
27
  /**
28
28
  * set prop の値の型。プリセット値がサジェストされつつ、任意の文字列も受け付ける。
29
29
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lism-css",
3
- "version": "0.13.1",
3
+ "version": "0.14.0",
4
4
  "description": "Lism CSS is a layout-first CSS framework for websites.",
5
5
  "author": {
6
6
  "name": "ddryo",
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  /**
3
- * @deprecated DummyText / DummyImage (@lism-css/ui) を使用してください。
3
+ * @deprecated DummyText (@lism-css/ui) を使用してください。
4
4
  */
5
5
  import { Lism } from '../Lism';
6
6
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
 
5
5
  export * from './Lism';
6
- /** @deprecated DummyText / DummyImage (@lism-css/ui) を使用してください */
6
+ /** @deprecated DummyText (@lism-css/ui) を使用してください */
7
7
  export * from './Dummy';
8
8
 
9
9
  // semantic wrappers
@@ -114,9 +114,9 @@ $props: (
114
114
  prop: 'opacity',
115
115
  utilities: (
116
116
  '0': '0',
117
- '-10': 'var(--o--n10)',
118
- '-20': 'var(--o--n20)',
119
- '-30': 'var(--o--n30)',
117
+ '-10': 'var(--o---10)',
118
+ '-20': 'var(--o---20)',
119
+ '-30': 'var(--o---30)',
120
120
  ),
121
121
  ),
122
122
  'v': (
@@ -818,13 +818,13 @@ $props: (
818
818
  '-1': '-1',
819
819
  ),
820
820
  ),
821
- 'ovwrap': (
821
+ 'ovw': (
822
822
  prop: 'overflow-wrap',
823
823
  utilities: (
824
824
  'anywhere': 'anywhere',
825
825
  ),
826
826
  ),
827
- 'whspace': (
827
+ 'whs': (
828
828
  prop: 'white-space',
829
829
  utilities: (
830
830
  'nowrap': 'nowrap',
@@ -843,10 +843,17 @@ $props: (
843
843
  'both': 'both',
844
844
  ),
845
845
  ),
846
- 'isolation': (
846
+ 'iso': (
847
847
  prop: 'isolation',
848
848
  utilities: (
849
849
  'isolate': 'isolate',
850
850
  ),
851
851
  ),
852
+ 'wm': (
853
+ prop: 'writing-mode',
854
+ utilities: (
855
+ 'vertical-rl': 'vertical-rl',
856
+ ),
857
+ bp: 1,
858
+ ),
852
859
  );
@@ -148,7 +148,7 @@ select,
148
148
  }
149
149
 
150
150
  :disabled {
151
- opacity: var(--o--n20);
151
+ opacity: var(--o---20);
152
152
  }
153
153
 
154
154
  /* --------------------------------------------------
@@ -1,8 +1,8 @@
1
1
  @use '../../query' as query;
2
2
 
3
- /*
3
+ /*
4
4
  * 特定のブレイクポイント以上でのみスタイルを適用させるためのハック変数を定義する
5
- * 👀: .is--vertical
5
+ * Memo: 現在import停止しコアから排除中。今後復活するかは要検討。
6
6
  */
7
7
  :root {
8
8
  --_is_sm: unset;
@@ -1,4 +1,4 @@
1
- @forward './bp';
1
+ // @forward './bp'; // Note: set--bp は無効化中。ファイルは参考用に残す
2
2
  @forward './hov';
3
3
  @forward './transition';
4
4
  @forward './mask';
@@ -18,7 +18,6 @@
18
18
  --sz--m: 56rem; // 読みやすいのが50文字程度。
19
19
  --sz--s: 42rem;
20
20
  --sz--xs: 32rem;
21
- --sz--min: 18rem; // 最低限維持したいコンテンツサイズの標準値。 sideMain等 で使用
22
21
 
23
22
  /**
24
23
  * カラーパレット
@@ -65,9 +64,9 @@
65
64
  /**
66
65
  * opacity
67
66
  */
68
- --o--n10: 0.75;
69
- --o--n20: 0.5;
70
- --o--n30: 0.25;
67
+ --o---10: 0.75;
68
+ --o---20: 0.5;
69
+ --o---30: 0.25;
71
70
 
72
71
  /**
73
72
  * border-radius
@@ -95,8 +94,8 @@
95
94
  --ar--og: 1.91/1;
96
95
 
97
96
  /**
98
- * Trait Primitive用の初期値
97
+ * サイトコンテンツの左右につける余白量
98
+ * Memo: -max-sz\:full などからも参照されるのでrootで定義している
99
99
  */
100
- --gutter-size: var(--s30); // サイトコンテンツの左右につける余白
101
- --vertical-mode: vertical-rl; // 縦書きモード
100
+ --gutter-size: var(--s30);
102
101
  }
@@ -2,7 +2,7 @@
2
2
  Memo: オーバーフロー回避のため、 min({cols}, 100%) とする。
3
3
  */
4
4
  .l--fluidCols {
5
- --cols: var(--sz--min);
5
+ --cols: 20rem;
6
6
  --autoMode: auto-fit;
7
7
  display: grid;
8
8
  grid-template-columns: repeat(var(--autoMode), minmax(min(var(--cols), 100%), 1fr));
@@ -4,7 +4,7 @@
4
4
  */
5
5
  .l--sideMain {
6
6
  --sideW: auto;
7
- --mainW: max(var(--sz--min), 50%);
7
+ --mainW: max(20rem, 50%);
8
8
  display: flex;
9
9
  flex-wrap: wrap;
10
10
 
@@ -4,4 +4,3 @@
4
4
  @forward './boxLink';
5
5
  @forward './coverLink'; // Note: position の関係で、boxLink より後で読み込む
6
6
  @forward './layer';
7
- @forward './vertical';
@@ -1,9 +0,0 @@
1
- .is--vertical {
2
- writing-mode: var(--vertical-mode);
3
- }
4
- .is--vertical\@sm {
5
- writing-mode: var(--_is_sm) var(--vertical-mode);
6
- }
7
- .is--vertical\@md {
8
- writing-mode: var(--_is_md) var(--vertical-mode);
9
- }