datalog-theme 0.8.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.
Files changed (111) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +63 -0
  3. data/CITATION.cff +2 -2
  4. data/README.md +4 -2
  5. data/_data/i18n/en.yml +297 -0
  6. data/_data/i18n/es.yml +297 -0
  7. data/_data/i18n/pt.yml +297 -0
  8. data/_data/js_manifest.json +16 -0
  9. data/_includes/components/author-bio.html +21 -11
  10. data/_includes/components/author-list.html +32 -0
  11. data/_includes/components/citation-tools.html +33 -25
  12. data/_includes/components/comments-thread.html +90 -0
  13. data/_includes/components/contact-form.html +120 -0
  14. data/_includes/components/correction-report.html +82 -0
  15. data/_includes/components/enhanced-toc.html +6 -7
  16. data/_includes/components/license-link.html +13 -0
  17. data/_includes/components/license-notice.html +28 -0
  18. data/_includes/components/moderation-inbox.html +139 -0
  19. data/_includes/components/reactions.html +49 -0
  20. data/_includes/components/reading-list.html +31 -0
  21. data/_includes/components/reading-mode-toggle.html +65 -0
  22. data/_includes/components/reading-state-bookmark.html +27 -0
  23. data/_includes/components/reading-state-panel.html +71 -0
  24. data/_includes/components/reproducibility.html +61 -0
  25. data/_includes/components/responsive-image.html +3 -3
  26. data/_includes/components/revision-history.html +39 -0
  27. data/_includes/components/revision-notice.html +35 -0
  28. data/_includes/components/series-nav.html +64 -0
  29. data/_includes/components/subscribe-form.html +88 -0
  30. data/_includes/components/subscription-manage.html +68 -0
  31. data/_includes/components/webmentions.html +48 -0
  32. data/_includes/csp-meta.html +21 -1
  33. data/_includes/footer.html +3 -0
  34. data/_includes/head.html +51 -40
  35. data/_includes/layouts/default/article.html +4 -6
  36. data/_includes/meta/dynamic-services-config.html +14 -0
  37. data/_includes/meta/math-config.html +9 -5
  38. data/_includes/meta/person-json.html +27 -0
  39. data/_includes/meta/publisher.html +45 -0
  40. data/_includes/meta/schema.html +62 -28
  41. data/_includes/meta/scholarly.html +121 -0
  42. data/_includes/meta/scripts-loader.html +2 -0
  43. data/_includes/meta/webmention-discovery.html +14 -0
  44. data/_includes/scripts.html +57 -0
  45. data/_layouts/dataset.html +4 -3
  46. data/_layouts/default.html +1 -1
  47. data/_layouts/package.html +3 -2
  48. data/_layouts/page.html +15 -0
  49. data/_layouts/post.html +82 -18
  50. data/_layouts/project.html +2 -2
  51. data/_layouts/research.html +20 -8
  52. data/_plugins/authors.rb +133 -0
  53. data/_plugins/config_validator.rb +223 -20
  54. data/_plugins/critical_css_check.rb +42 -0
  55. data/_plugins/i18n.rb +6 -4
  56. data/_plugins/image_optimizer.rb +224 -172
  57. data/_plugins/licenses.rb +135 -0
  58. data/_plugins/math_preprocessor.rb +32 -10
  59. data/_plugins/references.rb +238 -0
  60. data/_plugins/reproducibility.rb +150 -0
  61. data/_plugins/revisions.rb +101 -0
  62. data/_plugins/scholarly.rb +50 -0
  63. data/_plugins/series.rb +104 -0
  64. data/_plugins/statements.rb +87 -0
  65. data/_sass/_base.scss +8 -1
  66. data/_sass/_comments-thread.scss +159 -0
  67. data/_sass/_layout.scss +384 -0
  68. data/_sass/_mathematical.scss +27 -0
  69. data/_sass/_moderation.scss +222 -0
  70. data/_sass/_post-components.scss +4 -2
  71. data/_sass/_print.scss +291 -0
  72. data/_sass/_reactions.scss +89 -0
  73. data/_sass/_reading-state.scss +290 -0
  74. data/_sass/_service-forms.scss +204 -0
  75. data/_sass/_subscriptions.scss +140 -0
  76. data/_sass/_syntax-highlighting.scss +2 -2
  77. data/_sass/_theme.scss +11 -0
  78. data/_sass/_typography.scss +116 -0
  79. data/_sass/_utilities.scss +5 -0
  80. data/_sass/_variables.scss +6 -0
  81. data/_sass/_webmentions.scss +125 -0
  82. data/assets/js/dist/academic.js +1 -1
  83. data/assets/js/dist/analytics-dashboard.js +1 -1
  84. data/assets/js/dist/chunks/chunk-2DYDWUFX.js +1 -0
  85. data/assets/js/dist/chunks/chunk-PATLC23F.js +1 -0
  86. data/assets/js/dist/chunks/chunk-V7734B2G.js +1 -0
  87. data/assets/js/dist/comments.js +2 -0
  88. data/assets/js/dist/contact.js +1 -0
  89. data/assets/js/dist/core.js +1 -1
  90. data/assets/js/dist/corrections.js +1 -0
  91. data/assets/js/dist/loader.js +1 -1
  92. data/assets/js/dist/math.js +1 -1
  93. data/assets/js/dist/moderation.js +1 -0
  94. data/assets/js/dist/notebook.js +1 -1
  95. data/assets/js/dist/reactions.js +1 -0
  96. data/assets/js/dist/reading-state.js +1 -0
  97. data/assets/js/dist/search.js +1 -1
  98. data/assets/js/dist/sources.json +52 -0
  99. data/assets/js/dist/subscriptions.js +1 -0
  100. data/assets/js/dist/webmentions.js +1 -0
  101. data/assets/js/loader.js +34 -0
  102. data/datalog-theme.gemspec +1 -2
  103. data/lib/datalog/cli.rb +9 -1
  104. data/lib/datalog/critical_css.rb +168 -0
  105. data/lib/datalog/plugins/comments.rb +33 -3
  106. data/lib/datalog/theme/installed_files.rb +113 -0
  107. data/lib/datalog/theme/repository_checkout.rb +6 -2
  108. data/lib/datalog/theme/version.rb +5 -1
  109. data/lib/datalog-theme.rb +1 -0
  110. metadata +57 -23
  111. data/assets/js/dist/chunks/chunk-225H5YXE.js +0 -1
