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.
- mpi_theme/__init__.py +1 -0
- mpi_theme/assets/book-callouts.css +92 -0
- mpi_theme/assets/book-header.css +230 -0
- mpi_theme/assets/book-objective-tags.css +91 -0
- mpi_theme/assets/book-publication.css +337 -0
- mpi_theme/assets/brand/field-mark-span.svg +9 -0
- mpi_theme/assets/django-header.css +60 -0
- mpi_theme/assets/fonts.css +72 -0
- mpi_theme/assets/inventory.json +26 -0
- mpi_theme/assets/marp.css +45 -0
- mpi_theme/assets/mermaid.json +27 -0
- mpi_theme/assets/mermaid.lua +42 -0
- mpi_theme/assets/print-book.tex +192 -0
- mpi_theme/assets/print-values.json +3 -0
- mpi_theme/assets/print.tex +6 -0
- mpi_theme/assets/slides.css +21 -0
- mpi_theme/assets/tokens.json +21 -0
- mpi_theme/assets/vendor/fonts/FONTS_LICENSE.txt +40 -0
- mpi_theme/assets/vendor/fonts/ibm-plex/IBMPlexMono-Bold.otf +494 -0
- mpi_theme/assets/vendor/fonts/ibm-plex/IBMPlexMono-BoldItalic.otf +494 -0
- mpi_theme/assets/vendor/fonts/ibm-plex/IBMPlexMono-Italic.otf +494 -0
- mpi_theme/assets/vendor/fonts/ibm-plex/IBMPlexMono-Regular.otf +494 -0
- mpi_theme/assets/vendor/fonts/linux-libertine/LinLibertine-Bold.otf +0 -0
- mpi_theme/assets/vendor/fonts/linux-libertine/LinLibertine-BoldItalic.otf +0 -0
- mpi_theme/assets/vendor/fonts/linux-libertine/LinLibertine-Italic.otf +0 -0
- mpi_theme/assets/vendor/fonts/linux-libertine/LinLibertine-Regular.otf +0 -0
- mpi_theme/cli.py +232 -0
- mpi_theme/fonts.py +106 -0
- mpi_theme/presentation.py +61 -0
- mpi_theme-0.2.0.dist-info/METADATA +100 -0
- mpi_theme-0.2.0.dist-info/RECORD +33 -0
- mpi_theme-0.2.0.dist-info/WHEEL +4 -0
- mpi_theme-0.2.0.dist-info/entry_points.txt +2 -0
mpi_theme/__init__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.1.5"
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
.mpi-publication main.content .callout {
|
|
2
|
+
background: var(--mpi-surface);
|
|
3
|
+
border: 0;
|
|
4
|
+
border-inline-start: 4px solid var(--mpi-border);
|
|
5
|
+
border-radius: 0;
|
|
6
|
+
box-shadow: none;
|
|
7
|
+
color: var(--mpi-ink);
|
|
8
|
+
margin-block: 0.75rem;
|
|
9
|
+
max-inline-size: 48rem;
|
|
10
|
+
padding: 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.mpi-publication main.content .callout.callout-note,
|
|
14
|
+
.mpi-publication main.content .callout.callout-reflection {
|
|
15
|
+
border-inline-start-color: var(--mpi-info);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.mpi-publication main.content .callout.callout-tip,
|
|
19
|
+
.mpi-publication main.content .callout.callout-task,
|
|
20
|
+
.mpi-publication main.content .callout.callout-command,
|
|
21
|
+
.mpi-publication main.content .callout.callout-protip {
|
|
22
|
+
border-inline-start-color: var(--mpi-primary);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.mpi-publication main.content .callout.callout-warning,
|
|
26
|
+
.mpi-publication main.content .callout.callout-highlight {
|
|
27
|
+
border-inline-start-color: var(--mpi-warning);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.mpi-publication main.content .callout.callout-important {
|
|
31
|
+
border-inline-start-color: var(--mpi-danger);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.mpi-publication main.content .callout > .callout-header {
|
|
35
|
+
background: transparent;
|
|
36
|
+
border: 0;
|
|
37
|
+
color: var(--mpi-ink);
|
|
38
|
+
padding: 0.9rem 1.1rem 0.25rem;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.mpi-publication main.content .callout .callout-icon-container {
|
|
42
|
+
display: none;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.mpi-publication main.content .callout .callout-title-container {
|
|
46
|
+
color: var(--mpi-ink);
|
|
47
|
+
font-family: var(--mpi-font-heading);
|
|
48
|
+
font-size: 0.78rem;
|
|
49
|
+
font-weight: 700;
|
|
50
|
+
letter-spacing: 0.08em;
|
|
51
|
+
text-transform: uppercase;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.mpi-publication main.content .callout .callout-body-container {
|
|
55
|
+
border: 0;
|
|
56
|
+
padding: 0 1.1rem 1rem;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.mpi-publication main.content .callout .callout-body-container > :last-child {
|
|
60
|
+
margin-block-end: 0;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.mpi-publication main.content .callout.callout-command :where(pre, div.sourceCode) {
|
|
64
|
+
background: var(--mpi-canvas);
|
|
65
|
+
border-color: var(--mpi-border);
|
|
66
|
+
}
|
|
67
|
+
/* Native disclosure contract: details.callout > summary.callout-header.
|
|
68
|
+
The browser owns state and keyboard behaviour, including without JavaScript. */
|
|
69
|
+
.mpi-publication main.content details.callout > summary.callout-header {
|
|
70
|
+
cursor: pointer;
|
|
71
|
+
display: list-item;
|
|
72
|
+
list-style: disclosure-closed inside;
|
|
73
|
+
min-block-size: 44px;
|
|
74
|
+
padding: 0.75rem 1.1rem;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.mpi-publication main.content details.callout[open] > summary.callout-header {
|
|
78
|
+
list-style-type: disclosure-open;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.mpi-publication main.content details.callout > summary.callout-header::marker {
|
|
82
|
+
color: var(--mpi-primary);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.mpi-publication main.content details.callout > summary.callout-header:focus-visible {
|
|
86
|
+
outline: 3px solid var(--mpi-focus);
|
|
87
|
+
outline-offset: -3px;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.mpi-publication main.content details.callout > summary .callout-title-container {
|
|
91
|
+
display: inline;
|
|
92
|
+
}
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
/* Book-only header presentation. Header HTML and account behaviour belong
|
|
2
|
+
to consumers; see specimens/book/README.md for the composition contract. */
|
|
3
|
+
.mpi-publication .product-header {
|
|
4
|
+
position: relative;
|
|
5
|
+
z-index: 1031;
|
|
6
|
+
min-height: 0;
|
|
7
|
+
background: var(--product-surface);
|
|
8
|
+
border-bottom: 1px solid var(--product-border);
|
|
9
|
+
color: var(--product-ink);
|
|
10
|
+
font-family: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.mpi-publication .product-header__nav {
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
flex-wrap: wrap;
|
|
17
|
+
gap: 0.25rem;
|
|
18
|
+
max-width: 1440px;
|
|
19
|
+
min-height: 56px;
|
|
20
|
+
padding: 0 1rem;
|
|
21
|
+
margin: 0 auto;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.mpi-publication .product-header a,
|
|
25
|
+
.mpi-publication .product-header summary {
|
|
26
|
+
box-sizing: border-box;
|
|
27
|
+
display: inline-flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
min-height: 44px;
|
|
30
|
+
padding: 0.5rem 0.75rem;
|
|
31
|
+
color: var(--product-ink);
|
|
32
|
+
font-size: 0.9375rem;
|
|
33
|
+
font-weight: 600;
|
|
34
|
+
line-height: 1.25;
|
|
35
|
+
text-decoration: none;
|
|
36
|
+
overflow-wrap: anywhere;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.mpi-publication .product-header a:hover {
|
|
40
|
+
color: var(--product-primary-hover);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.mpi-publication .product-header a:focus-visible,
|
|
44
|
+
.mpi-publication .product-header summary:focus-visible {
|
|
45
|
+
outline: 3px solid var(--product-focus);
|
|
46
|
+
outline-offset: -3px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.mpi-publication .product-header__brand {
|
|
50
|
+
gap: 0.55rem;
|
|
51
|
+
padding-left: 0;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.mpi-publication .product-header__mark {
|
|
55
|
+
display: block;
|
|
56
|
+
flex: 0 0 auto;
|
|
57
|
+
height: 32px;
|
|
58
|
+
width: 32px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.mpi-publication .product-header__title {
|
|
62
|
+
color: var(--product-ink);
|
|
63
|
+
font-weight: 700;
|
|
64
|
+
white-space: nowrap;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.mpi-publication .product-header__desktop-links {
|
|
68
|
+
display: flex;
|
|
69
|
+
align-items: center;
|
|
70
|
+
gap: 0.25rem;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.mpi-publication .product-header__link--active {
|
|
74
|
+
border-bottom: 3px solid var(--product-primary);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.mpi-publication .product-header__account-actions {
|
|
78
|
+
display: flex;
|
|
79
|
+
align-items: center;
|
|
80
|
+
gap: 0.25rem;
|
|
81
|
+
margin-left: auto;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.mpi-publication .product-header__primary-action {
|
|
85
|
+
background: var(--product-primary);
|
|
86
|
+
color: var(--product-surface) !important;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.mpi-publication .product-header__primary-action:hover {
|
|
90
|
+
background: var(--product-primary-hover);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.mpi-publication .product-header__mobile-menu {
|
|
94
|
+
display: none;
|
|
95
|
+
position: relative;
|
|
96
|
+
margin-left: auto;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.mpi-publication .product-header__mobile-menu > summary {
|
|
100
|
+
justify-content: center;
|
|
101
|
+
width: 44px;
|
|
102
|
+
cursor: pointer;
|
|
103
|
+
list-style: none;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.mpi-publication .product-header__mobile-menu > summary::-webkit-details-marker {
|
|
107
|
+
display: none;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.mpi-publication .product-header__mobile-links {
|
|
111
|
+
position: absolute;
|
|
112
|
+
top: calc(100% + 0.25rem);
|
|
113
|
+
right: 0;
|
|
114
|
+
display: grid;
|
|
115
|
+
min-width: 12rem;
|
|
116
|
+
padding: 0.25rem;
|
|
117
|
+
background: var(--product-surface);
|
|
118
|
+
border: 1px solid var(--product-border);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.mpi-publication .product-header__mobile-links a {
|
|
122
|
+
width: 100%;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/* Producer contract: place the product row inside #quarto-header.fixed-top.
|
|
126
|
+
Keep the measured stack in flow before deferred Quarto initialization.
|
|
127
|
+
Its observer still supplies sidebar/anchor offsets; body padding must not
|
|
128
|
+
reserve the same height twice. No independent fixed-height guess. */
|
|
129
|
+
.mpi-publication #quarto-header {
|
|
130
|
+
position: sticky;
|
|
131
|
+
top: 0;
|
|
132
|
+
background: var(--mpi-surface);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
body.mpi-publication {
|
|
136
|
+
padding-top: 0 !important;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.mpi-publication .product-header__desktop-links > a,
|
|
140
|
+
.mpi-publication .product-header__account-actions > a {
|
|
141
|
+
white-space: nowrap;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.mpi-publication .product-header__account-actions {
|
|
145
|
+
min-inline-size: 0;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.mpi-publication .product-header .account-menu {
|
|
149
|
+
position: relative;
|
|
150
|
+
min-inline-size: 0;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.mpi-publication .product-header .account-menu summary {
|
|
154
|
+
cursor: pointer;
|
|
155
|
+
max-inline-size: 24rem;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.mpi-publication .product-header .account-menu__panel,
|
|
159
|
+
.mpi-publication .product-header__mobile-links {
|
|
160
|
+
max-inline-size: calc(100vw - 2rem);
|
|
161
|
+
max-block-size: 65vh;
|
|
162
|
+
overflow-y: auto;
|
|
163
|
+
overscroll-behavior: contain;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.mpi-publication .product-header .account-menu__panel {
|
|
167
|
+
position: absolute;
|
|
168
|
+
inset-inline-end: 0;
|
|
169
|
+
background: var(--product-surface);
|
|
170
|
+
border: 1px solid var(--product-border);
|
|
171
|
+
display: grid;
|
|
172
|
+
min-inline-size: min(12rem, calc(100vw - 2rem));
|
|
173
|
+
padding: 0.25rem;
|
|
174
|
+
z-index: 1032;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.mpi-publication .product-header .account-menu__panel form {
|
|
178
|
+
margin: 0;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.mpi-publication .product-header .account-menu__panel :is(a, button) {
|
|
182
|
+
background: transparent;
|
|
183
|
+
border: 0;
|
|
184
|
+
color: var(--product-ink);
|
|
185
|
+
display: flex;
|
|
186
|
+
align-items: center;
|
|
187
|
+
font: inherit;
|
|
188
|
+
min-block-size: 44px;
|
|
189
|
+
padding: 0.5rem 0.75rem;
|
|
190
|
+
inline-size: 100%;
|
|
191
|
+
text-align: start;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.mpi-publication .product-header button:focus-visible {
|
|
195
|
+
outline: 3px solid var(--product-focus);
|
|
196
|
+
outline-offset: -3px;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.mpi-publication .product-header__mobile-links .account-menu__panel {
|
|
200
|
+
position: static;
|
|
201
|
+
min-inline-size: 0;
|
|
202
|
+
max-inline-size: 100%;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/* With scripting disabled there is no Quarto measurement. Keep both header
|
|
206
|
+
rows in normal flow so reading and native disclosures remain unobscured. */
|
|
207
|
+
@media (scripting: none) {
|
|
208
|
+
.mpi-publication #quarto-header {
|
|
209
|
+
position: static !important;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
@media (max-width: 991.98px) {
|
|
214
|
+
.mpi-publication .product-header__title,
|
|
215
|
+
.mpi-publication .product-header__desktop-links,
|
|
216
|
+
.mpi-publication .product-header__account-actions {
|
|
217
|
+
display: none;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.mpi-publication .product-header__mobile-menu {
|
|
221
|
+
display: block;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
@media (prefers-reduced-motion: reduce) {
|
|
226
|
+
.mpi-publication .product-header,
|
|
227
|
+
body.mpi-lms-integrated #quarto-header {
|
|
228
|
+
transition: none !important;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
.mpi-publication main.content ul:has(> li > .kd):has(> li > .bloom) {
|
|
2
|
+
border-block: 1px solid var(--mpi-border);
|
|
3
|
+
list-style: none;
|
|
4
|
+
margin-block: 1.5rem;
|
|
5
|
+
max-inline-size: var(--mpi-prose-measure);
|
|
6
|
+
padding: 0;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.mpi-publication main.content ul:has(> li > .kd):has(> li > .bloom) > li {
|
|
10
|
+
align-items: baseline;
|
|
11
|
+
display: grid;
|
|
12
|
+
gap: 0.7rem 1rem;
|
|
13
|
+
grid-template-columns: minmax(10rem, 13rem) minmax(5rem, 7rem) 1fr;
|
|
14
|
+
padding-block: 1rem;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.mpi-publication main.content ul:has(> li > .kd):has(> li > .bloom) > li + li {
|
|
18
|
+
border-block-start: 1px solid var(--mpi-border);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.mpi-publication main.content .kd,
|
|
22
|
+
.mpi-publication main.content .bloom {
|
|
23
|
+
background: transparent;
|
|
24
|
+
border: 0;
|
|
25
|
+
border-radius: 0;
|
|
26
|
+
display: inline;
|
|
27
|
+
font-family: var(--mpi-font-heading);
|
|
28
|
+
font-size: 0;
|
|
29
|
+
font-weight: 700;
|
|
30
|
+
letter-spacing: 0.08em;
|
|
31
|
+
line-height: 1.35;
|
|
32
|
+
margin: 0;
|
|
33
|
+
padding: 0;
|
|
34
|
+
text-transform: uppercase;
|
|
35
|
+
vertical-align: baseline;
|
|
36
|
+
white-space: normal;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.mpi-publication main.content .kd {
|
|
40
|
+
color: var(--mpi-primary);
|
|
41
|
+
font-size: 0.78rem;
|
|
42
|
+
grid-column: 1;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.mpi-publication main.content .bloom {
|
|
46
|
+
color: var(--mpi-muted);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.mpi-publication main.content ul:has(> li > .kd):has(> li > .bloom) > li > .bloom {
|
|
50
|
+
grid-column: 2;
|
|
51
|
+
grid-row: 1;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.mpi-publication main.content .bloom::after {
|
|
55
|
+
font-size: 0.78rem;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.mpi-publication main.content .bloom-remember::after {
|
|
59
|
+
content: "Remember";
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.mpi-publication main.content .bloom-understand::after {
|
|
63
|
+
content: "Understand";
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.mpi-publication main.content .bloom-apply::after {
|
|
67
|
+
content: "Apply";
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.mpi-publication main.content .bloom-analyze::after {
|
|
71
|
+
content: "Analyze";
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.mpi-publication main.content .bloom-evaluate::after {
|
|
75
|
+
content: "Evaluate";
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.mpi-publication main.content .bloom-create::after {
|
|
79
|
+
content: "Create";
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@media (max-width: 48rem) {
|
|
83
|
+
.mpi-publication main.content ul:has(> li > .kd):has(> li > .bloom) > li {
|
|
84
|
+
grid-template-columns: 1fr;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.mpi-publication main.content ul:has(> li > .kd):has(> li > .bloom) > li > .bloom {
|
|
88
|
+
grid-column: 1;
|
|
89
|
+
grid-row: 2;
|
|
90
|
+
}
|
|
91
|
+
}
|