mpi-theme 0.2.0__py3-none-any.whl

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 (33) hide show
  1. mpi_theme/__init__.py +1 -0
  2. mpi_theme/assets/book-callouts.css +92 -0
  3. mpi_theme/assets/book-header.css +230 -0
  4. mpi_theme/assets/book-objective-tags.css +91 -0
  5. mpi_theme/assets/book-publication.css +337 -0
  6. mpi_theme/assets/brand/field-mark-span.svg +9 -0
  7. mpi_theme/assets/django-header.css +60 -0
  8. mpi_theme/assets/fonts.css +72 -0
  9. mpi_theme/assets/inventory.json +26 -0
  10. mpi_theme/assets/marp.css +45 -0
  11. mpi_theme/assets/mermaid.json +27 -0
  12. mpi_theme/assets/mermaid.lua +42 -0
  13. mpi_theme/assets/print-book.tex +192 -0
  14. mpi_theme/assets/print-values.json +3 -0
  15. mpi_theme/assets/print.tex +6 -0
  16. mpi_theme/assets/slides.css +21 -0
  17. mpi_theme/assets/tokens.json +21 -0
  18. mpi_theme/assets/vendor/fonts/FONTS_LICENSE.txt +40 -0
  19. mpi_theme/assets/vendor/fonts/ibm-plex/IBMPlexMono-Bold.otf +494 -0
  20. mpi_theme/assets/vendor/fonts/ibm-plex/IBMPlexMono-BoldItalic.otf +494 -0
  21. mpi_theme/assets/vendor/fonts/ibm-plex/IBMPlexMono-Italic.otf +494 -0
  22. mpi_theme/assets/vendor/fonts/ibm-plex/IBMPlexMono-Regular.otf +494 -0
  23. mpi_theme/assets/vendor/fonts/linux-libertine/LinLibertine-Bold.otf +0 -0
  24. mpi_theme/assets/vendor/fonts/linux-libertine/LinLibertine-BoldItalic.otf +0 -0
  25. mpi_theme/assets/vendor/fonts/linux-libertine/LinLibertine-Italic.otf +0 -0
  26. mpi_theme/assets/vendor/fonts/linux-libertine/LinLibertine-Regular.otf +0 -0
  27. mpi_theme/cli.py +232 -0
  28. mpi_theme/fonts.py +106 -0
  29. mpi_theme/presentation.py +61 -0
  30. mpi_theme-0.2.0.dist-info/METADATA +100 -0
  31. mpi_theme-0.2.0.dist-info/RECORD +33 -0
  32. mpi_theme-0.2.0.dist-info/WHEEL +4 -0
  33. mpi_theme-0.2.0.dist-info/entry_points.txt +2 -0
