@yuhuanowo/yunui 0.2.7 → 0.2.8
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/yunui.css +7 -5
package/package.json
CHANGED
package/styles/yunui.css
CHANGED
|
@@ -528,14 +528,16 @@ body {
|
|
|
528
528
|
box-shadow: var(--shadow-md);
|
|
529
529
|
}
|
|
530
530
|
|
|
531
|
-
/* Lay a card out as a column so its footer can pin to the bottom. In a grid
|
|
532
|
-
equal
|
|
533
|
-
up no matter how much body content each card has — fixes
|
|
534
|
-
a short card" problem once, here, instead of per call site.
|
|
531
|
+
/* Lay a card out as a column so its footer can pin to the bottom. In a grid the
|
|
532
|
+
cards are already stretched to equal height (align-items: stretch, the default),
|
|
533
|
+
so every footer lines up no matter how much body content each card has — fixes
|
|
534
|
+
the "footer floats in a short card" problem once, here, instead of per call site.
|
|
535
|
+
NOTE: deliberately NO `height: 100%` — an explicit height overrides the grid's
|
|
536
|
+
stretch and, when the grid's own height is indefinite, collapses the card back
|
|
537
|
+
to content height (re-introducing the bug). Stretch alone is the robust path. */
|
|
535
538
|
.card-col {
|
|
536
539
|
display: flex;
|
|
537
540
|
flex-direction: column;
|
|
538
|
-
height: 100%;
|
|
539
541
|
}
|
|
540
542
|
|
|
541
543
|
/* Footer pinned to the bottom of a `.card-col`, with the standard hairline rule.
|