@subroh0508/marp-theme-canvas 0.1.2 → 0.2.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 (104) hide show
  1. package/README.ja.md +9 -9
  2. package/README.md +9 -9
  3. package/css/black-canvas/common-layout/columns.css +173 -0
  4. package/css/black-canvas/component/hr.css +12 -0
  5. package/css/{white-canvas/element → black-canvas/decorator}/hr.css +0 -13
  6. package/css/black-canvas.css +13 -13
  7. package/css/white-canvas/common-layout/columns.css +173 -0
  8. package/css/white-canvas/component/hr.css +12 -0
  9. package/css/{black-canvas/element → white-canvas/decorator}/hr.css +0 -13
  10. package/css/white-canvas.css +13 -13
  11. package/package.json +12 -9
  12. package/scss/black-canvas/{component → common-layout}/columns.scss +1 -1
  13. package/scss/black-canvas/{element → component}/blockquote.scss +1 -1
  14. package/scss/black-canvas/{element → component}/code.scss +1 -1
  15. package/scss/black-canvas/{element → component}/heading.scss +1 -1
  16. package/scss/black-canvas/{element → component}/hr.scss +1 -1
  17. package/scss/black-canvas/{element → component}/link.scss +1 -1
  18. package/scss/black-canvas/{element → component}/list.scss +1 -1
  19. package/scss/black-canvas/{element → component}/paragraph.scss +1 -1
  20. package/scss/black-canvas/{element → component}/prettylights/dark.scss +1 -1
  21. package/scss/black-canvas/{element → component}/table.scss +1 -1
  22. package/scss/black-canvas/{element → component}/text-decorator.scss +1 -1
  23. package/scss/black-canvas/decorator/hr.scss +9 -0
  24. package/scss/black-canvas/{pattern → slide-pattern}/agenda.scss +1 -1
  25. package/scss/black-canvas/{pattern → slide-pattern}/display.scss +1 -1
  26. package/scss/black-canvas/{pattern → slide-pattern}/section.scss +1 -1
  27. package/scss/black-canvas/{pattern → slide-pattern}/title.scss +1 -1
  28. package/scss/black-canvas/{pattern → slide-pattern}/toc.scss +1 -1
  29. package/scss/black-canvas.scss +20 -19
  30. package/scss/canvas/CLAUDE.md +4 -3
  31. package/scss/canvas/_index.scss +23 -22
  32. package/scss/canvas/common-layout/CLAUDE.md +42 -0
  33. package/scss/canvas/component/CLAUDE.md +15 -10
  34. package/scss/canvas/component/_hr.scss +22 -0
  35. package/scss/canvas/{element → component}/prettylights/CLAUDE.md +1 -1
  36. package/scss/canvas/decorator/CLAUDE.md +41 -0
  37. package/scss/canvas/decorator/_hr.scss +26 -0
  38. package/scss/canvas/{pattern → slide-pattern}/CLAUDE.md +1 -1
  39. package/scss/white-canvas/{component → common-layout}/columns.scss +1 -1
  40. package/scss/white-canvas/{element → component}/blockquote.scss +1 -1
  41. package/scss/white-canvas/{element → component}/code.scss +1 -1
  42. package/scss/white-canvas/{element → component}/heading.scss +1 -1
  43. package/scss/white-canvas/{element → component}/hr.scss +1 -1
  44. package/scss/white-canvas/{element → component}/link.scss +1 -1
  45. package/scss/white-canvas/{element → component}/list.scss +1 -1
  46. package/scss/white-canvas/{element → component}/paragraph.scss +1 -1
  47. package/scss/white-canvas/{element → component}/prettylights/light.scss +1 -1
  48. package/scss/white-canvas/{element → component}/table.scss +1 -1
  49. package/scss/white-canvas/{element → component}/text-decorator.scss +1 -1
  50. package/scss/white-canvas/decorator/hr.scss +9 -0
  51. package/scss/white-canvas/{pattern → slide-pattern}/agenda.scss +1 -1
  52. package/scss/white-canvas/{pattern → slide-pattern}/display.scss +1 -1
  53. package/scss/white-canvas/{pattern → slide-pattern}/section.scss +1 -1
  54. package/scss/white-canvas/{pattern → slide-pattern}/title.scss +1 -1
  55. package/scss/white-canvas/{pattern → slide-pattern}/toc.scss +1 -1
  56. package/scss/white-canvas.scss +20 -19
  57. package/scss/canvas/element/CLAUDE.md +0 -52
  58. package/scss/canvas/element/_hr.scss +0 -36
  59. /package/css/black-canvas/{element → component}/blockquote.css +0 -0
  60. /package/css/black-canvas/{element → component}/code.css +0 -0
  61. /package/css/black-canvas/{element → component}/heading.css +0 -0
  62. /package/css/black-canvas/{element → component}/link.css +0 -0
  63. /package/css/black-canvas/{element → component}/list.css +0 -0
  64. /package/css/black-canvas/{element → component}/paragraph.css +0 -0
  65. /package/css/black-canvas/{element → component}/prettylights/dark.css +0 -0
  66. /package/css/black-canvas/{element → component}/table.css +0 -0
  67. /package/css/black-canvas/{element → component}/text-decorator.css +0 -0
  68. /package/css/black-canvas/{pattern → slide-pattern}/agenda.css +0 -0
  69. /package/css/black-canvas/{pattern → slide-pattern}/display.css +0 -0
  70. /package/css/black-canvas/{pattern → slide-pattern}/section.css +0 -0
  71. /package/css/black-canvas/{pattern → slide-pattern}/title.css +0 -0
  72. /package/css/black-canvas/{pattern → slide-pattern}/toc.css +0 -0
  73. /package/css/white-canvas/{element → component}/blockquote.css +0 -0
  74. /package/css/white-canvas/{element → component}/code.css +0 -0
  75. /package/css/white-canvas/{element → component}/heading.css +0 -0
  76. /package/css/white-canvas/{element → component}/link.css +0 -0
  77. /package/css/white-canvas/{element → component}/list.css +0 -0
  78. /package/css/white-canvas/{element → component}/paragraph.css +0 -0
  79. /package/css/white-canvas/{element → component}/prettylights/light.css +0 -0
  80. /package/css/white-canvas/{element → component}/table.css +0 -0
  81. /package/css/white-canvas/{element → component}/text-decorator.css +0 -0
  82. /package/css/white-canvas/{pattern → slide-pattern}/agenda.css +0 -0
  83. /package/css/white-canvas/{pattern → slide-pattern}/display.css +0 -0
  84. /package/css/white-canvas/{pattern → slide-pattern}/section.css +0 -0
  85. /package/css/white-canvas/{pattern → slide-pattern}/title.css +0 -0
  86. /package/css/white-canvas/{pattern → slide-pattern}/toc.css +0 -0
  87. /package/scss/canvas/{component → common-layout}/_columns.scss +0 -0
  88. /package/scss/canvas/{element → component}/_blockquote.scss +0 -0
  89. /package/scss/canvas/{element → component}/_code.scss +0 -0
  90. /package/scss/canvas/{element → component}/_heading.scss +0 -0
  91. /package/scss/canvas/{element → component}/_link.scss +0 -0
  92. /package/scss/canvas/{element → component}/_list.scss +0 -0
  93. /package/scss/canvas/{element → component}/_paragraph.scss +0 -0
  94. /package/scss/canvas/{element → component}/_table.scss +0 -0
  95. /package/scss/canvas/{element → component}/_text-decorator.scss +0 -0
  96. /package/scss/canvas/{element → component}/prettylights/_base.scss +0 -0
  97. /package/scss/canvas/{element → component}/prettylights/_dark.scss +0 -0
  98. /package/scss/canvas/{element → component}/prettylights/_index.scss +0 -0
  99. /package/scss/canvas/{element → component}/prettylights/_light.scss +0 -0
  100. /package/scss/canvas/{pattern → slide-pattern}/_agenda.scss +0 -0
  101. /package/scss/canvas/{pattern → slide-pattern}/_display.scss +0 -0
  102. /package/scss/canvas/{pattern → slide-pattern}/_section.scss +0 -0
  103. /package/scss/canvas/{pattern → slide-pattern}/_title.scss +0 -0
  104. /package/scss/canvas/{pattern → slide-pattern}/_toc.scss +0 -0
