@instacks/peak 1.1.2 → 1.3.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 +3 -1
- package/dist/peak.css +298 -33
- package/dist/peak.min.css +1 -1
- package/dist/peak.scoped.css +298 -33
- package/dist/peak.scoped.min.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,7 +14,9 @@ or `npm install @instacks/peak` and import `@instacks/peak` (minified) or
|
|
|
14
14
|
`@instacks/peak/unminified`.
|
|
15
15
|
|
|
16
16
|
**Documentation:** <https://instacks.github.io/peak/>, with live examples of every component, a
|
|
17
|
-
token reference
|
|
17
|
+
token reference, a customizer that writes your theme's CSS, and
|
|
18
|
+
[example pages](https://instacks.github.io/peak/examples.html) (a landing page, an admin
|
|
19
|
+
dashboard, a blog and a shop) built with Peak's classes alone. Build it locally with
|
|
18
20
|
`npm run build && npm run docs` (output in `_site/`, `npm run docs:serve` to browse it).
|
|
19
21
|
|
|
20
22
|
### Scoped build
|
package/dist/peak.css
CHANGED
|
@@ -3454,6 +3454,11 @@
|
|
|
3454
3454
|
font-size: .75em;
|
|
3455
3455
|
}
|
|
3456
3456
|
|
|
3457
|
+
:where(img[width][height]) {
|
|
3458
|
+
block-size: auto;
|
|
3459
|
+
max-inline-size: 100%;
|
|
3460
|
+
}
|
|
3461
|
+
|
|
3457
3462
|
.peak-prose {
|
|
3458
3463
|
max-inline-size: var(--peak-measure);
|
|
3459
3464
|
text-wrap: pretty;
|
|
@@ -3508,6 +3513,15 @@
|
|
|
3508
3513
|
:scope:has(.nav-sticky) [id] {
|
|
3509
3514
|
scroll-margin-block-start: 5rem;
|
|
3510
3515
|
}
|
|
3516
|
+
|
|
3517
|
+
meter {
|
|
3518
|
+
inline-size: 100%;
|
|
3519
|
+
margin-block-end: calc(var(--pico-spacing) * .5);
|
|
3520
|
+
}
|
|
3521
|
+
|
|
3522
|
+
:is([role="group"], [role="search"]):has( > :is(input, select, textarea)) > :is(button, [role="button"]) {
|
|
3523
|
+
flex-shrink: 0;
|
|
3524
|
+
}
|
|
3511
3525
|
}
|
|
3512
3526
|
|
|
3513
3527
|
@layer peak.layout {
|
|
@@ -3581,6 +3595,7 @@
|
|
|
3581
3595
|
}
|
|
3582
3596
|
|
|
3583
3597
|
.site-footer, :scope.site-footer {
|
|
3598
|
+
--pico-color: var(--pico-muted-color);
|
|
3584
3599
|
padding-block: calc(var(--pico-spacing) * 2);
|
|
3585
3600
|
border-block-start: var(--pico-border-width) solid var(--pico-muted-border-color);
|
|
3586
3601
|
color: var(--pico-muted-color);
|
|
@@ -3643,15 +3658,18 @@
|
|
|
3643
3658
|
:is(.site-header, :scope.site-header):is([data-nav-style="surface"], [data-nav-style="bordered"]) {
|
|
3644
3659
|
--_peak-nav-bg: var(--peak-bg);
|
|
3645
3660
|
background-color: var(--_peak-nav-bg);
|
|
3646
|
-
|
|
3647
|
-
0
|
|
3648
|
-
clip-path: inset(0 -100vmax calc(var(--pico-border-width) * -1));
|
|
3661
|
+
border-image: linear-gradient(var(--_peak-nav-bg) calc(100% - var(--pico-border-width)), var(--pico-muted-border-color) 0)
|
|
3662
|
+
fill 0 / 0 / 0 100vmax var(--pico-border-width);
|
|
3649
3663
|
}
|
|
3650
3664
|
|
|
3651
3665
|
:is(.site-header, :scope.site-header)[data-nav-style="surface"] {
|
|
3652
3666
|
--_peak-nav-bg: var(--peak-surface);
|
|
3653
3667
|
}
|
|
3654
3668
|
|
|
3669
|
+
.site-footer-nav {
|
|
3670
|
+
display: block;
|
|
3671
|
+
}
|
|
3672
|
+
|
|
3655
3673
|
.site-footer-nav ul {
|
|
3656
3674
|
margin: 0 0 calc(var(--pico-spacing) * .75);
|
|
3657
3675
|
flex-wrap: wrap;
|
|
@@ -3661,6 +3679,11 @@
|
|
|
3661
3679
|
display: flex;
|
|
3662
3680
|
}
|
|
3663
3681
|
|
|
3682
|
+
.site-footer-nav.stacked ul {
|
|
3683
|
+
flex-direction: column;
|
|
3684
|
+
align-items: start;
|
|
3685
|
+
}
|
|
3686
|
+
|
|
3664
3687
|
.site-footer-nav li {
|
|
3665
3688
|
margin: 0;
|
|
3666
3689
|
padding: 0;
|
|
@@ -3671,7 +3694,7 @@
|
|
|
3671
3694
|
}
|
|
3672
3695
|
|
|
3673
3696
|
.site-footer-nav a[aria-current="page"] {
|
|
3674
|
-
color: var(--
|
|
3697
|
+
color: var(--peak-text);
|
|
3675
3698
|
}
|
|
3676
3699
|
|
|
3677
3700
|
.site-footer-text {
|
|
@@ -3742,8 +3765,7 @@
|
|
|
3742
3765
|
--_peak-band-bg: var(--peak-surface-sunken);
|
|
3743
3766
|
padding-block: var(--peak-section-spacing, calc(var(--pico-block-spacing-vertical) * 2));
|
|
3744
3767
|
background-color: var(--_peak-band-bg);
|
|
3745
|
-
|
|
3746
|
-
clip-path: inset(0 -100vmax);
|
|
3768
|
+
border-image: linear-gradient(var(--_peak-band-bg), var(--_peak-band-bg)) fill 0 / 0 / 0 100vmax;
|
|
3747
3769
|
}
|
|
3748
3770
|
|
|
3749
3771
|
.peak-band.surface {
|
|
@@ -3756,14 +3778,32 @@
|
|
|
3756
3778
|
|
|
3757
3779
|
.peak-band.primary {
|
|
3758
3780
|
--_peak-band-bg: var(--peak-primary-fill);
|
|
3759
|
-
--
|
|
3760
|
-
color: var(--peak-on-primary);
|
|
3781
|
+
--_peak-band-fg: var(--peak-on-primary);
|
|
3761
3782
|
}
|
|
3762
3783
|
|
|
3763
3784
|
.peak-band.contrast {
|
|
3764
3785
|
--_peak-band-bg: var(--peak-contrast);
|
|
3765
|
-
--
|
|
3766
|
-
|
|
3786
|
+
--_peak-band-fg: var(--peak-on-contrast);
|
|
3787
|
+
}
|
|
3788
|
+
|
|
3789
|
+
.peak-band:is(.primary, .contrast) {
|
|
3790
|
+
--pico-color: var(--_peak-band-fg);
|
|
3791
|
+
--pico-h1-color: var(--_peak-band-fg);
|
|
3792
|
+
--pico-h2-color: var(--_peak-band-fg);
|
|
3793
|
+
--pico-h3-color: var(--_peak-band-fg);
|
|
3794
|
+
--pico-h4-color: var(--_peak-band-fg);
|
|
3795
|
+
--pico-h5-color: var(--_peak-band-fg);
|
|
3796
|
+
--pico-h6-color: var(--_peak-band-fg);
|
|
3797
|
+
--peak-heading: var(--_peak-band-fg);
|
|
3798
|
+
--peak-muted: var(--_peak-band-fg);
|
|
3799
|
+
--pico-muted-color: var(--_peak-band-fg);
|
|
3800
|
+
--peak-primary: var(--_peak-band-fg);
|
|
3801
|
+
--pico-primary: var(--_peak-band-fg);
|
|
3802
|
+
--pico-primary-hover: var(--_peak-band-fg);
|
|
3803
|
+
--pico-primary-underline: color-mix(in srgb, var(--_peak-band-fg) 60%, transparent);
|
|
3804
|
+
--pico-primary-hover-underline: var(--_peak-band-fg);
|
|
3805
|
+
--pico-primary-focus: var(--_peak-band-fg);
|
|
3806
|
+
color: var(--_peak-band-fg);
|
|
3767
3807
|
}
|
|
3768
3808
|
|
|
3769
3809
|
.peak-hero {
|
|
@@ -3831,10 +3871,26 @@
|
|
|
3831
3871
|
align-items: baseline;
|
|
3832
3872
|
}
|
|
3833
3873
|
|
|
3874
|
+
:where(.peak-cluster) {
|
|
3875
|
+
margin-block-end: var(--pico-typography-spacing-vertical);
|
|
3876
|
+
}
|
|
3877
|
+
|
|
3878
|
+
:where(.peak-grid-auto, .peak-grid, .peak-switcher):where(:not(:last-child)) {
|
|
3879
|
+
margin-block-end: var(--pico-block-spacing-vertical);
|
|
3880
|
+
}
|
|
3881
|
+
|
|
3834
3882
|
.peak-cluster > * {
|
|
3835
3883
|
margin-block: 0;
|
|
3836
3884
|
}
|
|
3837
3885
|
|
|
3886
|
+
.peak-cluster > :is(input:not([type="checkbox"], [type="radio"], [type="range"]), select, textarea) {
|
|
3887
|
+
field-sizing: content;
|
|
3888
|
+
flex: none;
|
|
3889
|
+
inline-size: auto;
|
|
3890
|
+
min-inline-size: 5rem;
|
|
3891
|
+
max-inline-size: 100%;
|
|
3892
|
+
}
|
|
3893
|
+
|
|
3838
3894
|
.peak-grid {
|
|
3839
3895
|
--_peak-gap: var(--peak-gap, var(--pico-grid-column-gap));
|
|
3840
3896
|
grid-template-columns: repeat(auto-fill,
|
|
@@ -3871,6 +3927,7 @@
|
|
|
3871
3927
|
gap: var(--peak-gap, calc(var(--pico-spacing) * 2));
|
|
3872
3928
|
flex-wrap: wrap;
|
|
3873
3929
|
display: flex;
|
|
3930
|
+
container: peak-sidebar / inline-size;
|
|
3874
3931
|
}
|
|
3875
3932
|
|
|
3876
3933
|
.peak-with-sidebar > :is(aside, .peak-sidebar), .peak-with-sidebar > .out:has( > .peak-sidebar) {
|
|
@@ -3882,10 +3939,12 @@
|
|
|
3882
3939
|
min-inline-size: 60%;
|
|
3883
3940
|
}
|
|
3884
3941
|
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3942
|
+
@container peak-sidebar (width >= 45rem) {
|
|
3943
|
+
.peak-with-sidebar.sticky > :is(aside, .peak-sidebar), .peak-with-sidebar.sticky > .out:has( > .peak-sidebar) {
|
|
3944
|
+
align-self: start;
|
|
3945
|
+
position: sticky;
|
|
3946
|
+
inset-block-start: var(--peak-sticky-offset, var(--pico-spacing));
|
|
3947
|
+
}
|
|
3889
3948
|
}
|
|
3890
3949
|
|
|
3891
3950
|
.peak-media {
|
|
@@ -3903,7 +3962,7 @@
|
|
|
3903
3962
|
}
|
|
3904
3963
|
|
|
3905
3964
|
.peak-media > :last-child {
|
|
3906
|
-
flex: 16rem;
|
|
3965
|
+
flex: 1 1 var(--peak-media-min, 16rem);
|
|
3907
3966
|
min-inline-size: 0;
|
|
3908
3967
|
}
|
|
3909
3968
|
|
|
@@ -3924,6 +3983,7 @@
|
|
|
3924
3983
|
.peak-switcher > * {
|
|
3925
3984
|
flex-grow: 1;
|
|
3926
3985
|
flex-basis: calc((var(--peak-switch-at, 40rem) - 100%) * 999);
|
|
3986
|
+
min-inline-size: 0;
|
|
3927
3987
|
margin-block: 0;
|
|
3928
3988
|
}
|
|
3929
3989
|
|
|
@@ -3953,6 +4013,12 @@
|
|
|
3953
4013
|
padding-block: var(--peak-section-spacing, calc(var(--pico-block-spacing-vertical) * 2)) !important;
|
|
3954
4014
|
}
|
|
3955
4015
|
|
|
4016
|
+
@media screen and (forced-colors: none) {
|
|
4017
|
+
.stacks_in.peak-band {
|
|
4018
|
+
border-image: linear-gradient(var(--_peak-band-bg), var(--_peak-band-bg)) fill 0 / 0 / 0 100vmax !important;
|
|
4019
|
+
}
|
|
4020
|
+
}
|
|
4021
|
+
|
|
3956
4022
|
.stacks_in.peak-hero {
|
|
3957
4023
|
padding-block: calc(var(--peak-spacing) * 4) calc(var(--peak-spacing) * 2.5) !important;
|
|
3958
4024
|
}
|
|
@@ -4005,6 +4071,54 @@
|
|
|
4005
4071
|
.stacks_in.peak-switcher, .stacks_in.peak-switcher > .out > .stacks_in {
|
|
4006
4072
|
overflow: visible !important;
|
|
4007
4073
|
}
|
|
4074
|
+
|
|
4075
|
+
@media (width < 576px) {
|
|
4076
|
+
.stacks_in.peak-hide-below-sm {
|
|
4077
|
+
display: none !important;
|
|
4078
|
+
}
|
|
4079
|
+
}
|
|
4080
|
+
|
|
4081
|
+
@media (width >= 576px) {
|
|
4082
|
+
.stacks_in.peak-hide-from-sm {
|
|
4083
|
+
display: none !important;
|
|
4084
|
+
}
|
|
4085
|
+
}
|
|
4086
|
+
|
|
4087
|
+
@media (width < 768px) {
|
|
4088
|
+
.stacks_in.peak-hide-below-md {
|
|
4089
|
+
display: none !important;
|
|
4090
|
+
}
|
|
4091
|
+
}
|
|
4092
|
+
|
|
4093
|
+
@media (width >= 768px) {
|
|
4094
|
+
.stacks_in.peak-hide-from-md {
|
|
4095
|
+
display: none !important;
|
|
4096
|
+
}
|
|
4097
|
+
}
|
|
4098
|
+
|
|
4099
|
+
@media (width < 1024px) {
|
|
4100
|
+
.stacks_in.peak-hide-below-lg {
|
|
4101
|
+
display: none !important;
|
|
4102
|
+
}
|
|
4103
|
+
}
|
|
4104
|
+
|
|
4105
|
+
@media (width >= 1024px) {
|
|
4106
|
+
.stacks_in.peak-hide-from-lg {
|
|
4107
|
+
display: none !important;
|
|
4108
|
+
}
|
|
4109
|
+
}
|
|
4110
|
+
|
|
4111
|
+
@media (width < 1280px) {
|
|
4112
|
+
.stacks_in.peak-hide-below-xl {
|
|
4113
|
+
display: none !important;
|
|
4114
|
+
}
|
|
4115
|
+
}
|
|
4116
|
+
|
|
4117
|
+
@media (width >= 1280px) {
|
|
4118
|
+
.stacks_in.peak-hide-from-xl {
|
|
4119
|
+
display: none !important;
|
|
4120
|
+
}
|
|
4121
|
+
}
|
|
4008
4122
|
}
|
|
4009
4123
|
|
|
4010
4124
|
@layer peak.components {
|
|
@@ -4040,7 +4154,7 @@
|
|
|
4040
4154
|
position-try-fallbacks: flip-block,
|
|
4041
4155
|
flip-inline,
|
|
4042
4156
|
flip-block flip-inline;
|
|
4043
|
-
position-visibility:
|
|
4157
|
+
position-visibility: anchor-visible;
|
|
4044
4158
|
overflow-y: auto;
|
|
4045
4159
|
}
|
|
4046
4160
|
|
|
@@ -4049,7 +4163,7 @@
|
|
|
4049
4163
|
position-try-fallbacks: flip-block,
|
|
4050
4164
|
flip-inline,
|
|
4051
4165
|
flip-block flip-inline;
|
|
4052
|
-
position-visibility:
|
|
4166
|
+
position-visibility: anchor-visible;
|
|
4053
4167
|
margin: 0;
|
|
4054
4168
|
margin-block-start: var(--pico-outline-width);
|
|
4055
4169
|
inset: auto;
|
|
@@ -4200,22 +4314,28 @@
|
|
|
4200
4314
|
border-end-start-radius: var(--pico-border-radius);
|
|
4201
4315
|
}
|
|
4202
4316
|
|
|
4203
|
-
:is(.peak-grid-auto, .grid) > :is(article, .peak-card), .peak-grid-auto > .out > .stacks_in > :is(article, .peak-card):only-child, .peak-grid-auto > .out > .stacks_in.peak-card {
|
|
4317
|
+
:is(.peak-grid-auto, .peak-grid, .grid) > :is(article, .peak-card), .peak-grid-auto > .out > .stacks_in > :is(article, .peak-card):only-child, .peak-grid-auto > .out > .stacks_in.peak-card {
|
|
4204
4318
|
flex-direction: column;
|
|
4205
4319
|
flex: 1;
|
|
4206
4320
|
margin-block: 0;
|
|
4207
4321
|
display: flex;
|
|
4208
4322
|
}
|
|
4209
4323
|
|
|
4210
|
-
|
|
4324
|
+
.peak-switcher > :is(article, .peak-card) {
|
|
4325
|
+
flex-direction: column;
|
|
4326
|
+
margin-block: 0;
|
|
4327
|
+
display: flex;
|
|
4328
|
+
}
|
|
4329
|
+
|
|
4330
|
+
:is(.peak-grid-auto, .peak-grid, .peak-switcher, .grid) > :is(article, .peak-card) > footer, .peak-grid-auto > .out > .stacks_in > :is(article, .peak-card):only-child > footer, .peak-grid-auto > .out > .stacks_in.peak-card > footer {
|
|
4211
4331
|
margin-block-start: auto;
|
|
4212
4332
|
}
|
|
4213
4333
|
|
|
4214
|
-
:is(article, .peak-card) > :is(h2, h3, h4, h5, h6) {
|
|
4334
|
+
:is(article:not(.peak-prose), .peak-card) > :is(h2, h3, h4, h5, h6) {
|
|
4215
4335
|
margin-block-end: calc(var(--pico-typography-spacing-vertical) * .5);
|
|
4216
4336
|
}
|
|
4217
4337
|
|
|
4218
|
-
:is(article, .peak-card) > :is(img, picture, figure):first-child {
|
|
4338
|
+
:is(article:not(.peak-prose), .peak-card) > :is(img, picture, figure):first-child {
|
|
4219
4339
|
inline-size: calc(100% + var(--pico-block-spacing-horizontal) * 2);
|
|
4220
4340
|
block-size: auto;
|
|
4221
4341
|
max-inline-size: none;
|
|
@@ -4227,6 +4347,29 @@
|
|
|
4227
4347
|
overflow: hidden;
|
|
4228
4348
|
}
|
|
4229
4349
|
|
|
4350
|
+
article.peak-prose {
|
|
4351
|
+
box-shadow: none;
|
|
4352
|
+
background: none;
|
|
4353
|
+
border-radius: 0;
|
|
4354
|
+
padding: 0;
|
|
4355
|
+
}
|
|
4356
|
+
|
|
4357
|
+
article.peak-prose > :is(header, footer) {
|
|
4358
|
+
background: none;
|
|
4359
|
+
border: 0;
|
|
4360
|
+
border-radius: 0;
|
|
4361
|
+
margin-inline: 0;
|
|
4362
|
+
padding: 0;
|
|
4363
|
+
}
|
|
4364
|
+
|
|
4365
|
+
article.peak-prose > header {
|
|
4366
|
+
margin-block: 0 var(--pico-block-spacing-vertical);
|
|
4367
|
+
}
|
|
4368
|
+
|
|
4369
|
+
article.peak-prose > footer {
|
|
4370
|
+
margin-block: var(--pico-block-spacing-vertical) 0;
|
|
4371
|
+
}
|
|
4372
|
+
|
|
4230
4373
|
.peak-card.outline {
|
|
4231
4374
|
box-shadow: 0 0 0 var(--pico-border-width) var(--pico-card-border-color);
|
|
4232
4375
|
}
|
|
@@ -4236,7 +4379,12 @@
|
|
|
4236
4379
|
box-shadow: none;
|
|
4237
4380
|
}
|
|
4238
4381
|
|
|
4239
|
-
|
|
4382
|
+
.peak-card.featured {
|
|
4383
|
+
box-shadow: 0 0 0 calc(var(--pico-border-width) * 2) var(--peak-primary),
|
|
4384
|
+
var(--pico-card-box-shadow);
|
|
4385
|
+
}
|
|
4386
|
+
|
|
4387
|
+
:is(article:not(.peak-prose), .peak-card):has(.peak-card-link) {
|
|
4240
4388
|
transition: transform var(--pico-transition),
|
|
4241
4389
|
box-shadow var(--pico-transition);
|
|
4242
4390
|
position: relative;
|
|
@@ -4249,16 +4397,16 @@
|
|
|
4249
4397
|
inset: 0;
|
|
4250
4398
|
}
|
|
4251
4399
|
|
|
4252
|
-
:is(article, .peak-card):has(.peak-card-link) :is(a, button, input, select, textarea, summary, label):not(.peak-card-link) {
|
|
4400
|
+
:is(article:not(.peak-prose), .peak-card):has(.peak-card-link) :is(a, button, input, select, textarea, summary, label):not(.peak-card-link) {
|
|
4253
4401
|
z-index: 1;
|
|
4254
4402
|
position: relative;
|
|
4255
4403
|
}
|
|
4256
4404
|
|
|
4257
|
-
:is(article, .peak-card):has(.peak-card-link):hover {
|
|
4405
|
+
:is(article:not(.peak-prose), .peak-card):has(.peak-card-link):hover {
|
|
4258
4406
|
transform: translateY(-2px);
|
|
4259
4407
|
}
|
|
4260
4408
|
|
|
4261
|
-
:is(article, .peak-card):has(.peak-card-link:focus-visible) {
|
|
4409
|
+
:is(article:not(.peak-prose), .peak-card):has(.peak-card-link:focus-visible) {
|
|
4262
4410
|
outline: var(--pico-outline-width) solid var(--pico-primary-focus);
|
|
4263
4411
|
outline-offset: 2px;
|
|
4264
4412
|
}
|
|
@@ -4269,7 +4417,7 @@
|
|
|
4269
4417
|
}
|
|
4270
4418
|
|
|
4271
4419
|
@media (prefers-reduced-motion: reduce) {
|
|
4272
|
-
:is(article, .peak-card):has(.peak-card-link):hover {
|
|
4420
|
+
:is(article:not(.peak-prose), .peak-card):has(.peak-card-link):hover {
|
|
4273
4421
|
transform: none;
|
|
4274
4422
|
}
|
|
4275
4423
|
}
|
|
@@ -4308,7 +4456,7 @@
|
|
|
4308
4456
|
--_peak-badge-bg: var(--peak-primary-tint);
|
|
4309
4457
|
--_peak-badge-solid-fg: var(--peak-on-primary);
|
|
4310
4458
|
--_peak-badge-solid-bg: var(--peak-primary-fill);
|
|
4311
|
-
overflow-wrap:
|
|
4459
|
+
overflow-wrap: break-word;
|
|
4312
4460
|
background-color: var(--_peak-badge-bg);
|
|
4313
4461
|
max-inline-size: 100%;
|
|
4314
4462
|
color: var(--_peak-badge-fg);
|
|
@@ -4572,7 +4720,7 @@
|
|
|
4572
4720
|
overflow: hidden;
|
|
4573
4721
|
}
|
|
4574
4722
|
|
|
4575
|
-
.peak-chip:has( > input:checked) {
|
|
4723
|
+
.peak-chip:has( > input:checked), a.peak-chip[aria-current]:not([aria-current="false"]) {
|
|
4576
4724
|
border-color: var(--peak-primary);
|
|
4577
4725
|
background-color: var(--peak-primary-tint);
|
|
4578
4726
|
color: var(--peak-primary-hover);
|
|
@@ -4718,6 +4866,10 @@
|
|
|
4718
4866
|
max-inline-size: min(64rem, 100%);
|
|
4719
4867
|
}
|
|
4720
4868
|
|
|
4869
|
+
dialog > article > footer button[type="submit"] {
|
|
4870
|
+
inline-size: auto;
|
|
4871
|
+
}
|
|
4872
|
+
|
|
4721
4873
|
dialog.peak-wide:modal[closedby] {
|
|
4722
4874
|
inline-size: min(64rem, 100% - var(--pico-spacing) * 2);
|
|
4723
4875
|
}
|
|
@@ -4951,6 +5103,31 @@
|
|
|
4951
5103
|
margin-inline-start: calc(var(--_peak-avatar-size) * -.25);
|
|
4952
5104
|
}
|
|
4953
5105
|
|
|
5106
|
+
.peak-rating {
|
|
5107
|
+
--_peak-rating-fill: light-dark(oklch(.56 var(--peak-status-chroma) var(--peak-warning-hue)), oklch(.8 var(--peak-status-chroma) var(--peak-warning-hue)));
|
|
5108
|
+
letter-spacing: .1em;
|
|
5109
|
+
white-space: nowrap;
|
|
5110
|
+
vertical-align: -.05em;
|
|
5111
|
+
line-height: 1;
|
|
5112
|
+
display: inline-block;
|
|
5113
|
+
}
|
|
5114
|
+
|
|
5115
|
+
.peak-rating:before {
|
|
5116
|
+
content: "★★★★★";
|
|
5117
|
+
background: linear-gradient(to right,
|
|
5118
|
+
var(--_peak-rating-fill) calc(clamp(0, var(--peak-rating, 0), 5) / 5 * 100%),
|
|
5119
|
+
var(--peak-border-strong) 0);
|
|
5120
|
+
color: #0000;
|
|
5121
|
+
background-clip: text;
|
|
5122
|
+
}
|
|
5123
|
+
|
|
5124
|
+
.peak-rating:dir(rtl):before {
|
|
5125
|
+
background: linear-gradient(to left,
|
|
5126
|
+
var(--_peak-rating-fill) calc(clamp(0, var(--peak-rating, 0), 5) / 5 * 100%),
|
|
5127
|
+
var(--peak-border-strong) 0);
|
|
5128
|
+
background-clip: text;
|
|
5129
|
+
}
|
|
5130
|
+
|
|
4954
5131
|
.site-nav .site-menu, .site-nav .site-menu-popover[popover] {
|
|
4955
5132
|
display: contents;
|
|
4956
5133
|
}
|
|
@@ -5023,6 +5200,10 @@
|
|
|
5023
5200
|
margin: 0;
|
|
5024
5201
|
}
|
|
5025
5202
|
|
|
5203
|
+
.site-nav .site-menu {
|
|
5204
|
+
align-self: center;
|
|
5205
|
+
}
|
|
5206
|
+
|
|
5026
5207
|
.site-nav .site-menu-popover:popover-open > ul {
|
|
5027
5208
|
flex-direction: column;
|
|
5028
5209
|
align-items: stretch;
|
|
@@ -5087,6 +5268,19 @@
|
|
|
5087
5268
|
font-weight: 600;
|
|
5088
5269
|
}
|
|
5089
5270
|
|
|
5271
|
+
.peak-sidebar-nav > :is(h2, h3, h4, h5, h6, p) {
|
|
5272
|
+
margin-block: calc(var(--pico-spacing) * 1.5) calc(var(--pico-spacing) * .375);
|
|
5273
|
+
color: var(--pico-h6-color);
|
|
5274
|
+
letter-spacing: .06em;
|
|
5275
|
+
text-transform: uppercase;
|
|
5276
|
+
font-size: .75rem;
|
|
5277
|
+
font-weight: 600;
|
|
5278
|
+
}
|
|
5279
|
+
|
|
5280
|
+
.peak-sidebar-nav > :is(h2, h3, h4, h5, h6, p):first-child {
|
|
5281
|
+
margin-block-start: 0;
|
|
5282
|
+
}
|
|
5283
|
+
|
|
5090
5284
|
.peak-sidebar-nav ul ul a {
|
|
5091
5285
|
padding-inline-start: calc(var(--pico-nav-link-spacing-horizontal) * 2.5);
|
|
5092
5286
|
}
|
|
@@ -5291,12 +5485,61 @@
|
|
|
5291
5485
|
margin-block-end: 0;
|
|
5292
5486
|
}
|
|
5293
5487
|
|
|
5488
|
+
@media (width < 576px) {
|
|
5489
|
+
.peak-hide-below-sm {
|
|
5490
|
+
display: none;
|
|
5491
|
+
}
|
|
5492
|
+
}
|
|
5493
|
+
|
|
5494
|
+
@media (width >= 576px) {
|
|
5495
|
+
.peak-hide-from-sm {
|
|
5496
|
+
display: none;
|
|
5497
|
+
}
|
|
5498
|
+
}
|
|
5499
|
+
|
|
5500
|
+
@media (width < 768px) {
|
|
5501
|
+
.peak-hide-below-md {
|
|
5502
|
+
display: none;
|
|
5503
|
+
}
|
|
5504
|
+
}
|
|
5505
|
+
|
|
5506
|
+
@media (width >= 768px) {
|
|
5507
|
+
.peak-hide-from-md {
|
|
5508
|
+
display: none;
|
|
5509
|
+
}
|
|
5510
|
+
}
|
|
5511
|
+
|
|
5512
|
+
@media (width < 1024px) {
|
|
5513
|
+
.peak-hide-below-lg {
|
|
5514
|
+
display: none;
|
|
5515
|
+
}
|
|
5516
|
+
}
|
|
5517
|
+
|
|
5518
|
+
@media (width >= 1024px) {
|
|
5519
|
+
.peak-hide-from-lg {
|
|
5520
|
+
display: none;
|
|
5521
|
+
}
|
|
5522
|
+
}
|
|
5523
|
+
|
|
5524
|
+
@media (width < 1280px) {
|
|
5525
|
+
.peak-hide-below-xl {
|
|
5526
|
+
display: none;
|
|
5527
|
+
}
|
|
5528
|
+
}
|
|
5529
|
+
|
|
5530
|
+
@media (width >= 1280px) {
|
|
5531
|
+
.peak-hide-from-xl {
|
|
5532
|
+
display: none;
|
|
5533
|
+
}
|
|
5534
|
+
}
|
|
5535
|
+
|
|
5294
5536
|
.peak-visually-hidden:not(:focus-within) {
|
|
5295
5537
|
clip-path: inset(50%);
|
|
5296
5538
|
white-space: nowrap;
|
|
5297
5539
|
block-size: 1px;
|
|
5298
5540
|
inline-size: 1px;
|
|
5299
5541
|
position: absolute;
|
|
5542
|
+
inset-inline-start: 0;
|
|
5300
5543
|
overflow: hidden;
|
|
5301
5544
|
}
|
|
5302
5545
|
|
|
@@ -5305,7 +5548,7 @@
|
|
|
5305
5548
|
}
|
|
5306
5549
|
|
|
5307
5550
|
@media (forced-colors: active) {
|
|
5308
|
-
:is(article, .peak-card, [popover], dialog > article, .peak-badge, .peak-avatar) {
|
|
5551
|
+
:is(article:not(.peak-prose), .peak-card, [popover], dialog > article, .peak-badge, .peak-avatar) {
|
|
5309
5552
|
border: 1px solid canvastext;
|
|
5310
5553
|
}
|
|
5311
5554
|
|
|
@@ -5334,6 +5577,24 @@
|
|
|
5334
5577
|
.peak-badge.dot:before {
|
|
5335
5578
|
background-color: canvastext;
|
|
5336
5579
|
}
|
|
5580
|
+
|
|
5581
|
+
.peak-card.featured {
|
|
5582
|
+
border: 2px solid highlight;
|
|
5583
|
+
}
|
|
5584
|
+
|
|
5585
|
+
.peak-rating {
|
|
5586
|
+
--_peak-rating-fill: CanvasText;
|
|
5587
|
+
--peak-border-strong: GrayText;
|
|
5588
|
+
forced-color-adjust: none;
|
|
5589
|
+
}
|
|
5590
|
+
|
|
5591
|
+
.peak-band, :is(.site-header, :scope.site-header):is([data-nav-style="surface"], [data-nav-style="bordered"]) {
|
|
5592
|
+
border-image-source: none;
|
|
5593
|
+
}
|
|
5594
|
+
|
|
5595
|
+
:is(.site-header, :scope.site-header):is([data-nav-style="surface"], [data-nav-style="bordered"]) {
|
|
5596
|
+
border-block-end: 1px solid canvastext;
|
|
5597
|
+
}
|
|
5337
5598
|
}
|
|
5338
5599
|
|
|
5339
5600
|
@media print {
|
|
@@ -5345,18 +5606,17 @@
|
|
|
5345
5606
|
display: none;
|
|
5346
5607
|
}
|
|
5347
5608
|
|
|
5348
|
-
:is(article, .peak-card, .peak-callout, .peak-toast) {
|
|
5609
|
+
:is(article:not(.peak-prose), .peak-card, .peak-callout, .peak-toast) {
|
|
5349
5610
|
box-shadow: none;
|
|
5350
5611
|
border: 1px solid var(--peak-border);
|
|
5351
5612
|
}
|
|
5352
5613
|
|
|
5353
5614
|
.peak-band {
|
|
5354
|
-
box-shadow: none;
|
|
5355
|
-
clip-path: none;
|
|
5356
5615
|
background: none;
|
|
5616
|
+
border-image-source: none;
|
|
5357
5617
|
}
|
|
5358
5618
|
|
|
5359
|
-
:is(article, .peak-card, .peak-callout, figure, pre, blockquote, tr, img) {
|
|
5619
|
+
:is(article:not(.peak-prose), .peak-card, .peak-callout, figure, pre, blockquote, tr, img) {
|
|
5360
5620
|
break-inside: avoid;
|
|
5361
5621
|
}
|
|
5362
5622
|
|
|
@@ -5364,6 +5624,11 @@
|
|
|
5364
5624
|
break-after: avoid;
|
|
5365
5625
|
}
|
|
5366
5626
|
|
|
5627
|
+
.peak-rating:before {
|
|
5628
|
+
-webkit-print-color-adjust: exact;
|
|
5629
|
+
print-color-adjust: exact;
|
|
5630
|
+
}
|
|
5631
|
+
|
|
5367
5632
|
.peak-prose a[href^="http"]:after {
|
|
5368
5633
|
content: " (" attr(href) ")";
|
|
5369
5634
|
color: var(--peak-muted);
|