@filipgutica/ui 1.16.0 → 1.16.1
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/site.css +22 -8
package/package.json
CHANGED
package/src/site.css
CHANGED
|
@@ -479,23 +479,37 @@
|
|
|
479
479
|
* rule runs down the leading column to the next step. */
|
|
480
480
|
.fg-site-steps > li {
|
|
481
481
|
position: relative;
|
|
482
|
-
display:
|
|
483
|
-
|
|
484
|
-
|
|
482
|
+
display: flow-root;
|
|
483
|
+
min-width: 0;
|
|
484
|
+
padding-inline-start: var(--space-8);
|
|
485
485
|
counter-increment: fg-site-step;
|
|
486
486
|
}
|
|
487
|
-
|
|
488
|
-
.fg-site-steps > li
|
|
487
|
+
/* Keep text and inline elements in normal flow; only the number occupies the gutter. */
|
|
488
|
+
.fg-site-steps > li > * + * { margin-block-start: var(--space-2); }
|
|
489
|
+
.fg-site-steps > li::before,
|
|
490
|
+
.fg-site-steps > li > h3:first-child::before {
|
|
489
491
|
content: counter(fg-site-step);
|
|
490
|
-
grid-area: 1 / 1;
|
|
491
|
-
align-self: baseline;
|
|
492
492
|
color: var(--color-project);
|
|
493
493
|
font-family: var(--font-mono);
|
|
494
494
|
font-size: var(--text-sm);
|
|
495
495
|
font-weight: var(--weight-semibold);
|
|
496
496
|
font-variant-numeric: tabular-nums;
|
|
497
|
+
line-height: var(--leading);
|
|
498
|
+
}
|
|
499
|
+
.fg-site-steps > li::before {
|
|
500
|
+
position: absolute;
|
|
501
|
+
inset-inline-start: 0;
|
|
502
|
+
top: 0;
|
|
503
|
+
}
|
|
504
|
+
/* A titled step keeps the number on the heading's baseline and preserves its line box. */
|
|
505
|
+
.fg-site-steps > li:has(> h3:first-child)::before { content: none; }
|
|
506
|
+
.fg-site-steps > li > h3:first-child::before {
|
|
507
|
+
display: inline-block;
|
|
508
|
+
width: var(--space-8);
|
|
509
|
+
margin-inline-start: calc(-1 * var(--space-8));
|
|
510
|
+
/* A unit line height keeps the number from making a wrapped title's line boxes taller. */
|
|
511
|
+
line-height: 1;
|
|
497
512
|
}
|
|
498
|
-
.fg-site-steps > li > :first-child { align-self: baseline; }
|
|
499
513
|
.fg-site-steps > li:not(:last-child)::after {
|
|
500
514
|
content: '';
|
|
501
515
|
position: absolute;
|