@pimolu/web-styles 0.1.0-beta.8 → 0.1.0-beta.9
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.fr.md +125 -125
- package/README.md +6 -6
- package/dist/api-table.css +6 -5
- package/dist/arc-carousel.css +248 -0
- package/dist/carousel.css +5 -1
- package/dist/coverflow-carousel.css +238 -0
- package/dist/layered.css +547 -6
- package/dist/modal.css +186 -0
- package/dist/multi-carousel.css +236 -0
- package/dist/peek-carousel.css +237 -0
- package/dist/pimolu.css +531 -6
- package/dist/pimolu.min.css +1 -1
- package/dist/stack-carousel.css +237 -0
- package/dist/themes.css +129 -0
- package/dist/thumbnail-carousel.css +231 -0
- package/dist/tokens.css +902 -0
- package/package.json +176 -171
package/dist/layered.css
CHANGED
|
@@ -4676,6 +4676,195 @@
|
|
|
4676
4676
|
}
|
|
4677
4677
|
}
|
|
4678
4678
|
|
|
4679
|
+
/* src/modal.css */
|
|
4680
|
+
@layer pimolu {
|
|
4681
|
+
.pimolu-modal {
|
|
4682
|
+
position: fixed;
|
|
4683
|
+
inset: 0;
|
|
4684
|
+
z-index: 50;
|
|
4685
|
+
display: grid;
|
|
4686
|
+
place-items: center;
|
|
4687
|
+
box-sizing: border-box;
|
|
4688
|
+
padding: var( --pimolu-spacing-6, 24px );
|
|
4689
|
+
overflow: hidden;
|
|
4690
|
+
}
|
|
4691
|
+
.pimolu-modal__overlay {
|
|
4692
|
+
position: absolute;
|
|
4693
|
+
inset: 0;
|
|
4694
|
+
background: rgba(15, 23, 42, 0.55);
|
|
4695
|
+
}
|
|
4696
|
+
.pimolu-modal__content {
|
|
4697
|
+
--pimolu-modal-width: 32rem;
|
|
4698
|
+
position: relative;
|
|
4699
|
+
z-index: 1;
|
|
4700
|
+
box-sizing: border-box;
|
|
4701
|
+
width: min(100%, var(--pimolu-modal-width));
|
|
4702
|
+
max-height: calc(100vh - 48px);
|
|
4703
|
+
max-height: calc(100dvh - 48px);
|
|
4704
|
+
padding: var(--pimolu-spacing-6, 24px);
|
|
4705
|
+
overflow-y: auto;
|
|
4706
|
+
overscroll-behavior: contain;
|
|
4707
|
+
background: var( --pimolu-surface, var(--pimolu-background) );
|
|
4708
|
+
color: var( --pimolu-surface-foreground, var(--pimolu-foreground) );
|
|
4709
|
+
border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
|
|
4710
|
+
border-radius: var(--pimolu-radius-lg, 12px);
|
|
4711
|
+
box-shadow: var(--pimolu-shadow-raised, none);
|
|
4712
|
+
-webkit-backdrop-filter: blur(var(--pimolu-glass-blur, 18px));
|
|
4713
|
+
backdrop-filter: blur(var(--pimolu-glass-blur, 18px));
|
|
4714
|
+
font-family: var(--pimolu-font-body, inherit);
|
|
4715
|
+
font-size: 0.875rem;
|
|
4716
|
+
line-height: 1.5;
|
|
4717
|
+
outline: none;
|
|
4718
|
+
}
|
|
4719
|
+
.pimolu-modal__content--sm {
|
|
4720
|
+
--pimolu-modal-width: 24rem;
|
|
4721
|
+
}
|
|
4722
|
+
.pimolu-modal__content--md {
|
|
4723
|
+
--pimolu-modal-width: 32rem;
|
|
4724
|
+
}
|
|
4725
|
+
.pimolu-modal__content--lg {
|
|
4726
|
+
--pimolu-modal-width: 48rem;
|
|
4727
|
+
}
|
|
4728
|
+
.pimolu-modal__content--xl {
|
|
4729
|
+
--pimolu-modal-width: 64rem;
|
|
4730
|
+
}
|
|
4731
|
+
.pimolu-modal__header {
|
|
4732
|
+
display: grid;
|
|
4733
|
+
gap: 6px;
|
|
4734
|
+
min-width: 0;
|
|
4735
|
+
margin-block-end: var( --pimolu-spacing-4, 16px );
|
|
4736
|
+
}
|
|
4737
|
+
.pimolu-modal__content[data-close-button=true] .pimolu-modal__header {
|
|
4738
|
+
padding-inline-end: var( --pimolu-spacing-8, 32px );
|
|
4739
|
+
}
|
|
4740
|
+
.pimolu-modal__title {
|
|
4741
|
+
margin: 0;
|
|
4742
|
+
color: inherit;
|
|
4743
|
+
font-family: var( --pimolu-font-heading, inherit );
|
|
4744
|
+
font-size: 1.25rem;
|
|
4745
|
+
font-weight: 600;
|
|
4746
|
+
line-height: 1.3;
|
|
4747
|
+
overflow-wrap: anywhere;
|
|
4748
|
+
}
|
|
4749
|
+
.pimolu-modal__description {
|
|
4750
|
+
margin: 0;
|
|
4751
|
+
color: var(--pimolu-muted-foreground);
|
|
4752
|
+
font-size: 0.875rem;
|
|
4753
|
+
line-height: 1.5;
|
|
4754
|
+
overflow-wrap: anywhere;
|
|
4755
|
+
}
|
|
4756
|
+
.pimolu-modal__footer {
|
|
4757
|
+
display: flex;
|
|
4758
|
+
align-items: center;
|
|
4759
|
+
justify-content: flex-end;
|
|
4760
|
+
flex-wrap: wrap;
|
|
4761
|
+
gap: var(--pimolu-spacing-3, 12px);
|
|
4762
|
+
margin-block-start: var( --pimolu-spacing-6, 24px );
|
|
4763
|
+
}
|
|
4764
|
+
.pimolu-modal__close {
|
|
4765
|
+
position: absolute;
|
|
4766
|
+
inset-block-start: 12px;
|
|
4767
|
+
inset-inline-end: 12px;
|
|
4768
|
+
display: inline-grid;
|
|
4769
|
+
place-items: center;
|
|
4770
|
+
box-sizing: border-box;
|
|
4771
|
+
width: 32px;
|
|
4772
|
+
height: 32px;
|
|
4773
|
+
padding: 0;
|
|
4774
|
+
border: 0;
|
|
4775
|
+
border-radius: var(--pimolu-radius-sm, 4px);
|
|
4776
|
+
background: transparent;
|
|
4777
|
+
color: var(--pimolu-muted-foreground);
|
|
4778
|
+
line-height: 0;
|
|
4779
|
+
cursor: pointer;
|
|
4780
|
+
}
|
|
4781
|
+
.pimolu-modal__close:hover {
|
|
4782
|
+
background: var(--pimolu-muted);
|
|
4783
|
+
color: var(--pimolu-foreground);
|
|
4784
|
+
}
|
|
4785
|
+
.pimolu-modal__close:focus-visible {
|
|
4786
|
+
outline: 2px solid var(--pimolu-focus-ring, currentColor);
|
|
4787
|
+
outline-offset: 2px;
|
|
4788
|
+
}
|
|
4789
|
+
.pimolu-modal[data-state=open] .pimolu-modal__overlay {
|
|
4790
|
+
animation: pimolu-modal-overlay-in 150ms ease-out;
|
|
4791
|
+
}
|
|
4792
|
+
.pimolu-modal[data-state=closing] .pimolu-modal__overlay {
|
|
4793
|
+
animation: pimolu-modal-overlay-out 150ms ease-in forwards;
|
|
4794
|
+
}
|
|
4795
|
+
.pimolu-modal[data-state=open] .pimolu-modal__content {
|
|
4796
|
+
animation: pimolu-modal-content-in 180ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
4797
|
+
}
|
|
4798
|
+
.pimolu-modal[data-state=closing] .pimolu-modal__content {
|
|
4799
|
+
animation: pimolu-modal-content-out 150ms ease-in forwards;
|
|
4800
|
+
}
|
|
4801
|
+
@keyframes pimolu-modal-overlay-in {
|
|
4802
|
+
from {
|
|
4803
|
+
opacity: 0;
|
|
4804
|
+
}
|
|
4805
|
+
to {
|
|
4806
|
+
opacity: 1;
|
|
4807
|
+
}
|
|
4808
|
+
}
|
|
4809
|
+
@keyframes pimolu-modal-overlay-out {
|
|
4810
|
+
from {
|
|
4811
|
+
opacity: 1;
|
|
4812
|
+
}
|
|
4813
|
+
to {
|
|
4814
|
+
opacity: 0;
|
|
4815
|
+
}
|
|
4816
|
+
}
|
|
4817
|
+
@keyframes pimolu-modal-content-in {
|
|
4818
|
+
from {
|
|
4819
|
+
opacity: 0;
|
|
4820
|
+
transform: translateY(8px) scale(0.97);
|
|
4821
|
+
}
|
|
4822
|
+
to {
|
|
4823
|
+
opacity: 1;
|
|
4824
|
+
transform: translateY(0) scale(1);
|
|
4825
|
+
}
|
|
4826
|
+
}
|
|
4827
|
+
@keyframes pimolu-modal-content-out {
|
|
4828
|
+
from {
|
|
4829
|
+
opacity: 1;
|
|
4830
|
+
transform: scale(1);
|
|
4831
|
+
}
|
|
4832
|
+
to {
|
|
4833
|
+
opacity: 0;
|
|
4834
|
+
transform: scale(0.97);
|
|
4835
|
+
}
|
|
4836
|
+
}
|
|
4837
|
+
@media (max-width: 600px) {
|
|
4838
|
+
.pimolu-modal {
|
|
4839
|
+
padding: var(--pimolu-spacing-4, 16px);
|
|
4840
|
+
}
|
|
4841
|
+
.pimolu-modal__content {
|
|
4842
|
+
max-height: calc(100vh - 32px);
|
|
4843
|
+
max-height: calc(100dvh - 32px);
|
|
4844
|
+
padding: var(--pimolu-spacing-4, 16px);
|
|
4845
|
+
}
|
|
4846
|
+
}
|
|
4847
|
+
@media (prefers-reduced-motion: reduce) {
|
|
4848
|
+
.pimolu-modal[data-state=open] .pimolu-modal__overlay,
|
|
4849
|
+
.pimolu-modal[data-state=closing] .pimolu-modal__overlay,
|
|
4850
|
+
.pimolu-modal[data-state=open] .pimolu-modal__content,
|
|
4851
|
+
.pimolu-modal[data-state=closing] .pimolu-modal__content {
|
|
4852
|
+
animation: none;
|
|
4853
|
+
}
|
|
4854
|
+
}
|
|
4855
|
+
@media (forced-colors: active) {
|
|
4856
|
+
.pimolu-modal__content {
|
|
4857
|
+
border: 1px solid CanvasText;
|
|
4858
|
+
background: Canvas;
|
|
4859
|
+
color: CanvasText;
|
|
4860
|
+
box-shadow: none;
|
|
4861
|
+
}
|
|
4862
|
+
.pimolu-modal__close:focus-visible {
|
|
4863
|
+
outline-color: Highlight;
|
|
4864
|
+
}
|
|
4865
|
+
}
|
|
4866
|
+
}
|
|
4867
|
+
|
|
4679
4868
|
/* src/tabs.css */
|
|
4680
4869
|
@layer pimolu {
|
|
4681
4870
|
:root {
|
|
@@ -12678,6 +12867,7 @@
|
|
|
12678
12867
|
box-sizing: border-box;
|
|
12679
12868
|
min-width: 0;
|
|
12680
12869
|
max-width: 100%;
|
|
12870
|
+
--pimolu-carousel-control-reserve: 56px;
|
|
12681
12871
|
color: var(--pimolu-foreground);
|
|
12682
12872
|
font-family: var(--pimolu-font-body, inherit);
|
|
12683
12873
|
}
|
|
@@ -12710,7 +12900,7 @@
|
|
|
12710
12900
|
scroll-snap-stop: always;
|
|
12711
12901
|
}
|
|
12712
12902
|
.pimolu-carousel[data-controls=true] .pimolu-carousel__slide {
|
|
12713
|
-
padding-inline: 56px;
|
|
12903
|
+
padding-inline: var(--pimolu-carousel-control-reserve, 56px);
|
|
12714
12904
|
}
|
|
12715
12905
|
.pimolu-carousel__control {
|
|
12716
12906
|
position: absolute;
|
|
@@ -12849,6 +13039,9 @@
|
|
|
12849
13039
|
height: 0.875rem;
|
|
12850
13040
|
}
|
|
12851
13041
|
@media (max-width: 600px) {
|
|
13042
|
+
.pimolu-carousel {
|
|
13043
|
+
--pimolu-carousel-control-reserve: 44px;
|
|
13044
|
+
}
|
|
12852
13045
|
.pimolu-carousel__control {
|
|
12853
13046
|
width: 2rem;
|
|
12854
13047
|
height: 2rem;
|
|
@@ -12904,6 +13097,353 @@
|
|
|
12904
13097
|
}
|
|
12905
13098
|
}
|
|
12906
13099
|
|
|
13100
|
+
/* src/thumbnail-carousel.css */
|
|
13101
|
+
@layer pimolu {
|
|
13102
|
+
.pimolu-thumbnail-carousel .pimolu-carousel__viewport {
|
|
13103
|
+
border-radius: calc(var(--pimolu-radius-lg, 14px) + 2px);
|
|
13104
|
+
overflow: hidden;
|
|
13105
|
+
}
|
|
13106
|
+
.pimolu-thumbnail-carousel .pimolu-carousel__slide img {
|
|
13107
|
+
display: block;
|
|
13108
|
+
width: 100%;
|
|
13109
|
+
height: auto;
|
|
13110
|
+
object-fit: cover;
|
|
13111
|
+
}
|
|
13112
|
+
}
|
|
13113
|
+
|
|
13114
|
+
/* src/coverflow-carousel.css */
|
|
13115
|
+
@layer pimolu {
|
|
13116
|
+
.pimolu-coverflow-carousel .pimolu-carousel__viewport {
|
|
13117
|
+
height: clamp(240px, 42vw, 380px);
|
|
13118
|
+
perspective: 1200px;
|
|
13119
|
+
transform-style: preserve-3d;
|
|
13120
|
+
}
|
|
13121
|
+
.pimolu-coverflow-carousel .pimolu-carousel__slide {
|
|
13122
|
+
position: absolute;
|
|
13123
|
+
inset-block: 0;
|
|
13124
|
+
inset-inline-start: 50%;
|
|
13125
|
+
width: min(62%, 520px);
|
|
13126
|
+
margin-inline-start: calc(min(62%, 520px) / -2);
|
|
13127
|
+
transform-origin: center center;
|
|
13128
|
+
backface-visibility: hidden;
|
|
13129
|
+
}
|
|
13130
|
+
.pimolu-coverflow-carousel .pimolu-carousel__slide[data-active=true] {
|
|
13131
|
+
z-index: 10;
|
|
13132
|
+
}
|
|
13133
|
+
}
|
|
13134
|
+
|
|
13135
|
+
/* src/peek-carousel.css */
|
|
13136
|
+
@layer pimolu {
|
|
13137
|
+
.pimolu-peek-carousel .pimolu-carousel__viewport {
|
|
13138
|
+
padding-block: 8px;
|
|
13139
|
+
}
|
|
13140
|
+
.pimolu-peek-carousel .pimolu-carousel__slide {
|
|
13141
|
+
border-radius: calc(var(--pimolu-radius-lg, 14px) + 2px);
|
|
13142
|
+
border: 1px solid var(--pimolu-border);
|
|
13143
|
+
background: var(--pimolu-surface);
|
|
13144
|
+
overflow: hidden;
|
|
13145
|
+
opacity: 0.72;
|
|
13146
|
+
transform: scale(0.95);
|
|
13147
|
+
}
|
|
13148
|
+
.pimolu-peek-carousel .pimolu-carousel__slide[data-active=true] {
|
|
13149
|
+
border-color: var(--pimolu-primary);
|
|
13150
|
+
opacity: 1;
|
|
13151
|
+
transform: scale(1);
|
|
13152
|
+
}
|
|
13153
|
+
}
|
|
13154
|
+
|
|
13155
|
+
/* src/stack-carousel.css */
|
|
13156
|
+
@layer pimolu {
|
|
13157
|
+
.pimolu-stack-carousel .pimolu-carousel__viewport {
|
|
13158
|
+
height: clamp(260px, 44vw, 400px);
|
|
13159
|
+
}
|
|
13160
|
+
.pimolu-stack-carousel .pimolu-carousel__slide {
|
|
13161
|
+
position: absolute;
|
|
13162
|
+
inset-block-start: 0;
|
|
13163
|
+
inset-inline-start: 50%;
|
|
13164
|
+
width: min(70%, 460px);
|
|
13165
|
+
height: 100%;
|
|
13166
|
+
margin-inline-start: calc(min(70%, 460px) / -2);
|
|
13167
|
+
border-radius: calc(var(--pimolu-radius-lg, 14px) + 4px);
|
|
13168
|
+
border: 1px solid var(--pimolu-border);
|
|
13169
|
+
background: var(--pimolu-surface);
|
|
13170
|
+
overflow: hidden;
|
|
13171
|
+
transform-origin: center top;
|
|
13172
|
+
}
|
|
13173
|
+
}
|
|
13174
|
+
|
|
13175
|
+
/* src/arc-carousel.css */
|
|
13176
|
+
@layer pimolu {
|
|
13177
|
+
.pimolu-arc-carousel .pimolu-carousel__viewport {
|
|
13178
|
+
height: clamp(260px, 44vw, 400px);
|
|
13179
|
+
}
|
|
13180
|
+
.pimolu-arc-carousel .pimolu-carousel__slide {
|
|
13181
|
+
position: absolute;
|
|
13182
|
+
inset-block-end: 0;
|
|
13183
|
+
inset-inline-start: 50%;
|
|
13184
|
+
width: min(42%, 340px);
|
|
13185
|
+
height: 82%;
|
|
13186
|
+
margin-inline-start: calc(min(42%, 340px) / -2);
|
|
13187
|
+
border-radius: calc(var(--pimolu-radius-lg, 14px) + 2px);
|
|
13188
|
+
border: 1px solid var(--pimolu-border);
|
|
13189
|
+
background: var(--pimolu-surface);
|
|
13190
|
+
overflow: hidden;
|
|
13191
|
+
transform-origin: center bottom;
|
|
13192
|
+
}
|
|
13193
|
+
@media (max-width: 640px) {
|
|
13194
|
+
.pimolu-arc-carousel .pimolu-carousel__slide {
|
|
13195
|
+
display: none;
|
|
13196
|
+
width: min(60%, 340px);
|
|
13197
|
+
margin-inline-start: calc(min(60%, 340px) / -2);
|
|
13198
|
+
}
|
|
13199
|
+
.pimolu-arc-carousel .pimolu-carousel__slide[data-active=true],
|
|
13200
|
+
.pimolu-arc-carousel .pimolu-carousel__slide[data-distance="1"] {
|
|
13201
|
+
display: block;
|
|
13202
|
+
}
|
|
13203
|
+
}
|
|
13204
|
+
}
|
|
13205
|
+
|
|
13206
|
+
/* src/carousel-base.css */
|
|
13207
|
+
@layer pimolu {
|
|
13208
|
+
.pimolu-carousel-root {
|
|
13209
|
+
position: relative;
|
|
13210
|
+
display: grid;
|
|
13211
|
+
gap: 12px;
|
|
13212
|
+
box-sizing: border-box;
|
|
13213
|
+
min-width: 0;
|
|
13214
|
+
max-width: 100%;
|
|
13215
|
+
color: var(--pimolu-foreground);
|
|
13216
|
+
font-family: var(--pimolu-font-body, inherit);
|
|
13217
|
+
--pimolu-carousel-gap: 16px;
|
|
13218
|
+
--pimolu-carousel-per-view: 1;
|
|
13219
|
+
}
|
|
13220
|
+
.pimolu-carousel-root > .pimolu-carousel__viewport {
|
|
13221
|
+
display: block;
|
|
13222
|
+
overflow: visible;
|
|
13223
|
+
border-radius: 0;
|
|
13224
|
+
scroll-snap-type: none;
|
|
13225
|
+
}
|
|
13226
|
+
.pimolu-carousel-root > .pimolu-carousel__viewport[data-scroll=false] {
|
|
13227
|
+
overflow: hidden;
|
|
13228
|
+
}
|
|
13229
|
+
.pimolu-carousel__viewport {
|
|
13230
|
+
position: relative;
|
|
13231
|
+
box-sizing: border-box;
|
|
13232
|
+
min-width: 0;
|
|
13233
|
+
outline: none;
|
|
13234
|
+
}
|
|
13235
|
+
.pimolu-carousel__viewport:focus-visible {
|
|
13236
|
+
outline: 2px solid var(--pimolu-focus-ring, currentColor);
|
|
13237
|
+
outline-offset: 3px;
|
|
13238
|
+
}
|
|
13239
|
+
.pimolu-carousel__viewport[data-scroll=true] {
|
|
13240
|
+
display: flex;
|
|
13241
|
+
gap: var(--pimolu-carousel-gap, 16px);
|
|
13242
|
+
overflow-x: auto;
|
|
13243
|
+
overflow-y: hidden;
|
|
13244
|
+
overscroll-behavior-x: contain;
|
|
13245
|
+
scroll-behavior: smooth;
|
|
13246
|
+
scroll-snap-type: x mandatory;
|
|
13247
|
+
scrollbar-width: none;
|
|
13248
|
+
}
|
|
13249
|
+
.pimolu-carousel__viewport[data-scroll=true]::-webkit-scrollbar {
|
|
13250
|
+
display: none;
|
|
13251
|
+
}
|
|
13252
|
+
.pimolu-carousel__slide {
|
|
13253
|
+
box-sizing: border-box;
|
|
13254
|
+
min-width: 0;
|
|
13255
|
+
transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1), opacity 480ms ease;
|
|
13256
|
+
}
|
|
13257
|
+
.pimolu-carousel__viewport[data-scroll=true] .pimolu-carousel__slide {
|
|
13258
|
+
flex: 1 0 calc((100% - (var(--pimolu-carousel-per-view, 1) - 1) * var(--pimolu-carousel-gap, 16px)) / var(--pimolu-carousel-per-view, 1));
|
|
13259
|
+
scroll-snap-align: start;
|
|
13260
|
+
}
|
|
13261
|
+
.pimolu-carousel__viewport[data-effect=peek] .pimolu-carousel__slide {
|
|
13262
|
+
flex: 0 0 min(440px, 68vw);
|
|
13263
|
+
scroll-snap-align: center;
|
|
13264
|
+
}
|
|
13265
|
+
.pimolu-carousel__control {
|
|
13266
|
+
position: absolute;
|
|
13267
|
+
top: 50%;
|
|
13268
|
+
z-index: 20;
|
|
13269
|
+
display: inline-flex;
|
|
13270
|
+
align-items: center;
|
|
13271
|
+
justify-content: center;
|
|
13272
|
+
box-sizing: border-box;
|
|
13273
|
+
width: 2.5rem;
|
|
13274
|
+
height: 2.5rem;
|
|
13275
|
+
padding: 0;
|
|
13276
|
+
border: 1px solid var(--pimolu-border, currentColor);
|
|
13277
|
+
border-radius: var(--pimolu-radius-full, 999px);
|
|
13278
|
+
background: var(--pimolu-background, Canvas);
|
|
13279
|
+
color: var(--pimolu-foreground);
|
|
13280
|
+
box-shadow: var(--pimolu-shadow-raised, 0 2px 8px rgb(0 0 0 / 18%));
|
|
13281
|
+
cursor: pointer;
|
|
13282
|
+
transform: translateY(-50%);
|
|
13283
|
+
transition: background-color 150ms, opacity 150ms;
|
|
13284
|
+
}
|
|
13285
|
+
.pimolu-carousel__control--previous {
|
|
13286
|
+
inset-inline-start: var(--pimolu-spacing-2, 8px);
|
|
13287
|
+
}
|
|
13288
|
+
.pimolu-carousel__control--next {
|
|
13289
|
+
inset-inline-end: var(--pimolu-spacing-2, 8px);
|
|
13290
|
+
}
|
|
13291
|
+
.pimolu-carousel__control:hover:not(:disabled) {
|
|
13292
|
+
background: var(--pimolu-muted, var(--pimolu-background, Canvas));
|
|
13293
|
+
}
|
|
13294
|
+
.pimolu-carousel__control:disabled {
|
|
13295
|
+
opacity: 0.35;
|
|
13296
|
+
cursor: default;
|
|
13297
|
+
}
|
|
13298
|
+
.pimolu-carousel__control:focus-visible {
|
|
13299
|
+
outline: 2px solid var(--pimolu-focus-ring, currentColor);
|
|
13300
|
+
outline-offset: 2px;
|
|
13301
|
+
}
|
|
13302
|
+
.pimolu-carousel__control svg {
|
|
13303
|
+
display: block;
|
|
13304
|
+
width: 1.25rem;
|
|
13305
|
+
height: 1.25rem;
|
|
13306
|
+
}
|
|
13307
|
+
.pimolu-carousel__dots {
|
|
13308
|
+
display: flex;
|
|
13309
|
+
flex-wrap: wrap;
|
|
13310
|
+
align-items: center;
|
|
13311
|
+
justify-content: center;
|
|
13312
|
+
gap: 2px;
|
|
13313
|
+
min-width: 0;
|
|
13314
|
+
}
|
|
13315
|
+
.pimolu-carousel__dot {
|
|
13316
|
+
display: inline-grid;
|
|
13317
|
+
place-items: center;
|
|
13318
|
+
box-sizing: border-box;
|
|
13319
|
+
width: 1.5rem;
|
|
13320
|
+
height: 1.5rem;
|
|
13321
|
+
padding: 0;
|
|
13322
|
+
border: 0;
|
|
13323
|
+
border-radius: var(--pimolu-radius-full, 999px);
|
|
13324
|
+
background: transparent;
|
|
13325
|
+
cursor: pointer;
|
|
13326
|
+
}
|
|
13327
|
+
.pimolu-carousel__dot::before {
|
|
13328
|
+
content: "";
|
|
13329
|
+
display: block;
|
|
13330
|
+
width: 0.5rem;
|
|
13331
|
+
height: 0.5rem;
|
|
13332
|
+
border-radius: var(--pimolu-radius-full, 999px);
|
|
13333
|
+
background: color-mix(in srgb, var(--pimolu-foreground, currentColor) 28%, transparent);
|
|
13334
|
+
transition: width 150ms, background-color 150ms;
|
|
13335
|
+
}
|
|
13336
|
+
.pimolu-carousel__dot[data-active=true]::before {
|
|
13337
|
+
width: 1.25rem;
|
|
13338
|
+
background: var(--pimolu-primary, var(--pimolu-foreground, currentColor));
|
|
13339
|
+
}
|
|
13340
|
+
.pimolu-carousel__dot:focus-visible {
|
|
13341
|
+
outline: 2px solid var(--pimolu-focus-ring, currentColor);
|
|
13342
|
+
outline-offset: 2px;
|
|
13343
|
+
}
|
|
13344
|
+
.pimolu-carousel__thumbnails {
|
|
13345
|
+
display: flex;
|
|
13346
|
+
gap: 8px;
|
|
13347
|
+
min-width: 0;
|
|
13348
|
+
overflow-x: auto;
|
|
13349
|
+
scrollbar-width: none;
|
|
13350
|
+
}
|
|
13351
|
+
.pimolu-carousel__thumbnails::-webkit-scrollbar {
|
|
13352
|
+
display: none;
|
|
13353
|
+
}
|
|
13354
|
+
.pimolu-carousel__thumbnail {
|
|
13355
|
+
flex: 0 0 auto;
|
|
13356
|
+
box-sizing: border-box;
|
|
13357
|
+
width: 72px;
|
|
13358
|
+
padding: 2px;
|
|
13359
|
+
border: 2px solid transparent;
|
|
13360
|
+
border-radius: calc(var(--pimolu-radius-sm, 6px) + 4px);
|
|
13361
|
+
background: transparent;
|
|
13362
|
+
cursor: pointer;
|
|
13363
|
+
opacity: 0.6;
|
|
13364
|
+
transition: opacity 150ms, border-color 150ms;
|
|
13365
|
+
}
|
|
13366
|
+
.pimolu-carousel__thumbnail img {
|
|
13367
|
+
display: block;
|
|
13368
|
+
width: 100%;
|
|
13369
|
+
height: auto;
|
|
13370
|
+
border-radius: var(--pimolu-radius-sm, 6px);
|
|
13371
|
+
object-fit: cover;
|
|
13372
|
+
}
|
|
13373
|
+
.pimolu-carousel__thumbnail[data-active=true] {
|
|
13374
|
+
border-color: var(--pimolu-primary);
|
|
13375
|
+
opacity: 1;
|
|
13376
|
+
}
|
|
13377
|
+
.pimolu-carousel__thumbnail:hover {
|
|
13378
|
+
opacity: 1;
|
|
13379
|
+
}
|
|
13380
|
+
.pimolu-carousel__thumbnail:focus-visible {
|
|
13381
|
+
outline: 2px solid var(--pimolu-focus-ring, currentColor);
|
|
13382
|
+
outline-offset: 2px;
|
|
13383
|
+
}
|
|
13384
|
+
.pimolu-carousel__live {
|
|
13385
|
+
position: absolute;
|
|
13386
|
+
width: 1px;
|
|
13387
|
+
height: 1px;
|
|
13388
|
+
margin: -1px;
|
|
13389
|
+
padding: 0;
|
|
13390
|
+
overflow: hidden;
|
|
13391
|
+
clip: rect(0 0 0 0);
|
|
13392
|
+
white-space: nowrap;
|
|
13393
|
+
border: 0;
|
|
13394
|
+
}
|
|
13395
|
+
@media (prefers-reduced-motion: reduce) {
|
|
13396
|
+
.pimolu-carousel__viewport[data-scroll=true] {
|
|
13397
|
+
scroll-behavior: auto;
|
|
13398
|
+
}
|
|
13399
|
+
.pimolu-carousel__slide,
|
|
13400
|
+
.pimolu-carousel__control,
|
|
13401
|
+
.pimolu-carousel__dot::before,
|
|
13402
|
+
.pimolu-carousel__thumbnail {
|
|
13403
|
+
transition: none;
|
|
13404
|
+
}
|
|
13405
|
+
}
|
|
13406
|
+
@media (forced-colors: active) {
|
|
13407
|
+
.pimolu-carousel__control {
|
|
13408
|
+
border-color: CanvasText;
|
|
13409
|
+
background: Canvas;
|
|
13410
|
+
color: CanvasText;
|
|
13411
|
+
box-shadow: none;
|
|
13412
|
+
}
|
|
13413
|
+
.pimolu-carousel__dot::before {
|
|
13414
|
+
background: CanvasText;
|
|
13415
|
+
}
|
|
13416
|
+
.pimolu-carousel__dot[data-active=true]::before {
|
|
13417
|
+
background: Highlight;
|
|
13418
|
+
}
|
|
13419
|
+
.pimolu-carousel__thumbnail {
|
|
13420
|
+
border-color: CanvasText;
|
|
13421
|
+
}
|
|
13422
|
+
.pimolu-carousel__thumbnail[data-active=true] {
|
|
13423
|
+
border-color: Highlight;
|
|
13424
|
+
}
|
|
13425
|
+
}
|
|
13426
|
+
}
|
|
13427
|
+
|
|
13428
|
+
/* src/multi-carousel.css */
|
|
13429
|
+
@layer pimolu {
|
|
13430
|
+
.pimolu-multi-carousel .pimolu-carousel__viewport {
|
|
13431
|
+
scroll-snap-type: x mandatory;
|
|
13432
|
+
}
|
|
13433
|
+
.pimolu-multi-carousel .pimolu-carousel__slide {
|
|
13434
|
+
border-radius: calc(var(--pimolu-radius-lg, 14px) + 2px);
|
|
13435
|
+
border: 1px solid var(--pimolu-border);
|
|
13436
|
+
background: var(--pimolu-surface);
|
|
13437
|
+
overflow: hidden;
|
|
13438
|
+
}
|
|
13439
|
+
@media (max-width: 640px) {
|
|
13440
|
+
.pimolu-multi-carousel .pimolu-carousel__viewport[data-scroll=true] .pimolu-carousel__slide {
|
|
13441
|
+
flex-basis: min(280px, 78vw);
|
|
13442
|
+
min-width: min(280px, 78vw);
|
|
13443
|
+
}
|
|
13444
|
+
}
|
|
13445
|
+
}
|
|
13446
|
+
|
|
12907
13447
|
/* src/resizable.css */
|
|
12908
13448
|
@layer pimolu {
|
|
12909
13449
|
.pimolu-resizable {
|
|
@@ -21237,19 +21777,20 @@
|
|
|
21237
21777
|
border-radius: var(--pimolu-radius-sm, 6px);
|
|
21238
21778
|
}
|
|
21239
21779
|
.pimolu-api-table__table.pimolu-table {
|
|
21240
|
-
min-width:
|
|
21780
|
+
min-width: 0;
|
|
21781
|
+
table-layout: fixed;
|
|
21241
21782
|
}
|
|
21242
21783
|
.pimolu-api-table__table :where(th, td):nth-child(1) {
|
|
21243
|
-
width:
|
|
21784
|
+
width: 20%;
|
|
21244
21785
|
}
|
|
21245
21786
|
.pimolu-api-table__table :where(th, td):nth-child(2) {
|
|
21246
|
-
width:
|
|
21787
|
+
width: 36%;
|
|
21247
21788
|
}
|
|
21248
21789
|
.pimolu-api-table__table :where(th, td):nth-child(3) {
|
|
21249
|
-
width:
|
|
21790
|
+
width: 10%;
|
|
21250
21791
|
}
|
|
21251
21792
|
.pimolu-api-table__table :where(th, td):nth-child(4) {
|
|
21252
|
-
width:
|
|
21793
|
+
width: 34%;
|
|
21253
21794
|
}
|
|
21254
21795
|
.pimolu-api-table__name {
|
|
21255
21796
|
display: flex;
|