@instacks/peak 1.0.0 → 1.1.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 +4 -2
- package/dist/peak.css +47 -2
- package/dist/peak.min.css +1 -1
- package/dist/peak.scoped.css +47 -2
- package/dist/peak.scoped.min.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -205,7 +205,8 @@ variants.
|
|
|
205
205
|
|
|
206
206
|
`.peak-card-link` on one link makes the whole card clickable (other links stay clickable) and
|
|
207
207
|
lifts it on hover. Badges: `.peak-badge` with `.secondary`, `.contrast`, `.accent`, `.success`,
|
|
208
|
-
`.warning`, `.danger`, `.info`, plus `.solid`, `.outline`, `.dot
|
|
208
|
+
`.warning`, `.danger`, `.info`, plus `.solid`, `.outline`, `.dot`; a long label wraps inside its
|
|
209
|
+
container. `.peak-card` gives any element
|
|
209
210
|
the card look. All of these classes also work on a Stacks container stack's class field.
|
|
210
211
|
|
|
211
212
|
## Typography
|
|
@@ -232,7 +233,8 @@ Code blocks that scroll get a shade along each edge with more code beyond it (CS
|
|
|
232
233
|
`<a class="peak-anchor" href="#id">#</a>` in a heading is a link to it, shown on hover and focus.
|
|
233
234
|
|
|
234
235
|
Text colors: `.peak-text-primary`, `-secondary`, `-contrast`, `-muted`, `-success`, `-danger`,
|
|
235
|
-
`-info`.
|
|
236
|
+
`-info`. Alignment by writing direction: `.peak-text-start`, `-center`, `-end`; margin resets
|
|
237
|
+
`.peak-mt-0` and `.peak-mb-0`. Headings get balanced line breaks, letter-spacing from `--peak-heading-tracking` (h1 4/3
|
|
236
238
|
of it, `.peak-display` 5/3) and Blades' per-level line heights around `--peak-heading-line-height`.
|
|
237
239
|
Optional weights for h1 (`--peak-display-weight`), h4–h6 (`--peak-subheading-font-weight`) and
|
|
238
240
|
buttons (`--peak-button-font-weight`) fall back to the heading or body weight while unset.
|
package/dist/peak.css
CHANGED
|
@@ -3399,6 +3399,10 @@
|
|
|
3399
3399
|
font-weight: 600;
|
|
3400
3400
|
}
|
|
3401
3401
|
|
|
3402
|
+
.peak-eyebrow + :is(h1, h2, h3, h4, h5, h6) {
|
|
3403
|
+
margin-block-start: 0;
|
|
3404
|
+
}
|
|
3405
|
+
|
|
3402
3406
|
.peak-eyebrow.secondary {
|
|
3403
3407
|
color: var(--peak-secondary);
|
|
3404
3408
|
}
|
|
@@ -3558,7 +3562,22 @@
|
|
|
3558
3562
|
|
|
3559
3563
|
.site-title > :is(img, svg) {
|
|
3560
3564
|
block-size: var(--peak-logo-size);
|
|
3565
|
+
flex: none;
|
|
3561
3566
|
inline-size: auto;
|
|
3567
|
+
max-inline-size: none;
|
|
3568
|
+
}
|
|
3569
|
+
|
|
3570
|
+
.site-nav li > .site-title {
|
|
3571
|
+
flex: none;
|
|
3572
|
+
}
|
|
3573
|
+
|
|
3574
|
+
.site-subtitle {
|
|
3575
|
+
min-inline-size: 0;
|
|
3576
|
+
}
|
|
3577
|
+
|
|
3578
|
+
.site-nav li:has( > .site-title > :is(img, svg)) {
|
|
3579
|
+
align-items: center;
|
|
3580
|
+
display: flex;
|
|
3562
3581
|
}
|
|
3563
3582
|
|
|
3564
3583
|
.site-footer, :scope.site-footer {
|
|
@@ -4289,11 +4308,12 @@
|
|
|
4289
4308
|
--_peak-badge-bg: var(--peak-primary-tint);
|
|
4290
4309
|
--_peak-badge-solid-fg: var(--peak-on-primary);
|
|
4291
4310
|
--_peak-badge-solid-bg: var(--peak-primary-fill);
|
|
4311
|
+
overflow-wrap: anywhere;
|
|
4292
4312
|
background-color: var(--_peak-badge-bg);
|
|
4313
|
+
max-inline-size: 100%;
|
|
4293
4314
|
color: var(--_peak-badge-fg);
|
|
4294
|
-
white-space: nowrap;
|
|
4295
4315
|
vertical-align: .125em;
|
|
4296
|
-
border-radius:
|
|
4316
|
+
border-radius: calc(.5lh + .125rem);
|
|
4297
4317
|
align-items: center;
|
|
4298
4318
|
gap: .375em;
|
|
4299
4319
|
padding: .125rem .5rem;
|
|
@@ -4366,6 +4386,7 @@
|
|
|
4366
4386
|
content: "";
|
|
4367
4387
|
background-color: currentColor;
|
|
4368
4388
|
border-radius: 50%;
|
|
4389
|
+
flex: none;
|
|
4369
4390
|
block-size: .5em;
|
|
4370
4391
|
inline-size: .5em;
|
|
4371
4392
|
}
|
|
@@ -4427,6 +4448,10 @@
|
|
|
4427
4448
|
margin-block-end: calc(var(--pico-spacing) * .75);
|
|
4428
4449
|
}
|
|
4429
4450
|
|
|
4451
|
+
.peak-accordion > details > :last-child {
|
|
4452
|
+
margin-block-end: 0;
|
|
4453
|
+
}
|
|
4454
|
+
|
|
4430
4455
|
.peak-accordion.flush {
|
|
4431
4456
|
border: 0;
|
|
4432
4457
|
border-radius: 0;
|
|
@@ -5246,6 +5271,26 @@
|
|
|
5246
5271
|
font-size: var(--peak-h6);
|
|
5247
5272
|
}
|
|
5248
5273
|
|
|
5274
|
+
.peak-text-start {
|
|
5275
|
+
text-align: start;
|
|
5276
|
+
}
|
|
5277
|
+
|
|
5278
|
+
.peak-text-center {
|
|
5279
|
+
text-align: center;
|
|
5280
|
+
}
|
|
5281
|
+
|
|
5282
|
+
.peak-text-end {
|
|
5283
|
+
text-align: end;
|
|
5284
|
+
}
|
|
5285
|
+
|
|
5286
|
+
.peak-mt-0 {
|
|
5287
|
+
margin-block-start: 0;
|
|
5288
|
+
}
|
|
5289
|
+
|
|
5290
|
+
.peak-mb-0 {
|
|
5291
|
+
margin-block-end: 0;
|
|
5292
|
+
}
|
|
5293
|
+
|
|
5249
5294
|
.peak-visually-hidden:not(:focus-within) {
|
|
5250
5295
|
clip-path: inset(50%);
|
|
5251
5296
|
white-space: nowrap;
|