@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/pimolu.css
CHANGED
|
@@ -4613,6 +4613,193 @@
|
|
|
4613
4613
|
}
|
|
4614
4614
|
}
|
|
4615
4615
|
|
|
4616
|
+
/* src/modal.css */
|
|
4617
|
+
.pimolu-modal {
|
|
4618
|
+
position: fixed;
|
|
4619
|
+
inset: 0;
|
|
4620
|
+
z-index: 50;
|
|
4621
|
+
display: grid;
|
|
4622
|
+
place-items: center;
|
|
4623
|
+
box-sizing: border-box;
|
|
4624
|
+
padding: var( --pimolu-spacing-6, 24px );
|
|
4625
|
+
overflow: hidden;
|
|
4626
|
+
}
|
|
4627
|
+
.pimolu-modal__overlay {
|
|
4628
|
+
position: absolute;
|
|
4629
|
+
inset: 0;
|
|
4630
|
+
background: rgba(15, 23, 42, 0.55);
|
|
4631
|
+
}
|
|
4632
|
+
.pimolu-modal__content {
|
|
4633
|
+
--pimolu-modal-width: 32rem;
|
|
4634
|
+
position: relative;
|
|
4635
|
+
z-index: 1;
|
|
4636
|
+
box-sizing: border-box;
|
|
4637
|
+
width: min(100%, var(--pimolu-modal-width));
|
|
4638
|
+
max-height: calc(100vh - 48px);
|
|
4639
|
+
max-height: calc(100dvh - 48px);
|
|
4640
|
+
padding: var(--pimolu-spacing-6, 24px);
|
|
4641
|
+
overflow-y: auto;
|
|
4642
|
+
overscroll-behavior: contain;
|
|
4643
|
+
background: var( --pimolu-surface, var(--pimolu-background) );
|
|
4644
|
+
color: var( --pimolu-surface-foreground, var(--pimolu-foreground) );
|
|
4645
|
+
border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
|
|
4646
|
+
border-radius: var(--pimolu-radius-lg, 12px);
|
|
4647
|
+
box-shadow: var(--pimolu-shadow-raised, none);
|
|
4648
|
+
-webkit-backdrop-filter: blur(var(--pimolu-glass-blur, 18px));
|
|
4649
|
+
backdrop-filter: blur(var(--pimolu-glass-blur, 18px));
|
|
4650
|
+
font-family: var(--pimolu-font-body, inherit);
|
|
4651
|
+
font-size: 0.875rem;
|
|
4652
|
+
line-height: 1.5;
|
|
4653
|
+
outline: none;
|
|
4654
|
+
}
|
|
4655
|
+
.pimolu-modal__content--sm {
|
|
4656
|
+
--pimolu-modal-width: 24rem;
|
|
4657
|
+
}
|
|
4658
|
+
.pimolu-modal__content--md {
|
|
4659
|
+
--pimolu-modal-width: 32rem;
|
|
4660
|
+
}
|
|
4661
|
+
.pimolu-modal__content--lg {
|
|
4662
|
+
--pimolu-modal-width: 48rem;
|
|
4663
|
+
}
|
|
4664
|
+
.pimolu-modal__content--xl {
|
|
4665
|
+
--pimolu-modal-width: 64rem;
|
|
4666
|
+
}
|
|
4667
|
+
.pimolu-modal__header {
|
|
4668
|
+
display: grid;
|
|
4669
|
+
gap: 6px;
|
|
4670
|
+
min-width: 0;
|
|
4671
|
+
margin-block-end: var( --pimolu-spacing-4, 16px );
|
|
4672
|
+
}
|
|
4673
|
+
.pimolu-modal__content[data-close-button=true] .pimolu-modal__header {
|
|
4674
|
+
padding-inline-end: var( --pimolu-spacing-8, 32px );
|
|
4675
|
+
}
|
|
4676
|
+
.pimolu-modal__title {
|
|
4677
|
+
margin: 0;
|
|
4678
|
+
color: inherit;
|
|
4679
|
+
font-family: var( --pimolu-font-heading, inherit );
|
|
4680
|
+
font-size: 1.25rem;
|
|
4681
|
+
font-weight: 600;
|
|
4682
|
+
line-height: 1.3;
|
|
4683
|
+
overflow-wrap: anywhere;
|
|
4684
|
+
}
|
|
4685
|
+
.pimolu-modal__description {
|
|
4686
|
+
margin: 0;
|
|
4687
|
+
color: var(--pimolu-muted-foreground);
|
|
4688
|
+
font-size: 0.875rem;
|
|
4689
|
+
line-height: 1.5;
|
|
4690
|
+
overflow-wrap: anywhere;
|
|
4691
|
+
}
|
|
4692
|
+
.pimolu-modal__footer {
|
|
4693
|
+
display: flex;
|
|
4694
|
+
align-items: center;
|
|
4695
|
+
justify-content: flex-end;
|
|
4696
|
+
flex-wrap: wrap;
|
|
4697
|
+
gap: var(--pimolu-spacing-3, 12px);
|
|
4698
|
+
margin-block-start: var( --pimolu-spacing-6, 24px );
|
|
4699
|
+
}
|
|
4700
|
+
.pimolu-modal__close {
|
|
4701
|
+
position: absolute;
|
|
4702
|
+
inset-block-start: 12px;
|
|
4703
|
+
inset-inline-end: 12px;
|
|
4704
|
+
display: inline-grid;
|
|
4705
|
+
place-items: center;
|
|
4706
|
+
box-sizing: border-box;
|
|
4707
|
+
width: 32px;
|
|
4708
|
+
height: 32px;
|
|
4709
|
+
padding: 0;
|
|
4710
|
+
border: 0;
|
|
4711
|
+
border-radius: var(--pimolu-radius-sm, 4px);
|
|
4712
|
+
background: transparent;
|
|
4713
|
+
color: var(--pimolu-muted-foreground);
|
|
4714
|
+
line-height: 0;
|
|
4715
|
+
cursor: pointer;
|
|
4716
|
+
}
|
|
4717
|
+
.pimolu-modal__close:hover {
|
|
4718
|
+
background: var(--pimolu-muted);
|
|
4719
|
+
color: var(--pimolu-foreground);
|
|
4720
|
+
}
|
|
4721
|
+
.pimolu-modal__close:focus-visible {
|
|
4722
|
+
outline: 2px solid var(--pimolu-focus-ring, currentColor);
|
|
4723
|
+
outline-offset: 2px;
|
|
4724
|
+
}
|
|
4725
|
+
.pimolu-modal[data-state=open] .pimolu-modal__overlay {
|
|
4726
|
+
animation: pimolu-modal-overlay-in 150ms ease-out;
|
|
4727
|
+
}
|
|
4728
|
+
.pimolu-modal[data-state=closing] .pimolu-modal__overlay {
|
|
4729
|
+
animation: pimolu-modal-overlay-out 150ms ease-in forwards;
|
|
4730
|
+
}
|
|
4731
|
+
.pimolu-modal[data-state=open] .pimolu-modal__content {
|
|
4732
|
+
animation: pimolu-modal-content-in 180ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
4733
|
+
}
|
|
4734
|
+
.pimolu-modal[data-state=closing] .pimolu-modal__content {
|
|
4735
|
+
animation: pimolu-modal-content-out 150ms ease-in forwards;
|
|
4736
|
+
}
|
|
4737
|
+
@keyframes pimolu-modal-overlay-in {
|
|
4738
|
+
from {
|
|
4739
|
+
opacity: 0;
|
|
4740
|
+
}
|
|
4741
|
+
to {
|
|
4742
|
+
opacity: 1;
|
|
4743
|
+
}
|
|
4744
|
+
}
|
|
4745
|
+
@keyframes pimolu-modal-overlay-out {
|
|
4746
|
+
from {
|
|
4747
|
+
opacity: 1;
|
|
4748
|
+
}
|
|
4749
|
+
to {
|
|
4750
|
+
opacity: 0;
|
|
4751
|
+
}
|
|
4752
|
+
}
|
|
4753
|
+
@keyframes pimolu-modal-content-in {
|
|
4754
|
+
from {
|
|
4755
|
+
opacity: 0;
|
|
4756
|
+
transform: translateY(8px) scale(0.97);
|
|
4757
|
+
}
|
|
4758
|
+
to {
|
|
4759
|
+
opacity: 1;
|
|
4760
|
+
transform: translateY(0) scale(1);
|
|
4761
|
+
}
|
|
4762
|
+
}
|
|
4763
|
+
@keyframes pimolu-modal-content-out {
|
|
4764
|
+
from {
|
|
4765
|
+
opacity: 1;
|
|
4766
|
+
transform: scale(1);
|
|
4767
|
+
}
|
|
4768
|
+
to {
|
|
4769
|
+
opacity: 0;
|
|
4770
|
+
transform: scale(0.97);
|
|
4771
|
+
}
|
|
4772
|
+
}
|
|
4773
|
+
@media (max-width: 600px) {
|
|
4774
|
+
.pimolu-modal {
|
|
4775
|
+
padding: var(--pimolu-spacing-4, 16px);
|
|
4776
|
+
}
|
|
4777
|
+
.pimolu-modal__content {
|
|
4778
|
+
max-height: calc(100vh - 32px);
|
|
4779
|
+
max-height: calc(100dvh - 32px);
|
|
4780
|
+
padding: var(--pimolu-spacing-4, 16px);
|
|
4781
|
+
}
|
|
4782
|
+
}
|
|
4783
|
+
@media (prefers-reduced-motion: reduce) {
|
|
4784
|
+
.pimolu-modal[data-state=open] .pimolu-modal__overlay,
|
|
4785
|
+
.pimolu-modal[data-state=closing] .pimolu-modal__overlay,
|
|
4786
|
+
.pimolu-modal[data-state=open] .pimolu-modal__content,
|
|
4787
|
+
.pimolu-modal[data-state=closing] .pimolu-modal__content {
|
|
4788
|
+
animation: none;
|
|
4789
|
+
}
|
|
4790
|
+
}
|
|
4791
|
+
@media (forced-colors: active) {
|
|
4792
|
+
.pimolu-modal__content {
|
|
4793
|
+
border: 1px solid CanvasText;
|
|
4794
|
+
background: Canvas;
|
|
4795
|
+
color: CanvasText;
|
|
4796
|
+
box-shadow: none;
|
|
4797
|
+
}
|
|
4798
|
+
.pimolu-modal__close:focus-visible {
|
|
4799
|
+
outline-color: Highlight;
|
|
4800
|
+
}
|
|
4801
|
+
}
|
|
4802
|
+
|
|
4616
4803
|
/* src/tabs.css */
|
|
4617
4804
|
:root {
|
|
4618
4805
|
--pimolu-tabs-indicator-duration: 240ms;
|
|
@@ -12498,6 +12685,7 @@ button.pimolu-list__row:focus-visible {
|
|
|
12498
12685
|
box-sizing: border-box;
|
|
12499
12686
|
min-width: 0;
|
|
12500
12687
|
max-width: 100%;
|
|
12688
|
+
--pimolu-carousel-control-reserve: 56px;
|
|
12501
12689
|
color: var(--pimolu-foreground);
|
|
12502
12690
|
font-family: var(--pimolu-font-body, inherit);
|
|
12503
12691
|
}
|
|
@@ -12530,7 +12718,7 @@ button.pimolu-list__row:focus-visible {
|
|
|
12530
12718
|
scroll-snap-stop: always;
|
|
12531
12719
|
}
|
|
12532
12720
|
.pimolu-carousel[data-controls=true] .pimolu-carousel__slide {
|
|
12533
|
-
padding-inline: 56px;
|
|
12721
|
+
padding-inline: var(--pimolu-carousel-control-reserve, 56px);
|
|
12534
12722
|
}
|
|
12535
12723
|
.pimolu-carousel__control {
|
|
12536
12724
|
position: absolute;
|
|
@@ -12669,6 +12857,9 @@ button.pimolu-list__row:focus-visible {
|
|
|
12669
12857
|
height: 0.875rem;
|
|
12670
12858
|
}
|
|
12671
12859
|
@media (max-width: 600px) {
|
|
12860
|
+
.pimolu-carousel {
|
|
12861
|
+
--pimolu-carousel-control-reserve: 44px;
|
|
12862
|
+
}
|
|
12672
12863
|
.pimolu-carousel__control {
|
|
12673
12864
|
width: 2rem;
|
|
12674
12865
|
height: 2rem;
|
|
@@ -12723,6 +12914,339 @@ button.pimolu-list__row:focus-visible {
|
|
|
12723
12914
|
}
|
|
12724
12915
|
}
|
|
12725
12916
|
|
|
12917
|
+
/* src/thumbnail-carousel.css */
|
|
12918
|
+
.pimolu-thumbnail-carousel .pimolu-carousel__viewport {
|
|
12919
|
+
border-radius: calc(var(--pimolu-radius-lg, 14px) + 2px);
|
|
12920
|
+
overflow: hidden;
|
|
12921
|
+
}
|
|
12922
|
+
.pimolu-thumbnail-carousel .pimolu-carousel__slide img {
|
|
12923
|
+
display: block;
|
|
12924
|
+
width: 100%;
|
|
12925
|
+
height: auto;
|
|
12926
|
+
object-fit: cover;
|
|
12927
|
+
}
|
|
12928
|
+
|
|
12929
|
+
/* src/coverflow-carousel.css */
|
|
12930
|
+
.pimolu-coverflow-carousel .pimolu-carousel__viewport {
|
|
12931
|
+
height: clamp(240px, 42vw, 380px);
|
|
12932
|
+
perspective: 1200px;
|
|
12933
|
+
transform-style: preserve-3d;
|
|
12934
|
+
}
|
|
12935
|
+
.pimolu-coverflow-carousel .pimolu-carousel__slide {
|
|
12936
|
+
position: absolute;
|
|
12937
|
+
inset-block: 0;
|
|
12938
|
+
inset-inline-start: 50%;
|
|
12939
|
+
width: min(62%, 520px);
|
|
12940
|
+
margin-inline-start: calc(min(62%, 520px) / -2);
|
|
12941
|
+
transform-origin: center center;
|
|
12942
|
+
backface-visibility: hidden;
|
|
12943
|
+
}
|
|
12944
|
+
.pimolu-coverflow-carousel .pimolu-carousel__slide[data-active=true] {
|
|
12945
|
+
z-index: 10;
|
|
12946
|
+
}
|
|
12947
|
+
|
|
12948
|
+
/* src/peek-carousel.css */
|
|
12949
|
+
.pimolu-peek-carousel .pimolu-carousel__viewport {
|
|
12950
|
+
padding-block: 8px;
|
|
12951
|
+
}
|
|
12952
|
+
.pimolu-peek-carousel .pimolu-carousel__slide {
|
|
12953
|
+
border-radius: calc(var(--pimolu-radius-lg, 14px) + 2px);
|
|
12954
|
+
border: 1px solid var(--pimolu-border);
|
|
12955
|
+
background: var(--pimolu-surface);
|
|
12956
|
+
overflow: hidden;
|
|
12957
|
+
opacity: 0.72;
|
|
12958
|
+
transform: scale(0.95);
|
|
12959
|
+
}
|
|
12960
|
+
.pimolu-peek-carousel .pimolu-carousel__slide[data-active=true] {
|
|
12961
|
+
border-color: var(--pimolu-primary);
|
|
12962
|
+
opacity: 1;
|
|
12963
|
+
transform: scale(1);
|
|
12964
|
+
}
|
|
12965
|
+
|
|
12966
|
+
/* src/stack-carousel.css */
|
|
12967
|
+
.pimolu-stack-carousel .pimolu-carousel__viewport {
|
|
12968
|
+
height: clamp(260px, 44vw, 400px);
|
|
12969
|
+
}
|
|
12970
|
+
.pimolu-stack-carousel .pimolu-carousel__slide {
|
|
12971
|
+
position: absolute;
|
|
12972
|
+
inset-block-start: 0;
|
|
12973
|
+
inset-inline-start: 50%;
|
|
12974
|
+
width: min(70%, 460px);
|
|
12975
|
+
height: 100%;
|
|
12976
|
+
margin-inline-start: calc(min(70%, 460px) / -2);
|
|
12977
|
+
border-radius: calc(var(--pimolu-radius-lg, 14px) + 4px);
|
|
12978
|
+
border: 1px solid var(--pimolu-border);
|
|
12979
|
+
background: var(--pimolu-surface);
|
|
12980
|
+
overflow: hidden;
|
|
12981
|
+
transform-origin: center top;
|
|
12982
|
+
}
|
|
12983
|
+
|
|
12984
|
+
/* src/arc-carousel.css */
|
|
12985
|
+
.pimolu-arc-carousel .pimolu-carousel__viewport {
|
|
12986
|
+
height: clamp(260px, 44vw, 400px);
|
|
12987
|
+
}
|
|
12988
|
+
.pimolu-arc-carousel .pimolu-carousel__slide {
|
|
12989
|
+
position: absolute;
|
|
12990
|
+
inset-block-end: 0;
|
|
12991
|
+
inset-inline-start: 50%;
|
|
12992
|
+
width: min(42%, 340px);
|
|
12993
|
+
height: 82%;
|
|
12994
|
+
margin-inline-start: calc(min(42%, 340px) / -2);
|
|
12995
|
+
border-radius: calc(var(--pimolu-radius-lg, 14px) + 2px);
|
|
12996
|
+
border: 1px solid var(--pimolu-border);
|
|
12997
|
+
background: var(--pimolu-surface);
|
|
12998
|
+
overflow: hidden;
|
|
12999
|
+
transform-origin: center bottom;
|
|
13000
|
+
}
|
|
13001
|
+
@media (max-width: 640px) {
|
|
13002
|
+
.pimolu-arc-carousel .pimolu-carousel__slide {
|
|
13003
|
+
display: none;
|
|
13004
|
+
width: min(60%, 340px);
|
|
13005
|
+
margin-inline-start: calc(min(60%, 340px) / -2);
|
|
13006
|
+
}
|
|
13007
|
+
.pimolu-arc-carousel .pimolu-carousel__slide[data-active=true],
|
|
13008
|
+
.pimolu-arc-carousel .pimolu-carousel__slide[data-distance="1"] {
|
|
13009
|
+
display: block;
|
|
13010
|
+
}
|
|
13011
|
+
}
|
|
13012
|
+
|
|
13013
|
+
/* src/carousel-base.css */
|
|
13014
|
+
.pimolu-carousel-root {
|
|
13015
|
+
position: relative;
|
|
13016
|
+
display: grid;
|
|
13017
|
+
gap: 12px;
|
|
13018
|
+
box-sizing: border-box;
|
|
13019
|
+
min-width: 0;
|
|
13020
|
+
max-width: 100%;
|
|
13021
|
+
color: var(--pimolu-foreground);
|
|
13022
|
+
font-family: var(--pimolu-font-body, inherit);
|
|
13023
|
+
--pimolu-carousel-gap: 16px;
|
|
13024
|
+
--pimolu-carousel-per-view: 1;
|
|
13025
|
+
}
|
|
13026
|
+
.pimolu-carousel-root > .pimolu-carousel__viewport {
|
|
13027
|
+
display: block;
|
|
13028
|
+
overflow: visible;
|
|
13029
|
+
border-radius: 0;
|
|
13030
|
+
scroll-snap-type: none;
|
|
13031
|
+
}
|
|
13032
|
+
.pimolu-carousel-root > .pimolu-carousel__viewport[data-scroll=false] {
|
|
13033
|
+
overflow: hidden;
|
|
13034
|
+
}
|
|
13035
|
+
.pimolu-carousel__viewport {
|
|
13036
|
+
position: relative;
|
|
13037
|
+
box-sizing: border-box;
|
|
13038
|
+
min-width: 0;
|
|
13039
|
+
outline: none;
|
|
13040
|
+
}
|
|
13041
|
+
.pimolu-carousel__viewport:focus-visible {
|
|
13042
|
+
outline: 2px solid var(--pimolu-focus-ring, currentColor);
|
|
13043
|
+
outline-offset: 3px;
|
|
13044
|
+
}
|
|
13045
|
+
.pimolu-carousel__viewport[data-scroll=true] {
|
|
13046
|
+
display: flex;
|
|
13047
|
+
gap: var(--pimolu-carousel-gap, 16px);
|
|
13048
|
+
overflow-x: auto;
|
|
13049
|
+
overflow-y: hidden;
|
|
13050
|
+
overscroll-behavior-x: contain;
|
|
13051
|
+
scroll-behavior: smooth;
|
|
13052
|
+
scroll-snap-type: x mandatory;
|
|
13053
|
+
scrollbar-width: none;
|
|
13054
|
+
}
|
|
13055
|
+
.pimolu-carousel__viewport[data-scroll=true]::-webkit-scrollbar {
|
|
13056
|
+
display: none;
|
|
13057
|
+
}
|
|
13058
|
+
.pimolu-carousel__slide {
|
|
13059
|
+
box-sizing: border-box;
|
|
13060
|
+
min-width: 0;
|
|
13061
|
+
transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1), opacity 480ms ease;
|
|
13062
|
+
}
|
|
13063
|
+
.pimolu-carousel__viewport[data-scroll=true] .pimolu-carousel__slide {
|
|
13064
|
+
flex: 1 0 calc((100% - (var(--pimolu-carousel-per-view, 1) - 1) * var(--pimolu-carousel-gap, 16px)) / var(--pimolu-carousel-per-view, 1));
|
|
13065
|
+
scroll-snap-align: start;
|
|
13066
|
+
}
|
|
13067
|
+
.pimolu-carousel__viewport[data-effect=peek] .pimolu-carousel__slide {
|
|
13068
|
+
flex: 0 0 min(440px, 68vw);
|
|
13069
|
+
scroll-snap-align: center;
|
|
13070
|
+
}
|
|
13071
|
+
.pimolu-carousel__control {
|
|
13072
|
+
position: absolute;
|
|
13073
|
+
top: 50%;
|
|
13074
|
+
z-index: 20;
|
|
13075
|
+
display: inline-flex;
|
|
13076
|
+
align-items: center;
|
|
13077
|
+
justify-content: center;
|
|
13078
|
+
box-sizing: border-box;
|
|
13079
|
+
width: 2.5rem;
|
|
13080
|
+
height: 2.5rem;
|
|
13081
|
+
padding: 0;
|
|
13082
|
+
border: 1px solid var(--pimolu-border, currentColor);
|
|
13083
|
+
border-radius: var(--pimolu-radius-full, 999px);
|
|
13084
|
+
background: var(--pimolu-background, Canvas);
|
|
13085
|
+
color: var(--pimolu-foreground);
|
|
13086
|
+
box-shadow: var(--pimolu-shadow-raised, 0 2px 8px rgb(0 0 0 / 18%));
|
|
13087
|
+
cursor: pointer;
|
|
13088
|
+
transform: translateY(-50%);
|
|
13089
|
+
transition: background-color 150ms, opacity 150ms;
|
|
13090
|
+
}
|
|
13091
|
+
.pimolu-carousel__control--previous {
|
|
13092
|
+
inset-inline-start: var(--pimolu-spacing-2, 8px);
|
|
13093
|
+
}
|
|
13094
|
+
.pimolu-carousel__control--next {
|
|
13095
|
+
inset-inline-end: var(--pimolu-spacing-2, 8px);
|
|
13096
|
+
}
|
|
13097
|
+
.pimolu-carousel__control:hover:not(:disabled) {
|
|
13098
|
+
background: var(--pimolu-muted, var(--pimolu-background, Canvas));
|
|
13099
|
+
}
|
|
13100
|
+
.pimolu-carousel__control:disabled {
|
|
13101
|
+
opacity: 0.35;
|
|
13102
|
+
cursor: default;
|
|
13103
|
+
}
|
|
13104
|
+
.pimolu-carousel__control:focus-visible {
|
|
13105
|
+
outline: 2px solid var(--pimolu-focus-ring, currentColor);
|
|
13106
|
+
outline-offset: 2px;
|
|
13107
|
+
}
|
|
13108
|
+
.pimolu-carousel__control svg {
|
|
13109
|
+
display: block;
|
|
13110
|
+
width: 1.25rem;
|
|
13111
|
+
height: 1.25rem;
|
|
13112
|
+
}
|
|
13113
|
+
.pimolu-carousel__dots {
|
|
13114
|
+
display: flex;
|
|
13115
|
+
flex-wrap: wrap;
|
|
13116
|
+
align-items: center;
|
|
13117
|
+
justify-content: center;
|
|
13118
|
+
gap: 2px;
|
|
13119
|
+
min-width: 0;
|
|
13120
|
+
}
|
|
13121
|
+
.pimolu-carousel__dot {
|
|
13122
|
+
display: inline-grid;
|
|
13123
|
+
place-items: center;
|
|
13124
|
+
box-sizing: border-box;
|
|
13125
|
+
width: 1.5rem;
|
|
13126
|
+
height: 1.5rem;
|
|
13127
|
+
padding: 0;
|
|
13128
|
+
border: 0;
|
|
13129
|
+
border-radius: var(--pimolu-radius-full, 999px);
|
|
13130
|
+
background: transparent;
|
|
13131
|
+
cursor: pointer;
|
|
13132
|
+
}
|
|
13133
|
+
.pimolu-carousel__dot::before {
|
|
13134
|
+
content: "";
|
|
13135
|
+
display: block;
|
|
13136
|
+
width: 0.5rem;
|
|
13137
|
+
height: 0.5rem;
|
|
13138
|
+
border-radius: var(--pimolu-radius-full, 999px);
|
|
13139
|
+
background: color-mix(in srgb, var(--pimolu-foreground, currentColor) 28%, transparent);
|
|
13140
|
+
transition: width 150ms, background-color 150ms;
|
|
13141
|
+
}
|
|
13142
|
+
.pimolu-carousel__dot[data-active=true]::before {
|
|
13143
|
+
width: 1.25rem;
|
|
13144
|
+
background: var(--pimolu-primary, var(--pimolu-foreground, currentColor));
|
|
13145
|
+
}
|
|
13146
|
+
.pimolu-carousel__dot:focus-visible {
|
|
13147
|
+
outline: 2px solid var(--pimolu-focus-ring, currentColor);
|
|
13148
|
+
outline-offset: 2px;
|
|
13149
|
+
}
|
|
13150
|
+
.pimolu-carousel__thumbnails {
|
|
13151
|
+
display: flex;
|
|
13152
|
+
gap: 8px;
|
|
13153
|
+
min-width: 0;
|
|
13154
|
+
overflow-x: auto;
|
|
13155
|
+
scrollbar-width: none;
|
|
13156
|
+
}
|
|
13157
|
+
.pimolu-carousel__thumbnails::-webkit-scrollbar {
|
|
13158
|
+
display: none;
|
|
13159
|
+
}
|
|
13160
|
+
.pimolu-carousel__thumbnail {
|
|
13161
|
+
flex: 0 0 auto;
|
|
13162
|
+
box-sizing: border-box;
|
|
13163
|
+
width: 72px;
|
|
13164
|
+
padding: 2px;
|
|
13165
|
+
border: 2px solid transparent;
|
|
13166
|
+
border-radius: calc(var(--pimolu-radius-sm, 6px) + 4px);
|
|
13167
|
+
background: transparent;
|
|
13168
|
+
cursor: pointer;
|
|
13169
|
+
opacity: 0.6;
|
|
13170
|
+
transition: opacity 150ms, border-color 150ms;
|
|
13171
|
+
}
|
|
13172
|
+
.pimolu-carousel__thumbnail img {
|
|
13173
|
+
display: block;
|
|
13174
|
+
width: 100%;
|
|
13175
|
+
height: auto;
|
|
13176
|
+
border-radius: var(--pimolu-radius-sm, 6px);
|
|
13177
|
+
object-fit: cover;
|
|
13178
|
+
}
|
|
13179
|
+
.pimolu-carousel__thumbnail[data-active=true] {
|
|
13180
|
+
border-color: var(--pimolu-primary);
|
|
13181
|
+
opacity: 1;
|
|
13182
|
+
}
|
|
13183
|
+
.pimolu-carousel__thumbnail:hover {
|
|
13184
|
+
opacity: 1;
|
|
13185
|
+
}
|
|
13186
|
+
.pimolu-carousel__thumbnail:focus-visible {
|
|
13187
|
+
outline: 2px solid var(--pimolu-focus-ring, currentColor);
|
|
13188
|
+
outline-offset: 2px;
|
|
13189
|
+
}
|
|
13190
|
+
.pimolu-carousel__live {
|
|
13191
|
+
position: absolute;
|
|
13192
|
+
width: 1px;
|
|
13193
|
+
height: 1px;
|
|
13194
|
+
margin: -1px;
|
|
13195
|
+
padding: 0;
|
|
13196
|
+
overflow: hidden;
|
|
13197
|
+
clip: rect(0 0 0 0);
|
|
13198
|
+
white-space: nowrap;
|
|
13199
|
+
border: 0;
|
|
13200
|
+
}
|
|
13201
|
+
@media (prefers-reduced-motion: reduce) {
|
|
13202
|
+
.pimolu-carousel__viewport[data-scroll=true] {
|
|
13203
|
+
scroll-behavior: auto;
|
|
13204
|
+
}
|
|
13205
|
+
.pimolu-carousel__slide,
|
|
13206
|
+
.pimolu-carousel__control,
|
|
13207
|
+
.pimolu-carousel__dot::before,
|
|
13208
|
+
.pimolu-carousel__thumbnail {
|
|
13209
|
+
transition: none;
|
|
13210
|
+
}
|
|
13211
|
+
}
|
|
13212
|
+
@media (forced-colors: active) {
|
|
13213
|
+
.pimolu-carousel__control {
|
|
13214
|
+
border-color: CanvasText;
|
|
13215
|
+
background: Canvas;
|
|
13216
|
+
color: CanvasText;
|
|
13217
|
+
box-shadow: none;
|
|
13218
|
+
}
|
|
13219
|
+
.pimolu-carousel__dot::before {
|
|
13220
|
+
background: CanvasText;
|
|
13221
|
+
}
|
|
13222
|
+
.pimolu-carousel__dot[data-active=true]::before {
|
|
13223
|
+
background: Highlight;
|
|
13224
|
+
}
|
|
13225
|
+
.pimolu-carousel__thumbnail {
|
|
13226
|
+
border-color: CanvasText;
|
|
13227
|
+
}
|
|
13228
|
+
.pimolu-carousel__thumbnail[data-active=true] {
|
|
13229
|
+
border-color: Highlight;
|
|
13230
|
+
}
|
|
13231
|
+
}
|
|
13232
|
+
|
|
13233
|
+
/* src/multi-carousel.css */
|
|
13234
|
+
.pimolu-multi-carousel .pimolu-carousel__viewport {
|
|
13235
|
+
scroll-snap-type: x mandatory;
|
|
13236
|
+
}
|
|
13237
|
+
.pimolu-multi-carousel .pimolu-carousel__slide {
|
|
13238
|
+
border-radius: calc(var(--pimolu-radius-lg, 14px) + 2px);
|
|
13239
|
+
border: 1px solid var(--pimolu-border);
|
|
13240
|
+
background: var(--pimolu-surface);
|
|
13241
|
+
overflow: hidden;
|
|
13242
|
+
}
|
|
13243
|
+
@media (max-width: 640px) {
|
|
13244
|
+
.pimolu-multi-carousel .pimolu-carousel__viewport[data-scroll=true] .pimolu-carousel__slide {
|
|
13245
|
+
flex-basis: min(280px, 78vw);
|
|
13246
|
+
min-width: min(280px, 78vw);
|
|
13247
|
+
}
|
|
13248
|
+
}
|
|
13249
|
+
|
|
12726
13250
|
/* src/resizable.css */
|
|
12727
13251
|
.pimolu-resizable {
|
|
12728
13252
|
--pimolu-resizable-split: 50%;
|
|
@@ -20979,19 +21503,20 @@ a.pimolu-chat__attachment-name:focus-visible {
|
|
|
20979
21503
|
border-radius: var(--pimolu-radius-sm, 6px);
|
|
20980
21504
|
}
|
|
20981
21505
|
.pimolu-api-table__table.pimolu-table {
|
|
20982
|
-
min-width:
|
|
21506
|
+
min-width: 0;
|
|
21507
|
+
table-layout: fixed;
|
|
20983
21508
|
}
|
|
20984
21509
|
.pimolu-api-table__table :where(th, td):nth-child(1) {
|
|
20985
|
-
width:
|
|
21510
|
+
width: 20%;
|
|
20986
21511
|
}
|
|
20987
21512
|
.pimolu-api-table__table :where(th, td):nth-child(2) {
|
|
20988
|
-
width:
|
|
21513
|
+
width: 36%;
|
|
20989
21514
|
}
|
|
20990
21515
|
.pimolu-api-table__table :where(th, td):nth-child(3) {
|
|
20991
|
-
width:
|
|
21516
|
+
width: 10%;
|
|
20992
21517
|
}
|
|
20993
21518
|
.pimolu-api-table__table :where(th, td):nth-child(4) {
|
|
20994
|
-
width:
|
|
21519
|
+
width: 34%;
|
|
20995
21520
|
}
|
|
20996
21521
|
.pimolu-api-table__name {
|
|
20997
21522
|
display: flex;
|