package/README.ja.md CHANGED
@@ -207,14 +207,14 @@ Canvasのスタイルはモジュール化されており、独自テーマ作
207
207
  scss/
208
208
  ├── canvas/ # ベースmixin(@useでインポート可能)
209
209
  │ ├── token/ # デザイントークン(色、タイポグラフィ)
210
- │ ├── element/ # HTML要素スタイル(見出し、テーブル、コード等)
211
- │ ├── component/ # 複合コンポーネント(セクション、ヘッダー、フッター等)
212
- └── pattern/ # ページレイアウトパターン(タイトル、目次、アジェンダ等)
210
+ │ ├── component/ # HTML要素単体・組み合わせのスタイル(見出し、テーブル、コード、セクション等)
211
+ │ ├── common-layout/ # 複数のslide-patternから参照される再利用可能なレイアウト定義
212
+ ├── decorator/ # 明示的なクラス指定が必要な装飾スタイル
213
+ │ └── slide-pattern/ # ページレイアウトパターン(タイトル、目次、アジェンダ等)
213
214
  ├── white-canvas/ # ライトテーマ設定
214
215
  │ ├── token/ # テーマ固有のトークン
215
- │ ├── element/ # 要素の設定
216
216
  │ ├── component/ # コンポーネントの設定
217
- │ └── pattern/ # パターンの設定
217
+ │ └── slide-pattern/ # スライドパターンの設定
218
218
  ├── black-canvas/ # ダークテーマ設定
