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,262 @@
|
|
|
1
|
+
// The academic dashboard (_includes/components/academic-dashboard.html): citation
|
|
2
|
+
// metrics, bibliography export, and the submission, calendar and funding lists.
|
|
3
|
+
// _components.scss loads this only when features.academic_dashboard is on.
|
|
4
|
+
|
|
5
|
+
@use 'sass:map';
|
|
6
|
+
@use "sass:color";
|
|
7
|
+
|
|
8
|
+
@use 'variables' as *;
|
|
9
|
+
@use 'mixins' as *;
|
|
10
|
+
|
|
11
|
+
.academic-dashboard {
|
|
12
|
+
display: grid;
|
|
13
|
+
gap: 2.5rem;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.academic-dashboard__header {
|
|
17
|
+
text-align: center;
|
|
18
|
+
max-width: 60ch;
|
|
19
|
+
margin: 0 auto;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.academic-dashboard__header h1 {
|
|
23
|
+
font-size: clamp(1.8rem, 3vw, 2.4rem);
|
|
24
|
+
margin-bottom: 0.5rem;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.academic-dashboard__header p {
|
|
28
|
+
color: var(--muted-foreground, #4a5568);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.academic-dashboard__profiles {
|
|
32
|
+
background: var(--surface-card, #fff);
|
|
33
|
+
border-radius: 1.25rem;
|
|
34
|
+
padding: 2rem;
|
|
35
|
+
box-shadow: 0 12px 40px rgba(12, 35, 64, 0.08);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.academic-profiles__grid {
|
|
39
|
+
display: grid;
|
|
40
|
+
gap: 1.5rem;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@media (min-width: 56rem) {
|
|
44
|
+
.academic-profiles__grid {
|
|
45
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.academic-profile {
|
|
50
|
+
border: 1px solid rgba(12, 35, 64, 0.12);
|
|
51
|
+
border-radius: 1rem;
|
|
52
|
+
padding: 1.5rem;
|
|
53
|
+
background: rgba(12, 35, 64, 0.03);
|
|
54
|
+
display: grid;
|
|
55
|
+
gap: 1rem;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.academic-profile header {
|
|
59
|
+
display: flex;
|
|
60
|
+
justify-content: space-between;
|
|
61
|
+
align-items: center;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.academic-profile h3 {
|
|
65
|
+
margin: 0;
|
|
66
|
+
font-size: 1.1rem;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.academic-profile a {
|
|
70
|
+
font-size: 0.875rem;
|
|
71
|
+
font-weight: 500;
|
|
72
|
+
color: var(--accent, #3277f6);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.academic-profile dl {
|
|
76
|
+
display: grid;
|
|
77
|
+
gap: 0.5rem;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.academic-profile dl div {
|
|
81
|
+
display: flex;
|
|
82
|
+
justify-content: space-between;
|
|
83
|
+
gap: 1rem;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.academic-profile dt {
|
|
87
|
+
font-weight: 600;
|
|
88
|
+
color: var(--muted-foreground, #4a5568);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.academic-profile dd {
|
|
92
|
+
margin: 0;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.citation-metrics {
|
|
96
|
+
display: grid;
|
|
97
|
+
gap: 1.5rem;
|
|
98
|
+
border-radius: 1.25rem;
|
|
99
|
+
padding: 2rem;
|
|
100
|
+
background: rgba(50, 119, 246, 0.08);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.citation-metrics__totals {
|
|
104
|
+
display: grid;
|
|
105
|
+
gap: 1rem;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
@media (min-width: 40rem) {
|
|
109
|
+
.citation-metrics__totals {
|
|
110
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.citation-metrics .metric {
|
|
115
|
+
background: rgba(255, 255, 255, 0.8);
|
|
116
|
+
border-radius: 1rem;
|
|
117
|
+
padding: 1rem;
|
|
118
|
+
text-align: center;
|
|
119
|
+
font-weight: 600;
|
|
120
|
+
display: grid;
|
|
121
|
+
gap: 0.5rem;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.citation-metrics .metric dt {
|
|
125
|
+
margin: 0;
|
|
126
|
+
font-size: 0.9rem;
|
|
127
|
+
color: var(--muted-foreground, #4a5568);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.citation-metrics .metric dd {
|
|
131
|
+
margin: 0;
|
|
132
|
+
font-size: 1.5rem;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.citation-metrics__details {
|
|
136
|
+
background: rgba(255, 255, 255, 0.92);
|
|
137
|
+
border-radius: 1rem;
|
|
138
|
+
padding: 1rem 1.5rem;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.citation-metrics__details ul {
|
|
142
|
+
margin: 0;
|
|
143
|
+
padding-left: 1.25rem;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.citation-metrics__timeline {
|
|
147
|
+
background: rgba(12, 35, 64, 0.08);
|
|
148
|
+
border-radius: 1rem;
|
|
149
|
+
padding: 1rem 1.5rem;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.citation-metrics__timeline ul {
|
|
153
|
+
display: grid;
|
|
154
|
+
gap: 0.75rem;
|
|
155
|
+
margin: 0;
|
|
156
|
+
padding: 0;
|
|
157
|
+
list-style: none;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.citation-metrics__timeline li {
|
|
161
|
+
display: flex;
|
|
162
|
+
justify-content: space-between;
|
|
163
|
+
align-items: center;
|
|
164
|
+
gap: 1rem;
|
|
165
|
+
padding: 0.5rem 0.75rem;
|
|
166
|
+
border-radius: 0.75rem;
|
|
167
|
+
background: linear-gradient(90deg, rgba(50, 119, 246, 0.15) var(--timeline-value, 35%), transparent 0);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.bibliography-export {
|
|
171
|
+
display: grid;
|
|
172
|
+
gap: 1rem;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.bibliography-export textarea {
|
|
176
|
+
width: 100%;
|
|
177
|
+
min-height: 16rem;
|
|
178
|
+
font-family: var(--font-mono, "Fira Code", monospace);
|
|
179
|
+
border-radius: 0.75rem;
|
|
180
|
+
border: 1px solid rgba(12, 35, 64, 0.2);
|
|
181
|
+
padding: 1.25rem;
|
|
182
|
+
background: rgba(12, 35, 64, 0.04);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.bibliography-export__actions {
|
|
186
|
+
display: flex;
|
|
187
|
+
flex-wrap: wrap;
|
|
188
|
+
gap: 0.75rem;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.submission-controls,
|
|
192
|
+
.calendar-controls {
|
|
193
|
+
display: flex;
|
|
194
|
+
align-items: center;
|
|
195
|
+
gap: 0.75rem;
|
|
196
|
+
margin-bottom: 1rem;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.submission-controls select,
|
|
200
|
+
.calendar-controls select {
|
|
201
|
+
border-radius: 0.5rem;
|
|
202
|
+
padding: 0.5rem 0.75rem;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.submission-list,
|
|
206
|
+
.calendar-list,
|
|
207
|
+
.funding-list,
|
|
208
|
+
.opportunity-list,
|
|
209
|
+
.mentorship-list,
|
|
210
|
+
.workflow-list {
|
|
211
|
+
list-style: none;
|
|
212
|
+
margin: 0;
|
|
213
|
+
padding: 0;
|
|
214
|
+
display: grid;
|
|
215
|
+
gap: 1rem;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.submission-card,
|
|
219
|
+
.calendar-list li,
|
|
220
|
+
.funding-list li,
|
|
221
|
+
.opportunity-list li,
|
|
222
|
+
.mentorship-list li,
|
|
223
|
+
.workflow-list li {
|
|
224
|
+
border: 1px solid rgba(12, 35, 64, 0.12);
|
|
225
|
+
border-radius: 1rem;
|
|
226
|
+
padding: 1.25rem;
|
|
227
|
+
background: rgba(255, 255, 255, 0.92);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.status-badge {
|
|
231
|
+
display: inline-flex;
|
|
232
|
+
align-items: center;
|
|
233
|
+
gap: 0.4rem;
|
|
234
|
+
padding: 0.2rem 0.65rem;
|
|
235
|
+
border-radius: 999px;
|
|
236
|
+
background: rgba(50, 119, 246, 0.15);
|
|
237
|
+
color: var(--accent-foreground, #0b1d3d);
|
|
238
|
+
font-size: 0.85rem;
|
|
239
|
+
font-weight: 600;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.workflow-grid {
|
|
243
|
+
display: grid;
|
|
244
|
+
gap: 1.5rem;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
@media (min-width: 56rem) {
|
|
248
|
+
.workflow-grid {
|
|
249
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.networking-grid {
|
|
254
|
+
display: grid;
|
|
255
|
+
gap: 1.25rem;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
@media (min-width: 48rem) {
|
|
259
|
+
.networking-grid {
|
|
260
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
261
|
+
}
|
|
262
|
+
}
|
data/_sass/_base.scss
CHANGED
|
@@ -12,7 +12,14 @@
|
|
|
12
12
|
|
|
13
13
|
html {
|
|
14
14
|
font-size: $font-size-root;
|
|
15
|
-
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// Anchor links, and the theme's scripts, which pass no scroll behavior, follow
|
|
18
|
+
// this rule, so a reader who asks for reduced motion jumps to the target.
|
|
19
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
20
|
+
html {
|
|
21
|
+
scroll-behavior: smooth;
|
|
22
|
+
}
|
|
16
23
|
}
|
|
17
24
|
|
|
18
25
|
body {
|
|
@@ -146,3 +153,15 @@ body.dark-mode {
|
|
|
146
153
|
border-bottom-color: rgba($dark-ink-500, 0.2);
|
|
147
154
|
}
|
|
148
155
|
}
|
|
156
|
+
|
|
157
|
+
// Groups of form controls, such as the filters on the search page.
|
|
158
|
+
fieldset {
|
|
159
|
+
border: 1px solid var(--color-border, #e2e8f0);
|
|
160
|
+
border-radius: 8px;
|
|
161
|
+
padding: 1rem;
|
|
162
|
+
|
|
163
|
+
legend {
|
|
164
|
+
padding: 0 0.5rem;
|
|
165
|
+
font-weight: 600;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
3
|
+
@use 'variables' as *;
|
|
4
|
+
|
|
5
|
+
// The comments thread of the `api` provider (components/comments-thread.html,
|
|
6
|
+
// assets/js/comments/thread.js). The form itself is a .service-form
|
|
7
|
+
// (_service-forms.scss).
|
|
8
|
+
|
|
9
|
+
.comments-thread {
|
|
10
|
+
max-width: $max-width-reading;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.comments-thread__status {
|
|
14
|
+
margin: 0 0 map.get($spacing, 3);
|
|
15
|
+
color: $color-ink-500;
|
|
16
|
+
font-size: map.get($font-size-scale, sm);
|
|
17
|
+
|
|
18
|
+
.comments-thread[data-state='error'] & {
|
|
19
|
+
color: $color-danger-700;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.comments-thread__noscript {
|
|
24
|
+
margin: 0 0 map.get($spacing, 3);
|
|
25
|
+
color: $color-ink-500;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.comments-thread__list,
|
|
29
|
+
.comments-thread__replies {
|
|
30
|
+
list-style: none;
|
|
31
|
+
margin: 0;
|
|
32
|
+
padding: 0;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.comments-thread__list {
|
|
36
|
+
display: grid;
|
|
37
|
+
gap: map.get($spacing, 3);
|
|
38
|
+
margin-bottom: map.get($spacing, 5);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// display: grid and display: flex would override the hidden attribute.
|
|
42
|
+
.comments-thread__list[hidden],
|
|
43
|
+
.comments-form__replying[hidden] {
|
|
44
|
+
display: none;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.comments-thread__replies {
|
|
48
|
+
display: grid;
|
|
49
|
+
gap: map.get($spacing, 3);
|
|
50
|
+
margin-top: map.get($spacing, 3);
|
|
51
|
+
padding-left: map.get($spacing, 4);
|
|
52
|
+
border-left: 2px solid rgba($color-neutral-500, 0.25);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.comment__card {
|
|
56
|
+
padding: map.get($spacing, 3) map.get($spacing, 4);
|
|
57
|
+
border-radius: map.get($radius, md);
|
|
58
|
+
background: rgba($color-neutral-500, 0.06);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.comment--pending > .comment__card {
|
|
62
|
+
border: 1px dashed rgba($color-neutral-500, 0.5);
|
|
63
|
+
background: transparent;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.comment__meta {
|
|
67
|
+
display: flex;
|
|
68
|
+
flex-wrap: wrap;
|
|
69
|
+
align-items: baseline;
|
|
70
|
+
gap: map.get($spacing, 2);
|
|
71
|
+
margin-bottom: map.get($spacing, 2);
|
|
72
|
+
font-size: map.get($font-size-scale, sm);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.comment__author {
|
|
76
|
+
font-weight: 600;
|
|
77
|
+
color: $color-ink-900;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.comment__time {
|
|
81
|
+
color: $color-ink-500;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.comment__pending {
|
|
85
|
+
padding: 0 map.get($spacing, 2);
|
|
86
|
+
border-radius: map.get($radius, sm);
|
|
87
|
+
background: rgba($color-neutral-500, 0.15);
|
|
88
|
+
color: $color-ink-700;
|
|
89
|
+
font-size: map.get($font-size-scale, xs);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.comment__body {
|
|
93
|
+
overflow-wrap: anywhere;
|
|
94
|
+
|
|
95
|
+
p {
|
|
96
|
+
margin: 0 0 map.get($spacing, 2);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
p:last-child {
|
|
100
|
+
margin-bottom: 0;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.comment__reply {
|
|
105
|
+
margin-top: map.get($spacing, 2);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.comments-form__heading {
|
|
109
|
+
margin: 0 0 map.get($spacing, 2);
|
|
110
|
+
font-size: map.get($font-size-scale, md);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.comments-form__replying {
|
|
114
|
+
display: flex;
|
|
115
|
+
flex-wrap: wrap;
|
|
116
|
+
align-items: center;
|
|
117
|
+
gap: map.get($spacing, 2);
|
|
118
|
+
margin: 0 0 map.get($spacing, 3);
|
|
119
|
+
color: $color-ink-700;
|
|
120
|
+
font-size: map.get($font-size-scale, sm);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
body.dark-mode {
|
|
124
|
+
.comments-thread__status,
|
|
125
|
+
.comments-thread__noscript,
|
|
126
|
+
.comment__time {
|
|
127
|
+
color: $dark-ink-500;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.comments-thread[data-state='error'] .comments-thread__status {
|
|
131
|
+
color: $color-danger-300;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.comment__card {
|
|
135
|
+
background: rgba($dark-ink-500, 0.12);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.comment--pending > .comment__card {
|
|
139
|
+
border-color: rgba($dark-ink-500, 0.5);
|
|
140
|
+
background: transparent;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.comment__author {
|
|
144
|
+
color: $dark-ink-900;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.comment__pending,
|
|
148
|
+
.comments-form__replying {
|
|
149
|
+
color: $dark-ink-700;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.comment__pending {
|
|
153
|
+
background: rgba($dark-ink-500, 0.2);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.comments-thread__replies {
|
|
157
|
+
border-left-color: rgba($dark-ink-500, 0.35);
|
|
158
|
+
}
|
|
159
|
+
}
|