@subroh0508/marp-theme-canvas 0.0.5 → 0.0.7

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.
package/README.ja.md CHANGED
@@ -178,6 +178,10 @@ marp --theme node_modules/@subroh0508/marp-theme-canvas/css/white-canvas.css sli
178
178
  | `--slide-padding-x` | スライド左右余白 | `80px` |
179
179
  | `--slide-padding-y` | スライド上下余白 | `80px` |
180
180
  | `--border-radius` | 角丸 | `8px` |
181
+ | `--bullet-list-indent` | 箇条書きリスト(ul)インデント | `1.1em` |
182
+ | `--numbered-list-indent` | 番号付きリスト(ol)インデント | `1.1em` |
183
+ | `--bullet-list-padding-left` | 箇条書きリスト項目(li)の左余白 | `0.2em` |
184
+ | `--numbered-list-padding-left` | 番号付きリスト項目(li)の左余白 | `0.2em` |
181
185
 
182
186
  ### カスタマイズ例
183
187
 
package/README.md CHANGED
@@ -178,6 +178,10 @@ You can override CSS variables in the frontmatter style.
178
178
  | `--slide-padding-x` | Slide horizontal padding | `80px` |
179
179
  | `--slide-padding-y` | Slide vertical padding | `80px` |
180
180
  | `--border-radius` | Border radius | `8px` |
181
+ | `--bullet-list-indent` | Bullet list (ul) indent | `1.1em` |
182
+ | `--numbered-list-indent` | Numbered list (ol) indent | `1.1em` |
183
+ | `--bullet-list-padding-left` | Bullet list item (li) padding | `0.2em` |
184
+ | `--numbered-list-padding-left` | Numbered list item (li) padding | `0.2em` |
181
185
 
182
186
  ### Customization Example
183
187
 
@@ -79,6 +79,10 @@
79
79
  --header-footer-margin-x: 80px;
80
80
  --header-footer-margin-y: 20px;
81
81
  --border-radius: 8px;
82
+ --bullet-list-indent: 1.1em;
83
+ --numbered-list-indent: 1.1em;
84
+ --bullet-list-padding-left: 0.2em;
85
+ --numbered-list-padding-left: 0.2em;
82
86
  }
83
87
 