data/_sass/_print.scss ADDED
@@ -0,0 +1,291 @@
1
+ @use 'sass:map';
2
+
3
+ @use 'variables' as *;
4
+ @use 'mixins' as *;
5
+
6
+ // Reading mode and print (_includes/components/reading-mode-toggle.html).
7
+ //
8
+ // Reading mode hides the site's chrome and the panels around an article and
9
+ // leaves the article, its metadata and its table of contents. Print does the
10
+ // same on paper: black on white whatever the theme, the addresses of links,
11
+ // no interactive controls, and no figure, table, code block or equation cut
12
+ // across pages where the browser can help it.
13
+
14
+ // ---------------------------------------------------------------------------
15
+ // The control
16
+ // ---------------------------------------------------------------------------
17
+ .reading-mode-bar {
18
+ display: flex;
19
+ justify-content: flex-end;
20
+ }
21
+
22
+ // Shared by the reading-mode control and the reading-state buttons (_reading-state.scss).
23
+ .post-tool {
24
+ display: inline-flex;
25
+ align-items: center;
26
+ gap: map.get($spacing, 2);
27
+ padding: 0.35rem 0.75rem;
28
+ border: 1px solid rgba($color-neutral-200, 0.9);
29
+ border-radius: map.get($radius, md);
30
+ background: $color-surface-50;
31
+ color: $color-ink-700;
32
+ font: inherit;
33
+ font-size: map.get($font-size-scale, sm);
34
+ font-weight: 600;
35
+ cursor: pointer;
36
+
37
+ &:hover,
38
+ &:focus-visible {
39
+ border-color: $color-accent-primary;
40
+ color: $color-accent-primary-text;
41
+ }
42
+
43
+ &[aria-pressed='true'] {
44
+ border-color: $color-accent-primary;
45
+ background: $color-accent-primary;
46
+ color: #fff;
47
+ }
48
+
49
+ svg {
50
+ flex: none;
51
+ }
52
+ }
53
+
54
+ body.dark-mode .post-tool {
55
+ border-color: rgba($dark-ink-500, 0.35);
56
+ background: $dark-surface-300;
57
+ color: $dark-ink-700;
58
+
59
+ &:hover,
60
+ &:focus-visible {
61
+ border-color: $dark-accent-primary;
62
+ color: $dark-accent-primary;
63
+ }
64
+
65
+ &[aria-pressed='true'] {
66
+ border-color: $dark-accent-primary;
67
+ background: $dark-accent-primary;
68
+ color: $dark-surface-100;
69
+ }
70
+ }
71
+
72
+ // ---------------------------------------------------------------------------
73
+ // Reading mode: the article alone, and the way back
74
+ // ---------------------------------------------------------------------------
75
+ body.reading-mode {
76
+ .site-header,
77
+ .site-footer,
78
+ .breadcrumbs,
79
+ .social-share,
80
+ .post-interactive,
81
+ .post-comments,
82
+ .citation-tools,
83
+ .open-science-badges,
84
+ .author-bio,
85
+ .post-related,
86
+ .post-pagination,
87
+ .back-to-top,
88
+ [data-back-to-top] {
89
+ display: none !important;
90
+ }
91
+
92
+ .site-main {
93
+ padding-top: map.get($spacing, 4);
94
+ }
95
+
96
+ // The tools stay in reach while the article scrolls.
97
+ .post-tools {
98
+ position: sticky;
99
+ top: map.get($spacing, 3);
100
+ z-index: 5;
101
+ }
102
+
103
+ .post-content {
104
+ font-size: 1.0625rem;
105
+ line-height: 1.7;
106
+ }
107
+ }
108
+
109
+ // ---------------------------------------------------------------------------
110
+ // Print
111
+ // ---------------------------------------------------------------------------
112
+ .print-only {
113
+ display: none;
114
+ }
115
+
116
+ @media print {
117
+ @page {
118
+ margin: 2cm;
119
+ }
120
+
121
+ body,
122
+ body.dark-mode {
123
+ background: #fff !important;
124
+ color: #000 !important;
125
+ font-size: 11pt;
126
+ }
127
+
128
+ // The chrome and the controls that only work on a screen
129
+ .site-header,
130
+ .site-footer,
131
+ .skip-link,
132
+ .breadcrumbs,
133
+ .social-share,
134
+ .post-interactive,
135
+ .post-comments,
136
+ .post-slides,
137
+ .open-science-badges,
138
+ .author-bio,
139
+ .post-related,
140
+ .post-pagination,
141
+ .post-tools,
142
+ .reading-mode-bar,
143
+ .back-to-top,
144
+ [data-back-to-top],
145
+ .code-copy,
146
+ .citation-tools__exports,
147
+ .viz-table-toggle,
148
+ [aria-live] {
149
+ display: none !important;
150
+ }
151
+
152
+ .print-only {
153
+ display: block !important;
154
+ }
155
+
156
+ .site-main {
157
+ max-width: none;
158
+ padding: 0;
159
+ }
160
+
161
+ .post-body-wrapper {
162
+ display: block;
163
+ }
164
+
165
+ // Black on white, whatever the theme
166
+ body.dark-mode :where(h1, h2, h3, h4, h5, h6, p, li, dt, dd, td, th, figcaption, blockquote, code, pre, span, a,
167
+ strong, em, time, small, summary, label, caption, kbd) {
168
+ color: #000 !important;
169
+ }
170
+
171
+ body.dark-mode :where(section, aside, div, nav, article, figure, p, li, ul, ol, dl, dt, dd, blockquote, pre, code,
172
+ table, th, td, kbd) {
173
+ background: transparent !important;
174
+ border-color: #999 !important;
175
+ }
176
+
177
+ blockquote {
178
+ background: none !important;
179
+ }
180
+
181
+ a {
182
+ color: #000 !important;
183
+ text-decoration: underline;
184
+ }
185
+
186
+ .datalog-statement,
187
+ .datalog-proof,
188
+ .revision-notice,
189
+ .series-nav,
190
+ .reproduce,
191
+ .content-provenance,
192
+ .content-license,
193
+ .citation-tools,
194
+ .enhanced-toc {
195
+ background: none !important;
196
+ border-color: #000;
197
+ box-shadow: none;
198
+ }
199
+
200
+ // Links keep their addresses, other than anchors within the page
201
+ .post-content a[href^='http']::after {
202
+ content: ' (' attr(href) ')';
203
+ font-size: 0.85em;
204
+ word-break: break-all;
205
+ }
206
+
207
+ // Page breaks
208
+ h1,
209
+ h2,
210
+ h3,
211
+ h4 {
212
+ break-after: avoid;
213
+ page-break-after: avoid;
214
+ }
215
+
216
+ p,
217
+ li {
218
+ orphans: 3;
219
+ widows: 3;
220
+ }
221
+
222
+ pre,
223
+ figure,
224
+ table,
225
+ tr,
226
+ blockquote,
227
+ img,
228
+ svg,
229
+ .code-block-wrapper,
230
+ .highlight,
231
+ .datalog-statement,
232
+ .datalog-proof,
233
+ mjx-container[display='true'],
234
+ .katex-display {
235
+ break-inside: avoid;
236
+ page-break-inside: avoid;
237
+ }
238
+
239
+ img,
240
+ svg,
241
+ mjx-container,
242
+ .katex-display {
243
+ max-width: 100% !important;
244
+ overflow: visible !important;
245
+ }
246
+
247
+ // Code without a dark background, wrapped to the page
248
+ pre,
249
+ pre.highlight,
250
+ .highlight pre,
251
+ pre[class*='language-'],
252
+ .code-block-wrapper {
253
+ background: #fff !important;
254
+ color: #000 !important;
255
+ border: 1px solid #999;
256
+ box-shadow: none;
257
+ }
258
+
259
+ pre {
260
+ white-space: pre-wrap !important;
261
+ word-break: break-word;
262
+ overflow: visible !important;
263
+ }
264
+
265
+ body.dark-mode .highlight span {
266
+ color: #000 !important;
267
+ background: none !important;
268
+ }
269
+
270
+ // Interactive embeds become a note; a visualization's table fallback is shown
271
+ iframe,
272
+ canvas,
273
+ video,
274
+ [data-viz-type] > *,
275
+ .interactive-embed > * {
276
+ display: none !important;
277
+ }
278
+
279
+ [data-viz-type]::before,
280
+ .interactive-embed::before {
281
+ content: 'Interactive content, available in the online article.';
282
+ display: block;
283
+ padding: map.get($spacing, 3);
284
+ border: 1px dashed #999;
285
+ font-style: italic;
286
+ }
287
+
288
+ .viz-table-wrapper[hidden] {
289
+ display: block !important;
290
+ }
291
+ }
@@ -0,0 +1,89 @@
1
+ @use 'sass:map';
2
+
3
+ @use 'variables' as *;
4
+
5
+ // "Was this useful?" (components/reactions.html, assets/js/reactions/widget.js):
6
+ // a quiet strip after the article, not a competitor to it.
7
+
8
+ .reactions {
9
+ max-width: $max-width-reading;
10
+ margin-top: map.get($spacing, 5);
11
+ padding-top: map.get($spacing, 3);
12
+ border-top: 1px solid rgba($color-neutral-500, 0.25);
13
+ font-size: map.get($font-size-scale, sm);
14
+ }
15
+
16
+ .reactions__prompt {
17
+ margin: 0 0 map.get($spacing, 2);
18
+ font-weight: 600;
19
+ color: $color-ink-700;
20
+ }
21
+
22
+ .reactions__choices {
23
+ display: flex;
24
+ flex-wrap: wrap;
25
+ gap: map.get($spacing, 2);
26
+ }
27
+
28
+ .reactions__choice {
29
+ display: inline-flex;
30
+ align-items: baseline;
31
+ gap: map.get($spacing, 1);
32
+
33
+ &[aria-pressed='true'] {
34
+ background: $color-accent-primary;
35
+ border-color: $color-accent-primary;
36
+ color: $color-surface-50;
37
+ }
38
+ }
39
+
40
+ // The count inherits the button's colour at full strength: dimmed, it fell
41
+ // below 4.5:1 on the pressed button.
42
+ .reactions__count {
43
+ font-variant-numeric: tabular-nums;
44
+
45
+ &::before {
46
+ content: '·';
47
+ margin-right: map.get($spacing, 1);
48
+ }
49
+ }
50
+
51
+ .reactions__status {
52
+ margin: map.get($spacing, 2) 0 0;
53
+ color: $color-ink-500;
54
+
55
+ .reactions[data-state='disabled'] & {
56
+ color: $color-ink-500;
57
+ }
58
+ }
59
+
60
+ // A missing service leaves the strip usable but without counts; nothing else changes.
61
+ .reactions[data-state='disabled'] .reactions__choices {
62
+ opacity: 0.6;
63
+ }
64
+
65
+ body.dark-mode {
66
+ .reactions {
67
+ border-top-color: rgba($dark-ink-500, 0.35);
68
+ }
69
+
70
+ .reactions__prompt {
71
+ color: $dark-ink-700;
72
+ }
73
+
74
+ .reactions__status {
75
+ color: $dark-ink-500;
76
+ }
77
+
78
+ .reactions__choice[aria-pressed='true'] {
79
+ background: $dark-accent-primary;
80
+ border-color: $dark-accent-primary;
81
+ color: $dark-surface-100;
82
+ }
83
+ }
84
+
85
+ @media print {
86
+ .reactions {
87
+ display: none !important;
88
+ }
89
+ }
@@ -0,0 +1,290 @@
1
+ @use 'sass:map';
2
+
3
+ @use 'variables' as *;
4
+ @use 'mixins' as *;
5
+
6
+ // Local reading state (assets/js/reading-state): the tools bar above a post,
7
+ // the resume prompt, the toolbar over a selection, the highlights and the
8
+ // panel of private notes, and the list of saved articles on a page. The
9
+ // buttons share .post-tool with the reading-mode control (_print.scss).
10
+
11
+ .post-tools {
12
+ display: flex;
13
+ flex-wrap: wrap;
14
+ align-items: center;
15
+ justify-content: flex-end;
16
+ gap: map.get($spacing, 2);
17
+ }
18
+
19
+ .post-tool--link {
20
+ text-decoration: none;
21
+ }
22
+
23
+ .bookmark-toggle[aria-pressed='true'] svg {
24
+ fill: currentColor;
25
+ }
26
+
27
+ // display: flex would override the `hidden` attribute's display: none.
28
+ .reading-resume[hidden],
29
+ .reading-toolbar[hidden] {
30
+ display: none;
31
+ }
32
+
33
+ // The resume prompt
34
+ .reading-resume {
35
+ @include callout($color-accent-secondary);
36
+ display: flex;
37
+ flex-wrap: wrap;
38
+ align-items: center;
39
+ justify-content: space-between;
40
+ gap: map.get($spacing, 2) map.get($spacing, 4);
41
+ margin-top: map.get($spacing, 4);
42
+ font-size: map.get($font-size-scale, sm);
43
+ max-width: $max-width-reading;
44
+
45
+ p {
46
+ margin: 0;
47
+ }
48
+ }
49
+
50
+ .reading-resume__actions {
51
+ display: flex;
52
+ gap: map.get($spacing, 2);
53
+ }
54
+
55
+ // The toolbar over a selection
56
+ .reading-toolbar {
57
+ position: absolute;
58
+ z-index: 20;
59
+ display: flex;
60
+ gap: 2px;
61
+ padding: 4px;
62
+ border-radius: map.get($radius, md);
63
+ background: $color-ink-900;
64
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
65
+
66
+ button {
67
+ padding: 0.35rem 0.6rem;
68
+ border: 0;
69
+ border-radius: map.get($radius, sm);
70
+ background: transparent;
71
+ color: #fff;
72
+ font: inherit;
73
+ font-size: map.get($font-size-scale, sm);
74
+ cursor: pointer;
75
+
76
+ &:hover,
77
+ &:focus-visible {
78
+ background: rgba(255, 255, 255, 0.18);
79
+ }
80
+ }
81
+ }
82
+
83
+ // The highlights themselves: the Custom Highlight API where the browser has
84
+ // it, marks elsewhere.
85
+ ::highlight(datalog-annotation) {
86
+ background-color: rgba(250, 204, 21, 0.45);
87
+ color: inherit;
88
+ }
89
+
90
+ mark.reading-highlight {
91
+ background-color: rgba(250, 204, 21, 0.45);
92
+ color: inherit;
93
+ }
94
+
95
+ body.dark-mode ::highlight(datalog-annotation),
96
+ body.dark-mode mark.reading-highlight {
97
+ background-color: rgba(250, 204, 21, 0.3);
98
+ }
99
+
100
+ // The panel of private highlights and the data controls
101
+ .reading-notes {
102
+ @include callout($color-accent-tertiary);
103
+ margin-top: map.get($spacing, 5);
104
+ font-size: map.get($font-size-scale, sm);
105
+ max-width: $max-width-reading;
106
+
107
+ a {
108
+ color: $color-accent-primary-text;
109
+ }
110
+ }
111
+
112
+ .reading-notes__heading {
113
+ margin: 0 0 map.get($spacing, 1);
114
+ font-size: map.get($font-size-scale, base);
115
+ }
116
+
117
+ .reading-notes__intro,
118
+ .reading-notes__empty,
119
+ .reading-notes__unavailable,
120
+ .reading-list__empty {
121
+ margin: 0 0 map.get($spacing, 3);
122
+ color: $color-ink-500;
123
+ }
124
+
125
+ .reading-notes__list {
126
+ display: grid;
127
+ gap: map.get($spacing, 3);
128
+ margin: 0 0 map.get($spacing, 3);
129
+ padding: 0;
130
+ list-style: none;
131
+ }
132
+
133
+ .reading-note {
134
+ padding-top: map.get($spacing, 2);
135
+ border-top: 1px solid rgba($color-neutral-200, 0.7);
136
+ }
137
+
138
+ .reading-note__quote {
139
+ margin: 0 0 map.get($spacing, 1);
140
+ padding: 0 0 0 map.get($spacing, 3);
141
+ border-left: 3px solid rgba(250, 204, 21, 0.9);
142
+ background: none;
143
+ font-style: italic;
144
+ }
145
+
146
+ .reading-note__meta {
147
+ margin: 0 0 map.get($spacing, 1);
148
+ font-size: map.get($font-size-scale, xs);
149
+ color: $color-ink-500;
150
+ }
151
+
152
+ .reading-note__lost {
153
+ font-weight: 600;
154
+ color: $color-warning-text;
155
+ }
156
+
157
+ .reading-note__label {
158
+ display: grid;
159
+ gap: 2px;
160
+
161
+ span {
162
+ font-size: map.get($font-size-scale, xs);
163
+ font-weight: 600;
164
+ text-transform: uppercase;
165
+ letter-spacing: 0.04em;
166
+ color: $color-ink-500;
167
+ }
168
+
169
+ textarea {
170
+ width: 100%;
171
+ padding: 0.35rem 0.5rem;
172
+ border: 1px solid rgba($color-neutral-200, 0.9);
173
+ border-radius: map.get($radius, sm);
174
+ background: $color-surface-50;
175
+ color: $color-ink-700;
176
+ font: inherit;
177
+ font-size: map.get($font-size-scale, sm);
178
+ }
179
+ }
180
+
181
+ .reading-note__actions,
182
+ .reading-data__actions {
183
+ display: flex;
184
+ flex-wrap: wrap;
185
+ gap: map.get($spacing, 2);
186
+ margin-top: map.get($spacing, 2);
187
+ }
188
+
189
+ .reading-data {
190
+ margin-top: map.get($spacing, 3);
191
+
192
+ summary {
193
+ cursor: pointer;
194
+ font-weight: 600;
195
+ }
196
+ }
197
+
198
+ .reading-data__import {
199
+ position: relative;
200
+ overflow: hidden;
201
+
202
+ input {
203
+ position: absolute;
204
+ inset: 0;
205
+ width: 100%;
206
+ opacity: 0;
207
+ cursor: pointer;
208
+ }
209
+ }
210
+
211
+ .reading-data__status {
212
+ margin: map.get($spacing, 2) 0 0;
213
+ color: $color-ink-500;
214
+ }
215
+
216
+ // The saved articles on a page
217
+ .reading-list__items {
218
+ display: grid;
219
+ gap: map.get($spacing, 3);
220
+ margin: 0 0 map.get($spacing, 4);
221
+ padding: 0;
222
+ list-style: none;
223
+ }
224
+
225
+ .reading-list__item {
226
+ display: flex;
227
+ flex-wrap: wrap;
228
+ align-items: baseline;
229
+ gap: map.get($spacing, 1) map.get($spacing, 3);
230
+
231
+ a {
232
+ font-weight: 600;
233
+ }
234
+ }
235
+
236
+ .reading-list__meta {
237
+ font-size: map.get($font-size-scale, sm);
238
+ color: $color-ink-500;
239
+ }
240
+
241
+ body.dark-mode {
242
+ .reading-resume {
243
+ border-left-color: $dark-accent-secondary;
244
+ }
245
+
246
+ .reading-notes {
247
+ border-left-color: $dark-accent-tertiary;
248
+ }
249
+
250
+ .reading-notes__intro,
251
+ .reading-notes__empty,
252
+ .reading-notes__unavailable,
253
+ .reading-list__empty,
254
+ .reading-note__meta,
255
+ .reading-note__label span,
256
+ .reading-data__status,
257
+ .reading-list__meta {
258
+ color: $dark-ink-500;
259
+ }
260
+
261
+ .reading-note {
262
+ border-top-color: rgba($dark-ink-500, 0.25);
263
+ }
264
+
265
+ .reading-note__lost {
266
+ color: $dark-warning;
267
+ }
268
+
269
+ .reading-note__label textarea {
270
+ border-color: rgba($dark-ink-500, 0.35);
271
+ background: $dark-surface-300;
272
+ color: $dark-ink-700;
273
+ }
274
+ }
275
+
276
+ @media print {
277
+ .reading-resume,
278
+ .reading-toolbar,
279
+ .reading-note__actions,
280
+ .reading-data,
281
+ .reading-notes__empty,
282
+ .reading-notes__unavailable {
283
+ display: none !important;
284
+ }
285
+
286
+ .reading-notes {
287
+ border-left-color: currentColor;
288
+ background: none;
289
+ }
290
+ }