@instacks/peak 1.3.2 → 1.4.0
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/README.md +2 -1
- package/dist/peak.css +14 -0
- package/dist/peak.min.css +1 -1
- package/dist/peak.scoped.css +14 -0
- package/dist/peak.scoped.min.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -236,7 +236,8 @@ Code blocks that scroll get a shade along each edge with more code beyond it (CS
|
|
|
236
236
|
|
|
237
237
|
Text colors: `.peak-text-primary`, `-secondary`, `-contrast`, `-muted`, `-success`, `-danger`,
|
|
238
238
|
`-info`. Alignment by writing direction: `.peak-text-start`, `-center`, `-end`; margin resets
|
|
239
|
-
`.peak-mt-0` and `.peak-mb-0
|
|
239
|
+
`.peak-mt-0` and `.peak-mb-0`; image fit `.peak-fit-cover` / `.peak-fit-contain` in a box of
|
|
240
|
+
`--peak-ratio`. Headings get balanced line breaks, letter-spacing from `--peak-heading-tracking` (h1 4/3
|
|
240
241
|
of it, `.peak-display` 5/3) and Blades' per-level line heights around `--peak-heading-line-height`.
|
|
241
242
|
Optional weights for h1 (`--peak-display-weight`), h4–h6 (`--peak-subheading-font-weight`) and
|
|
242
243
|
buttons (`--peak-button-font-weight`) fall back to the heading or body weight while unset.
|
package/dist/peak.css
CHANGED
|
@@ -5541,6 +5541,20 @@
|
|
|
5541
5541
|
}
|
|
5542
5542
|
}
|
|
5543
5543
|
|
|
5544
|
+
.peak-fit-cover, .peak-fit-contain {
|
|
5545
|
+
aspect-ratio: var(--peak-ratio, auto);
|
|
5546
|
+
object-position: center;
|
|
5547
|
+
block-size: auto;
|
|
5548
|
+
}
|
|
5549
|
+
|
|
5550
|
+
.peak-fit-cover {
|
|
5551
|
+
object-fit: cover;
|
|
5552
|
+
}
|
|
5553
|
+
|
|
5554
|
+
.peak-fit-contain {
|
|
5555
|
+
object-fit: contain;
|
|
5556
|
+
}
|
|
5557
|
+
|
|
5544
5558
|
.peak-visually-hidden:not(:focus-within) {
|
|
5545
5559
|
clip-path: inset(50%);
|
|
5546
5560
|
white-space: nowrap;
|