84
88
  section pre :where(.hljs) {
@@ -178,9 +182,17 @@ section blockquote,
178
182
  section pre {
179
183
  margin-top: 0;
180
184
  }
181
- section ul,
185
+ section ul {
186
+ padding-inline-start: var(--bullet-list-indent);
187
+ }
188
+ section ul > li {
189
+ padding-left: var(--bullet-list-padding-left);
190
+ }
182
191
  section ol {
183
- padding-inline-start: 1.3em;
192
+ padding-inline-start: var(--numbered-list-indent);
193
+ }
194
+ section ol > li {
195
+ padding-left: var(--numbered-list-padding-left);
184
196
  }
185
197
  section::after {
186
198
  position: absolute;
@@ -190,16 +202,18 @@ section::after {
190
202
  font-size: var(--font-size-note);
191
203
  color: var(--color-grey-light);
192
204
  }
205
+ section.title {
206
+ justify-content: center;
207
+ }
193
208
  section.title h1 {
194
209
  font-size: var(--font-size-display);
210
+ display: block;
195
211
  flex: 0 0 80%;
196
- display: flex;
197
- flex-direction: column;
198
- align-items: flex-start;
199
- justify-content: center;
212
+ align-content: center;
200
213
  margin: 0;
201
214
  }
202
215
  section.title h1 small {
216
+ display: block;
203
217
  margin-top: 0.5em;
204
218
  font-size: 0.5em;
205
219
  }
@@ -213,11 +227,12 @@ section.title h1 + p {
213
227
  color: var(--color-grey-medium);
214
228
  margin: 0;
215
229
  }
230
+ section.section {
231
+ justify-content: center;
232
+ }
216
233
  section.section p {
217
- flex: 1;
218
- display: flex;
219
- align-items: center;
220
- justify-content: flex-start;
234
+ flex: 0 1;
235
+ display: block;
221
236
  font-size: var(--font-size-title);
222
237
  font-weight: bold;
223
238
  margin: 0;
@@ -283,6 +298,14 @@ section.columns > .column > *,
283
298
  section.columns > .column p > * {
284
299
  max-width: 100%;
285
300
  }
301
+ section.columns > .column-1 {
302
+ flex: 1;
303
+ min-width: 0;
304
+ }
305
+ section.columns > .column-1 > *,
306
+ section.columns > .column-1 p > * {
307
+ max-width: 100%;
308
+ }
286
309
  section.columns > .column-2 {
287
310
  flex: 2;
288
311
  min-width: 0;
@@ -331,6 +354,22 @@ section.columns > .column-8 > *,
331
354
  section.columns > .column-8 p > * {
332
355
  max-width: 100%;
333
356
  }
357
+ section.columns > .column-9 {
358
+ flex: 9;
359
+ min-width: 0;
360
+ }
361
+ section.columns > .column-9 > *,
362
+ section.columns > .column-9 p > * {
363
+ max-width: 100%;
364
+ }
365
+ section.columns > .column-10 {
366
+ flex: 10;
367
+ min-width: 0;
368
+ }
369
+ section.columns > .column-10 > *,
370
+ section.columns > .column-10 p > * {
371
+ max-width: 100%;
372
+ }
334
373
  section .columns {
335
374
  display: flex;
336
375
  gap: 1em;
@@ -344,6 +383,14 @@ section .columns > .column > *,
344
383
  section .columns > .column p > * {
345
384
  max-width: 100%;
346
385
  }
386
+ section .columns > .column-1 {
387
+ flex: 1;
388
+ min-width: 0;
389
+ }
390
+ section .columns > .column-1 > *,
391
+ section .columns > .column-1 p > * {
392
+ max-width: 100%;
393
+ }
347
394
  section .columns > .column-2 {
348
395
  flex: 2;
349
396
  min-width: 0;
@@ -392,6 +439,22 @@ section .columns > .column-8 > *,
392
439
  section .columns > .column-8 p > * {
393
440
  max-width: 100%;
394
441
  }
442
+ section .columns > .column-9 {
443
+ flex: 9;
444
+ min-width: 0;
445
+ }
446
+ section .columns > .column-9 > *,
447
+ section .columns > .column-9 p > * {
448
+ max-width: 100%;
449
+ }
450
+ section .columns > .column-10 {
451
+ flex: 10;
452
+ min-width: 0;
453
+ }
454
+ section .columns > .column-10 > *,
455
+ section .columns > .column-10 p > * {
456
+ max-width: 100%;
457
+ }
395
458
 
396
459
  header {
397
460
  position: absolute;
@@ -79,6 +79,10 @@
79
79
  --header-footer-margin-x: 80px;
80
80
  --header-footer-margin-y: 20px;
81
81
  --border-radius: 8px;
82
+ --bullet-list-indent: 1.1em;
83
+ --numbered-list-indent: 1.1em;
84
+ --bullet-list-padding-left: 0.2em;
85
+ --numbered-list-padding-left: 0.2em;
82
86
  }
83
87
 
84
88
  section pre :where(.hljs) {
@@ -178,9 +182,17 @@ section blockquote,
178
182
  section pre {
179
183
  margin-top: 0;
180
184
  }
181
- section ul,
185
+ section ul {
186
+ padding-inline-start: var(--bullet-list-indent);
187
+ }
188
+ section ul > li {
189
+ padding-left: var(--bullet-list-padding-left);
190
+ }
182
191
  section ol {
183
- padding-inline-start: 1.3em;
192
+ padding-inline-start: var(--numbered-list-indent);
193
+ }
194
+ section ol > li {
195
+ padding-left: var(--numbered-list-padding-left);
184
196
  }
185
197
  section::after {
186
198
  position: absolute;
@@ -190,16 +202,18 @@ section::after {
190
202
  font-size: var(--font-size-note);
191
203
  color: var(--color-grey-medium);
192
204
  }
205
+ section.title {
206
+ justify-content: center;
207
+ }
193
208
  section.title h1 {
194
209
  font-size: var(--font-size-display);
210
+ display: block;
195
211
  flex: 0 0 80%;
196
- display: flex;
197
- flex-direction: column;
198
- align-items: flex-start;
199
- justify-content: center;
212
+ align-content: center;
200
213
  margin: 0;
201
214
  }
202
215
  section.title h1 small {
216
+ display: block;
203
217
  margin-top: 0.5em;
204
218
  font-size: 0.5em;
205
219
  }
@@ -213,11 +227,12 @@ section.title h1 + p {
213
227
  color: var(--color-grey-light);
214
228
  margin: 0;
215
229
  }
230
+ section.section {
231
+ justify-content: center;
232
+ }
216
233
  section.section p {
217
- flex: 1;
218
- display: flex;
219
- align-items: center;
220
- justify-content: flex-start;
234
+ flex: 0 1;
235
+ display: block;
221
236
  font-size: var(--font-size-title);
222
237
  font-weight: bold;
223
238
  margin: 0;
@@ -283,6 +298,14 @@ section.columns > .column > *,
283
298
  section.columns > .column p > * {
284
299
  max-width: 100%;
285
300
  }
301
+ section.columns > .column-1 {
302
+ flex: 1;
303
+ min-width: 0;
304
+ }
305
+ section.columns > .column-1 > *,
306
+ section.columns > .column-1 p > * {
307
+ max-width: 100%;
308
+ }
286
309
  section.columns > .column-2 {
287
310
  flex: 2;
288
311
  min-width: 0;
@@ -331,6 +354,22 @@ section.columns > .column-8 > *,
331
354
  section.columns > .column-8 p > * {
332
355
  max-width: 100%;
333
356
  }
357
+ section.columns > .column-9 {
358
+ flex: 9;
359
+ min-width: 0;
360
+ }
361
+ section.columns > .column-9 > *,
362
+ section.columns > .column-9 p > * {
363
+ max-width: 100%;
364
+ }
365
+ section.columns > .column-10 {
366
+ flex: 10;
367
+ min-width: 0;
368
+ }
369
+ section.columns > .column-10 > *,
370
+ section.columns > .column-10 p > * {
371
+ max-width: 100%;
372
+ }
334
373
  section .columns {
335
374
  display: flex;
336
375
  gap: 1em;
@@ -344,6 +383,14 @@ section .columns > .column > *,
344
383
  section .columns > .column p > * {
345
384
  max-width: 100%;
346
385
  }
386
+ section .columns > .column-1 {
387
+ flex: 1;
388
+ min-width: 0;
389
+ }
390
+ section .columns > .column-1 > *,
391
+ section .columns > .column-1 p > * {
392
+ max-width: 100%;
393
+ }
347
394
  section .columns > .column-2 {
348
395
  flex: 2;
349
396
  min-width: 0;
@@ -392,6 +439,22 @@ section .columns > .column-8 > *,
392
439
  section .columns > .column-8 p > * {
393
440
  max-width: 100%;
394
441
  }
442
+ section .columns > .column-9 {
443
+ flex: 9;
444
+ min-width: 0;
445
+ }
446
+ section .columns > .column-9 > *,
447
+ section .columns > .column-9 p > * {
448
+ max-width: 100%;
449
+ }
450
+ section .columns > .column-10 {
451
+ flex: 10;
452
+ min-width: 0;
453
+ }
454
+ section .columns > .column-10 > *,
455
+ section .columns > .column-10 p > * {
456
+ max-width: 100%;
457
+ }
395
458
 
396
459
  header {
397
460
  position: absolute;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@subroh0508/marp-theme-canvas",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "description": "A simple Marp theme with minimal styling",
5
5
  "repository": {
6
6
  "type": "git",
@@ -11,7 +11,10 @@
11
11
  $font-family,
12
12
  $font-size,
13
13
  $line-height,
14
- $list-indent
14
+ $bullet-list-indent,
15
+ $numbered-list-indent,
16
+ $bullet-list-padding-left,
17
+ $numbered-list-padding-left
15
18
  ) {
16
19
  width: $width;
17
20
  height: $height;
@@ -36,8 +39,19 @@
36
39
  }
37
40
 
38
41
  // Adjust list indentation
39
- ul,
42
+ ul {
43
+ padding-inline-start: $bullet-list-indent;
44
+
45
+ > li {
46
+ padding-left: $bullet-list-padding-left;
47
+ }
48
+ }
49
+
40
50
  ol {
41
- padding-inline-start: $list-indent;
51
+ padding-inline-start: $numbered-list-indent;
52
+
53
+ > li {
54
+ padding-left: $numbered-list-padding-left;
55
+ }
42
56
  }
43
57
  }
@@ -5,13 +5,13 @@
5
5
 
6
6
  @mixin configure($font-size, $font-weight: bold) {
7
7
  &.section {
8
+ justify-content: center;
9
+
8
10
  // p: Section title
9
- // Vertically centered, left-aligned
11
+ // Vertically centered
10
12
  p {
11
- flex: 1;
12
- display: flex;
13
- align-items: center;
14
- justify-content: flex-start;
13
+ flex: 0 1;
14
+ display: block;
15
15
  font-size: $font-size;
16
16
  font-weight: $font-weight;
17
17
  margin: 0;
@@ -5,19 +5,20 @@
5
5
 
6
6
  @mixin configure($font-size-title, $color-metadata-text) {
7
7
  &.title {
8
+ justify-content: center;
9
+
8
10
  // h1: Title text
9
- // Occupies 80% of section, vertically centered, left-aligned
11
+ // Occupies 80% of section, vertically centered
10
12
  h1 {
11
13
  font-size: $font-size-title;
14
+ display: block;
12
15
  flex: 0 0 80%;
13
- display: flex;
14
- flex-direction: column;
15
- align-items: flex-start;
16
- justify-content: center;
16
+ align-content: center;
17
17
  margin: 0;
18
18
 
19
19
  // small: Subtitle
20
20
  small {
21
+ display: block;
21
22
  margin-top: 0.5em;
22
23
  font-size: 0.5em;
23
24
  }
@@ -76,6 +76,10 @@ The following CSS variables have no default values and must be defined when used
76
76
  | `--header-footer-margin-x` | Header/footer/page number horizontal margin | `80px` |
77
77
  | `--header-footer-margin-y` | Header/footer/page number vertical margin | `20px` |
78
78
  | `--border-radius` | Border radius (blockquote) | `8px` |
79
+ | `--bullet-list-indent` | Bullet list (ul) indent | `1.1em` |
80
+ | `--numbered-list-indent` | Numbered list (ol) indent | `1.1em` |
81
+ | `--bullet-list-padding-left` | Bullet list item (li) padding | `0.2em` |
82
+ | `--numbered-list-padding-left` | Numbered list item (li) padding | `0.2em` |
79
83
 
80
84
  ## Available Mixins
81
85
 
@@ -100,6 +100,11 @@
100
100
  --header-footer-margin-y: 20px;
101
101
  --border-radius: 8px;
102
102
 
103
+ --bullet-list-indent: 1.1em;
104
+ --numbered-list-indent: 1.1em;
105
+ --bullet-list-padding-left: 0.2em;
106
+ --numbered-list-padding-left: 0.2em;
107
+
103
108
  // Custom variables
104
109
  @content;
105
110
  }
@@ -120,7 +125,10 @@
120
125
  $font-family: var(--font-family-base),
121
126
  $font-size: var(--font-size-base),
122
127
  $line-height: var(--line-height-normal),
123
- $list-indent: 1.3em
128
+ $bullet-list-indent: var(--bullet-list-indent),
129
+ $numbered-list-indent: var(--numbered-list-indent),
130
+ $bullet-list-padding-left: var(--bullet-list-padding-left),
131
+ $numbered-list-padding-left: var(--numbered-list-padding-left)
124
132
  );
125
133
  @include pagination.configure(
126
134
  $margin-x: var(--header-footer-margin-x),
@@ -100,6 +100,11 @@
100
100
  --header-footer-margin-y: 20px;
101
101
  --border-radius: 8px;
102
102
 
103
+ --bullet-list-indent: 1.1em;
104
+ --numbered-list-indent: 1.1em;
105
+ --bullet-list-padding-left: 0.2em;
106
+ --numbered-list-padding-left: 0.2em;
107
+
103
108
  // Custom variables
104
109
  @content;
105
110
  }
@@ -120,7 +125,10 @@
120
125
  $font-family: var(--font-family-base),
121
126
  $font-size: var(--font-size-base),
122
127
  $line-height: var(--line-height-normal),
123
- $list-indent: 1.3em
128
+ $bullet-list-indent: var(--bullet-list-indent),
129
+ $numbered-list-indent: var(--numbered-list-indent),
130
+ $bullet-list-padding-left: var(--bullet-list-padding-left),
131
+ $numbered-list-padding-left: var(--numbered-list-padding-left)
124
132
  );
125
133
  @include pagination.configure(
126
134
  $margin-x: var(--header-footer-margin-x),