@instacks/peak 1.3.1 → 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 +22 -0
- package/dist/peak.min.css +1 -1
- package/dist/peak.scoped.css +22 -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
|
@@ -4072,6 +4072,14 @@
|
|
|
4072
4072
|
overflow: visible !important;
|
|
4073
4073
|
}
|
|
4074
4074
|
|
|
4075
|
+
:where(.out:not(:last-child):has( > .stacks_in.text_stack):not(:has( > .stacks_in > :is(p, ul, ol, dl, blockquote, pre, table, figure, h1, h2, h3, h4, h5, h6):last-child))) {
|
|
4076
|
+
margin-block-end: var(--pico-typography-spacing-vertical);
|
|
4077
|
+
}
|
|
4078
|
+
|
|
4079
|
+
.stacks_in.text_stack > p[\,]:first-of-type {
|
|
4080
|
+
margin-block-start: var(--pico-typography-spacing-vertical) !important;
|
|
4081
|
+
}
|
|
4082
|
+
|
|
4075
4083
|
@media (width < 576px) {
|
|
4076
4084
|
.stacks_in.peak-hide-below-sm {
|
|
4077
4085
|
display: none !important;
|
|
@@ -5533,6 +5541,20 @@
|
|
|
5533
5541
|
}
|
|
5534
5542
|
}
|
|
5535
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
|
+
|
|
5536
5558
|
.peak-visually-hidden:not(:focus-within) {
|
|
5537
5559
|
clip-path: inset(50%);
|
|
5538
5560
|
white-space: nowrap;
|