219
219
  │ └── (white-canvasと同じ構造)
220
220
  ├── white-canvas.scss # ライトテーマのエントリーポイント
@@ -231,9 +231,9 @@ scss/
231
231
  */
232
232
 
233
233
  // ベースmixinをインポート
234
- @use '@subroh0508/marp-theme-canvas/scss/canvas/element/heading' as heading;
234
+ @use '@subroh0508/marp-theme-canvas/scss/canvas/component/heading' as heading;
235
235
  @use '@subroh0508/marp-theme-canvas/scss/canvas/component/section' as section;
236
- @use '@subroh0508/marp-theme-canvas/scss/canvas/pattern/title' as title;
236
+ @use '@subroh0508/marp-theme-canvas/scss/canvas/slide-pattern/title' as title;
237
237
 
238
238
  // Google Fonts
239
239
  @import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700;900&display=swap');
@@ -281,7 +281,7 @@ scss/
281
281
 
282
282
  ```scss
283
283
  // テーマ設定ファイルをインポート
284
- @use '@subroh0508/marp-theme-canvas/scss/white-canvas/element/heading';
284
+ @use '@subroh0508/marp-theme-canvas/scss/white-canvas/component/heading';
285
285
  @use '@subroh0508/marp-theme-canvas/scss/white-canvas/component/section';
286
286
  ```
287
287
 
@@ -293,7 +293,7 @@ import '@subroh0508/marp-theme-canvas/white-canvas.css'
293
293
  import '@subroh0508/marp-theme-canvas/black-canvas.css'
294
294
 
295
295
  // 個別のCSSモジュールをインポート
296
- import '@subroh0508/marp-theme-canvas/white-canvas/element/heading.css'
296
+ import '@subroh0508/marp-theme-canvas/white-canvas/component/heading.css'
297
297
  ```
298
298
 
299
299
  ## 開発
package/README.md CHANGED
@@ -207,14 +207,14 @@ Canvas styles are modularized and can be imported individually when creating cus
207
207
  scss/
208
208
  ├── canvas/ # Base mixins (importable via @use)
209
209
  │ ├── token/ # Design tokens (color, typography)
210
- │ ├── element/ # HTML element styles (heading, table, code, etc.)
211
- │ ├── component/ # Composite components (section, header, footer, etc.)
212
- └── pattern/ # Page layout patterns (title, toc, agenda, etc.)
210
+ │ ├── component/ # Styles for HTML elements and their combinations (heading, table, code, section, etc.)
211
+ │ ├── common-layout/ # Reusable layout definitions referenced by multiple slide patterns
212
+ ├── decorator/ # Decorative styles requiring explicit class specification
213
+ │ └── slide-pattern/ # Page layout patterns (title, toc, agenda, etc.)
213
214
  ├── white-canvas/ # Light theme configuration
214
215
  │ ├── token/ # Theme-specific tokens
215
- │ ├── element/ # Element configurations
216
216
  │ ├── component/ # Component configurations
217
- │ └── pattern/ # Pattern configurations
217
+ │ └── slide-pattern/ # Slide pattern configurations
218
218
  ├── black-canvas/ # Dark theme configuration
219
219
  │ └── (same structure as white-canvas)
220
220
  ├── white-canvas.scss # Light theme entry point
@@ -231,9 +231,9 @@ Import base mixins from `canvas/` to create custom themes:
231
231
  */
232
232
 
233
233
  // Import base mixins
234
- @use '@subroh0508/marp-theme-canvas/scss/canvas/element/heading' as heading;
234
+ @use '@subroh0508/marp-theme-canvas/scss/canvas/component/heading' as heading;
235
235
  @use '@subroh0508/marp-theme-canvas/scss/canvas/component/section' as section;
236
- @use '@subroh0508/marp-theme-canvas/scss/canvas/pattern/title' as title;
236
+ @use '@subroh0508/marp-theme-canvas/scss/canvas/slide-pattern/title' as title;
237
237
 
238
238
  // Google Fonts
239
239
  @import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700;900&display=swap');
@@ -281,7 +281,7 @@ You can also import pre-configured theme files:
281
281
 
282
282
  ```scss
