@blaaiz/docs-core 0.9.2 → 0.9.3
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/package.json +1 -1
- package/styles/api-reference.css +47 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blaaiz/docs-core",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.3",
|
|
4
4
|
"description": "Neutral, self-hostable documentation framework core — navigation parsing, OpenAPI merging, MDX doc components, and a hardened try-it proxy. Config and content live in each consuming site.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"documentation",
|
package/styles/api-reference.css
CHANGED
|
@@ -237,6 +237,41 @@
|
|
|
237
237
|
pointer-events: auto;
|
|
238
238
|
}
|
|
239
239
|
|
|
240
|
+
/* The section heading rows (Authorization, Request Body, a response) hold
|
|
241
|
+
their meta — scheme and scope, the media type — in a right-hand block that
|
|
242
|
+
is a flex item without min-width: 0, so it never shrinks and runs off the
|
|
243
|
+
viewport, clipped. Let it shrink (fumadocs' own `truncate` then works), and
|
|
244
|
+
on phones wrap the text instead of truncating so the scope stays readable. */
|
|
245
|
+
#nd-page div[class*='justify-between'][class*='gap-2'] > .not-prose {
|
|
246
|
+
min-width: 0;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
@media (width < 40rem) {
|
|
250
|
+
#nd-page div[class*='justify-between'][class*='gap-2'] > .not-prose code[class*='truncate'] {
|
|
251
|
+
white-space: normal;
|
|
252
|
+
overflow: visible;
|
|
253
|
+
text-align: right;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/* On phones the title owns its full width (it wraps), so the overlay trick
|
|
258
|
+
would sit the control on the heading text: keep the control in flow, on its
|
|
259
|
+
own right-aligned row above the title. */
|
|
260
|
+
@media (width < 40rem) {
|
|
261
|
+
#nd-page .api-page-actions {
|
|
262
|
+
margin-bottom: 0.5rem;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/* While the overlay is active, the title must never run under the control:
|
|
267
|
+
reserve the control's footprint on the heading's line, so a long title
|
|
268
|
+
wraps clear of it at any width. */
|
|
269
|
+
@media (width >= 40rem) {
|
|
270
|
+
#nd-page .api-page-actions + * h2[class*='my-0'] {
|
|
271
|
+
padding-right: 11rem;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
|
|
240
275
|
@media (min-width: 1280px) {
|
|
241
276
|
#nd-page .api-page-actions {
|
|
242
277
|
padding-right: calc(460px + 1.5rem);
|
|
@@ -1311,6 +1346,18 @@ div[class*='bg-fd-popover'] [class*='prose-no-margin'] {
|
|
|
1311
1346
|
align-items: center;
|
|
1312
1347
|
}
|
|
1313
1348
|
|
|
1349
|
+
/* Below tablet width the pinned pills land on the property name itself:
|
|
1350
|
+
restore the stock flow, under the name row. */
|
|
1351
|
+
@media (width < 48rem) {
|
|
1352
|
+
:is(#nd-page, div[class*='bg-fd-popover'])
|
|
1353
|
+
div[class*='prose-no-margin']
|
|
1354
|
+
> div[class*='mt-2'][class*='flex-row'][class*='flex-wrap'] {
|
|
1355
|
+
position: static;
|
|
1356
|
+
transform: none;
|
|
1357
|
+
margin: 0.5rem 0 0;
|
|
1358
|
+
}
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1314
1361
|
/* Enum values ("Value in") share that pinned row with the small constraint
|
|
1315
1362
|
chips, but they are a whole card with a bulleted list — pinned, it floated
|
|
1316
1363
|
over the neighbouring property's text. Collapse it to a chip the same size as
|