@allons-y/course-kit 0.0.0-stage → 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.
- package/LICENSE +373 -0
- package/README.md +90 -2
- package/assets/fonts/instrument-sans-italic-var.woff2 +0 -0
- package/assets/fonts/instrument-sans-var.woff2 +0 -0
- package/assets/fonts/pt-mono.woff2 +0 -0
- package/assets/scripts/copy.js +99 -0
- package/assets/scripts/deck.js +161 -0
- package/assets/scripts/email.js +19 -0
- package/assets/scripts/practice.js +545 -0
- package/assets/scripts/theme-panel.js +647 -0
- package/assets/scripts/theme-restore.js +17 -0
- package/assets/styles/base.css +2091 -0
- package/assets/styles/deck.css +968 -0
- package/assets/styles/font.css +36 -0
- package/assets/styles/notes.css +137 -0
- package/assets/styles/print.css +428 -0
- package/assets/styles/semantics.css +101 -0
- package/components/practice/check-controls.webc +50 -0
- package/components/practice/choice-list.webc +86 -0
- package/components/practice/cite-panel.webc +108 -0
- package/components/practice/practice-figure.webc +47 -0
- package/components/practice/practice-fill.webc +154 -0
- package/components/practice/practice-grid.webc +82 -0
- package/components/practice/practice-judge.webc +165 -0
- package/components/practice/practice-match.webc +178 -0
- package/components/practice/practice-question.webc +141 -0
- package/components/practice/practice-selfcheck.webc +40 -0
- package/components/practice/practice-terms.webc +95 -0
- package/components/practice/practice-tree.webc +91 -0
- package/components/practice/practice-worksheet.webc +369 -0
- package/components/site/copyright.webc +13 -0
- package/components/site/course-documents.webc +27 -0
- package/components/site/course-now.webc +393 -0
- package/components/site/course-summary.webc +136 -0
- package/components/site/demo-weeks.webc +91 -0
- package/components/site/glossary-entry.webc +31 -0
- package/components/site/glossary-panel.webc +1482 -0
- package/components/site/glossary.webc +45 -0
- package/components/site/grading.webc +50 -0
- package/components/site/instructor.webc +432 -0
- package/components/site/masthead.webc +147 -0
- package/components/site/nav-links.webc +174 -0
- package/components/site/policies.webc +17 -0
- package/components/site/practice-index.webc +31 -0
- package/components/site/schedule-overview.webc +145 -0
- package/components/site/schedule-weeks.webc +589 -0
- package/components/site/site-footer.webc +119 -0
- package/components/site/slide-timetable.webc +152 -0
- package/components/site/syllabus.webc +370 -0
- package/components/ui/arrow-link.webc +19 -0
- package/components/ui/assigned-list.webc +101 -0
- package/components/ui/callout.webc +11 -0
- package/components/ui/card-list.webc +124 -0
- package/components/ui/codepen-embed.webc +123 -0
- package/components/ui/download-button.webc +49 -0
- package/components/ui/eyebrow.webc +18 -0
- package/components/ui/icons/github.webc +6 -0
- package/components/ui/icons/google.webc +9 -0
- package/components/ui/link-list.webc +130 -0
- package/components/ui/link-section.webc +40 -0
- package/components/ui/meeting-card.webc +73 -0
- package/components/ui/meeting-decks.webc +38 -0
- package/components/ui/table-rubric.webc +251 -0
- package/components/ui/today-link.webc +43 -0
- package/components/ui/today-marker.webc +149 -0
- package/components/ui/week-block.webc +53 -0
- package/examples/starter/_data/course.json +20 -0
- package/examples/starter/_data/dates.json +16 -0
- package/examples/starter/_data/grading.json +6 -0
- package/examples/starter/_data/instructor.json +7 -0
- package/examples/starter/_data/policies.json +9 -0
- package/examples/starter/_data/scale.json +8 -0
- package/examples/starter/_data/schedule.json +22 -0
- package/examples/starter/_data/theme.json +17 -0
- package/examples/starter/content/index.webc +12 -0
- package/examples/starter/content/schedule.webc +12 -0
- package/examples/starter/content/slides/index.11tydata.js +5 -0
- package/examples/starter/content/slides/index.webc +12 -0
- package/examples/starter/content/slides/week-1-day-1.md +40 -0
- package/examples/starter/eleventy.config.js +8 -0
- package/glue/deck-notes.data.js +41 -0
- package/glue/deck-notes.webc +32 -0
- package/glue/lesson-day.data.js +17 -0
- package/glue/lesson-day.webc +0 -0
- package/glue/lesson-plans.data.js +13 -0
- package/glue/lesson-plans.webc +2 -0
- package/index.js +6 -0
- package/layouts/base.webc +79 -0
- package/layouts/deck.webc +46 -0
- package/layouts/demo.webc +16 -0
- package/layouts/document.webc +10 -0
- package/layouts/lesson-detail.webc +109 -0
- package/layouts/lesson.webc +71 -0
- package/layouts/notes.webc +23 -0
- package/layouts/worksheet.webc +52 -0
- package/lib/assets.js +42 -0
- package/lib/bundles.js +79 -0
- package/lib/check.js +110 -0
- package/lib/components.js +19 -0
- package/lib/copy.js +656 -0
- package/lib/data/build.js +22 -0
- package/lib/data/fonts.js +16 -0
- package/lib/data/glossary.js +304 -0
- package/lib/data/index.js +8 -0
- package/lib/data/lessons.js +173 -0
- package/lib/data/project.js +22 -0
- package/lib/data/read.js +61 -0
- package/lib/data/site.js +70 -0
- package/lib/data/term.js +80 -0
- package/lib/extensions.js +70 -0
- package/lib/files.js +14 -0
- package/lib/filters.js +584 -0
- package/lib/fit.js +106 -0
- package/lib/glue.js +26 -0
- package/lib/lesson-materials.js +66 -0
- package/lib/markdown.js +568 -0
- package/lib/minify.js +53 -0
- package/lib/paths.js +5 -0
- package/lib/pdf.js +134 -0
- package/lib/plugin.js +231 -0
- package/lib/plugins.js +34 -0
- package/lib/postcss.js +93 -0
- package/lib/theme-server.js +88 -0
- package/lib/theme.js +185 -0
- package/lib/worksheet-dialect.js +415 -0
- package/lib/worksheets.js +276 -0
- package/package.json +119 -4
- package/schemas/course.schema.json +161 -0
- package/schemas/dates.schema.json +165 -0
- package/schemas/grading.schema.json +59 -0
- package/schemas/instructor.schema.json +76 -0
- package/schemas/policies.schema.json +90 -0
- package/schemas/project.schema.json +209 -0
- package/schemas/scale.schema.json +68 -0
- package/schemas/schedule.schema.json +260 -0
- package/schemas/theme.schema.json +704 -0
- package/schemas/worksheet.schema.json +449 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* Self-hosted fonts. Sources: Google Fonts releases of Instrument Sans (OFL) & PT Mono (OFL). */
|
|
2
|
+
@font-face {
|
|
3
|
+
font-family: "Instrument Sans";
|
|
4
|
+
font-style: normal;
|
|
5
|
+
font-weight: 400 700;
|
|
6
|
+
font-display: swap;
|
|
7
|
+
src: url("../fonts/instrument-sans-var.woff2") format("woff2");
|
|
8
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@font-face {
|
|
12
|
+
font-family: "Instrument Sans";
|
|
13
|
+
font-style: italic;
|
|
14
|
+
font-weight: 400 700;
|
|
15
|
+
font-display: swap;
|
|
16
|
+
src: url("../fonts/instrument-sans-italic-var.woff2") format("woff2");
|
|
17
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@font-face {
|
|
21
|
+
font-family: "PT Mono";
|
|
22
|
+
font-style: normal;
|
|
23
|
+
font-weight: 400;
|
|
24
|
+
font-display: swap;
|
|
25
|
+
src: url("../fonts/pt-mono.woff2") format("woff2");
|
|
26
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@font-face {
|
|
30
|
+
font-family: "Instrument Sans Fallback";
|
|
31
|
+
src: local("Arial");
|
|
32
|
+
size-adjust: 131.17%;
|
|
33
|
+
ascent-override: 73.95%;
|
|
34
|
+
descent-override: 19.06%;
|
|
35
|
+
line-gap-override: 0%;
|
|
36
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
/* Instructor notes sheet (_layouts/notes.webc): a standalone page, black
|
|
2
|
+
on white in every theme, built to print. No base.css, no site chrome. */
|
|
3
|
+
|
|
4
|
+
:root {
|
|
5
|
+
--color-text: #000;
|
|
6
|
+
--color-page: #fff;
|
|
7
|
+
--color-border: #999;
|
|
8
|
+
|
|
9
|
+
color-scheme: light;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
body {
|
|
13
|
+
margin: 0;
|
|
14
|
+
background: var(--color-page);
|
|
15
|
+
color: var(--color-text);
|
|
16
|
+
font-family: "Instrument Sans", system-ui, sans-serif;
|
|
17
|
+
font-size: 16px;
|
|
18
|
+
line-height: 1.5;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
main {
|
|
22
|
+
max-inline-size: 50rem;
|
|
23
|
+
margin-inline: auto;
|
|
24
|
+
padding: 2rem 1rem;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
a {
|
|
28
|
+
color: inherit;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
code {
|
|
32
|
+
font-family: "PT Mono", monospace;
|
|
33
|
+
font-size: 0.9em;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.notes-sheet header {
|
|
37
|
+
margin-block-end: 1.5rem;
|
|
38
|
+
|
|
39
|
+
h1 {
|
|
40
|
+
margin-block: 0.25rem;
|
|
41
|
+
font-size: 1.75rem;
|
|
42
|
+
line-height: 1.2;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
p {
|
|
46
|
+
margin: 0;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.meta {
|
|
51
|
+
font-size: 0.85rem;
|
|
52
|
+
font-weight: 600;
|
|
53
|
+
letter-spacing: 0.05em;
|
|
54
|
+
text-transform: uppercase;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.notes-sheet-slides {
|
|
58
|
+
list-style: none;
|
|
59
|
+
margin: 0;
|
|
60
|
+
padding: 0;
|
|
61
|
+
|
|
62
|
+
> li {
|
|
63
|
+
display: grid;
|
|
64
|
+
grid-template-columns: 2.5em 1fr;
|
|
65
|
+
gap: 1rem;
|
|
66
|
+
padding-block: 0.75rem;
|
|
67
|
+
border-block-start: 1px solid var(--color-border);
|
|
68
|
+
break-inside: avoid;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
> li:last-child {
|
|
72
|
+
border-block-end: 1px solid var(--color-border);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.slide-number {
|
|
76
|
+
font-size: 1.5rem;
|
|
77
|
+
font-weight: 700;
|
|
78
|
+
font-variant-numeric: tabular-nums;
|
|
79
|
+
line-height: 1.1;
|
|
80
|
+
text-decoration: none;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.slide-title {
|
|
84
|
+
margin: 0;
|
|
85
|
+
font-weight: 600;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.no-notes .slide-title {
|
|
89
|
+
font-weight: 400;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.notes-label {
|
|
93
|
+
display: flex;
|
|
94
|
+
flex-wrap: wrap;
|
|
95
|
+
gap: 0.5rem;
|
|
96
|
+
align-items: baseline;
|
|
97
|
+
margin-block: 0.25rem 0;
|
|
98
|
+
font-size: 0.8rem;
|
|
99
|
+
letter-spacing: 0.05em;
|
|
100
|
+
text-transform: uppercase;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.timing {
|
|
104
|
+
font-variant-numeric: tabular-nums;
|
|
105
|
+
font-weight: 700;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.notes-body {
|
|
109
|
+
> * {
|
|
110
|
+
margin-block: 0.25rem 0;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
ul,
|
|
114
|
+
ol {
|
|
115
|
+
padding-inline-start: 1.2em;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
@media print {
|
|
121
|
+
@page {
|
|
122
|
+
margin: 0.5in;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
body {
|
|
126
|
+
font-size: 10.5pt;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
main {
|
|
130
|
+
max-inline-size: none;
|
|
131
|
+
padding: 0;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.notes-sheet-slides > li {
|
|
135
|
+
padding-block: 0.5em;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
@@ -0,0 +1,428 @@
|
|
|
1
|
+
/* Syllabus print/PDF styles, loaded only on the home page via
|
|
2
|
+
`printStylesheet`, and printed to the syllabus PDF by a production build.
|
|
3
|
+
Odd layouts are Chromium print-fragmentation workarounds. */
|
|
4
|
+
|
|
5
|
+
@media print {
|
|
6
|
+
@page {
|
|
7
|
+
size: letter;
|
|
8
|
+
margin: 0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/* Grayscale — neutralize every token. */
|
|
12
|
+
:root {
|
|
13
|
+
/* A printed page has no pointer: links and summaries keep their text height. */
|
|
14
|
+
--target-min: 0px;
|
|
15
|
+
--color-text: #000;
|
|
16
|
+
--color-text-muted: #3d3d3d;
|
|
17
|
+
--color-accent-text: #000;
|
|
18
|
+
--color-link: #000;
|
|
19
|
+
--color-link-hover: #000;
|
|
20
|
+
--color-accent: #000;
|
|
21
|
+
--color-page: #fff;
|
|
22
|
+
--color-surface: #fff;
|
|
23
|
+
--color-highlight: transparent;
|
|
24
|
+
--color-warning: #000;
|
|
25
|
+
--color-warning-edge: #000;
|
|
26
|
+
--color-error: #000;
|
|
27
|
+
--color-success: #000;
|
|
28
|
+
color-scheme: light;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
#to-content,
|
|
32
|
+
body > header,
|
|
33
|
+
body > footer,
|
|
34
|
+
#schedule > .schedule-weeks,
|
|
35
|
+
#schedule > p,
|
|
36
|
+
#approach,
|
|
37
|
+
#documents,
|
|
38
|
+
#syllabus-heading {
|
|
39
|
+
display: none;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
body {
|
|
43
|
+
display: block;
|
|
44
|
+
margin: 0;
|
|
45
|
+
padding: 0;
|
|
46
|
+
max-inline-size: none;
|
|
47
|
+
color: var(--color-text);
|
|
48
|
+
font-size: 8.5pt;
|
|
49
|
+
line-height: 1.25;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
main {
|
|
53
|
+
padding: 0;
|
|
54
|
+
max-inline-size: none;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
p {
|
|
58
|
+
font-size: inherit;
|
|
59
|
+
margin-block: 0 3pt;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
li:not([class]) {
|
|
63
|
+
font-size: inherit;
|
|
64
|
+
line-height: 1.25;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
ul,
|
|
68
|
+
ol {
|
|
69
|
+
margin-block: 0 3pt;
|
|
70
|
+
padding-inline-start: 12pt;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
li {
|
|
74
|
+
margin-block: 0 1pt;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* screen styles enlarge strong labels inside list items */
|
|
78
|
+
li :is(b, strong) {
|
|
79
|
+
font-size: inherit;
|
|
80
|
+
font-weight: 600;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
a {
|
|
84
|
+
color: var(--color-link);
|
|
85
|
+
text-decoration: none;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
h2,
|
|
89
|
+
h3,
|
|
90
|
+
h4,
|
|
91
|
+
strong,
|
|
92
|
+
summary {
|
|
93
|
+
text-decoration: none;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
main a[href^="http"]::after,
|
|
97
|
+
main a[href^="/"]::after {
|
|
98
|
+
content: " (" attr(href) ")";
|
|
99
|
+
font-size: 90%;
|
|
100
|
+
font-weight: 400;
|
|
101
|
+
color: var(--color-text-muted);
|
|
102
|
+
overflow-wrap: anywhere;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
h1 {
|
|
106
|
+
font-size: 15pt;
|
|
107
|
+
font-weight: 700;
|
|
108
|
+
line-height: 1.1;
|
|
109
|
+
margin-block: 0 2pt;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
h2 {
|
|
113
|
+
font-size: 9pt;
|
|
114
|
+
font-weight: 700;
|
|
115
|
+
text-transform: uppercase;
|
|
116
|
+
letter-spacing: 0.08em;
|
|
117
|
+
margin-block: 8pt 3pt;
|
|
118
|
+
padding-block-end: 1.5pt;
|
|
119
|
+
border-block-end: 0.75pt solid var(--color-text);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
h3 {
|
|
123
|
+
font-size: 8.5pt;
|
|
124
|
+
font-weight: 700;
|
|
125
|
+
text-transform: uppercase;
|
|
126
|
+
letter-spacing: 0.06em;
|
|
127
|
+
margin-block: 5pt 1pt;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
h4 {
|
|
131
|
+
font-size: 8.5pt;
|
|
132
|
+
margin-block: 3pt 0;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
h1,
|
|
136
|
+
h2,
|
|
137
|
+
h3,
|
|
138
|
+
h4 {
|
|
139
|
+
/* eslint-disable-next-line css/use-baseline -- fragmentation control for print, no runtime fallback needed */
|
|
140
|
+
break-after: avoid;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
li,
|
|
144
|
+
#instructor,
|
|
145
|
+
.print-only,
|
|
146
|
+
details {
|
|
147
|
+
break-inside: avoid;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
p,
|
|
151
|
+
li {
|
|
152
|
+
/* eslint-disable-next-line css/use-baseline -- fragmentation control for print, no runtime fallback needed */
|
|
153
|
+
orphans: 3;
|
|
154
|
+
|
|
155
|
+
/* eslint-disable-next-line css/use-baseline -- fragmentation control for print, no runtime fallback needed */
|
|
156
|
+
widows: 3;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/* ---- Document frame (base zeroes .content-column print padding) ---- */
|
|
160
|
+
.content-column > section + section {
|
|
161
|
+
margin-block-start: 6pt;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
section:last-child {
|
|
165
|
+
margin-block-end: 0;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/* ---- Masthead: term, title, catalog copy, prerequisites ---- */
|
|
169
|
+
.course-header {
|
|
170
|
+
border-block-end: 1.25pt solid var(--color-text);
|
|
171
|
+
padding-block-end: 4pt;
|
|
172
|
+
margin-block-end: 6pt;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.course-header > p:first-child {
|
|
176
|
+
font-size: 7.5pt;
|
|
177
|
+
letter-spacing: 0.12em;
|
|
178
|
+
color: var(--color-text);
|
|
179
|
+
margin-block: 0 1pt;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.lede {
|
|
183
|
+
font-size: 8.5pt;
|
|
184
|
+
font-weight: 400;
|
|
185
|
+
line-height: 1.25;
|
|
186
|
+
margin-block: 1pt 2pt;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.course-header > p:last-child {
|
|
190
|
+
margin-block: 0;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/* ---- Instructor: collapse the fact grid to one run-in line ---- */
|
|
194
|
+
#instructor {
|
|
195
|
+
font-size: 8.5pt;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
#instructor h2 {
|
|
199
|
+
display: inline;
|
|
200
|
+
font-size: inherit;
|
|
201
|
+
border: none;
|
|
202
|
+
margin: 0;
|
|
203
|
+
padding: 0;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
#instructor h2::after {
|
|
207
|
+
content: ": ";
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
#instructor dl,
|
|
211
|
+
#instructor dl > div,
|
|
212
|
+
#instructor dt,
|
|
213
|
+
#instructor dd,
|
|
214
|
+
#instructor dd ul,
|
|
215
|
+
#instructor dd li,
|
|
216
|
+
#instructor p {
|
|
217
|
+
display: inline;
|
|
218
|
+
font-size: inherit;
|
|
219
|
+
margin: 0;
|
|
220
|
+
padding: 0;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
#instructor dl > div + div::before {
|
|
224
|
+
content: " · ";
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
#instructor dl > div:first-of-type dt {
|
|
228
|
+
display: none;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
#instructor dt {
|
|
232
|
+
font-weight: 600;
|
|
233
|
+
text-transform: none;
|
|
234
|
+
letter-spacing: 0;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
#instructor dt::after {
|
|
238
|
+
content: ": ";
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
#instructor dd li + li::before {
|
|
242
|
+
content: "; ";
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
#instructor p.muted {
|
|
246
|
+
font-size: 7.5pt;
|
|
247
|
+
color: var(--color-text-muted);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/* ---- Syllabus body ---- */
|
|
251
|
+
#syllabus > article {
|
|
252
|
+
margin-block: 0 5pt;
|
|
253
|
+
padding-block-end: 0;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
#syllabus ul {
|
|
257
|
+
columns: 2;
|
|
258
|
+
column-gap: 16pt;
|
|
259
|
+
font-size: 8pt;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
#syllabus ol {
|
|
263
|
+
font-size: 8pt;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/* "Additional outcomes" reads as a sub-note of Learning outcomes */
|
|
267
|
+
#additional-outcomes {
|
|
268
|
+
font-size: 8pt;
|
|
269
|
+
font-style: italic;
|
|
270
|
+
font-weight: 600;
|
|
271
|
+
text-transform: none;
|
|
272
|
+
letter-spacing: 0;
|
|
273
|
+
margin-block: 2pt 1pt;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/* ---- Coursework: two-column grid, run-in category titles ---- */
|
|
277
|
+
#syllabus article:has(> #coursework) {
|
|
278
|
+
display: grid;
|
|
279
|
+
grid-template-columns: 1fr 1fr;
|
|
280
|
+
gap: 2pt 14pt;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
#coursework {
|
|
284
|
+
grid-column: 1 / -1;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
#coursework ~ div {
|
|
288
|
+
font-size: 8pt;
|
|
289
|
+
break-inside: avoid;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
#coursework ~ div h4 {
|
|
293
|
+
display: inline;
|
|
294
|
+
font-size: inherit;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
#coursework ~ div h4::after {
|
|
298
|
+
content: " — ";
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
#coursework ~ div h4 + p {
|
|
302
|
+
display: inline;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
#coursework ~ div p {
|
|
306
|
+
margin-block-end: 1pt;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
#syllabus .callout {
|
|
310
|
+
break-inside: avoid;
|
|
311
|
+
border: none;
|
|
312
|
+
border-inline-start: 1.5pt solid var(--color-text);
|
|
313
|
+
border-radius: 0;
|
|
314
|
+
background: none;
|
|
315
|
+
padding-block: 1pt;
|
|
316
|
+
padding-inline: 5pt;
|
|
317
|
+
margin-block: 2pt;
|
|
318
|
+
font-size: inherit;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
/* ---- Grading: weighting and scale side by side ---- */
|
|
322
|
+
#syllabus article:has(> #grading) {
|
|
323
|
+
break-inside: avoid;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
#syllabus article:has(> #grading) > div {
|
|
327
|
+
display: block;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
#syllabus article:has(> #grading) table {
|
|
331
|
+
display: inline-table;
|
|
332
|
+
inline-size: 47%;
|
|
333
|
+
vertical-align: top;
|
|
334
|
+
margin-inline-end: 2%;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
table {
|
|
338
|
+
font-size: 7.5pt;
|
|
339
|
+
margin-block: 0;
|
|
340
|
+
border-collapse: collapse;
|
|
341
|
+
border-block: 0.75pt solid var(--color-text);
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
#syllabus table caption {
|
|
345
|
+
caption-side: top;
|
|
346
|
+
text-align: start;
|
|
347
|
+
font-weight: 600;
|
|
348
|
+
font-size: 8pt;
|
|
349
|
+
padding-block-end: 1pt;
|
|
350
|
+
margin-block: 0;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
th,
|
|
354
|
+
td {
|
|
355
|
+
background: none;
|
|
356
|
+
border: none;
|
|
357
|
+
padding-block: 0.75pt;
|
|
358
|
+
padding-inline: 0 8pt;
|
|
359
|
+
text-align: start;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
thead th {
|
|
363
|
+
border-block-end: 0.75pt solid var(--color-text);
|
|
364
|
+
color: inherit;
|
|
365
|
+
font-size: inherit;
|
|
366
|
+
letter-spacing: normal;
|
|
367
|
+
text-transform: none;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
tbody td {
|
|
371
|
+
border-block-end: 0.25pt solid #bbb;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
tbody tr:last-child td {
|
|
375
|
+
border-block-end: none;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
/* ---- Key dates ---- */
|
|
379
|
+
#syllabus article:has(> #key-dates) {
|
|
380
|
+
break-inside: avoid;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
#syllabus article:has(> #key-dates) ul {
|
|
384
|
+
columns: 3;
|
|
385
|
+
column-gap: 14pt;
|
|
386
|
+
font-size: 7.5pt;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
/* ---- Schedule pointer + fixed dates ---- */
|
|
390
|
+
#schedule .print-only {
|
|
391
|
+
font-size: 8pt;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
.print-only ul {
|
|
395
|
+
columns: 2;
|
|
396
|
+
column-gap: 16pt;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
/* ---- Policies: stacked fine print (each disclosure avoids breaking;
|
|
400
|
+
the section as a whole may span pages) ---- */
|
|
401
|
+
details {
|
|
402
|
+
margin: 0 0 3pt;
|
|
403
|
+
padding: 0;
|
|
404
|
+
border: none;
|
|
405
|
+
background: none;
|
|
406
|
+
font-size: 7.5pt;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
summary {
|
|
410
|
+
display: block;
|
|
411
|
+
list-style: none;
|
|
412
|
+
margin: 0;
|
|
413
|
+
padding: 0;
|
|
414
|
+
font-weight: 700;
|
|
415
|
+
font-size: inherit;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
details p {
|
|
419
|
+
font-size: inherit;
|
|
420
|
+
line-height: 1.2;
|
|
421
|
+
margin-block: 0.5pt 0;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
/* Paper is the measure: drop the on-screen 80ch reading cap. */
|
|
425
|
+
.disclosures p {
|
|
426
|
+
max-inline-size: none;
|
|
427
|
+
}
|
|
428
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Shared by /demo/soup/ and /demo/landmarks/: class selectors only, so the
|
|
3
|
+
* two pages — identical except for their element names — must render the
|
|
4
|
+
* same. That identical rendering is the demo.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
* {
|
|
8
|
+
margin: 0;
|
|
9
|
+
padding: 0;
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
body {
|
|
14
|
+
font-family: system-ui, sans-serif;
|
|
15
|
+
background: #fbfaf7;
|
|
16
|
+
color: #1a1822;
|
|
17
|
+
max-inline-size: 46rem;
|
|
18
|
+
margin-inline: auto;
|
|
19
|
+
padding-block: 2rem 4rem;
|
|
20
|
+
padding-inline: 1.5rem;
|
|
21
|
+
line-height: 1.55;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.site-header {
|
|
25
|
+
margin-block-end: 2rem;
|
|
26
|
+
padding-block-end: 1.25rem;
|
|
27
|
+
border-block-end: 3px solid #6b3fa0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.site-name {
|
|
31
|
+
font-size: 2rem;
|
|
32
|
+
font-weight: 800;
|
|
33
|
+
line-height: 1.1;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.tagline {
|
|
37
|
+
color: #585463;
|
|
38
|
+
margin-block-start: 0.25rem;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.menu {
|
|
42
|
+
display: flex;
|
|
43
|
+
gap: 1.25rem;
|
|
44
|
+
margin-block-start: 1rem;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.menu a {
|
|
48
|
+
color: #6b3fa0;
|
|
49
|
+
font-weight: 600;
|
|
50
|
+
text-decoration: none;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.menu a:hover,
|
|
54
|
+
.menu a:focus-visible {
|
|
55
|
+
text-decoration: underline;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.layout {
|
|
59
|
+
display: grid;
|
|
60
|
+
grid-template-columns: 2fr 1fr;
|
|
61
|
+
gap: 2rem;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.post-title {
|
|
65
|
+
font-size: 1.5rem;
|
|
66
|
+
font-weight: 700;
|
|
67
|
+
margin-block-end: 0.25rem;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.byline {
|
|
71
|
+
color: #585463;
|
|
72
|
+
font-size: 0.9rem;
|
|
73
|
+
margin-block-end: 1rem;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.para {
|
|
77
|
+
margin-block-end: 1rem;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.pick {
|
|
81
|
+
background: #f3eee9;
|
|
82
|
+
border-inline-start: 4px solid #6b3fa0;
|
|
83
|
+
border-radius: 0.5rem;
|
|
84
|
+
padding-block: 1rem;
|
|
85
|
+
padding-inline: 1.25rem;
|
|
86
|
+
align-self: start;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.pick-title {
|
|
90
|
+
font-size: 1.05rem;
|
|
91
|
+
font-weight: 700;
|
|
92
|
+
margin-block-end: 0.5rem;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.site-footer {
|
|
96
|
+
margin-block-start: 3rem;
|
|
97
|
+
padding-block-start: 1rem;
|
|
98
|
+
border-block-start: 1px solid #d9d4cd;
|
|
99
|
+
color: #585463;
|
|
100
|
+
font-size: 0.9rem;
|
|
101
|
+
}
|