@levino/shipyard-base 0.9.3 → 0.9.4-rc-20261011181212
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/src/styles/components.css +35 -29
package/package.json
CHANGED
|
@@ -18,35 +18,6 @@
|
|
|
18
18
|
@apply block overflow-x-auto;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
/*
|
|
22
|
-
* Linked headings (rehypeHeadingLinks): the whole heading links to its own
|
|
23
|
-
* anchor. It keeps the heading's look; a "#" fades in on hover and keyboard
|
|
24
|
-
* focus. The "#" always takes its space, so nothing shifts, and its empty
|
|
25
|
-
* alt text keeps it out of the link's accessible name.
|
|
26
|
-
*/
|
|
27
|
-
.prose :where(h1, h2, h3, h4, h5, h6)[id] {
|
|
28
|
-
scroll-margin-top: 5rem;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.prose a.heading-link {
|
|
32
|
-
color: inherit;
|
|
33
|
-
font-weight: inherit;
|
|
34
|
-
text-decoration: none;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.prose a.heading-link::after {
|
|
38
|
-
content: "#" / "";
|
|
39
|
-
margin-inline-start: 0.35em;
|
|
40
|
-
color: var(--color-primary);
|
|
41
|
-
opacity: 0;
|
|
42
|
-
transition: opacity 0.15s;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.prose a.heading-link:hover::after,
|
|
46
|
-
.prose a.heading-link:focus-visible::after {
|
|
47
|
-
opacity: 1;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
21
|
/* Admonitions / Callouts */
|
|
51
22
|
.admonition {
|
|
52
23
|
@apply my-4 rounded-lg border-l-4 p-4;
|
|
@@ -280,3 +251,38 @@
|
|
|
280
251
|
@apply hidden;
|
|
281
252
|
}
|
|
282
253
|
}
|
|
254
|
+
|
|
255
|
+
@layer utilities {
|
|
256
|
+
/*
|
|
257
|
+
* Linked headings (rehypeHeadingLinks): the whole heading links to its own
|
|
258
|
+
* anchor. It keeps the heading's look; a "#" fades in on hover and keyboard
|
|
259
|
+
* focus. The "#" always takes its space, so nothing shifts, and its empty
|
|
260
|
+
* alt text keeps it out of the link's accessible name.
|
|
261
|
+
*
|
|
262
|
+
* In the utilities layer on purpose: @tailwindcss/typography puts its
|
|
263
|
+
* `.prose :where(a)` styles (underline, weight 500) there, and a rule in
|
|
264
|
+
* the components layer would lose against them.
|
|
265
|
+
*/
|
|
266
|
+
.prose :where(h1, h2, h3, h4, h5, h6)[id] {
|
|
267
|
+
scroll-margin-top: 5rem;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.prose a.heading-link {
|
|
271
|
+
color: inherit;
|
|
272
|
+
font-weight: inherit;
|
|
273
|
+
text-decoration: none;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.prose a.heading-link::after {
|
|
277
|
+
content: "#" / "";
|
|
278
|
+
margin-inline-start: 0.35em;
|
|
279
|
+
color: var(--color-primary);
|
|
280
|
+
opacity: 0;
|
|
281
|
+
transition: opacity 0.15s;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.prose a.heading-link:hover::after,
|
|
285
|
+
.prose a.heading-link:focus-visible::after {
|
|
286
|
+
opacity: 1;
|
|
287
|
+
}
|
|
288
|
+
}
|