@riebeckite/honox 0.0.31 → 0.0.33
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/dist/index.js +534 -134
- package/dist/server.js +6 -0
- package/dist/src/asset_entries.d.ts +2 -1
- package/dist/src/client_module.d.ts +1 -1
- package/dist/src/content_assets.d.ts +1 -1
- package/dist/src/content_watch.d.ts +2 -1
- package/dist/src/endpoints.d.ts +1 -1
- package/dist/src/ssg/output_cache.d.ts +2 -2
- package/dist/src/ssg/types.d.ts +3 -2
- package/dist/src/ui/primitives.d.ts +36 -18
- package/dist/src/ui/primitives.js +229 -2
- package/dist/src/vite_runner.d.ts +3 -2
- package/package.json +10 -8
- package/style.css +249 -0
package/style.css
CHANGED
|
@@ -22,6 +22,21 @@
|
|
|
22
22
|
|
|
23
23
|
.rb-article-body {
|
|
24
24
|
min-width: 0;
|
|
25
|
+
padding-inline: var(--rb-space-2, 1rem);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.rb-article {
|
|
29
|
+
width: min(100%, var(--rb-layout-page-max, 80rem));
|
|
30
|
+
max-width: none;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:is(:root, .rb-theme-root)[data-article-layout="full-width"] .rb-article {
|
|
34
|
+
width: 100%;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
:is(:root, .rb-theme-root)[data-article-layout="full-width"]
|
|
38
|
+
.rb-article-body {
|
|
39
|
+
max-width: none;
|
|
25
40
|
}
|
|
26
41
|
|
|
27
42
|
.rb-page-body {
|
|
@@ -80,3 +95,237 @@
|
|
|
80
95
|
transform: translateY(0);
|
|
81
96
|
}
|
|
82
97
|
}
|
|
98
|
+
@layer components {
|
|
99
|
+
.rb-article-header h1 {
|
|
100
|
+
word-break: auto-phrase;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.rb-article-content :where(h1, h2, h3, h4, h5, h6) {
|
|
104
|
+
font-weight: 600;
|
|
105
|
+
line-height: 1.3;
|
|
106
|
+
text-wrap: balance;
|
|
107
|
+
word-break: auto-phrase;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.rb-article-content :where(h1) {
|
|
111
|
+
margin-block: 0 1em;
|
|
112
|
+
font-size: 2.25em;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.rb-article-content :where(h2) {
|
|
116
|
+
margin-block: 2em 1em;
|
|
117
|
+
font-size: 1.5em;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.rb-article-content :where(h3) {
|
|
121
|
+
margin-block: 1.6em 0.6em;
|
|
122
|
+
font-size: 1.25em;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.rb-article-content :where(h4) {
|
|
126
|
+
margin-block: 1.5em 0.5em;
|
|
127
|
+
font-size: 1em;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.rb-article-content :where(p) {
|
|
131
|
+
margin-block: 1.25em;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.rb-article-content :where(a) {
|
|
135
|
+
color: inherit;
|
|
136
|
+
text-decoration: underline;
|
|
137
|
+
text-decoration-thickness: 1px;
|
|
138
|
+
text-underline-offset: 0.2em;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.rb-article-content :where(strong) {
|
|
142
|
+
font-weight: 600;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.rb-article-content :where(ul) {
|
|
146
|
+
list-style-type: disc;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.rb-article-content :where(ol) {
|
|
150
|
+
list-style-type: decimal;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.rb-article-content :where(ol[type="A"]) {
|
|
154
|
+
list-style-type: upper-alpha;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.rb-article-content :where(ol[type="a"]) {
|
|
158
|
+
list-style-type: lower-alpha;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.rb-article-content :where(ol[type="I"]) {
|
|
162
|
+
list-style-type: upper-roman;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.rb-article-content :where(ol[type="i"]) {
|
|
166
|
+
list-style-type: lower-roman;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.rb-article-content :where(ul, ol) {
|
|
170
|
+
margin-block: 1.25em;
|
|
171
|
+
padding-inline-start: 1.625em;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.rb-article-content :where(li) {
|
|
175
|
+
margin-block: 0.5em;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.rb-article-content :where(ul ul, ul ol, ol ul, ol ol) {
|
|
179
|
+
margin-block: 0.75em;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.rb-article-content :where(.task-list-item) {
|
|
183
|
+
list-style: none;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.rb-article-content :where(.task-list-item) > :where(input[type="checkbox"]) {
|
|
187
|
+
margin-inline-end: 0.5em;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.rb-article-content :where(blockquote) {
|
|
191
|
+
margin-block: 2em;
|
|
192
|
+
padding-inline-start: 1em;
|
|
193
|
+
border-inline-start: 2px solid var(--rb-color-border);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.rb-article-content :where(hr) {
|
|
197
|
+
margin-block: 3em;
|
|
198
|
+
border: 0;
|
|
199
|
+
border-block-start: 1px solid var(--rb-color-border);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.rb-article-content :where(:not(pre) > code) {
|
|
203
|
+
font-family: var(--rb-font-mono);
|
|
204
|
+
font-size: 0.875em;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.rb-article-content :where(pre):not(:where(.rr-code *)) {
|
|
208
|
+
margin-block: 1.5em;
|
|
209
|
+
padding: 0.75rem 1rem;
|
|
210
|
+
border-radius: 6px;
|
|
211
|
+
background: var(--rb-color-code-background);
|
|
212
|
+
color: var(--rb-color-ink);
|
|
213
|
+
font-family: var(--rb-font-mono);
|
|
214
|
+
font-size: 0.875em;
|
|
215
|
+
line-height: 1.7;
|
|
216
|
+
overflow-x: auto;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.rb-article-content :where(pre):not(:where(.rr-code *)) :where(code) {
|
|
220
|
+
background: none;
|
|
221
|
+
border: 0;
|
|
222
|
+
padding: 0;
|
|
223
|
+
font-size: inherit;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.rb-article-content :where(table) {
|
|
227
|
+
width: 100%;
|
|
228
|
+
max-width: 100%;
|
|
229
|
+
border-collapse: collapse;
|
|
230
|
+
table-layout: auto;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.rb-article-content :where(.rb-table-scroll) {
|
|
234
|
+
max-width: 100%;
|
|
235
|
+
margin-block: 1.5em;
|
|
236
|
+
overflow-x: auto;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.rb-article-content :where(figure) {
|
|
240
|
+
margin-block: 2em;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.rb-article-content :where(figure > *) {
|
|
244
|
+
margin-block: 0;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.rb-article-content :where(figcaption) {
|
|
248
|
+
color: var(--rb-color-muted);
|
|
249
|
+
font-size: 0.875em;
|
|
250
|
+
line-height: 1.43;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.rb-source-fallback {
|
|
254
|
+
inline-size: 100%;
|
|
255
|
+
margin-block: 0.75rem 0;
|
|
256
|
+
border-block-start: 1px solid var(--rb-color-border);
|
|
257
|
+
color: var(--rb-color-muted);
|
|
258
|
+
font-size: 0.8125rem;
|
|
259
|
+
text-align: start;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
figure > .rb-source-fallback {
|
|
263
|
+
margin-block: 0;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.rb-source-fallback > summary {
|
|
267
|
+
padding: 0.5rem 0.75rem;
|
|
268
|
+
cursor: pointer;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.rb-source-fallback > pre {
|
|
272
|
+
overflow: auto;
|
|
273
|
+
margin: 0 0.75rem 0.75rem;
|
|
274
|
+
padding: 0.75rem;
|
|
275
|
+
border: 1px solid var(--rb-color-border);
|
|
276
|
+
border-radius: 6px;
|
|
277
|
+
background: var(--rb-color-code-background);
|
|
278
|
+
color: var(--rb-color-ink);
|
|
279
|
+
font-size: 0.8125rem;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.rb-article-content :where(dl) {
|
|
283
|
+
margin-block: 1.25em;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.rb-article-content :where(dt) {
|
|
287
|
+
margin-block-start: 1.25em;
|
|
288
|
+
font-weight: 600;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.rb-article-content :where(dd) {
|
|
292
|
+
margin-block-start: 0.5em;
|
|
293
|
+
padding-inline-start: 1.625em;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.rb-article-content :where(kbd) {
|
|
297
|
+
padding: 0.15em 0.4em;
|
|
298
|
+
border: 1px solid var(--rb-color-border);
|
|
299
|
+
border-radius: 4px;
|
|
300
|
+
background: var(--rb-color-surface);
|
|
301
|
+
color: inherit;
|
|
302
|
+
font-family: var(--rb-font-mono);
|
|
303
|
+
font-size: 0.875em;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.rb-article-content :where(img, picture, video) {
|
|
307
|
+
margin-block: 2em;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.rb-article-content :where(picture > img) {
|
|
311
|
+
margin-block: 0;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.rb-article-content > :where(:first-child) {
|
|
315
|
+
margin-block-start: 0;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.rb-article-content > :where(:last-child) {
|
|
319
|
+
margin-block-end: 0;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.rb-article-content :where(hr, h2, h3, h4) + * {
|
|
323
|
+
margin-block-start: 0;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
@media (max-width: 48rem) {
|
|
327
|
+
.rb-article-content {
|
|
328
|
+
overflow-wrap: break-word;
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
}
|