283
283
  // Import theme configuration files
284
- @use '@subroh0508/marp-theme-canvas/scss/white-canvas/element/heading';
284
+ @use '@subroh0508/marp-theme-canvas/scss/white-canvas/component/heading';
285
285
  @use '@subroh0508/marp-theme-canvas/scss/white-canvas/component/section';
286
286
  ```
287
287
 
@@ -293,7 +293,7 @@ import '@subroh0508/marp-theme-canvas/white-canvas.css'
293
293
  import '@subroh0508/marp-theme-canvas/black-canvas.css'
294
294
 
295
295
  // Import individual CSS modules
296
- import '@subroh0508/marp-theme-canvas/white-canvas/element/heading.css'
296
+ import '@subroh0508/marp-theme-canvas/white-canvas/component/heading.css'
297
297
  ```
298
298
 
299
299
  ## Development
@@ -0,0 +1,173 @@
1
+ :root {
2
+ --cols-gap: 1em;
3
+ }
4
+
5
+ section.cols {
6
+ flex-direction: row;
7
+ gap: var(--cols-gap);
8
+ }
9
+ section.cols > .col {
10
+ flex: 1;
11
+ min-width: 0;
12
+ }
13
+ section.cols > .col > *,
14
+ section.cols > .col p > * {
15
+ max-width: 100%;
16
+ }
17
+ section.cols > .col-1 {
18
+ flex: 1;
19
+ min-width: 0;
20
+ }
21
+ section.cols > .col-1 > *,
22
+ section.cols > .col-1 p > * {
23
+ max-width: 100%;
24
+ }
25
+ section.cols > .col-2 {
26
+ flex: 2;
27
+ min-width: 0;
28
+ }
29
+ section.cols > .col-2 > *,
30
+ section.cols > .col-2 p > * {
31
+ max-width: 100%;
32
+ }
33
+ section.cols > .col-3 {
34
+ flex: 3;
35
+ min-width: 0;
36
+ }
37
+ section.cols > .col-3 > *,
38
+ section.cols > .col-3 p > * {
39
+ max-width: 100%;
40
+ }
41
+ section.cols > .col-4 {
42
+ flex: 4;
43
+ min-width: 0;
44
+ }
45
+ section.cols > .col-4 > *,
46
+ section.cols > .col-4 p > * {
47
+ max-width: 100%;
48
+ }
49
+ section.cols > .col-6 {
50
+ flex: 6;
51
+ min-width: 0;
52
+ }
53
+ section.cols > .col-6 > *,
54
+ section.cols > .col-6 p > * {
55
+ max-width: 100%;
56
+ }
57
+ section.cols > .col-7 {
58
+ flex: 7;
59
+ min-width: 0;
60
+ }
61
+ section.cols > .col-7 > *,
62
+ section.cols > .col-7 p > * {
63
+ max-width: 100%;
64
+ }
65
+ section.cols > .col-8 {
66
+ flex: 8;
67
+ min-width: 0;
68
+ }
69
+ section.cols > .col-8 > *,
70
+ section.cols > .col-8 p > * {
71
+ max-width: 100%;
72
+ }
73
+ section.cols > .col-9 {
74
+ flex: 9;
75
+ min-width: 0;
76
+ }
77
+ section.cols > .col-9 > *,
78
+ section.cols > .col-9 p > * {
79
+ max-width: 100%;
80
+ }
81
+ section.cols > .col-10 {
82
+ flex: 10;
83
+ min-width: 0;
84
+ }
85
+ section.cols > .col-10 > *,
86
+ section.cols > .col-10 p > * {
87
+ max-width: 100%;
88
+ }
89
+ section .cols {
90
+ display: flex;
91
+ gap: var(--cols-gap);
92
+ width: 100%;
93
+ }
94
+ section .cols > .col {
95
+ flex: 1;
96
+ min-width: 0;
97
+ }
98
+ section .cols > .col > *,
99
+ section .cols > .col p > * {
100
+ max-width: 100%;
101
+ }
102
+ section .cols > .col-1 {
103
+ flex: 1;
104
+ min-width: 0;
105
+ }
106
+ section .cols > .col-1 > *,
107
+ section .cols > .col-1 p > * {
108
+ max-width: 100%;
109
+ }
110
+ section .cols > .col-2 {
111
+ flex: 2;
112
+ min-width: 0;
113
+ }
114
+ section .cols > .col-2 > *,
115
+ section .cols > .col-2 p > * {
116
+ max-width: 100%;
117
+ }
118
+ section .cols > .col-3 {
119
+ flex: 3;
120
+ min-width: 0;
121
+ }
122
+ section .cols > .col-3 > *,
123
+ section .cols > .col-3 p > * {
124
+ max-width: 100%;
125
+ }
126
+ section .cols > .col-4 {
127
+ flex: 4;
128
+ min-width: 0;
129
+ }
130
+ section .cols > .col-4 > *,
131
+ section .cols > .col-4 p > * {
132
+ max-width: 100%;
133
+ }
134
+ section .cols > .col-6 {
135
+ flex: 6;
136
+ min-width: 0;
137
+ }
138
+ section .cols > .col-6 > *,
139
+ section .cols > .col-6 p > * {
140
+ max-width: 100%;
141
+ }
142
+ section .cols > .col-7 {
143
+ flex: 7;
144
+ min-width: 0;
145
+ }
146
+ section .cols > .col-7 > *,
147
+ section .cols > .col-7 p > * {
148
+ max-width: 100%;
149
+ }
150
+ section .cols > .col-8 {
151
+ flex: 8;
152
+ min-width: 0;
153
+ }
154
+ section .cols > .col-8 > *,
155
+ section .cols > .col-8 p > * {
156
+ max-width: 100%;
157
+ }
158
+ section .cols > .col-9 {
159
+ flex: 9;
160
+ min-width: 0;
161
+ }
162
+ section .cols > .col-9 > *,
163
+ section .cols > .col-9 p > * {
164
+ max-width: 100%;
165
+ }
166
+ section .cols > .col-10 {
167
+ flex: 10;
168
+ min-width: 0;
169
+ }
170
+ section .cols > .col-10 > *,
171
+ section .cols > .col-10 p > * {
172
+ max-width: 100%;
173
+ }
@@ -0,0 +1,12 @@
1
+ :root {
2
+ --hr-height: 1px;
3
+ --hr-width: 100%;
4
+ --hr-color: var(--color-grey-medium);
5
+ }
6
+
7
+ hr {
8
+ width: var(--hr-width);
9
+ border: none;
10
+ border-top: var(--hr-height) solid var(--hr-color);
11
+ margin: 0 0 1em;
12
+ }
@@ -1,16 +1,3 @@
1
- :root {
2
- --hr-height: 1px;
3
- --hr-width: 100%;
4
- --hr-color: var(--color-grey-light);
5
- }
6
-
7
- hr {
8
- width: var(--hr-width);
9
- border: none;
10
- border-top: var(--hr-height) solid var(--hr-color);
11
- margin: 0 0 1em;
12
- }
13
-
14
1
  section.hr-solid hr {
15
2
  width: var(--hr-width);
16
3
  border: none;
@@ -304,19 +304,6 @@ hr {
304
304
  margin: 0 0 1em;
305
305
  }
306
306
 
307
- section.hr-solid hr {
308
- width: var(--hr-width);
309
- border: none;
310
- border-top: var(--hr-height) solid var(--hr-color);
311
- margin: 0 0 1em;
312
- }
313
- section.hr-dashed hr {
314
- width: var(--hr-width);
315
- border: none;
316
- border-top: var(--hr-height) dashed var(--hr-color);
317
- margin: 0 0 1em;
318
- }
319
-
320
307
  :root {
321
308
  --strong-font-weight: var(--font-weight-bold);
322
309
  --mark-font-weight: var(--font-weight-bold);
@@ -686,6 +673,19 @@ section .cols > .col-10 p > * {
686
673
  max-width: 100%;
687
674
  }
688
675
 
676
+ section.hr-solid hr {
677
+ width: var(--hr-width);
678
+ border: none;
679
+ border-top: var(--hr-height) solid var(--hr-color);
680
+ margin: 0 0 1em;
681
+ }
682
+ section.hr-dashed hr {
683
+ width: var(--hr-width);
684
+ border: none;
685
+ border-top: var(--hr-height) dashed var(--hr-color);
686
+ margin: 0 0 1em;
687
+ }
688
+
689
689
  section.title {
690
690
  --title-h1-font-size: var(--font-size-3xl);
691
691
  --title-metadata-color-text: var(--color-grey-medium);
@@ -0,0 +1,173 @@
1
+ :root {
2
+ --cols-gap: 1em;
3
+ }
4
+
5
+ section.cols {
6
+ flex-direction: row;
7
+ gap: var(--cols-gap);
8
+ }
9
+ section.cols > .col {
10
+ flex: 1;
11
+ min-width: 0;
12
+ }
13
+ section.cols > .col > *,
14
+ section.cols > .col p > * {
15
+ max-width: 100%;
16
+ }
17
+ section.cols > .col-1 {
18
+ flex: 1;
19
+ min-width: 0;
20
+ }
21
+ section.cols > .col-1 > *,
22
+ section.cols > .col-1 p > * {
23
+ max-width: 100%;
24
+ }
25
+ section.cols > .col-2 {
26
+ flex: 2;
27
+ min-width: 0;
28
+ }
29
+ section.cols > .col-2 > *,
30
+ section.cols > .col-2 p > * {
31
+ max-width: 100%;
32
+ }
33
+ section.cols > .col-3 {
34
+ flex: 3;
35
+ min-width: 0;
36
+ }
37
+ section.cols > .col-3 > *,
38
+ section.cols > .col-3 p > * {
39
+ max-width: 100%;
40
+ }
41
+ section.cols > .col-4 {
42
+ flex: 4;
43
+ min-width: 0;
44
+ }
45
+ section.cols > .col-4 > *,
46
+ section.cols > .col-4 p > * {
47
+ max-width: 100%;
48
+ }
49
+ section.cols > .col-6 {
50
+ flex: 6;
51
+ min-width: 0;
52
+ }
53
+ section.cols > .col-6 > *,
54
+ section.cols > .col-6 p > * {
55
+ max-width: 100%;
56
+ }
57
+ section.cols > .col-7 {
58
+ flex: 7;
59
+ min-width: 0;
60
+ }
61
+ section.cols > .col-7 > *,
62
+ section.cols > .col-7 p > * {
63
+ max-width: 100%;
64
+ }
65
+ section.cols > .col-8 {
66
+ flex: 8;
67
+ min-width: 0;
68
+ }
69
+ section.cols > .col-8 > *,
70
+ section.cols > .col-8 p > * {
71
+ max-width: 100%;
72
+ }
73
+ section.cols > .col-9 {
74
+ flex: 9;
75
+ min-width: 0;
76
+ }
77
+ section.cols > .col-9 > *,
78
+ section.cols > .col-9 p > * {
79
+ max-width: 100%;
80
+ }
81
+ section.cols > .col-10 {
82
+ flex: 10;
83
+ min-width: 0;
84
+ }
85
+ section.cols > .col-10 > *,
86
+ section.cols > .col-10 p > * {
87
+ max-width: 100%;
88
+ }
89
+ section .cols {
90
+ display: flex;
91
+ gap: var(--cols-gap);
92
+ width: 100%;
93
+ }
94
+ section .cols > .col {
95
+ flex: 1;
96
+ min-width: 0;
97
+ }
98
+ section .cols > .col > *,
99
+ section .cols > .col p > * {
100
+ max-width: 100%;
101
+ }
102
+ section .cols > .col-1 {
103
+ flex: 1;
104
+ min-width: 0;
105
+ }
106
+ section .cols > .col-1 > *,
107
+ section .cols > .col-1 p > * {
108
+ max-width: 100%;
109
+ }
110
+ section .cols > .col-2 {
111
+ flex: 2;
112
+ min-width: 0;
113
+ }
114
+ section .cols > .col-2 > *,
115
+ section .cols > .col-2 p > * {
116
+ max-width: 100%;
117
+ }
118
+ section .cols > .col-3 {
119
+ flex: 3;
120
+ min-width: 0;
121
+ }
122
+ section .cols > .col-3 > *,
123
+ section .cols > .col-3 p > * {
124
+ max-width: 100%;
125
+ }
126
+ section .cols > .col-4 {
127
+ flex: 4;
128
+ min-width: 0;
129
+ }
130
+ section .cols > .col-4 > *,
131
+ section .cols > .col-4 p > * {
132
+ max-width: 100%;
133
+ }
134
+ section .cols > .col-6 {
135
+ flex: 6;
136
+ min-width: 0;
137
+ }
138
+ section .cols > .col-6 > *,
139
+ section .cols > .col-6 p > * {
140
+ max-width: 100%;
141
+ }
142
+ section .cols > .col-7 {
143
+ flex: 7;
144
+ min-width: 0;
145
+ }
146
+ section .cols > .col-7 > *,
147
+ section .cols > .col-7 p > * {
148
+ max-width: 100%;
149
+ }
150
+ section .cols > .col-8 {
151
+ flex: 8;
152
+ min-width: 0;
153
+ }
154
+ section .cols > .col-8 > *,
155
+ section .cols > .col-8 p > * {
156
+ max-width: 100%;
157
+ }
158
+ section .cols > .col-9 {
159
+ flex: 9;
160
+ min-width: 0;
161
+ }
162
+ section .cols > .col-9 > *,
163
+ section .cols > .col-9 p > * {
164
+ max-width: 100%;
165
+ }
166
+ section .cols > .col-10 {
167
+ flex: 10;
168
+ min-width: 0;
169
+ }
170
+ section .cols > .col-10 > *,
171
+ section .cols > .col-10 p > * {
172
+ max-width: 100%;
173
+ }
@@ -0,0 +1,12 @@
1
+ :root {
2
+ --hr-height: 1px;
3
+ --hr-width: 100%;
4
+ --hr-color: var(--color-grey-light);
5
+ }
6
+
7
+ hr {
8
+ width: var(--hr-width);
9
+ border: none;
10
+ border-top: var(--hr-height) solid var(--hr-color);
11
+ margin: 0 0 1em;
12
+ }
@@ -1,16 +1,3 @@
1
- :root {
2
- --hr-height: 1px;
3
- --hr-width: 100%;
4
- --hr-color: var(--color-grey-medium);
5
- }
6
-
7
- hr {
8
- width: var(--hr-width);
9
- border: none;
10
- border-top: var(--hr-height) solid var(--hr-color);
11
- margin: 0 0 1em;
12
- }
13
-
14
1
  section.hr-solid hr {
15
2
  width: var(--hr-width);
16
3
  border: none;
@@ -304,19 +304,6 @@ hr {
304
304
  margin: 0 0 1em;
305
305
  }
306
306
 
307
- section.hr-solid hr {
308
- width: var(--hr-width);
309
- border: none;
310
- border-top: var(--hr-height) solid var(--hr-color);
311
- margin: 0 0 1em;
312
- }
313
- section.hr-dashed hr {
314
- width: var(--hr-width);
315
- border: none;
316
- border-top: var(--hr-height) dashed var(--hr-color);
317
- margin: 0 0 1em;
318
- }
319
-
320
307
  :root {
321
308
  --strong-font-weight: var(--font-weight-bold);
322
309
  --mark-font-weight: var(--font-weight-bold);
@@ -686,6 +673,19 @@ section .cols > .col-10 p > * {
686
673
  max-width: 100%;
687
674
  }
688
675
 
676
+ section.hr-solid hr {
677
+ width: var(--hr-width);
678
+ border: none;
679
+ border-top: var(--hr-height) solid var(--hr-color);
680
+ margin: 0 0 1em;
681
+ }
682
+ section.hr-dashed hr {
683
+ width: var(--hr-width);
684
+ border: none;
685
+ border-top: var(--hr-height) dashed var(--hr-color);
686
+ margin: 0 0 1em;
687
+ }
688
+
689
689
  section.title {
690
690
  --title-h1-font-size: var(--font-size-3xl);
691
691
  --title-metadata-color-text: var(--color-grey-light);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@subroh0508/marp-theme-canvas",
3
- "version": "0.1.2",
3
+ "version": "0.2.0",
4
4
  "type": "module",
5
5
  "description": "A simple Marp theme with minimal styling",
6
6
  "repository": {
@@ -36,17 +36,20 @@
36
36
  "./canvas/token/*": {
37
37
  "sass": "./scss/canvas/token/*"
38
38
  },
39
- "./canvas/element/*": {
40
- "sass": "./scss/canvas/element/*"
41
- },
42
- "./canvas/element/prettylights/*": {
43
- "sass": "./scss/canvas/element/prettylights/*"
44
- },
45
39
  "./canvas/component/*": {
46
40
  "sass": "./scss/canvas/component/*"
47
41
  },
48
- "./canvas/pattern/*": {
49
- "sass": "./scss/canvas/pattern/*"
42
+ "./canvas/component/prettylights/*": {
43
+ "sass": "./scss/canvas/component/prettylights/*"
44
+ },
45
+ "./canvas/decorator/*": {
46
+ "sass": "./scss/canvas/decorator/*"
47
+ },
48
+ "./canvas/common-layout/*": {
49
+ "sass": "./scss/canvas/common-layout/*"
50
+ },
51
+ "./canvas/slide-pattern/*": {
52
+ "sass": "./scss/canvas/slide-pattern/*"
50
53
  },
51
54
  "./white-canvas.css": "./css/white-canvas.css",
52
55
  "./black-canvas.css": "./css/black-canvas.css",
@@ -1,5 +1,5 @@
1
1
  // black-canvas columns configuration
2
2
 
3
- @use '../../canvas/component/columns' as base;
3
+ @use '../../canvas/common-layout/columns' as base;
4
4
 
5
5
  @include base.configure();
@@ -1,6 +1,6 @@
1
1
  // black-canvas blockquote configuration
2
2
 
3
- @use '../../canvas/element/blockquote' as base;
3
+ @use '../../canvas/component/blockquote' as base;
4
4
 
5
5
  @include base.configure(
6
6
  $font-size: var(--font-size-m),
@@ -1,6 +1,6 @@
1
1
  // black-canvas code configuration
2
2
 
3
- @use '../../canvas/element/code' as base;
3
+ @use '../../canvas/component/code' as base;
4
4
 
5
5
  @include base.configure(
6
6
  $font-mono: var(--font-family-mono),
@@ -1,6 +1,6 @@
1
1
  // black-canvas heading configuration
2
2
 
3
- @use '../../canvas/element/heading' as base;
3
+ @use '../../canvas/component/heading' as base;
4
4
 
5
5
  @include base.configure(
6
6
  $h1-font-size: var(--font-size-xxl),
@@ -1,6 +1,6 @@
1
1
  // black-canvas hr configuration
2
2
 
3
- @use '../../canvas/element/hr' as base;
3
+ @use '../../canvas/component/hr' as base;
4
4
 
5
5
  @include base.configure(
6
6
  $height: 1px,
@@ -1,6 +1,6 @@
1
1
  // black-canvas link configuration
2
2
 
3
- @use '../../canvas/element/link' as base;
3
+ @use '../../canvas/component/link' as base;
4
4
 
5
5
  @include base.configure(
6
6
  $color-text: var(--color-blue)
@@ -1,6 +1,6 @@
1
1
  // black-canvas list configuration
2
2
 
3
- @use '../../canvas/element/list' as base;
3
+ @use '../../canvas/component/list' as base;
4
4
 
5
5
  @include base.configure(
6
6
  $ul-indent: 1.1em,
@@ -1,5 +1,5 @@
1
1
  // black-canvas paragraph configuration
2
2
 
3
- @use '../../canvas/element/paragraph' as base;
3
+ @use '../../canvas/component/paragraph' as base;
4
4
 
5
5
  @include base.configure();