@@ -0,0 +1,337 @@
1
+ body.mpi-publication {
2
+ background: var(--mpi-canvas);
3
+ color: var(--mpi-ink);
4
+ }
5
+
6
+ .mpi-publication #quarto-content {
7
+ background: var(--mpi-surface);
8
+ }
9
+
10
+ .mpi-publication main.content {
11
+ color: var(--mpi-ink);
12
+ font-family: var(--mpi-font-body);
13
+ font-size: var(--mpi-prose-size);
14
+ line-height: var(--mpi-prose-leading);
15
+ }
16
+
17
+ .mpi-publication main.content :where(p, ul, ol, blockquote) {
18
+ max-inline-size: var(--mpi-prose-measure);
19
+ }
20
+
21
+ .mpi-publication main.content :where(h1, h2, h3, h4, h5, h6) {
22
+ color: var(--mpi-ink);
23
+ font-family: var(--mpi-font-heading);
24
+ font-weight: 700;
25
+ line-height: 1.18;
26
+ text-wrap: balance;
27
+ }
28
+
29
+ .mpi-publication main.content h1 {
30
+ border-block-end: 2px solid var(--mpi-primary);
31
+ padding-block-end: 0.35em;
32
+ }
33
+
34
+ .mpi-publication main.content :where(h2, h3, h4) {
35
+ margin-block: 1.8em 0.55em;
36
+ }
37
+
38
+ .mpi-publication main.content p {
39
+ margin-block: 0 0.85em;
40
+ }
41
+
42
+ .mpi-publication main.content a {
43
+ color: var(--mpi-primary);
44
+ text-decoration-thickness: 0.08em;
45
+ text-underline-offset: 0.14em;
46
+ }
47
+
48
+ .mpi-publication main.content a:hover {
49
+ color: var(--mpi-primary-hover);
50
+ }
51
+
52
+ .mpi-publication :focus-visible {
53
+ outline: 3px solid var(--mpi-focus);
54
+ outline-offset: 3px;
55
+ }
56
+
57
+ .mpi-publication .quarto-page-breadcrumbs .breadcrumb {
58
+ align-items: baseline;
59
+ }
60
+
61
+ .mpi-publication .quarto-page-breadcrumbs .breadcrumb-item {
62
+ align-items: baseline;
63
+ display: flex;
64
+ }
65
+
66
+ .mpi-publication .quarto-page-breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
67
+ float: none;
68
+ }
69
+
70
+ .mpi-publication main.content :where(ul, ol) {
71
+ margin-block: 0.7em 1em;
72
+ padding-inline-start: 1.45em;
73
+ }
74
+
75
+ .mpi-publication main.content li + li {
76
+ margin-block-start: 0.35em;
77
+ }
78
+
79
+ .mpi-publication main.content li :where(ul, ol) {
80
+ margin-block: 0.25em 0;
81
+ }
82
+
83
+ .mpi-publication main.content :where(ul, ol).compact li + li {
84
+ margin-block-start: 0.1em;
85
+ }
86
+
87
+ .mpi-publication main.content li::marker {
88
+ color: var(--mpi-muted);
89
+ }
90
+
91
+ .mpi-publication main.content ul:not(.task-list):not(:has(> li > .kd)) {
92
+ list-style: none;
93
+ }
94
+
95
+ .mpi-publication main.content ul:not(.task-list):not(:has(> li > .kd)) > li {
96
+ position: relative;
97
+ }
98
+
99
+ .mpi-publication main.content ul:not(.task-list):not(:has(> li > .kd)) > li::before {
100
+ border: 1px solid var(--mpi-primary);
101
+ block-size: 0.38em;
102
+ content: "";
103
+ inline-size: 0.38em;
104
+ inset-block-start: 0.68em;
105
+ inset-inline-start: -1.15em;
106
+ position: absolute;
107
+ }
108
+
109
+ .mpi-publication main.content ul:not(.task-list) > li > ul:not(.task-list) > li::before {
110
+ border: 0;
111
+ block-size: auto;
112
+ color: var(--mpi-muted);
113
+ content: "–";
114
+ font-family: var(--mpi-font-heading);
115
+ font-size: 0.9em;
116
+ inline-size: auto;
117
+ inset-block-start: 0.12em;
118
+ }
119
+
120
+ .mpi-publication main.content strong {
121
+ font-weight: 700;
122
+ }
123
+
124
+ .mpi-publication main.content .table-responsive {
125
+ max-inline-size: 100%;
126
+ overflow-x: auto;
127
+ overscroll-behavior-inline: contain;
128
+ }
129
+
130
+ .mpi-publication main.content table {
131
+ border-collapse: collapse;
132
+ color: var(--mpi-ink);
133
+ font-variant-numeric: tabular-nums;
134
+ inline-size: 100%;
135
+ margin-block: 1.1rem 1.4rem;
136
+ }
137
+
138
+ .mpi-publication main.content img.figure-img {
139
+ block-size: auto;
140
+ max-inline-size: 100%;
141
+ }
142
+
143
+ .mpi-publication main.content table caption {
144
+ caption-side: top;
145
+ color: var(--mpi-muted);
146
+ font-family: var(--mpi-font-heading);
147
+ padding-block-end: 0.5rem;
148
+ text-align: start;
149
+ }
150
+
151
+ .mpi-publication main.content table thead {
152
+ border-block-end: 2px solid var(--mpi-primary);
153
+ }
154
+
155
+ .mpi-publication main.content table :where(th, td) {
156
+ background: transparent;
157
+ border: 0;
158
+ border-block-end: 1px solid var(--mpi-border);
159
+ box-shadow: none;
160
+ padding: 0.55em 0.7em;
161
+ text-align: start;
162
+ vertical-align: top;
163
+ }
164
+
165
+ .mpi-publication main.content table tbody tr:nth-child(even) > * {
166
+ background: var(--mpi-table-stripe);
167
+ }
168
+
169
+ .mpi-publication main.content table :where(td.numeric, th.numeric) {
170
+ text-align: end;
171
+ }
172
+
173
+ .mpi-publication main.content :not(pre) > code {
174
+ background: var(--mpi-canvas);
175
+ border: 1px solid var(--mpi-border);
176
+ color: var(--mpi-ink);
177
+ font-family: var(--mpi-font-code);
178
+ font-size: 0.88em;
179
+ padding: 0.08em 0.28em;
180
+ }
181
+
182
+ .mpi-publication main.content :where(pre, div.sourceCode) {
183
+ background: var(--mpi-canvas);
184
+ border-color: var(--mpi-border);
185
+ }
186
+
187
+ .mpi-publication main.content pre {
188
+ border: 1px solid var(--mpi-border);
189
+ border-inline-start: 3px solid var(--mpi-primary);
190
+ color: var(--mpi-ink);
191
+ font-family: var(--mpi-font-code);
192
+ font-size: 0.88em;
193
+ line-height: 1.5;
194
+ overflow-x: auto;
195
+ padding: 1rem;
196
+ tab-size: 4;
197
+ }
198
+
199
+ .mpi-publication main.content blockquote {
200
+ border-inline-start: 3px solid var(--mpi-primary);
201
+ color: var(--mpi-muted);
202
+ padding-inline-start: 1rem;
203
+ }
204
+
205
+ .mpi-publication main.content :where(.figure-caption, .table-caption, figcaption) {
206
+ color: var(--mpi-muted);
207
+ font-family: var(--mpi-font-heading);
208
+ font-size: 0.92em;
209
+ line-height: 1.45;
210
+ }
211
+
212
+ .mpi-publication main.content svg.mermaid-js .edgeLabel p {
213
+ color: var(--mpi-muted);
214
+ }
215
+
216
+ @media (max-width: 640px) {
217
+ :root {
218
+ --mpi-prose-leading: 1.58;
219
+ }
220
+
221
+ .mpi-publication main.content table :where(th, td) {
222
+ padding: 0.48em 0.58em;
223
+ }
224
+
225
+ .mpi-publication main.content :where(p, li, dd, .csl-entry) a {
226
+ overflow-wrap: anywhere;
227
+ word-break: break-word;
228
+ }
229
+
230
+ .mpi-publication main.content p:has(mjx-container),
231
+ .mpi-publication main.content p:has(> .math.display) {
232
+ max-inline-size: 100%;
233
+ overflow-x: auto;
234
+ overflow-y: hidden;
235
+ }
236
+ }
237
+
238
+ @media (prefers-reduced-motion: reduce) {
239
+ .mpi-publication *,
240
+ .mpi-publication *::before,
241
+ .mpi-publication *::after {
242
+ scroll-behavior: auto !important;
243
+ }
244
+ }
245
+
246
+ /* Navigation targets are separate from prose links. Inset focus survives clipping
247
+ by Quarto's scrollable sidebar. Specificity beats the generated Bootstrap CSS. */
248
+ .mpi-publication #quarto-sidebar a.sidebar-link,
249
+ .mpi-publication #quarto-sidebar .sidebar-item-toggle,
250
+ .mpi-publication nav[role="doc-toc"] a,
251
+ .mpi-publication .page-navigation a,
252
+ .mpi-publication .quarto-page-breadcrumbs a,
253
+ .mpi-publication .quarto-secondary-nav .quarto-btn-toggle,
254
+ .mpi-publication .quarto-secondary-nav .quarto-search-button {
255
+ box-sizing: border-box;
256
+ min-inline-size: 24px;
257
+ min-block-size: 24px;
258
+ padding-block: 0.25rem;
259
+ }
260
+
261
+ .mpi-publication #quarto-sidebar a.sidebar-link {
262
+ display: flex;
263
+ align-items: baseline;
264
+ gap: 0.25em;
265
+ }
266
+
267
+ .mpi-publication #quarto-sidebar .sidebar-item-toggle,
268
+ .mpi-publication .quarto-page-breadcrumbs a {
269
+ display: inline-flex;
270
+ align-items: center;
271
+ justify-content: center;
272
+ }
273
+
274
+ .mpi-publication nav[role="doc-toc"] a {
275
+ display: block;
276
+ }
277
+
278
+ .mpi-publication #quarto-sidebar .sidebar-item-container a.active,
279
+ .mpi-publication #quarto-sidebar a[aria-current="page"] {
280
+ color: var(--mpi-primary);
281
+ font-weight: 700;
282
+ text-decoration: underline;
283
+ text-underline-offset: 0.2em;
284
+ }
285
+
286
+ /* Quarto's TOC uses !important for its active colour. */
287
+ .mpi-publication nav[role="doc-toc"] ul > li > a.active,
288
+ .mpi-publication nav[role="doc-toc"] a[aria-current="location"] {
289
+ color: var(--mpi-primary) !important;
290
+ border-inline-start-color: var(--mpi-primary) !important;
291
+ font-weight: 700;
292
+ text-decoration: underline;
293
+ text-underline-offset: 0.2em;
294
+ }
295
+
296
+ .mpi-publication #quarto-sidebar a:hover,
297
+ .mpi-publication nav[role="doc-toc"] a:hover,
298
+ .mpi-publication .page-navigation a:hover,
299
+ .mpi-publication .quarto-page-breadcrumbs a:hover {
300
+ color: var(--mpi-primary-hover);
301
+ text-decoration: underline;
302
+ }
303
+
304
+ .mpi-publication #quarto-sidebar :focus-visible,
305
+ .mpi-publication nav[role="doc-toc"] :focus-visible,
306
+ .mpi-publication .quarto-secondary-nav :focus-visible {
307
+ outline: 3px solid var(--mpi-focus);
308
+ outline-offset: -3px;
309
+ }
310
+
311
+ @media (max-width: 991.98px) {
312
+ .mpi-publication .quarto-secondary-nav .quarto-btn-toggle,
313
+ .mpi-publication .quarto-secondary-nav .quarto-search-button {
314
+ min-inline-size: 44px;
315
+ min-block-size: 44px;
316
+ flex-shrink: 0;
317
+ }
318
+
319
+ .mpi-publication .quarto-secondary-nav .quarto-page-breadcrumbs {
320
+ min-inline-size: 0;
321
+ }
322
+
323
+ .mpi-publication .quarto-secondary-nav .breadcrumb {
324
+ flex-wrap: wrap;
325
+ }
326
+ }
327
+
328
+ /* Keep expanded hit areas clear of Quarto's breadcrumb gutter. */
329
+ .mpi-publication .quarto-secondary-nav .quarto-btn-toggle {
330
+ margin-inline-end: 0.5rem;
331
+ align-self: center;
332
+ }
333
+
334
+ .mpi-publication .quarto-secondary-nav .quarto-search-button {
335
+ margin-inline-start: 0.5rem;
336
+ align-self: center;
337
+ }
@@ -0,0 +1,9 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" role="img" aria-labelledby="title">
2
+ <title id="title">Modern Process Improvement field mark</title>
3
+ <g fill="none" stroke="#0B5D5A" stroke-linecap="square" stroke-width="3">
4
+ <rect x="3.5" y="3.5" width="57" height="57"/>
5
+ <path d="M3.5 32h57M32 3.5V32"/>
6
+ <path d="M12 25V11l6 9 6-9v14M40 25V11h7a4 4 0 0 1 0 8h-7"/>
7
+ <path d="M28 41h8M32 41v13M28 54h8"/>
8
+ </g>
9
+ </svg>
@@ -0,0 +1,60 @@
1
+ .lms-shell .site-header {
2
+ background: var(--mpi-surface);
3
+ border-bottom: 1px solid var(--mpi-border);
4
+ }
5
+
6
+ .lms-shell .site-header__nav {
7
+ gap: 0.25rem;
8
+ margin: 0 auto;
9
+ max-width: 1440px;
10
+ min-height: 57px;
11
+ padding: 0 1rem;
12
+ }
13
+
14
+ .lms-shell .site-header .nav-link {
15
+ align-items: center;
16
+ color: var(--mpi-ink);
17
+ display: inline-flex;
18
+ font-size: 0.9375rem;
19
+ font-weight: 600;
20
+ min-height: 44px;
21
+ min-width: 44px;
22
+ padding: 0.5rem 0.75rem;
23
+ text-decoration: none;
24
+ }
25
+
26
+ .lms-shell .site-header .btn {
27
+ align-items: center;
28
+ display: inline-flex;
29
+ min-height: 44px;
30
+ }
31
+
32
+ .lms-shell .site-header .nav-link.is-active {
33
+ border-bottom: 3px solid var(--mpi-primary);
34
+ color: var(--mpi-primary);
35
+ }
36
+
37
+ .lms-shell .site-header__brand {
38
+ align-items: center;
39
+ color: var(--mpi-ink);
40
+ display: inline-flex;
41
+ gap: 0.55rem;
42
+ min-height: 44px;
43
+ padding-right: 0.75rem;
44
+ text-decoration: none;
45
+ }
46
+
47
+ .lms-shell .site-header__mark {
48
+ display: block;
49
+ flex: 0 0 auto;
50
+ height: 32px;
51
+ width: 32px;
52
+ }
53
+
54
+ .lms-shell .site-header__title {
55
+ color: var(--mpi-ink);
56
+ font-size: 0.9375rem;
57
+ font-weight: 700;
58
+ white-space: nowrap;
59
+ }
60
+
@@ -0,0 +1,72 @@
1
+ @font-face {
2
+ font-family: "Linux Libertine";
3
+ font-style: normal;
4
+ font-weight: 400;
5
+ font-display: swap;
6
+ src: url("../vendor/fonts/linux-libertine/LinLibertine-Regular.otf") format("opentype");
7
+ }
8
+
9
+ @font-face {
10
+ font-family: "Linux Libertine";
11
+ font-style: italic;
12
+ font-weight: 400;
13
+ font-display: swap;
14
+ src: url("../vendor/fonts/linux-libertine/LinLibertine-Italic.otf") format("opentype");
15
+ }
16
+
17
+ @font-face {
18
+ font-family: "Linux Libertine";
19
+ font-style: normal;
20
+ font-weight: 700;
21
+ font-display: swap;
22
+ src: url("../vendor/fonts/linux-libertine/LinLibertine-Bold.otf") format("opentype");
23
+ }
24
+
25
+ @font-face {
26
+ font-family: "Linux Libertine";
27
+ font-style: italic;
28
+ font-weight: 700;
29
+ font-display: swap;
30
+ src: url("../vendor/fonts/linux-libertine/LinLibertine-BoldItalic.otf") format("opentype");
31
+ }
32
+
33
+ @font-face {
34
+ font-family: "Linux Libertine G";
35
+ font-style: normal;
36
+ font-weight: 400;
37
+ font-display: swap;
38
+ src: url("../vendor/fonts/linux-libertine/LinLibertine-Regular.otf") format("opentype");
39
+ }
40
+
41
+ @font-face {
42
+ font-family: "IBM Plex Mono";
43
+ font-style: normal;
44
+ font-weight: 400;
45
+ font-display: swap;
46
+ src: url("../vendor/fonts/ibm-plex/IBMPlexMono-Regular.otf") format("opentype");
47
+ }
48
+
49
+ @font-face {
50
+ font-family: "IBM Plex Mono";
51
+ font-style: italic;
52
+ font-weight: 400;
53
+ font-display: swap;
54
+ src: url("../vendor/fonts/ibm-plex/IBMPlexMono-Italic.otf") format("opentype");
55
+ }
56
+
57
+ @font-face {
58
+ font-family: "IBM Plex Mono";
59
+ font-style: normal;
60
+ font-weight: 700;
61
+ font-display: swap;
62
+ src: url("../vendor/fonts/ibm-plex/IBMPlexMono-Bold.otf") format("opentype");
63
+ }
64
+
65
+ @font-face {
66
+ font-family: "IBM Plex Mono";
67
+ font-style: italic;
68
+ font-weight: 700;
69
+ font-display: swap;
70
+ src: url("../vendor/fonts/ibm-plex/IBMPlexMono-BoldItalic.otf") format("opentype");
71
+ }
72
+
@@ -0,0 +1,26 @@
1
+ {
2
+ "book-callouts.css": "0b50b89a37e419561760aa4679a9f84b6a436b1e47ef42716732bc1bdf8a648c",
3
+ "book-header.css": "d4c29fbb4876717e71b33c3a9ef49c8dce2d482c99cafb4021e5fac165e44d70",
4
+ "book-objective-tags.css": "890630e07b7e3dde289ddb8180101454b624fbe70b72bfb3267d4c4d506502cd",
5
+ "book-publication.css": "def598234997a3e8546cb60d52de1900b1f3f8e3872c6dae83d498df7d459554",
6
+ "brand/field-mark-span.svg": "cfee17d7a3fcc779f39f7740dec8c893547fd078bf457b1000e78b45818db2d0",
7
+ "django-header.css": "5cb7ff7d9a316729c3d07973a4d9cae5200ac9eeaba4e49c371b19401106898f",
8
+ "fonts.css": "6f8ea9f987cccae50ecb092b023b488f905694c3834134f70395c21b9b17442f",
9
+ "marp.css": "804c622cd7e7354e37fd3b57917f47c71bacba8cdf30730e9f88f147b94b761a",
10
+ "mermaid.json": "38b6ceb42abb4408facb2be11eac40659ffba9ef04d8fae11d978fa8a68a6aab",
11
+ "mermaid.lua": "a4229f0abd2265fd269c1508a1de535d5637fdd3bd5a7e2e7ab19788315004c0",
12
+ "print-book.tex": "c1c03c0fcc26f443d9219428d7f208bbb27bac3effa577053e8d2dd98d47a9c9",
13
+ "print-values.json": "26a9b7746707837c44531217ebcd793e5ab0d68b6187a7522efd0eb1e5c108ba",
14
+ "print.tex": "1ccb6a63b8db3e63127f3739ee376f48ace62493d0d75940edeb285929629e4e",
15
+ "slides.css": "8b4816d375cacb293d7dc909272c0b480ea2c54f05d2cf13c31d512e466202f6",
16
+ "tokens.json": "0b0b954997c898d4432452a06c3df15f4c6627eb403cdb6cd2710aa1420c5075",
17
+ "vendor/fonts/FONTS_LICENSE.txt": "6bf56908039b902fce7379ca5944d0fbeb97318adeca4a8dc65464f685159a7f",
18
+ "vendor/fonts/ibm-plex/IBMPlexMono-Bold.otf": "8d8a42cfa86ebd618ba5affc28c3a2da0917e85a50711f440856009f1e51245d",
19
+ "vendor/fonts/ibm-plex/IBMPlexMono-BoldItalic.otf": "7f3f25e5d25e8620daa10304809cb6f3b66d40376dc6b5cd3c825b4953256c8d",
20
+ "vendor/fonts/ibm-plex/IBMPlexMono-Italic.otf": "044d862dcce4a90bac99de0e09d773b571218c9ad6b962779e3cb56b210d21c2",
21
+ "vendor/fonts/ibm-plex/IBMPlexMono-Regular.otf": "ab2fc3f7871ab585334ff7cff87cceac4adb132594ff3267d6c643f69e6a41e3",
22
+ "vendor/fonts/linux-libertine/LinLibertine-Bold.otf": "02f409ceb6afc7b7e1b2b7c646568f0252fc90eed0d09e3f7f68c64aac8489a8",
23
+ "vendor/fonts/linux-libertine/LinLibertine-BoldItalic.otf": "d39f9146dcd3cf32355964299d4aac5c0071caa0ce8fc7fd7044d8cc8abe40a9",
24
+ "vendor/fonts/linux-libertine/LinLibertine-Italic.otf": "3f089f1ad3a3486ba6ad1cc5711592e5f62095bd2d0401ca3ed1ed25ed1bdc09",
25
+ "vendor/fonts/linux-libertine/LinLibertine-Regular.otf": "aca4b1ee99ecd5bd74a302b61f758bb79dfe755f58203133ef28b0074248570a"
26
+ }
@@ -0,0 +1,45 @@
1
+ /* @theme mpi */
2
+ @import "default";
3
+
4
+ /* Publication Style and LMS Visual Integration Contract v2. */
5
+ @font-face { font-family: "Source Serif 4"; src: url("../vendor/fonts/source-serif-4/SourceSerif4-Regular.woff2") format("woff2"); font-weight: 400; }
6
+ @font-face { font-family: "Source Serif 4"; src: url("../vendor/fonts/source-serif-4/SourceSerif4-Bold.woff2") format("woff2"); font-weight: 700; }
7
+ @font-face { font-family: "Source Serif 4"; src: url("../vendor/fonts/source-serif-4/SourceSerif4-RegularIt.woff2") format("woff2"); font-style: italic; }
8
+ @font-face { font-family: "Source Sans 3"; src: url("../vendor/fonts/source-sans-3/SourceSans3-Regular.woff2") format("woff2"); font-weight: 400; }
9
+ @font-face { font-family: "Source Sans 3"; src: url("../vendor/fonts/source-sans-3/SourceSans3-RegularIt.woff2") format("woff2"); font-weight: 400; font-style: italic; }
10
+ @font-face { font-family: "Source Sans 3"; src: url("../vendor/fonts/source-sans-3/SourceSans3-Semibold.woff2") format("woff2"); font-weight: 600; }
11
+ @font-face { font-family: "Source Sans 3"; src: url("../vendor/fonts/source-sans-3/SourceSans3-Bold.woff2") format("woff2"); font-weight: 700; }
12
+ @font-face { font-family: "Source Code Pro"; src: url("../vendor/fonts/source-code-pro/SourceCodePro-Regular.woff2") format("woff2"); font-weight: 400; }
13
+
14
+ {{tokens}}
15
+ section {
16
+ background: var(--mpi-canvas);
17
+ color: var(--mpi-ink);
18
+ font-family: var(--mpi-font-body);
19
+ font-size: 34px;
20
+ line-height: 1.35;
21
+ padding: 160px 80px 70px;
22
+ justify-content: center;
23
+ }
24
+ section h1, section h2, section h3 {
25
+ font-family: var(--mpi-font-heading);
26
+ color: var(--mpi-ink);
27
+ font-weight: 600;
28
+ letter-spacing: -.025em;
29
+ }
30
+ section h1 {
31
+ position: absolute; top: 55px; left: 80px; right: 80px;
32
+ margin: 0; font-size: 48px; line-height: 1.1;
33
+ }
34
+ section h2 { font-size: 38px; line-height: 1.15; margin: 0 0 28px; }
35
+ section h3 { font-size: 36px; line-height: 1.18; margin: 0 0 28px; }
36
+ section p { margin: 0 0 24px; }
37
+ section strong { color: var(--mpi-primary); font-weight: 700; }
38
+ section a { color: var(--mpi-primary); text-decoration: none; }
39
+ section a:hover { color: var(--mpi-primary-hover); }
40
+ section a:focus-visible { outline: 3px solid var(--mpi-focus); outline-offset: 5px; }
41
+ section li { margin-bottom: 18px; }
42
+ section code { font-family: var(--mpi-font-code); background: transparent; color: var(--mpi-ink); font-size: .85em; }
43
+ section pre { background: var(--mpi-table-stripe); border: 1px solid var(--mpi-border); border-radius: 0; padding: 26px; margin: 0; }
44
+ section pre code { font-size: 24px; line-height: 1.35; padding: 0; }
45
+ section pre code span { color: inherit; font-weight: 400; font-style: normal; }
@@ -0,0 +1,27 @@
1
+ {
2
+ "theme": "base",
3
+ "themeVariables": {
4
+ "background": "transparent",
5
+ "fontFamily": "{{font-heading}}",
6
+ "textColor": "{{ink}}",
7
+ "primaryColor": "{{surface}}",
8
+ "primaryTextColor": "{{ink}}",
9
+ "primaryBorderColor": "{{border}}",
10
+ "lineColor": "{{muted}}",
11
+ "secondaryColor": "{{table-stripe}}",
12
+ "secondaryTextColor": "{{ink}}",
13
+ "secondaryBorderColor": "{{primary}}",
14
+ "tertiaryColor": "{{surface}}",
15
+ "tertiaryTextColor": "{{ink}}",
16
+ "tertiaryBorderColor": "{{border}}",
17
+ "clusterBkg": "transparent",
18
+ "clusterBorder": "{{primary}}",
19
+ "edgeLabelBackground": "{{surface}}",
20
+ "titleColor": "{{ink}}"
21
+ },
22
+ "flowchart": {
23
+ "curve": "linear",
24
+ "nodeSpacing": 36,
25
+ "rankSpacing": 44
26
+ }
27
+ }
@@ -0,0 +1,42 @@
1
+ local THEME_DIRECTIVE = '{{directive}}'
2
+
3
+ local function theme_mermaid(block)
4
+ if not block.classes:includes("mermaid") then
5
+ return nil
6
+ end
7
+
8
+ local output = {}
9
+ local inserted = false
10
+ for line in (block.text .. "\n"):gmatch("(.-)\n") do
11
+ local is_option = line:match("^%s*%%%%|") ~= nil
12
+ local is_init = line:match("^%s*%%%%{init:") ~= nil
13
+
14
+ if is_init then
15
+ if not inserted then
16
+ table.insert(output, THEME_DIRECTIVE)
17
+ inserted = true
18
+ end
19
+ elseif not inserted and is_option then
20
+ table.insert(output, line)
21
+ else
22
+ if not inserted then
23
+ table.insert(output, THEME_DIRECTIVE)
24
+ inserted = true
25
+ end
26
+ table.insert(output, line)
27
+ end
28
+ end
29
+
30
+ if not inserted then
31
+ table.insert(output, THEME_DIRECTIVE)
32
+ end
33
+
34
+ block.text = table.concat(output, "\n")
35
+ return block
36
+ end
37
+
38
+ return {
39
+ {
40
+ CodeBlock = theme_mermaid,
41
+ },
42
+ }