datalog-theme 0.7.0 → 0.9.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +188 -0
- data/CITATION.cff +2 -2
- data/README.md +25 -17
- data/_data/cdn-integrity.yml +0 -30
- data/_data/i18n/en.yml +297 -0
- data/_data/i18n/es.yml +297 -0
- data/_data/i18n/pt.yml +297 -0
- data/_data/js_manifest.json +16 -0
- data/_includes/analytics/dashboard.html +3 -1
- data/_includes/components/api-function.html +20 -1
- data/_includes/components/author-bio.html +21 -11
- data/_includes/components/author-list.html +32 -0
- data/_includes/components/citation-tools.html +33 -25
- data/_includes/components/comments-thread.html +90 -0
- data/_includes/components/contact-form.html +120 -0
- data/_includes/components/correction-report.html +82 -0
- data/_includes/components/enhanced-code-block.html +1 -1
- data/_includes/components/enhanced-toc.html +6 -7
- data/_includes/components/license-link.html +13 -0
- data/_includes/components/license-notice.html +28 -0
- data/_includes/components/moderation-inbox.html +139 -0
- data/_includes/components/reactions.html +49 -0
- data/_includes/components/reading-list.html +31 -0
- data/_includes/components/reading-mode-toggle.html +65 -0
- data/_includes/components/reading-state-bookmark.html +27 -0
- data/_includes/components/reading-state-panel.html +71 -0
- data/_includes/components/reproducibility.html +61 -0
- data/_includes/components/responsive-image.html +3 -3
- data/_includes/components/revision-history.html +39 -0
- data/_includes/components/revision-notice.html +35 -0
- data/_includes/components/series-nav.html +64 -0
- data/_includes/components/subscribe-form.html +88 -0
- data/_includes/components/subscription-manage.html +68 -0
- data/_includes/components/webmentions.html +48 -0
- data/_includes/csp-meta.html +135 -11
- data/_includes/footer.html +22 -20
- data/_includes/head.html +111 -63
- data/_includes/header/navigation.html +12 -15
- data/_includes/header.html +28 -19
- data/_includes/layouts/default/article.html +9 -7
- data/_includes/meta/dynamic-services-config.html +14 -0
- data/_includes/meta/math-config.html +18 -10
- data/_includes/meta/person-json.html +27 -0
- data/_includes/meta/publisher.html +45 -0
- data/_includes/meta/schema.html +67 -30
- data/_includes/meta/scholarly.html +121 -0
- data/_includes/meta/scripts-loader.html +18 -32
- data/_includes/meta/webmention-discovery.html +14 -0
- data/_includes/post/related-posts.html +4 -7
- data/_includes/scripts.html +57 -0
- data/_includes/search/index-data.json +9 -34
- data/_layouts/dataset.html +5 -3
- data/_layouts/default.html +16 -8
- data/_layouts/notebook.html +1 -0
- data/_layouts/package.html +4 -2
- data/_layouts/page.html +15 -0
- data/_layouts/portfolio.html +1 -0
- data/_layouts/post.html +102 -23
- data/_layouts/project.html +4 -3
- data/_layouts/research.html +20 -8
- data/_plugins/analytics_dashboard.rb +9 -3
- data/_plugins/authors.rb +133 -0
- data/_plugins/config_validator.rb +231 -23
- data/_plugins/critical_css_check.rb +42 -0
- data/_plugins/csp_generator.rb +18 -28
- data/_plugins/datalog_bibliography.rb +9 -7
- data/_plugins/datalog_comments.rb +8 -5
- data/_plugins/datalog_slides.rb +9 -8
- data/_plugins/i18n.rb +13 -12
- data/_plugins/image_optimizer.rb +241 -178
- data/_plugins/licenses.rb +135 -0
- data/_plugins/math_preprocessor.rb +59 -7
- data/_plugins/notebook_converter.rb +23 -4
- data/_plugins/plugin_loader.rb +3 -1
- data/_plugins/publications_generator.rb +8 -2
- data/_plugins/references.rb +238 -0
- data/_plugins/reproducibility.rb +150 -0
- data/_plugins/revisions.rb +101 -0
- data/_plugins/rouge_highlight_filter.rb +42 -0
- data/_plugins/scholarly.rb +50 -0
- data/_plugins/search_code_blocks.rb +30 -0
- data/_plugins/search_normalizer.rb +15 -53
- data/_plugins/search_pages.rb +3 -4
- data/_plugins/series.rb +104 -0
- data/_plugins/statements.rb +87 -0
- data/_sass/_academic-dashboard.scss +262 -0
- data/_sass/_base.scss +20 -1
- data/_sass/_comments-thread.scss +159 -0
- data/_sass/_components.scss +64 -1153
- data/_sass/_features.scss +17 -0
- data/_sass/_layout.scss +385 -1
- data/_sass/_mathematical.scss +27 -0
- data/_sass/_moderation.scss +222 -0
- data/_sass/_notebooks.scss +322 -0
- data/_sass/_open-science-badges.scss +56 -0
- data/_sass/{_phase1-enhancements.scss → _post-components.scss} +5 -3
- data/_sass/_print.scss +291 -0
- data/_sass/_reactions.scss +89 -0
- data/_sass/_reading-state.scss +290 -0
- data/_sass/_search-page.scss +530 -0
- data/_sass/_search.scss +46 -0
- data/_sass/_service-forms.scss +204 -0
- data/_sass/_subscriptions.scss +140 -0
- data/_sass/_syntax-highlighting.scss +212 -97
- data/_sass/_theme.scss +40 -19
- data/_sass/_typography.scss +130 -0
- data/_sass/_utilities.scss +5 -0
- data/_sass/_variables.scss +6 -0
- data/_sass/_webmentions.scss +125 -0
- data/assets/css/main.scss +14 -0
- data/assets/js/dist/academic.js +1 -1
- data/assets/js/dist/analytics-dashboard.js +1 -1
- data/assets/js/dist/chunks/chunk-2DYDWUFX.js +1 -0
- data/assets/js/dist/chunks/chunk-PATLC23F.js +1 -0
- data/assets/js/dist/chunks/chunk-V7734B2G.js +1 -0
- data/assets/js/dist/comments.js +2 -0
- data/assets/js/dist/contact.js +1 -0
- data/assets/js/dist/core.js +1 -1
- data/assets/js/dist/corrections.js +1 -0
- data/assets/js/dist/loader.js +1 -1
- data/assets/js/dist/math.js +1 -1
- data/assets/js/dist/moderation.js +1 -0
- data/assets/js/dist/notebook.js +1 -1
- data/assets/js/dist/reactions.js +1 -0
- data/assets/js/dist/reading-state.js +1 -0
- data/assets/js/dist/search.js +1 -1
- data/assets/js/dist/sources.json +52 -0
- data/assets/js/dist/subscriptions.js +1 -0
- data/assets/js/dist/visualizations.js +11 -2
- data/assets/js/dist/webmentions.js +1 -0
- data/assets/js/loader.js +37 -1
- data/datalog-theme.gemspec +35 -23
- data/lib/datalog/cli.rb +43 -15
- data/lib/datalog/critical_css.rb +168 -0
- data/lib/datalog/plugin_system/dependency_resolver.rb +0 -2
- data/lib/datalog/plugins/comments.rb +33 -3
- data/lib/datalog/theme/installed_files.rb +113 -0
- data/lib/datalog/theme/package.rb +57 -0
- data/lib/datalog/theme/repository_checkout.rb +94 -0
- data/lib/datalog/theme/version.rb +5 -1
- data/lib/datalog/warning_filter.rb +5 -11
- data/lib/datalog-theme.rb +6 -0
- metadata +96 -147
- data/_data/academic.yml +0 -217
- data/_data/config/author.yml +0 -121
- data/_data/datasets.yml +0 -28
- data/_data/js_meta.json +0 -371
- data/_data/navigation.yml +0 -145
- data/_data/projects.yml +0 -41
- data/_data/publications.yml +0 -28
- data/_data/social.yml +0 -73
- data/_data/visualizations.yml +0 -51
- data/_includes/components/advanced-search.html +0 -682
- data/_includes/components/bookmark-system.html +0 -96
- data/_includes/components/comments.html +0 -244
- data/_includes/components/content-recommendations.html +0 -228
- data/_includes/components/email-preferences.html +0 -200
- data/_includes/components/enhanced-metadata.html +0 -228
- data/_includes/components/language-switcher.html +0 -396
- data/_includes/components/navigation-enhancements.html +0 -454
- data/_includes/components/newsletter-signup.html +0 -178
- data/_includes/components/popular-posts.html +0 -233
- data/_includes/components/reading-progress.html +0 -133
- data/_includes/components/reading-time.html +0 -121
- data/_includes/components/series-navigation.html +0 -124
- data/_includes/components/social-proof.html +0 -34
- data/_includes/components/user-preferences.html +0 -566
- data/_includes/meta/syntax-config.html +0 -19
- data/_layouts/archive.html +0 -282
- data/_layouts/post-sidebar.html +0 -183
- data/_sass/_phase3-enhancements.scss +0 -874
- data/_sass/_phase4-enhancements.scss +0 -1214
- data/_sass/_phase5-enhancements.scss +0 -414
- data/assets/js/academic.js +0 -262
- data/assets/js/analytics-dashboard.js +0 -382
- data/assets/js/core/dark-mode.js +0 -79
- data/assets/js/core/github-cards.js +0 -123
- data/assets/js/core/language-filter.js +0 -69
- data/assets/js/core/navigation.js +0 -184
- data/assets/js/core/scroll-progress.js +0 -45
- data/assets/js/core/search-hotkeys.js +0 -62
- data/assets/js/core/skip-links.js +0 -62
- data/assets/js/dist/manifest.json +0 -22
- data/assets/js/dist/meta.json +0 -371
- data/assets/js/main.js +0 -23
- data/assets/js/math.js +0 -818
- data/assets/js/notebook.js +0 -158
- data/assets/js/search/analytics.js +0 -91
- data/assets/js/search/app.js +0 -271
- data/assets/js/search/autocomplete.js +0 -120
- data/assets/js/search/engine.js +0 -260
- data/assets/js/search/filters.js +0 -45
- data/assets/js/search/render.js +0 -217
- data/assets/js/search/utils.js +0 -99
- data/assets/js/search.js +0 -354
- data/assets/js/visualizations.js +0 -816
- data/assets/publications/datalog-publications.bib +0 -8
- data/assets/publications/datalog-publications.ris +0 -9
- data/assets/publications/publications.bib +0 -30
- data/assets/templates/diogo-ribeiro-cv.md +0 -31
- data/assets/templates/diogo-ribeiro-cv.tex +0 -32
- data/lib/datalog/theme/theme.rb +0 -18
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
3
|
+
@use 'variables' as *;
|
|
4
|
+
@use 'mixins' as *;
|
|
5
|
+
|
|
6
|
+
// The forms that post to the site's dynamic services (docs/dynamic-services.md):
|
|
7
|
+
// the correction report on posts and the contact form. Their states come from
|
|
8
|
+
// assets/js/dynamic-services/form-state.js as data-state on the form.
|
|
9
|
+
|
|
10
|
+
.correction-report {
|
|
11
|
+
@include callout($color-accent-secondary);
|
|
12
|
+
margin-top: map.get($spacing, 5);
|
|
13
|
+
font-size: map.get($font-size-scale, sm);
|
|
14
|
+
max-width: $max-width-reading;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.correction-report__summary {
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
font-weight: 600;
|
|
20
|
+
color: $color-ink-900;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.contact-form {
|
|
24
|
+
margin-top: map.get($spacing, 5);
|
|
25
|
+
max-width: $max-width-reading;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.contact-form__fallback {
|
|
29
|
+
margin: 0;
|
|
30
|
+
padding: map.get($spacing, 3) map.get($spacing, 4);
|
|
31
|
+
border-radius: map.get($radius, sm);
|
|
32
|
+
background: rgba($color-neutral-500, 0.08);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.service-form {
|
|
36
|
+
margin-top: map.get($spacing, 3);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.service-form__intro,
|
|
40
|
+
.service-form__hint {
|
|
41
|
+
margin: 0 0 map.get($spacing, 2);
|
|
42
|
+
color: $color-ink-500;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.service-form__hint {
|
|
46
|
+
margin: map.get($spacing, 1) 0 0;
|
|
47
|
+
font-size: map.get($font-size-scale, xs);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.service-form__quote {
|
|
51
|
+
margin: 0 0 map.get($spacing, 3);
|
|
52
|
+
padding: 0 0 0 map.get($spacing, 3);
|
|
53
|
+
border-left: 3px solid rgba($color-neutral-500, 0.5);
|
|
54
|
+
font-style: italic;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.service-form__fields {
|
|
58
|
+
display: grid;
|
|
59
|
+
gap: map.get($spacing, 3);
|
|
60
|
+
margin: 0 0 map.get($spacing, 3);
|
|
61
|
+
padding: 0;
|
|
62
|
+
border: 0;
|
|
63
|
+
min-width: 0;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.service-form__row {
|
|
67
|
+
display: grid;
|
|
68
|
+
gap: map.get($spacing, 3);
|
|
69
|
+
|
|
70
|
+
@include respond-to(md) {
|
|
71
|
+
grid-template-columns: 1fr 1fr;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.service-form__privacy {
|
|
76
|
+
margin: 0 0 map.get($spacing, 3);
|
|
77
|
+
font-size: map.get($font-size-scale, xs);
|
|
78
|
+
color: $color-ink-500;
|
|
79
|
+
|
|
80
|
+
a {
|
|
81
|
+
text-decoration: underline;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.service-form__field {
|
|
86
|
+
display: grid;
|
|
87
|
+
gap: map.get($spacing, 1);
|
|
88
|
+
|
|
89
|
+
label {
|
|
90
|
+
font-weight: 600;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
input,
|
|
94
|
+
select,
|
|
95
|
+
textarea {
|
|
96
|
+
width: 100%;
|
|
97
|
+
padding: 0.45rem 0.6rem;
|
|
98
|
+
border: 1px solid rgba($color-neutral-200, 0.9);
|
|
99
|
+
border-radius: map.get($radius, sm);
|
|
100
|
+
background: $color-surface-50;
|
|
101
|
+
color: $color-ink-700;
|
|
102
|
+
font: inherit;
|
|
103
|
+
font-size: map.get($font-size-scale, sm);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
[aria-invalid='true'] {
|
|
107
|
+
border-color: $color-danger-600;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.service-form__error {
|
|
112
|
+
margin: 0;
|
|
113
|
+
font-size: map.get($font-size-scale, xs);
|
|
114
|
+
font-weight: 600;
|
|
115
|
+
color: $color-danger-700;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// The honeypot: readers never see it, bots fill it.
|
|
119
|
+
.service-form__trap {
|
|
120
|
+
position: absolute;
|
|
121
|
+
left: -10000px;
|
|
122
|
+
width: 1px;
|
|
123
|
+
height: 1px;
|
|
124
|
+
overflow: hidden;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.service-form__actions {
|
|
128
|
+
display: flex;
|
|
129
|
+
flex-wrap: wrap;
|
|
130
|
+
gap: map.get($spacing, 2);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.service-form__status {
|
|
134
|
+
margin: map.get($spacing, 3) 0 0;
|
|
135
|
+
padding: map.get($spacing, 2) map.get($spacing, 3);
|
|
136
|
+
border-radius: map.get($radius, sm);
|
|
137
|
+
background: rgba($color-neutral-500, 0.1);
|
|
138
|
+
color: $color-ink-700;
|
|
139
|
+
|
|
140
|
+
form[data-state='success'] & {
|
|
141
|
+
background: rgba($color-success, 0.12);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
form[data-state='error'] &,
|
|
145
|
+
form[data-state='invalid'] & {
|
|
146
|
+
background: rgba($color-danger-500, 0.1);
|
|
147
|
+
color: $color-danger-700;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
form[data-state='pending'] .service-form__actions {
|
|
152
|
+
opacity: 0.7;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
form[data-state='disabled'] .service-form__fields {
|
|
156
|
+
opacity: 0.6;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
body.dark-mode {
|
|
160
|
+
.correction-report {
|
|
161
|
+
border-left-color: $dark-accent-secondary;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.correction-report__summary {
|
|
165
|
+
color: $dark-ink-900;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.service-form__intro,
|
|
169
|
+
.service-form__hint,
|
|
170
|
+
.service-form__privacy {
|
|
171
|
+
color: $dark-ink-500;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.contact-form__fallback {
|
|
175
|
+
background: rgba($dark-ink-500, 0.15);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.service-form__field {
|
|
179
|
+
input,
|
|
180
|
+
select,
|
|
181
|
+
textarea {
|
|
182
|
+
border-color: rgba($dark-ink-500, 0.35);
|
|
183
|
+
background: $dark-surface-300;
|
|
184
|
+
color: $dark-ink-700;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.service-form__error,
|
|
189
|
+
form[data-state='error'] .service-form__status,
|
|
190
|
+
form[data-state='invalid'] .service-form__status {
|
|
191
|
+
color: $color-danger-300;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.service-form__status {
|
|
195
|
+
background: rgba($dark-ink-500, 0.15);
|
|
196
|
+
color: $dark-ink-700;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
@media print {
|
|
201
|
+
.correction-report {
|
|
202
|
+
display: none !important;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
3
|
+
@use 'variables' as *;
|
|
4
|
+
|
|
5
|
+
// Newsletter subscriptions (components/subscribe-form.html and
|
|
6
|
+
// subscription-manage.html). The forms are .service-form (_service-forms.scss).
|
|
7
|
+
|
|
8
|
+
.subscribe {
|
|
9
|
+
max-width: $max-width-reading;
|
|
10
|
+
margin-top: map.get($spacing, 6);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.subscribe__heading {
|
|
14
|
+
margin: 0 0 map.get($spacing, 2);
|
|
15
|
+
font-size: map.get($font-size-scale, lg);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.subscribe__description {
|
|
19
|
+
margin: 0 0 map.get($spacing, 3);
|
|
20
|
+
font-size: map.get($font-size-scale, sm);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// In the footer the form sits in a column next to the feeds: smaller, no top gap.
|
|
24
|
+
.subscribe--footer {
|
|
25
|
+
max-width: none;
|
|
26
|
+
margin-top: map.get($spacing, 4);
|
|
27
|
+
|
|
28
|
+
.subscribe__heading {
|
|
29
|
+
font-size: map.get($font-size-scale, md);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// The footer is dark in both themes, so the form's inks are the footer's.
|
|
34
|
+
.site-footer .subscribe {
|
|
35
|
+
.subscribe__heading {
|
|
36
|
+
color: #fff;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.service-form__privacy,
|
|
40
|
+
.service-form__hint {
|
|
41
|
+
color: rgba(#fff, 0.75);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.service-form__privacy a {
|
|
45
|
+
color: #fff;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.service-form__error,
|
|
49
|
+
form[data-state='error'] .service-form__status,
|
|
50
|
+
form[data-state='invalid'] .service-form__status {
|
|
51
|
+
color: $color-danger-300;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.service-form__status {
|
|
55
|
+
background: rgba(#fff, 0.1);
|
|
56
|
+
color: #fff;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.subscribe__topics {
|
|
61
|
+
display: flex;
|
|
62
|
+
flex-wrap: wrap;
|
|
63
|
+
gap: map.get($spacing, 1) map.get($spacing, 4);
|
|
64
|
+
margin: 0;
|
|
65
|
+
padding: 0;
|
|
66
|
+
border: 0;
|
|
67
|
+
min-width: 0;
|
|
68
|
+
font-size: map.get($font-size-scale, sm);
|
|
69
|
+
|
|
70
|
+
legend {
|
|
71
|
+
width: 100%;
|
|
72
|
+
margin-bottom: map.get($spacing, 1);
|
|
73
|
+
padding: 0;
|
|
74
|
+
font-weight: 600;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.service-form__error {
|
|
78
|
+
width: 100%;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.subscribe__topic {
|
|
83
|
+
display: inline-flex;
|
|
84
|
+
align-items: center;
|
|
85
|
+
gap: map.get($spacing, 2);
|
|
86
|
+
font-weight: 400;
|
|
87
|
+
|
|
88
|
+
input {
|
|
89
|
+
width: auto;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.subscription-manage {
|
|
94
|
+
max-width: $max-width-reading;
|
|
95
|
+
margin-top: map.get($spacing, 5);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.subscription-manage__status {
|
|
99
|
+
margin: 0 0 map.get($spacing, 3);
|
|
100
|
+
padding: map.get($spacing, 2) map.get($spacing, 3);
|
|
101
|
+
border-radius: map.get($radius, sm);
|
|
102
|
+
background: rgba($color-neutral-500, 0.1);
|
|
103
|
+
|
|
104
|
+
.subscription-manage[data-state='error'] & {
|
|
105
|
+
background: rgba($color-danger-500, 0.1);
|
|
106
|
+
color: $color-danger-700;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.subscription-manage[data-state='confirmed'] &,
|
|
110
|
+
.subscription-manage[data-state='saved'] & {
|
|
111
|
+
background: rgba($color-success, 0.12);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.subscription-manage__panel {
|
|
116
|
+
display: grid;
|
|
117
|
+
gap: map.get($spacing, 3);
|
|
118
|
+
justify-items: start;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// display: grid would override the hidden attribute.
|
|
122
|
+
.subscription-manage__panel[hidden] {
|
|
123
|
+
display: none;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
body.dark-mode {
|
|
127
|
+
.subscription-manage__status {
|
|
128
|
+
background: rgba($dark-ink-500, 0.15);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.subscription-manage[data-state='error'] .subscription-manage__status {
|
|
132
|
+
color: $color-danger-300;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
@media print {
|
|
137
|
+
.subscribe {
|
|
138
|
+
display: none !important;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
@@ -2,9 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
@use 'variables' as *;
|
|
4
4
|
|
|
5
|
-
//
|
|
5
|
+
// Syntax highlighting for Rouge, which highlights code as the site builds:
|
|
6
|
+
// kramdown's fenced code blocks, and the includes that use the rouge_highlight
|
|
7
|
+
// filter. Rouge marks tokens with short Pygments class names, such as k for a
|
|
8
|
+
// keyword, s2 for a double-quoted string and nf for a function name.
|
|
6
9
|
pre[class*='language-'],
|
|
7
|
-
code[class*='language-']
|
|
10
|
+
code[class*='language-'],
|
|
11
|
+
pre.highlight,
|
|
12
|
+
pre.highlight code {
|
|
8
13
|
color: $color-ink-900;
|
|
9
14
|
background: transparent;
|
|
10
15
|
font-family: $font-family-mono;
|
|
@@ -12,117 +17,227 @@ code[class*='language-'] {
|
|
|
12
17
|
line-height: 1.6;
|
|
13
18
|
}
|
|
14
19
|
|
|
15
|
-
pre[class*='language-']
|
|
20
|
+
pre[class*='language-'],
|
|
21
|
+
pre.highlight {
|
|
16
22
|
position: relative;
|
|
17
23
|
padding-top: map.get($spacing, 5);
|
|
18
24
|
}
|
|
19
25
|
|
|
20
26
|
:not(pre) > code[class*='language-'],
|
|
21
|
-
pre[class*='language-']
|
|
27
|
+
pre[class*='language-'],
|
|
28
|
+
pre.highlight {
|
|
22
29
|
background: rgba($color-surface-900, 0.02);
|
|
23
30
|
}
|
|
24
31
|
|
|
25
|
-
.
|
|
26
|
-
.
|
|
27
|
-
.
|
|
28
|
-
.
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
.highlight {
|
|
33
|
+
.c,
|
|
34
|
+
.ch,
|
|
35
|
+
.cd,
|
|
36
|
+
.cm,
|
|
37
|
+
.cpf,
|
|
38
|
+
.c1,
|
|
39
|
+
.cs {
|
|
40
|
+
color: $color-ink-500;
|
|
41
|
+
font-style: italic;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.p {
|
|
45
|
+
color: $color-ink-500;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.nt,
|
|
49
|
+
.no,
|
|
50
|
+
.ss,
|
|
51
|
+
.gd {
|
|
52
|
+
color: $color-accent-tertiary;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.m,
|
|
56
|
+
.mb,
|
|
57
|
+
.mf,
|
|
58
|
+
.mh,
|
|
59
|
+
.mi,
|
|
60
|
+
.il,
|
|
61
|
+
.mo,
|
|
62
|
+
.mx,
|
|
63
|
+
.kc {
|
|
64
|
+
color: $color-accent-secondary-text;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.s,
|
|
68
|
+
.sa,
|
|
69
|
+
.sb,
|
|
70
|
+
.sc,
|
|
71
|
+
.dl,
|
|
72
|
+
.sd,
|
|
73
|
+
.s2,
|
|
74
|
+
.se,
|
|
75
|
+
.sh,
|
|
76
|
+
.si,
|
|
77
|
+
.sx,
|
|
78
|
+
.s1,
|
|
79
|
+
.na,
|
|
80
|
+
.nb,
|
|
81
|
+
.bp,
|
|
82
|
+
.gi {
|
|
83
|
+
color: $color-success-text;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.o,
|
|
87
|
+
.ni,
|
|
88
|
+
.nv,
|
|
89
|
+
.vc,
|
|
90
|
+
.vg,
|
|
91
|
+
.vi,
|
|
92
|
+
.vm {
|
|
93
|
+
color: $color-accent-primary;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.k,
|
|
97
|
+
.kd,
|
|
98
|
+
.kn,
|
|
99
|
+
.kp,
|
|
100
|
+
.kr,
|
|
101
|
+
.kt,
|
|
102
|
+
.kv,
|
|
103
|
+
.ow,
|
|
104
|
+
.cp {
|
|
105
|
+
color: $color-accent-secondary-text;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.nf,
|
|
109
|
+
.fm,
|
|
110
|
+
.nc,
|
|
111
|
+
.nd,
|
|
112
|
+
.ne {
|
|
113
|
+
color: $color-accent-primary;
|
|
114
|
+
font-weight: 600;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.sr,
|
|
118
|
+
.gr,
|
|
119
|
+
.gt {
|
|
120
|
+
color: $color-warning-text;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.gh,
|
|
124
|
+
.gu,
|
|
125
|
+
.gs {
|
|
126
|
+
font-weight: 700;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.ge {
|
|
130
|
+
font-style: italic;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
// With line numbers on, Rouge lays a block out as a table: the numbers in the
|
|
135
|
+
// first cell, the code in the second, each in its own <pre>. The site's table,
|
|
136
|
+
// cell and <pre> styles would give it borders, padding and nested boxes.
|
|
137
|
+
.highlight .rouge-table {
|
|
138
|
+
width: auto;
|
|
139
|
+
margin: 0;
|
|
140
|
+
border: 0;
|
|
141
|
+
border-collapse: collapse;
|
|
142
|
+
font-size: inherit;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.highlight .rouge-table td {
|
|
146
|
+
padding: 0;
|
|
147
|
+
border: 0;
|
|
148
|
+
vertical-align: top;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.highlight .rouge-table pre {
|
|
152
|
+
margin: 0;
|
|
153
|
+
padding: 0;
|
|
154
|
+
border: 0;
|
|
155
|
+
border-radius: 0;
|
|
156
|
+
background: none;
|
|
157
|
+
box-shadow: none;
|
|
158
|
+
overflow: visible;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.highlight .rouge-gutter {
|
|
162
|
+
padding-right: map.get($spacing, 4);
|
|
34
163
|
color: $color-ink-500;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
.token.property,
|
|
38
|
-
.token.tag,
|
|
39
|
-
.token.constant,
|
|
40
|
-
.token.symbol,
|
|
41
|
-
.token.deleted {
|
|
42
|
-
color: $color-accent-tertiary;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.token.boolean,
|
|
46
|
-
.token.number {
|
|
47
|
-
color: $color-accent-secondary-text;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.token.selector,
|
|
51
|
-
.token.attr-name,
|
|
52
|
-
.token.string,
|
|
53
|
-
.token.char,
|
|
54
|
-
.token.builtin,
|
|
55
|
-
.token.inserted {
|
|
56
|
-
color: $color-success;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.token.operator,
|
|
60
|
-
.token.entity,
|
|
61
|
-
.token.url,
|
|
62
|
-
.token.variable {
|
|
63
|
-
color: $color-accent-primary;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.token.atrule,
|
|
67
|
-
.token.attr-value,
|
|
68
|
-
.token.keyword {
|
|
69
|
-
color: $color-accent-secondary-text;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.token.function,
|
|
73
|
-
.token.class-name {
|
|
74
|
-
color: $color-accent-primary;
|
|
75
|
-
font-weight: 600;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.token.regex,
|
|
79
|
-
.token.important {
|
|
80
|
-
color: $color-warning;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.token.important,
|
|
84
|
-
.token.bold {
|
|
85
|
-
font-weight: 700;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.token.italic {
|
|
89
|
-
font-style: italic;
|
|
164
|
+
text-align: right;
|
|
165
|
+
user-select: none;
|
|
90
166
|
}
|
|
91
167
|
|
|
92
168
|
body.dark-mode pre[class*='language-'],
|
|
93
|
-
body.dark-mode code[class*='language-']
|
|
169
|
+
body.dark-mode code[class*='language-'],
|
|
170
|
+
body.dark-mode pre.highlight,
|
|
171
|
+
body.dark-mode pre.highlight code {
|
|
94
172
|
color: $dark-ink-900;
|
|
95
173
|
}
|
|
96
174
|
|
|
97
|
-
body.dark-mode pre[class*='language-']
|
|
175
|
+
body.dark-mode pre[class*='language-'],
|
|
176
|
+
body.dark-mode pre.highlight {
|
|
98
177
|
background: rgba($dark-surface-300, 0.8);
|
|
99
178
|
}
|
|
100
179
|
|
|
101
|
-
body.dark-mode .
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
180
|
+
body.dark-mode .highlight {
|
|
181
|
+
.c,
|
|
182
|
+
.ch,
|
|
183
|
+
.cd,
|
|
184
|
+
.cm,
|
|
185
|
+
.cpf,
|
|
186
|
+
.c1,
|
|
187
|
+
.cs,
|
|
188
|
+
.rouge-gutter {
|
|
189
|
+
color: $dark-ink-500;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.m,
|
|
193
|
+
.mb,
|
|
194
|
+
.mf,
|
|
195
|
+
.mh,
|
|
196
|
+
.mi,
|
|
197
|
+
.il,
|
|
198
|
+
.mo,
|
|
199
|
+
.mx,
|
|
200
|
+
.kc {
|
|
201
|
+
color: $dark-accent-secondary;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.s,
|
|
205
|
+
.sa,
|
|
206
|
+
.sb,
|
|
207
|
+
.sc,
|
|
208
|
+
.dl,
|
|
209
|
+
.sd,
|
|
210
|
+
.s2,
|
|
211
|
+
.se,
|
|
212
|
+
.sh,
|
|
213
|
+
.si,
|
|
214
|
+
.sx,
|
|
215
|
+
.s1,
|
|
216
|
+
.na,
|
|
217
|
+
.nb,
|
|
218
|
+
.bp,
|
|
219
|
+
.gi {
|
|
220
|
+
color: #5fe3aa;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.k,
|
|
224
|
+
.kd,
|
|
225
|
+
.kn,
|
|
226
|
+
.kp,
|
|
227
|
+
.kr,
|
|
228
|
+
.kt,
|
|
229
|
+
.kv,
|
|
230
|
+
.ow,
|
|
231
|
+
.cp,
|
|
232
|
+
.o {
|
|
233
|
+
color: $dark-accent-primary;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.nf,
|
|
237
|
+
.fm,
|
|
238
|
+
.nc,
|
|
239
|
+
.nd,
|
|
240
|
+
.ne {
|
|
241
|
+
color: #9fb6ff;
|
|
242
|
+
}
|
|
128
243
|
}
|