@pimolu/web-styles 0.1.0-beta.3.1 → 0.1.0-beta.5
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 +1 -1
- package/README.md +1 -1
- package/dist/accordion.css +69 -2
- package/dist/avatar.css +35 -0
- package/dist/badge.css +35 -0
- package/dist/button.css +6 -0
- package/dist/card.css +35 -0
- package/dist/command.css +35 -0
- package/dist/form-field.css +48 -0
- package/dist/form.css +46 -0
- package/dist/input-group.css +10 -0
- package/dist/input.css +10 -0
- package/dist/layered.css +607 -187
- package/dist/motion.css +34 -0
- package/dist/navbar.css +325 -0
- package/dist/password-input.css +10 -0
- package/dist/pimolu.css +614 -196
- package/dist/pimolu.min.css +1 -1
- package/dist/segmented-control.css +70 -3
- package/dist/sidebar.css +43 -0
- package/dist/slider.css +61 -0
- package/dist/table.css +35 -0
- package/dist/tabs.css +93 -4
- package/dist/toast.css +225 -8
- package/dist/toolbar.css +35 -0
- package/package.json +3 -2
package/dist/layered.css
CHANGED
|
@@ -1009,6 +1009,12 @@
|
|
|
1009
1009
|
align-items: center;
|
|
1010
1010
|
justify-content: center;
|
|
1011
1011
|
}
|
|
1012
|
+
.pimolu-button__loading-indicator {
|
|
1013
|
+
display: inline-flex;
|
|
1014
|
+
align-items: center;
|
|
1015
|
+
justify-content: center;
|
|
1016
|
+
flex-shrink: 0;
|
|
1017
|
+
}
|
|
1012
1018
|
.pimolu-button__spinner {
|
|
1013
1019
|
width: 1em;
|
|
1014
1020
|
height: 1em;
|
|
@@ -1684,174 +1690,6 @@
|
|
|
1684
1690
|
}
|
|
1685
1691
|
}
|
|
1686
1692
|
|
|
1687
|
-
/* src/spinner.css */
|
|
1688
|
-
@layer pimolu {
|
|
1689
|
-
.pimolu-spinner {
|
|
1690
|
-
--pimolu-spinner-size: 20px;
|
|
1691
|
-
--pimolu-spinner-dot-size: calc(var(--pimolu-spinner-size) * 0.27);
|
|
1692
|
-
--pimolu-spinner-color: currentColor;
|
|
1693
|
-
display: inline-flex;
|
|
1694
|
-
align-items: center;
|
|
1695
|
-
justify-content: center;
|
|
1696
|
-
flex: 0 0 auto;
|
|
1697
|
-
box-sizing: border-box;
|
|
1698
|
-
min-width: 0;
|
|
1699
|
-
color: var(--pimolu-spinner-color);
|
|
1700
|
-
line-height: 1;
|
|
1701
|
-
vertical-align: middle;
|
|
1702
|
-
user-select: none;
|
|
1703
|
-
}
|
|
1704
|
-
.pimolu-spinner--xs {
|
|
1705
|
-
--pimolu-spinner-size: 12px;
|
|
1706
|
-
}
|
|
1707
|
-
.pimolu-spinner--sm {
|
|
1708
|
-
--pimolu-spinner-size: 16px;
|
|
1709
|
-
}
|
|
1710
|
-
.pimolu-spinner--md {
|
|
1711
|
-
--pimolu-spinner-size: 20px;
|
|
1712
|
-
}
|
|
1713
|
-
.pimolu-spinner--lg {
|
|
1714
|
-
--pimolu-spinner-size: 24px;
|
|
1715
|
-
}
|
|
1716
|
-
.pimolu-spinner--xl {
|
|
1717
|
-
--pimolu-spinner-size: 32px;
|
|
1718
|
-
}
|
|
1719
|
-
.pimolu-spinner--inherit {
|
|
1720
|
-
--pimolu-spinner-color: currentColor;
|
|
1721
|
-
}
|
|
1722
|
-
.pimolu-spinner--neutral {
|
|
1723
|
-
--pimolu-spinner-color: var(--pimolu-foreground, currentColor);
|
|
1724
|
-
}
|
|
1725
|
-
.pimolu-spinner--primary {
|
|
1726
|
-
--pimolu-spinner-color: var(--pimolu-primary, currentColor);
|
|
1727
|
-
}
|
|
1728
|
-
.pimolu-spinner--secondary {
|
|
1729
|
-
--pimolu-spinner-color: var(--pimolu-secondary, currentColor);
|
|
1730
|
-
}
|
|
1731
|
-
.pimolu-spinner--success {
|
|
1732
|
-
--pimolu-spinner-color: var(--pimolu-success, currentColor);
|
|
1733
|
-
}
|
|
1734
|
-
.pimolu-spinner--warning {
|
|
1735
|
-
--pimolu-spinner-color: var(--pimolu-warning, currentColor);
|
|
1736
|
-
}
|
|
1737
|
-
.pimolu-spinner--danger {
|
|
1738
|
-
--pimolu-spinner-color: var(--pimolu-danger, currentColor);
|
|
1739
|
-
}
|
|
1740
|
-
.pimolu-spinner__visual {
|
|
1741
|
-
display: inline-flex;
|
|
1742
|
-
align-items: center;
|
|
1743
|
-
justify-content: center;
|
|
1744
|
-
flex: 0 0 auto;
|
|
1745
|
-
width: var(--pimolu-spinner-size);
|
|
1746
|
-
height: var(--pimolu-spinner-size);
|
|
1747
|
-
}
|
|
1748
|
-
.pimolu-spinner__svg {
|
|
1749
|
-
display: block;
|
|
1750
|
-
width: 100%;
|
|
1751
|
-
height: 100%;
|
|
1752
|
-
overflow: visible;
|
|
1753
|
-
transform-origin: center;
|
|
1754
|
-
animation: pimolu-spinner-rotate 1s linear infinite;
|
|
1755
|
-
}
|
|
1756
|
-
.pimolu-spinner__track,
|
|
1757
|
-
.pimolu-spinner__indicator {
|
|
1758
|
-
fill: none;
|
|
1759
|
-
stroke: currentColor;
|
|
1760
|
-
stroke-width: 2.5;
|
|
1761
|
-
}
|
|
1762
|
-
.pimolu-spinner__track {
|
|
1763
|
-
opacity: 0.18;
|
|
1764
|
-
}
|
|
1765
|
-
.pimolu-spinner__indicator {
|
|
1766
|
-
stroke-linecap: round;
|
|
1767
|
-
}
|
|
1768
|
-
.pimolu-spinner--circular .pimolu-spinner__indicator {
|
|
1769
|
-
stroke-dasharray: 16 57;
|
|
1770
|
-
}
|
|
1771
|
-
.pimolu-spinner--arc .pimolu-spinner__indicator {
|
|
1772
|
-
stroke-dasharray: 42 57;
|
|
1773
|
-
}
|
|
1774
|
-
.pimolu-spinner--arc .pimolu-spinner__track {
|
|
1775
|
-
opacity: 0;
|
|
1776
|
-
}
|
|
1777
|
-
.pimolu-spinner--arc .pimolu-spinner__svg {
|
|
1778
|
-
animation-duration: 1.3s;
|
|
1779
|
-
}
|
|
1780
|
-
@keyframes pimolu-spinner-rotate {
|
|
1781
|
-
from {
|
|
1782
|
-
transform: rotate(0deg);
|
|
1783
|
-
}
|
|
1784
|
-
to {
|
|
1785
|
-
transform: rotate(360deg);
|
|
1786
|
-
}
|
|
1787
|
-
}
|
|
1788
|
-
.pimolu-spinner--dots .pimolu-spinner__visual {
|
|
1789
|
-
width: calc(var(--pimolu-spinner-size) * 1.5);
|
|
1790
|
-
gap: calc(var(--pimolu-spinner-size) * 0.14);
|
|
1791
|
-
}
|
|
1792
|
-
.pimolu-spinner__dot {
|
|
1793
|
-
display: block;
|
|
1794
|
-
flex: 0 0 auto;
|
|
1795
|
-
width: var(--pimolu-spinner-dot-size);
|
|
1796
|
-
height: var(--pimolu-spinner-dot-size);
|
|
1797
|
-
border-radius: 50%;
|
|
1798
|
-
background: currentColor;
|
|
1799
|
-
animation: pimolu-spinner-dot 1.1s ease-in-out infinite;
|
|
1800
|
-
}
|
|
1801
|
-
.pimolu-spinner__dot:nth-child(1) {
|
|
1802
|
-
animation-delay: -0.32s;
|
|
1803
|
-
}
|
|
1804
|
-
.pimolu-spinner__dot:nth-child(2) {
|
|
1805
|
-
animation-delay: -0.16s;
|
|
1806
|
-
}
|
|
1807
|
-
.pimolu-spinner__dot:nth-child(3) {
|
|
1808
|
-
animation-delay: 0s;
|
|
1809
|
-
}
|
|
1810
|
-
@keyframes pimolu-spinner-dot {
|
|
1811
|
-
0%, 80%, 100% {
|
|
1812
|
-
opacity: 0.35;
|
|
1813
|
-
transform: translateY(0);
|
|
1814
|
-
}
|
|
1815
|
-
40% {
|
|
1816
|
-
opacity: 1;
|
|
1817
|
-
transform: translateY(-25%);
|
|
1818
|
-
}
|
|
1819
|
-
}
|
|
1820
|
-
.pimolu-spinner__label {
|
|
1821
|
-
position: absolute;
|
|
1822
|
-
width: 1px;
|
|
1823
|
-
height: 1px;
|
|
1824
|
-
padding: 0;
|
|
1825
|
-
margin: -1px;
|
|
1826
|
-
overflow: hidden;
|
|
1827
|
-
clip: rect(0, 0, 0, 0);
|
|
1828
|
-
clip-path: inset(50%);
|
|
1829
|
-
white-space: nowrap;
|
|
1830
|
-
border: 0;
|
|
1831
|
-
}
|
|
1832
|
-
@media (prefers-reduced-motion: reduce) {
|
|
1833
|
-
.pimolu-spinner__svg,
|
|
1834
|
-
.pimolu-spinner__dot {
|
|
1835
|
-
animation: none;
|
|
1836
|
-
}
|
|
1837
|
-
.pimolu-spinner__dot {
|
|
1838
|
-
opacity: 1;
|
|
1839
|
-
transform: none;
|
|
1840
|
-
}
|
|
1841
|
-
}
|
|
1842
|
-
@media (forced-colors: active) {
|
|
1843
|
-
.pimolu-spinner {
|
|
1844
|
-
color: CanvasText;
|
|
1845
|
-
}
|
|
1846
|
-
.pimolu-spinner__track {
|
|
1847
|
-
opacity: 0.4;
|
|
1848
|
-
}
|
|
1849
|
-
.pimolu-spinner__dot {
|
|
1850
|
-
background: currentColor;
|
|
1851
|
-
}
|
|
1852
|
-
}
|
|
1853
|
-
}
|
|
1854
|
-
|
|
1855
1693
|
/* src/switch.css */
|
|
1856
1694
|
@layer pimolu {
|
|
1857
1695
|
.pimolu-switch {
|
|
@@ -3853,6 +3691,32 @@
|
|
|
3853
3691
|
background: ButtonFace;
|
|
3854
3692
|
}
|
|
3855
3693
|
}
|
|
3694
|
+
.pimolu-slider__control::-webkit-slider-thumb {
|
|
3695
|
+
transition: box-shadow 150ms ease-out;
|
|
3696
|
+
}
|
|
3697
|
+
.pimolu-slider__control::-moz-range-thumb {
|
|
3698
|
+
transition: box-shadow 150ms ease-out;
|
|
3699
|
+
}
|
|
3700
|
+
.pimolu-slider__control:not(:disabled):is(:hover, :focus-visible)::-webkit-slider-thumb {
|
|
3701
|
+
box-shadow: 0 0 0 4px color-mix(in srgb, var(--pimolu-slider-tone) 18%, transparent);
|
|
3702
|
+
}
|
|
3703
|
+
.pimolu-slider__control:not(:disabled):is(:hover, :focus-visible)::-moz-range-thumb {
|
|
3704
|
+
box-shadow: 0 0 0 4px color-mix(in srgb, var(--pimolu-slider-tone) 18%, transparent);
|
|
3705
|
+
}
|
|
3706
|
+
@media (prefers-reduced-motion: reduce) {
|
|
3707
|
+
.pimolu-slider__control::-webkit-slider-thumb {
|
|
3708
|
+
transition: none;
|
|
3709
|
+
}
|
|
3710
|
+
.pimolu-slider__control::-moz-range-thumb {
|
|
3711
|
+
transition: none;
|
|
3712
|
+
}
|
|
3713
|
+
}
|
|
3714
|
+
[data-pimolu-motion=off] .pimolu-slider__control::-webkit-slider-thumb {
|
|
3715
|
+
transition: none;
|
|
3716
|
+
}
|
|
3717
|
+
[data-pimolu-motion=off] .pimolu-slider__control::-moz-range-thumb {
|
|
3718
|
+
transition: none;
|
|
3719
|
+
}
|
|
3856
3720
|
}
|
|
3857
3721
|
|
|
3858
3722
|
/* src/range-slider.css */
|
|
@@ -4694,6 +4558,10 @@
|
|
|
4694
4558
|
|
|
4695
4559
|
/* src/tabs.css */
|
|
4696
4560
|
@layer pimolu {
|
|
4561
|
+
:root {
|
|
4562
|
+
--pimolu-tabs-indicator-duration: 240ms;
|
|
4563
|
+
--pimolu-tabs-indicator-easing: cubic-bezier(0.22, 1, 0.36, 1);
|
|
4564
|
+
}
|
|
4697
4565
|
.pimolu-tabs {
|
|
4698
4566
|
--pimolu-tabs-height: 40px;
|
|
4699
4567
|
--pimolu-tabs-padding-x: 14px;
|
|
@@ -4759,18 +4627,26 @@
|
|
|
4759
4627
|
flex: 1 1 auto;
|
|
4760
4628
|
flex-wrap: nowrap;
|
|
4761
4629
|
overflow-x: auto;
|
|
4630
|
+
overflow-y: hidden;
|
|
4762
4631
|
overscroll-behavior-inline: contain;
|
|
4763
4632
|
}
|
|
4764
4633
|
.pimolu-tabs__list[data-scrollable=true] .pimolu-tabs__trigger {
|
|
4765
4634
|
flex: 0 0 auto;
|
|
4766
4635
|
}
|
|
4767
|
-
.pimolu-tabs__list[data-scrollable=true] {
|
|
4636
|
+
.pimolu-tabs__list[data-scrollable=true]:not([data-show-scrollbar=true]) {
|
|
4768
4637
|
scrollbar-width: none;
|
|
4769
4638
|
-ms-overflow-style: none;
|
|
4770
4639
|
}
|
|
4771
|
-
.pimolu-tabs__list[data-scrollable=true]::-webkit-scrollbar {
|
|
4640
|
+
.pimolu-tabs__list[data-scrollable=true]:not([data-show-scrollbar=true])::-webkit-scrollbar {
|
|
4772
4641
|
display: none;
|
|
4773
4642
|
}
|
|
4643
|
+
.pimolu-tabs__list[data-scrollable=true][data-show-scrollbar=true] {
|
|
4644
|
+
scrollbar-width: thin;
|
|
4645
|
+
}
|
|
4646
|
+
.pimolu-tabs__list[data-scrollable=true][data-show-scrollbar=true]::-webkit-scrollbar {
|
|
4647
|
+
display: block;
|
|
4648
|
+
height: 8px;
|
|
4649
|
+
}
|
|
4774
4650
|
.pimolu-tabs__scroll {
|
|
4775
4651
|
display: inline-grid;
|
|
4776
4652
|
flex: none;
|
|
@@ -4919,7 +4795,7 @@
|
|
|
4919
4795
|
.pimolu-tabs--segmented .pimolu-tabs__trigger {
|
|
4920
4796
|
position: relative;
|
|
4921
4797
|
flex: 1 1 0;
|
|
4922
|
-
min-width:
|
|
4798
|
+
min-width: max-content;
|
|
4923
4799
|
padding-inline: var(--pimolu-spacing-3, 12px);
|
|
4924
4800
|
border-radius: 999px;
|
|
4925
4801
|
color: var(--pimolu-muted-foreground);
|
|
@@ -5010,8 +4886,82 @@
|
|
|
5010
4886
|
box-shadow: inset 2px 0 0 var(--pimolu-primary);
|
|
5011
4887
|
}
|
|
5012
4888
|
}
|
|
4889
|
+
.pimolu-tabs__list {
|
|
4890
|
+
position: relative;
|
|
4891
|
+
isolation: isolate;
|
|
4892
|
+
}
|
|
4893
|
+
.pimolu-tabs__list > .pimolu-tabs__trigger {
|
|
4894
|
+
position: relative;
|
|
4895
|
+
z-index: 1;
|
|
4896
|
+
}
|
|
4897
|
+
.pimolu-tabs__indicator {
|
|
4898
|
+
position: absolute;
|
|
4899
|
+
top: 0;
|
|
4900
|
+
left: 0;
|
|
4901
|
+
z-index: 0;
|
|
4902
|
+
pointer-events: none;
|
|
4903
|
+
border-radius: var(--pimolu-radius-sm, 4px);
|
|
4904
|
+
}
|
|
4905
|
+
.pimolu-tabs__indicator[hidden] {
|
|
4906
|
+
display: none;
|
|
4907
|
+
}
|
|
4908
|
+
.pimolu-tabs__indicator[data-ready=true] {
|
|
4909
|
+
transition-property:
|
|
4910
|
+
transform,
|
|
4911
|
+
width,
|
|
4912
|
+
height;
|
|
4913
|
+
transition-duration: var(--pimolu-tabs-indicator-duration, 240ms);
|
|
4914
|
+
transition-timing-function: var(--pimolu-tabs-indicator-easing, cubic-bezier(0.22, 1, 0.36, 1));
|
|
4915
|
+
}
|
|
4916
|
+
.pimolu-tabs__indicator::before {
|
|
4917
|
+
content: "";
|
|
4918
|
+
position: absolute;
|
|
4919
|
+
inset: 0;
|
|
4920
|
+
border-radius: inherit;
|
|
4921
|
+
}
|
|
4922
|
+
.pimolu-tabs--line > .pimolu-tabs__list-wrap > .pimolu-tabs__list > .pimolu-tabs__indicator::before {
|
|
4923
|
+
inset-block-start: auto;
|
|
4924
|
+
height: 2px;
|
|
4925
|
+
background: var(--pimolu-primary);
|
|
4926
|
+
}
|
|
4927
|
+
.pimolu-tabs--vertical.pimolu-tabs--line > .pimolu-tabs__list-wrap > .pimolu-tabs__list > .pimolu-tabs__indicator::before {
|
|
4928
|
+
inset-block: 0;
|
|
4929
|
+
inset-inline-start: auto;
|
|
4930
|
+
width: 2px;
|
|
4931
|
+
height: auto;
|
|
4932
|
+
}
|
|
4933
|
+
.pimolu-tabs--solid > .pimolu-tabs__list-wrap > .pimolu-tabs__list > .pimolu-tabs__indicator::before {
|
|
4934
|
+
background: var(--pimolu-primary);
|
|
4935
|
+
}
|
|
4936
|
+
.pimolu-tabs--soft > .pimolu-tabs__list-wrap > .pimolu-tabs__list > .pimolu-tabs__indicator::before {
|
|
4937
|
+
background: color-mix(in srgb, var(--pimolu-primary) 12%, transparent);
|
|
4938
|
+
}
|
|
4939
|
+
.pimolu-tabs--segmented > .pimolu-tabs__list-wrap > .pimolu-tabs__list > .pimolu-tabs__indicator {
|
|
4940
|
+
border-radius: 999px;
|
|
4941
|
+
}
|
|
4942
|
+
.pimolu-tabs--segmented > .pimolu-tabs__list-wrap > .pimolu-tabs__list > .pimolu-tabs__indicator::before {
|
|
4943
|
+
background: color-mix(in srgb, var(--pimolu-foreground) 10%, var(--pimolu-muted));
|
|
4944
|
+
box-shadow: var(--pimolu-shadow-sm, 0 1px 2px rgba(15, 23, 42, 0.12));
|
|
4945
|
+
}
|
|
4946
|
+
.pimolu-tabs__list[data-indicator=true] > .pimolu-tabs__trigger[data-state=active] {
|
|
4947
|
+
background: transparent;
|
|
4948
|
+
box-shadow: none;
|
|
4949
|
+
}
|
|
4950
|
+
@media (max-width: 600px) {
|
|
4951
|
+
.pimolu-tabs--vertical.pimolu-tabs--line > .pimolu-tabs__list-wrap > .pimolu-tabs__list > .pimolu-tabs__indicator::before {
|
|
4952
|
+
inset-inline-start: 0;
|
|
4953
|
+
inset-inline-end: auto;
|
|
4954
|
+
}
|
|
4955
|
+
}
|
|
4956
|
+
.pimolu-tabs[data-animated=false] > .pimolu-tabs__list-wrap > .pimolu-tabs__list > :is(.pimolu-tabs__indicator, .pimolu-tabs__trigger) {
|
|
4957
|
+
transition: none;
|
|
4958
|
+
}
|
|
4959
|
+
.pimolu-tabs[data-animated=false] > .pimolu-tabs__panel {
|
|
4960
|
+
animation: none;
|
|
4961
|
+
}
|
|
5013
4962
|
@media (prefers-reduced-motion: reduce) {
|
|
5014
|
-
.pimolu-tabs__trigger
|
|
4963
|
+
.pimolu-tabs__trigger,
|
|
4964
|
+
.pimolu-tabs__indicator[data-ready=true] {
|
|
5015
4965
|
transition: none;
|
|
5016
4966
|
}
|
|
5017
4967
|
.pimolu-tabs__panel[data-state=active] {
|
|
@@ -5019,6 +4969,9 @@
|
|
|
5019
4969
|
}
|
|
5020
4970
|
}
|
|
5021
4971
|
@media (forced-colors: active) {
|
|
4972
|
+
.pimolu-tabs__indicator {
|
|
4973
|
+
display: none;
|
|
4974
|
+
}
|
|
5022
4975
|
.pimolu-tabs__trigger[data-state=active] {
|
|
5023
4976
|
border: 1px solid Highlight;
|
|
5024
4977
|
color: Highlight;
|
|
@@ -5161,15 +5114,23 @@
|
|
|
5161
5114
|
|
|
5162
5115
|
/* src/segmented-control.css */
|
|
5163
5116
|
@layer pimolu {
|
|
5117
|
+
:root {
|
|
5118
|
+
--pimolu-segmented-indicator-duration: 240ms;
|
|
5119
|
+
--pimolu-segmented-indicator-easing: cubic-bezier(0.22, 1, 0.36, 1);
|
|
5120
|
+
}
|
|
5164
5121
|
.pimolu-segmented-control {
|
|
5165
5122
|
--pimolu-segmented-height: 32px;
|
|
5166
5123
|
--pimolu-segmented-padding-x: 12px;
|
|
5167
5124
|
--pimolu-segmented-font-size: 0.875rem;
|
|
5168
5125
|
display: inline-flex;
|
|
5126
|
+
position: relative;
|
|
5127
|
+
isolation: isolate;
|
|
5128
|
+
flex-wrap: nowrap;
|
|
5169
5129
|
align-items: center;
|
|
5170
5130
|
gap: 0;
|
|
5171
5131
|
box-sizing: border-box;
|
|
5172
5132
|
max-width: 100%;
|
|
5133
|
+
min-width: 0;
|
|
5173
5134
|
padding: 4px;
|
|
5174
5135
|
border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
|
|
5175
5136
|
border-radius: 999px;
|
|
@@ -5184,13 +5145,16 @@
|
|
|
5184
5145
|
flex-direction: column;
|
|
5185
5146
|
align-items: stretch;
|
|
5186
5147
|
width: fit-content;
|
|
5187
|
-
min-width: 12rem;
|
|
5148
|
+
min-width: min(12rem, 100%);
|
|
5188
5149
|
border-radius: var(--pimolu-radius-lg, 12px);
|
|
5189
5150
|
}
|
|
5190
5151
|
.pimolu-segmented-control--full-width.pimolu-segmented-control--vertical {
|
|
5191
5152
|
width: 100%;
|
|
5192
5153
|
}
|
|
5193
5154
|
.pimolu-segmented-control__item {
|
|
5155
|
+
position: relative;
|
|
5156
|
+
z-index: 1;
|
|
5157
|
+
flex-shrink: 0;
|
|
5194
5158
|
display: inline-flex;
|
|
5195
5159
|
align-items: center;
|
|
5196
5160
|
justify-content: center;
|
|
@@ -5216,7 +5180,7 @@
|
|
|
5216
5180
|
}
|
|
5217
5181
|
.pimolu-segmented-control--full-width .pimolu-segmented-control__item {
|
|
5218
5182
|
flex: 1 1 0;
|
|
5219
|
-
min-width:
|
|
5183
|
+
min-width: max-content;
|
|
5220
5184
|
}
|
|
5221
5185
|
.pimolu-segmented-control--vertical .pimolu-segmented-control__item {
|
|
5222
5186
|
flex: 0 0 auto;
|
|
@@ -5255,12 +5219,68 @@
|
|
|
5255
5219
|
--pimolu-segmented-padding-x: 16px;
|
|
5256
5220
|
--pimolu-segmented-font-size: 1rem;
|
|
5257
5221
|
}
|
|
5222
|
+
.pimolu-segmented-control__indicator {
|
|
5223
|
+
position: absolute;
|
|
5224
|
+
left: 0;
|
|
5225
|
+
top: 0;
|
|
5226
|
+
z-index: 0;
|
|
5227
|
+
border-radius: 999px;
|
|
5228
|
+
pointer-events: none;
|
|
5229
|
+
background: color-mix(in srgb, var(--pimolu-foreground) 10%, var(--pimolu-muted));
|
|
5230
|
+
box-shadow: var(--pimolu-shadow-sm, 0 1px 2px rgba(15, 23, 42, 0.12));
|
|
5231
|
+
}
|
|
5232
|
+
.pimolu-segmented-control__indicator[hidden] {
|
|
5233
|
+
display: none;
|
|
5234
|
+
}
|
|
5235
|
+
.pimolu-segmented-control__indicator[data-ready=true] {
|
|
5236
|
+
transition-property:
|
|
5237
|
+
transform,
|
|
5238
|
+
width,
|
|
5239
|
+
height;
|
|
5240
|
+
transition-duration: var(--pimolu-segmented-indicator-duration, 240ms);
|
|
5241
|
+
transition-timing-function: var(--pimolu-segmented-indicator-easing, cubic-bezier(0.22, 1, 0.36, 1));
|
|
5242
|
+
}
|
|
5243
|
+
.pimolu-segmented-control[data-indicator=true] > .pimolu-segmented-control__item[data-state=active] {
|
|
5244
|
+
background: transparent;
|
|
5245
|
+
box-shadow: none;
|
|
5246
|
+
}
|
|
5247
|
+
.pimolu-segmented-control[data-animated=false] > :is(.pimolu-segmented-control__indicator, .pimolu-segmented-control__item) {
|
|
5248
|
+
transition: none;
|
|
5249
|
+
}
|
|
5250
|
+
.pimolu-segmented-control {
|
|
5251
|
+
flex-wrap: nowrap;
|
|
5252
|
+
overflow-x: auto;
|
|
5253
|
+
overflow-y: hidden;
|
|
5254
|
+
overscroll-behavior: contain;
|
|
5255
|
+
}
|
|
5256
|
+
.pimolu-segmented-control--vertical {
|
|
5257
|
+
overflow-x: hidden;
|
|
5258
|
+
overflow-y: auto;
|
|
5259
|
+
}
|
|
5260
|
+
.pimolu-segmented-control:not([data-show-scrollbar=true]) {
|
|
5261
|
+
scrollbar-width: none;
|
|
5262
|
+
}
|
|
5263
|
+
.pimolu-segmented-control:not([data-show-scrollbar=true])::-webkit-scrollbar {
|
|
5264
|
+
display: none;
|
|
5265
|
+
}
|
|
5266
|
+
.pimolu-segmented-control[data-show-scrollbar=true] {
|
|
5267
|
+
scrollbar-width: thin;
|
|
5268
|
+
}
|
|
5269
|
+
.pimolu-segmented-control[data-show-scrollbar=true]::-webkit-scrollbar {
|
|
5270
|
+
display: block;
|
|
5271
|
+
width: 8px;
|
|
5272
|
+
height: 8px;
|
|
5273
|
+
}
|
|
5258
5274
|
@media (prefers-reduced-motion: reduce) {
|
|
5259
|
-
.pimolu-segmented-control__item
|
|
5275
|
+
.pimolu-segmented-control__item,
|
|
5276
|
+
.pimolu-segmented-control__indicator[data-ready=true] {
|
|
5260
5277
|
transition: none;
|
|
5261
5278
|
}
|
|
5262
5279
|
}
|
|
5263
5280
|
@media (forced-colors: active) {
|
|
5281
|
+
.pimolu-segmented-control__indicator {
|
|
5282
|
+
display: none;
|
|
5283
|
+
}
|
|
5264
5284
|
.pimolu-segmented-control__item[data-state=active] {
|
|
5265
5285
|
border: 1px solid Highlight;
|
|
5266
5286
|
color: Highlight;
|
|
@@ -5563,6 +5583,19 @@
|
|
|
5563
5583
|
|
|
5564
5584
|
/* src/form-field.css */
|
|
5565
5585
|
@layer pimolu {
|
|
5586
|
+
.pimolu-form-message--error {
|
|
5587
|
+
animation: pimolu-field-feedback-in 180ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
5588
|
+
}
|
|
5589
|
+
@keyframes pimolu-field-feedback-in {
|
|
5590
|
+
from {
|
|
5591
|
+
opacity: 0;
|
|
5592
|
+
transform: translateY(-3px);
|
|
5593
|
+
}
|
|
5594
|
+
to {
|
|
5595
|
+
opacity: 1;
|
|
5596
|
+
transform: translateY(0);
|
|
5597
|
+
}
|
|
5598
|
+
}
|
|
5566
5599
|
.pimolu-form-field {
|
|
5567
5600
|
display: grid;
|
|
5568
5601
|
gap: 6px;
|
|
@@ -5734,13 +5767,32 @@
|
|
|
5734
5767
|
transform: rotate(180deg);
|
|
5735
5768
|
}
|
|
5736
5769
|
.pimolu-accordion__content {
|
|
5770
|
+
display: grid;
|
|
5771
|
+
grid-template-rows: 1fr;
|
|
5737
5772
|
min-width: 0;
|
|
5738
5773
|
color: var(--pimolu-muted-foreground);
|
|
5739
5774
|
font-size: 0.875rem;
|
|
5740
5775
|
line-height: 1.6;
|
|
5741
5776
|
}
|
|
5777
|
+
.pimolu-accordion__content[hidden] {
|
|
5778
|
+
display: none;
|
|
5779
|
+
}
|
|
5780
|
+
.pimolu-accordion__content-clip {
|
|
5781
|
+
min-height: 0;
|
|
5782
|
+
overflow: hidden;
|
|
5783
|
+
}
|
|
5742
5784
|
.pimolu-accordion__content[data-state=open] {
|
|
5743
|
-
animation: pimolu-accordion-in
|
|
5785
|
+
animation: pimolu-accordion-in 220ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
5786
|
+
}
|
|
5787
|
+
.pimolu-accordion__content[hidden][data-state=closing] {
|
|
5788
|
+
display: grid;
|
|
5789
|
+
animation: pimolu-accordion-out 220ms cubic-bezier(0.4, 0, 1, 1) both;
|
|
5790
|
+
}
|
|
5791
|
+
.pimolu-accordion[data-animated=false] .pimolu-accordion__content {
|
|
5792
|
+
animation: none;
|
|
5793
|
+
}
|
|
5794
|
+
.pimolu-accordion[data-animated=false] .pimolu-accordion__chevron {
|
|
5795
|
+
transition: none;
|
|
5744
5796
|
}
|
|
5745
5797
|
.pimolu-accordion__content-inner {
|
|
5746
5798
|
padding: 0 0 16px;
|
|
@@ -5754,19 +5806,32 @@
|
|
|
5754
5806
|
}
|
|
5755
5807
|
@keyframes pimolu-accordion-in {
|
|
5756
5808
|
from {
|
|
5809
|
+
grid-template-rows: 0fr;
|
|
5757
5810
|
opacity: 0;
|
|
5758
5811
|
transform: translateY(-3px);
|
|
5759
5812
|
}
|
|
5760
5813
|
to {
|
|
5814
|
+
grid-template-rows: 1fr;
|
|
5761
5815
|
opacity: 1;
|
|
5762
5816
|
transform: translateY(0);
|
|
5763
5817
|
}
|
|
5764
5818
|
}
|
|
5819
|
+
@keyframes pimolu-accordion-out {
|
|
5820
|
+
from {
|
|
5821
|
+
grid-template-rows: 1fr;
|
|
5822
|
+
opacity: 1;
|
|
5823
|
+
}
|
|
5824
|
+
to {
|
|
5825
|
+
grid-template-rows: 0fr;
|
|
5826
|
+
opacity: 0;
|
|
5827
|
+
}
|
|
5828
|
+
}
|
|
5765
5829
|
@media (prefers-reduced-motion: reduce) {
|
|
5766
5830
|
.pimolu-accordion__chevron {
|
|
5767
5831
|
transition: none;
|
|
5768
5832
|
}
|
|
5769
|
-
.pimolu-accordion__content[data-state=open]
|
|
5833
|
+
.pimolu-accordion__content[data-state=open],
|
|
5834
|
+
.pimolu-accordion__content[hidden][data-state=closing] {
|
|
5770
5835
|
animation: none;
|
|
5771
5836
|
}
|
|
5772
5837
|
}
|
|
@@ -6319,8 +6384,78 @@
|
|
|
6319
6384
|
border-color: CanvasText;
|
|
6320
6385
|
}
|
|
6321
6386
|
}
|
|
6322
|
-
.pimolu-navbar--transparent {
|
|
6323
|
-
background: transparent;
|
|
6387
|
+
.pimolu-navbar--transparent {
|
|
6388
|
+
background: transparent;
|
|
6389
|
+
}
|
|
6390
|
+
.pimolu-navbar__menu {
|
|
6391
|
+
display: contents;
|
|
6392
|
+
}
|
|
6393
|
+
@container pimolu-navbar (max-width: 700px) {
|
|
6394
|
+
.pimolu-navbar[data-collapsible=true][data-open=true] .pimolu-navbar__content,
|
|
6395
|
+
.pimolu-navbar[data-collapsible=true][data-open=true] .pimolu-navbar__actions {
|
|
6396
|
+
animation: pimolu-navbar-reveal 180ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
6397
|
+
}
|
|
6398
|
+
}
|
|
6399
|
+
@keyframes pimolu-navbar-reveal {
|
|
6400
|
+
from {
|
|
6401
|
+
opacity: 0;
|
|
6402
|
+
transform: translateY(-4px);
|
|
6403
|
+
}
|
|
6404
|
+
to {
|
|
6405
|
+
opacity: 1;
|
|
6406
|
+
transform: translateY(0);
|
|
6407
|
+
}
|
|
6408
|
+
}
|
|
6409
|
+
.pimolu-navbar__menu-panel {
|
|
6410
|
+
display: flex;
|
|
6411
|
+
flex-direction: column;
|
|
6412
|
+
gap: var(--pimolu-spacing-4, 16px);
|
|
6413
|
+
padding-top: max(var(--pimolu-spacing-6, 24px), env(safe-area-inset-top));
|
|
6414
|
+
padding-bottom: max(var(--pimolu-spacing-6, 24px), env(safe-area-inset-bottom));
|
|
6415
|
+
}
|
|
6416
|
+
.pimolu-navbar__menu-panel .pimolu-navbar__content {
|
|
6417
|
+
display: flex;
|
|
6418
|
+
flex-direction: column;
|
|
6419
|
+
align-items: stretch;
|
|
6420
|
+
gap: var(--pimolu-spacing-1, 4px);
|
|
6421
|
+
width: 100%;
|
|
6422
|
+
order: initial;
|
|
6423
|
+
overflow: visible;
|
|
6424
|
+
}
|
|
6425
|
+
.pimolu-navbar__menu-panel .pimolu-navbar__item {
|
|
6426
|
+
width: 100%;
|
|
6427
|
+
min-height: 44px;
|
|
6428
|
+
white-space: normal;
|
|
6429
|
+
}
|
|
6430
|
+
.pimolu-navbar__menu-panel .pimolu-navbar__actions {
|
|
6431
|
+
display: flex;
|
|
6432
|
+
width: 100%;
|
|
6433
|
+
margin-inline-start: 0;
|
|
6434
|
+
padding-block-start: var(--pimolu-spacing-4, 16px);
|
|
6435
|
+
border-block-start: 1px solid var(--pimolu-border);
|
|
6436
|
+
}
|
|
6437
|
+
.pimolu-navbar__menu-panel .pimolu-drawer__header {
|
|
6438
|
+
padding-inline-end: 48px;
|
|
6439
|
+
}
|
|
6440
|
+
.pimolu-navbar__menu-panel .pimolu-drawer__close {
|
|
6441
|
+
z-index: 2;
|
|
6442
|
+
width: 44px;
|
|
6443
|
+
height: 44px;
|
|
6444
|
+
color: var(--pimolu-foreground);
|
|
6445
|
+
border: 1px solid var(--pimolu-border);
|
|
6446
|
+
background: var(--pimolu-muted);
|
|
6447
|
+
}
|
|
6448
|
+
.pimolu-drawer__content.pimolu-navbar__menu-panel--full {
|
|
6449
|
+
inset: 0;
|
|
6450
|
+
width: 100%;
|
|
6451
|
+
height: 100%;
|
|
6452
|
+
border-radius: 0;
|
|
6453
|
+
}
|
|
6454
|
+
.pimolu-navbar__menu-layer--instant,
|
|
6455
|
+
.pimolu-navbar__menu-layer--instant .pimolu-drawer__overlay,
|
|
6456
|
+
.pimolu-navbar__menu-layer--instant.pimolu-drawer__content {
|
|
6457
|
+
animation: none !important;
|
|
6458
|
+
transition: none !important;
|
|
6324
6459
|
}
|
|
6325
6460
|
.pimolu-navbar--floating {
|
|
6326
6461
|
border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
|
|
@@ -6598,6 +6733,14 @@
|
|
|
6598
6733
|
color: Highlight;
|
|
6599
6734
|
}
|
|
6600
6735
|
}
|
|
6736
|
+
.pimolu-sidebar {
|
|
6737
|
+
transition: width 220ms cubic-bezier(0.16, 1, 0.3, 1), padding 220ms ease-out;
|
|
6738
|
+
}
|
|
6739
|
+
@media (prefers-reduced-motion: reduce) {
|
|
6740
|
+
.pimolu-sidebar {
|
|
6741
|
+
transition: none;
|
|
6742
|
+
}
|
|
6743
|
+
}
|
|
6601
6744
|
}
|
|
6602
6745
|
|
|
6603
6746
|
/* src/navigation-menu.css */
|
|
@@ -7157,23 +7300,206 @@
|
|
|
7157
7300
|
}
|
|
7158
7301
|
}
|
|
7159
7302
|
|
|
7303
|
+
/* src/spinner.css */
|
|
7304
|
+
@layer pimolu {
|
|
7305
|
+
.pimolu-spinner {
|
|
7306
|
+
--pimolu-spinner-size: 20px;
|
|
7307
|
+
--pimolu-spinner-dot-size: calc(var(--pimolu-spinner-size) * 0.27);
|
|
7308
|
+
--pimolu-spinner-color: currentColor;
|
|
7309
|
+
display: inline-flex;
|
|
7310
|
+
align-items: center;
|
|
7311
|
+
justify-content: center;
|
|
7312
|
+
flex: 0 0 auto;
|
|
7313
|
+
box-sizing: border-box;
|
|
7314
|
+
min-width: 0;
|
|
7315
|
+
color: var(--pimolu-spinner-color);
|
|
7316
|
+
line-height: 1;
|
|
7317
|
+
vertical-align: middle;
|
|
7318
|
+
user-select: none;
|
|
7319
|
+
}
|
|
7320
|
+
.pimolu-spinner--xs {
|
|
7321
|
+
--pimolu-spinner-size: 12px;
|
|
7322
|
+
}
|
|
7323
|
+
.pimolu-spinner--sm {
|
|
7324
|
+
--pimolu-spinner-size: 16px;
|
|
7325
|
+
}
|
|
7326
|
+
.pimolu-spinner--md {
|
|
7327
|
+
--pimolu-spinner-size: 20px;
|
|
7328
|
+
}
|
|
7329
|
+
.pimolu-spinner--lg {
|
|
7330
|
+
--pimolu-spinner-size: 24px;
|
|
7331
|
+
}
|
|
7332
|
+
.pimolu-spinner--xl {
|
|
7333
|
+
--pimolu-spinner-size: 32px;
|
|
7334
|
+
}
|
|
7335
|
+
.pimolu-spinner--inherit {
|
|
7336
|
+
--pimolu-spinner-color: currentColor;
|
|
7337
|
+
}
|
|
7338
|
+
.pimolu-spinner--neutral {
|
|
7339
|
+
--pimolu-spinner-color: var(--pimolu-foreground, currentColor);
|
|
7340
|
+
}
|
|
7341
|
+
.pimolu-spinner--primary {
|
|
7342
|
+
--pimolu-spinner-color: var(--pimolu-primary, currentColor);
|
|
7343
|
+
}
|
|
7344
|
+
.pimolu-spinner--secondary {
|
|
7345
|
+
--pimolu-spinner-color: var(--pimolu-secondary, currentColor);
|
|
7346
|
+
}
|
|
7347
|
+
.pimolu-spinner--success {
|
|
7348
|
+
--pimolu-spinner-color: var(--pimolu-success, currentColor);
|
|
7349
|
+
}
|
|
7350
|
+
.pimolu-spinner--warning {
|
|
7351
|
+
--pimolu-spinner-color: var(--pimolu-warning, currentColor);
|
|
7352
|
+
}
|
|
7353
|
+
.pimolu-spinner--danger {
|
|
7354
|
+
--pimolu-spinner-color: var(--pimolu-danger, currentColor);
|
|
7355
|
+
}
|
|
7356
|
+
.pimolu-spinner__visual {
|
|
7357
|
+
display: inline-flex;
|
|
7358
|
+
align-items: center;
|
|
7359
|
+
justify-content: center;
|
|
7360
|
+
flex: 0 0 auto;
|
|
7361
|
+
width: var(--pimolu-spinner-size);
|
|
7362
|
+
height: var(--pimolu-spinner-size);
|
|
7363
|
+
}
|
|
7364
|
+
.pimolu-spinner__svg {
|
|
7365
|
+
display: block;
|
|
7366
|
+
width: 100%;
|
|
7367
|
+
height: 100%;
|
|
7368
|
+
overflow: visible;
|
|
7369
|
+
transform-origin: center;
|
|
7370
|
+
animation: pimolu-spinner-rotate 1s linear infinite;
|
|
7371
|
+
}
|
|
7372
|
+
.pimolu-spinner__track,
|
|
7373
|
+
.pimolu-spinner__indicator {
|
|
7374
|
+
fill: none;
|
|
7375
|
+
stroke: currentColor;
|
|
7376
|
+
stroke-width: 2.5;
|
|
7377
|
+
}
|
|
7378
|
+
.pimolu-spinner__track {
|
|
7379
|
+
opacity: 0.18;
|
|
7380
|
+
}
|
|
7381
|
+
.pimolu-spinner__indicator {
|
|
7382
|
+
stroke-linecap: round;
|
|
7383
|
+
}
|
|
7384
|
+
.pimolu-spinner--circular .pimolu-spinner__indicator {
|
|
7385
|
+
stroke-dasharray: 16 57;
|
|
7386
|
+
}
|
|
7387
|
+
.pimolu-spinner--arc .pimolu-spinner__indicator {
|
|
7388
|
+
stroke-dasharray: 42 57;
|
|
7389
|
+
}
|
|
7390
|
+
.pimolu-spinner--arc .pimolu-spinner__track {
|
|
7391
|
+
opacity: 0;
|
|
7392
|
+
}
|
|
7393
|
+
.pimolu-spinner--arc .pimolu-spinner__svg {
|
|
7394
|
+
animation-duration: 1.3s;
|
|
7395
|
+
}
|
|
7396
|
+
@keyframes pimolu-spinner-rotate {
|
|
7397
|
+
from {
|
|
7398
|
+
transform: rotate(0deg);
|
|
7399
|
+
}
|
|
7400
|
+
to {
|
|
7401
|
+
transform: rotate(360deg);
|
|
7402
|
+
}
|
|
7403
|
+
}
|
|
7404
|
+
.pimolu-spinner--dots .pimolu-spinner__visual {
|
|
7405
|
+
width: calc(var(--pimolu-spinner-size) * 1.5);
|
|
7406
|
+
gap: calc(var(--pimolu-spinner-size) * 0.14);
|
|
7407
|
+
}
|
|
7408
|
+
.pimolu-spinner__dot {
|
|
7409
|
+
display: block;
|
|
7410
|
+
flex: 0 0 auto;
|
|
7411
|
+
width: var(--pimolu-spinner-dot-size);
|
|
7412
|
+
height: var(--pimolu-spinner-dot-size);
|
|
7413
|
+
border-radius: 50%;
|
|
7414
|
+
background: currentColor;
|
|
7415
|
+
animation: pimolu-spinner-dot 1.1s ease-in-out infinite;
|
|
7416
|
+
}
|
|
7417
|
+
.pimolu-spinner__dot:nth-child(1) {
|
|
7418
|
+
animation-delay: -0.32s;
|
|
7419
|
+
}
|
|
7420
|
+
.pimolu-spinner__dot:nth-child(2) {
|
|
7421
|
+
animation-delay: -0.16s;
|
|
7422
|
+
}
|
|
7423
|
+
.pimolu-spinner__dot:nth-child(3) {
|
|
7424
|
+
animation-delay: 0s;
|
|
7425
|
+
}
|
|
7426
|
+
@keyframes pimolu-spinner-dot {
|
|
7427
|
+
0%, 80%, 100% {
|
|
7428
|
+
opacity: 0.35;
|
|
7429
|
+
transform: translateY(0);
|
|
7430
|
+
}
|
|
7431
|
+
40% {
|
|
7432
|
+
opacity: 1;
|
|
7433
|
+
transform: translateY(-25%);
|
|
7434
|
+
}
|
|
7435
|
+
}
|
|
7436
|
+
.pimolu-spinner__label {
|
|
7437
|
+
position: absolute;
|
|
7438
|
+
width: 1px;
|
|
7439
|
+
height: 1px;
|
|
7440
|
+
padding: 0;
|
|
7441
|
+
margin: -1px;
|
|
7442
|
+
overflow: hidden;
|
|
7443
|
+
clip: rect(0, 0, 0, 0);
|
|
7444
|
+
clip-path: inset(50%);
|
|
7445
|
+
white-space: nowrap;
|
|
7446
|
+
border: 0;
|
|
7447
|
+
}
|
|
7448
|
+
@media (prefers-reduced-motion: reduce) {
|
|
7449
|
+
.pimolu-spinner__svg,
|
|
7450
|
+
.pimolu-spinner__dot {
|
|
7451
|
+
animation: none;
|
|
7452
|
+
}
|
|
7453
|
+
.pimolu-spinner__dot {
|
|
7454
|
+
opacity: 1;
|
|
7455
|
+
transform: none;
|
|
7456
|
+
}
|
|
7457
|
+
}
|
|
7458
|
+
@media (forced-colors: active) {
|
|
7459
|
+
.pimolu-spinner {
|
|
7460
|
+
color: CanvasText;
|
|
7461
|
+
}
|
|
7462
|
+
.pimolu-spinner__track {
|
|
7463
|
+
opacity: 0.4;
|
|
7464
|
+
}
|
|
7465
|
+
.pimolu-spinner__dot {
|
|
7466
|
+
background: currentColor;
|
|
7467
|
+
}
|
|
7468
|
+
}
|
|
7469
|
+
}
|
|
7470
|
+
|
|
7160
7471
|
/* src/toast.css */
|
|
7161
7472
|
@layer pimolu {
|
|
7162
7473
|
.pimolu-toaster {
|
|
7474
|
+
--pimolu-toast-width: 24rem;
|
|
7475
|
+
--pimolu-toast-padding: 14px;
|
|
7476
|
+
--pimolu-toast-duration: 180ms;
|
|
7477
|
+
--pimolu-toast-easing: cubic-bezier(0.16, 1, 0.3, 1);
|
|
7163
7478
|
position: fixed;
|
|
7164
7479
|
z-index: 60;
|
|
7165
7480
|
display: grid;
|
|
7166
|
-
gap:
|
|
7167
|
-
width: min(
|
|
7481
|
+
gap: var(--pimolu-spacing-3, 12px);
|
|
7482
|
+
width: min(var(--pimolu-toast-width, 24rem), calc(100vw - 32px));
|
|
7483
|
+
max-height: calc(100dvh - 32px);
|
|
7484
|
+
overflow-y: auto;
|
|
7485
|
+
overscroll-behavior: contain;
|
|
7168
7486
|
pointer-events: none;
|
|
7169
7487
|
}
|
|
7488
|
+
.pimolu-toaster[data-position=top-left] {
|
|
7489
|
+
inset-block-start: 16px;
|
|
7490
|
+
inset-inline-start: 16px;
|
|
7491
|
+
}
|
|
7492
|
+
.pimolu-toaster[data-position=bottom-left] {
|
|
7493
|
+
inset-block-end: 16px;
|
|
7494
|
+
inset-inline-start: 16px;
|
|
7495
|
+
}
|
|
7170
7496
|
.pimolu-toaster[data-position=top-right] {
|
|
7171
7497
|
inset-block-start: 16px;
|
|
7172
7498
|
inset-inline-end: 16px;
|
|
7173
7499
|
}
|
|
7174
7500
|
.pimolu-toaster[data-position=top-center] {
|
|
7175
7501
|
inset-block-start: 16px;
|
|
7176
|
-
|
|
7502
|
+
left: 50%;
|
|
7177
7503
|
transform: translateX(-50%);
|
|
7178
7504
|
}
|
|
7179
7505
|
.pimolu-toaster[data-position=bottom-right] {
|
|
@@ -7182,7 +7508,7 @@
|
|
|
7182
7508
|
}
|
|
7183
7509
|
.pimolu-toaster[data-position=bottom-center] {
|
|
7184
7510
|
inset-block-end: 16px;
|
|
7185
|
-
|
|
7511
|
+
left: 50%;
|
|
7186
7512
|
transform: translateX(-50%);
|
|
7187
7513
|
}
|
|
7188
7514
|
.pimolu-toast {
|
|
@@ -7192,7 +7518,7 @@
|
|
|
7192
7518
|
justify-content: space-between;
|
|
7193
7519
|
gap: 12px;
|
|
7194
7520
|
box-sizing: border-box;
|
|
7195
|
-
padding:
|
|
7521
|
+
padding: var(--pimolu-toast-padding, 14px);
|
|
7196
7522
|
border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
|
|
7197
7523
|
border-inline-start: 3px solid var(--pimolu-toast-tone);
|
|
7198
7524
|
border-radius: var(--pimolu-radius-md, 8px);
|
|
@@ -7201,7 +7527,23 @@
|
|
|
7201
7527
|
box-shadow: var( --pimolu-shadow-raised, none );
|
|
7202
7528
|
font-family: var(--pimolu-font-body, inherit);
|
|
7203
7529
|
pointer-events: auto;
|
|
7204
|
-
animation: pimolu-toast-in
|
|
7530
|
+
animation: pimolu-toast-in var(--pimolu-toast-duration, 180ms) var(--pimolu-toast-easing, cubic-bezier(0.16, 1, 0.3, 1));
|
|
7531
|
+
}
|
|
7532
|
+
.pimolu-toast--info,
|
|
7533
|
+
.pimolu-toast--loading {
|
|
7534
|
+
--pimolu-toast-tone: var(--pimolu-primary);
|
|
7535
|
+
}
|
|
7536
|
+
.pimolu-toast__icon {
|
|
7537
|
+
display: inline-grid;
|
|
7538
|
+
place-items: center;
|
|
7539
|
+
flex: none;
|
|
7540
|
+
width: 20px;
|
|
7541
|
+
height: 20px;
|
|
7542
|
+
margin-block-start: 1px;
|
|
7543
|
+
color: var(--pimolu-toast-tone);
|
|
7544
|
+
}
|
|
7545
|
+
.pimolu-toast--default .pimolu-toast__icon {
|
|
7546
|
+
color: var(--pimolu-muted-foreground);
|
|
7205
7547
|
}
|
|
7206
7548
|
.pimolu-toast--success {
|
|
7207
7549
|
--pimolu-toast-tone: var(--pimolu-success, #15803d);
|
|
@@ -7216,6 +7558,7 @@
|
|
|
7216
7558
|
display: grid;
|
|
7217
7559
|
gap: 2px;
|
|
7218
7560
|
min-width: 0;
|
|
7561
|
+
flex: 1;
|
|
7219
7562
|
}
|
|
7220
7563
|
.pimolu-toast__title {
|
|
7221
7564
|
margin: 0;
|
|
@@ -7236,6 +7579,9 @@
|
|
|
7236
7579
|
align-items: center;
|
|
7237
7580
|
gap: 4px;
|
|
7238
7581
|
flex: none;
|
|
7582
|
+
flex-wrap: wrap;
|
|
7583
|
+
justify-content: flex-end;
|
|
7584
|
+
max-width: 45%;
|
|
7239
7585
|
}
|
|
7240
7586
|
.pimolu-toast__action {
|
|
7241
7587
|
padding: 2px 6px;
|
|
@@ -7247,15 +7593,21 @@
|
|
|
7247
7593
|
font-size: 0.8125rem;
|
|
7248
7594
|
font-weight: 600;
|
|
7249
7595
|
cursor: pointer;
|
|
7596
|
+
overflow-wrap: anywhere;
|
|
7250
7597
|
}
|
|
7251
7598
|
.pimolu-toast__action:hover {
|
|
7252
7599
|
background: var(--pimolu-muted);
|
|
7253
7600
|
}
|
|
7601
|
+
.pimolu-toast__action:disabled {
|
|
7602
|
+
opacity: 0.5;
|
|
7603
|
+
cursor: not-allowed;
|
|
7604
|
+
}
|
|
7254
7605
|
.pimolu-toast__close {
|
|
7255
7606
|
display: inline-grid;
|
|
7256
7607
|
place-items: center;
|
|
7257
|
-
width:
|
|
7258
|
-
height:
|
|
7608
|
+
width: 28px;
|
|
7609
|
+
height: 28px;
|
|
7610
|
+
flex: none;
|
|
7259
7611
|
padding: 0;
|
|
7260
7612
|
border: 0;
|
|
7261
7613
|
border-radius: var(--pimolu-radius-sm, 4px);
|
|
@@ -7264,6 +7616,16 @@
|
|
|
7264
7616
|
line-height: 0;
|
|
7265
7617
|
cursor: pointer;
|
|
7266
7618
|
}
|
|
7619
|
+
@media (pointer: coarse) {
|
|
7620
|
+
.pimolu-toast__action,
|
|
7621
|
+
.pimolu-toast__close {
|
|
7622
|
+
min-width: 44px;
|
|
7623
|
+
min-height: 44px;
|
|
7624
|
+
}
|
|
7625
|
+
}
|
|
7626
|
+
.pimolu-toaster:empty {
|
|
7627
|
+
pointer-events: none;
|
|
7628
|
+
}
|
|
7267
7629
|
.pimolu-toast__close:hover {
|
|
7268
7630
|
background: var(--pimolu-muted);
|
|
7269
7631
|
color: var(--pimolu-foreground);
|
|
@@ -13815,12 +14177,23 @@
|
|
|
13815
14177
|
justify-self: start;
|
|
13816
14178
|
}
|
|
13817
14179
|
.pimolu-form__error {
|
|
14180
|
+
animation: pimolu-form-feedback-in 180ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
13818
14181
|
margin: 0;
|
|
13819
14182
|
color: var(--pimolu-danger, #dc2626);
|
|
13820
14183
|
font-size: 0.8125rem;
|
|
13821
14184
|
line-height: 1.4;
|
|
13822
14185
|
overflow-wrap: anywhere;
|
|
13823
14186
|
}
|
|
14187
|
+
@keyframes pimolu-form-feedback-in {
|
|
14188
|
+
from {
|
|
14189
|
+
opacity: 0;
|
|
14190
|
+
transform: translateY(-3px);
|
|
14191
|
+
}
|
|
14192
|
+
to {
|
|
14193
|
+
opacity: 1;
|
|
14194
|
+
transform: translateY(0);
|
|
14195
|
+
}
|
|
14196
|
+
}
|
|
13824
14197
|
@media (forced-colors: active) {
|
|
13825
14198
|
.pimolu-form__error {
|
|
13826
14199
|
color: LinkText;
|
|
@@ -16615,6 +16988,43 @@
|
|
|
16615
16988
|
}
|
|
16616
16989
|
}
|
|
16617
16990
|
|
|
16991
|
+
/* src/motion.css */
|
|
16992
|
+
@layer pimolu {
|
|
16993
|
+
:root {
|
|
16994
|
+
--pimolu-interaction-duration: 150ms;
|
|
16995
|
+
--pimolu-interaction-easing: ease-out;
|
|
16996
|
+
}
|
|
16997
|
+
:where(.pimolu-card, .pimolu-badge, .pimolu-avatar, .pimolu-table__row, .pimolu-command__item, .pimolu-toolbar__button, .pimolu-toolbar__link, .pimolu-navbar__item, .pimolu-navbar__toggle, .pimolu-accordion__trigger) {
|
|
16998
|
+
transition:
|
|
16999
|
+
background-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
|
|
17000
|
+
border-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
|
|
17001
|
+
color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
|
|
17002
|
+
box-shadow var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out);
|
|
17003
|
+
}
|
|
17004
|
+
:where([data-pimolu-motion=off], [data-pimolu-motion=off] *),
|
|
17005
|
+
:where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::before,
|
|
17006
|
+
:where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::after {
|
|
17007
|
+
animation: none !important;
|
|
17008
|
+
transition: none !important;
|
|
17009
|
+
scroll-behavior: auto !important;
|
|
17010
|
+
}
|
|
17011
|
+
:where([data-pimolu-motion=off]) .pimolu-accordion__content[hidden] {
|
|
17012
|
+
display: none !important;
|
|
17013
|
+
}
|
|
17014
|
+
@media (prefers-reduced-motion: reduce) {
|
|
17015
|
+
:where([class^=pimolu-], [class*=" pimolu-"]),
|
|
17016
|
+
:where([class^=pimolu-], [class*=" pimolu-"])::before,
|
|
17017
|
+
:where([class^=pimolu-], [class*=" pimolu-"])::after {
|
|
17018
|
+
animation: none !important;
|
|
17019
|
+
transition: none !important;
|
|
17020
|
+
scroll-behavior: auto !important;
|
|
17021
|
+
}
|
|
17022
|
+
.pimolu-accordion__content[hidden] {
|
|
17023
|
+
display: none !important;
|
|
17024
|
+
}
|
|
17025
|
+
}
|
|
17026
|
+
}
|
|
17027
|
+
|
|
16618
17028
|
/* src/toolbar.css */
|
|
16619
17029
|
@layer pimolu {
|
|
16620
17030
|
.pimolu-toolbar {
|
|
@@ -21560,6 +21970,11 @@
|
|
|
21560
21970
|
color: var(--pimolu-muted-foreground);
|
|
21561
21971
|
opacity: 1;
|
|
21562
21972
|
}
|
|
21973
|
+
.pimolu-input__control:is(:autofill, :-webkit-autofill) {
|
|
21974
|
+
-webkit-background-clip: text;
|
|
21975
|
+
background-clip: text;
|
|
21976
|
+
-webkit-text-fill-color: var(--pimolu-foreground);
|
|
21977
|
+
}
|
|
21563
21978
|
.pimolu-input__control::-webkit-search-cancel-button,
|
|
21564
21979
|
.pimolu-input__control::-webkit-search-decoration {
|
|
21565
21980
|
-webkit-appearance: none;
|
|
@@ -21748,6 +22163,11 @@
|
|
|
21748
22163
|
}
|
|
21749
22164
|
}
|
|
21750
22165
|
@media (forced-colors: active) {
|
|
22166
|
+
.pimolu-input__control:is(:autofill, :-webkit-autofill) {
|
|
22167
|
+
-webkit-background-clip: border-box;
|
|
22168
|
+
background-clip: border-box;
|
|
22169
|
+
-webkit-text-fill-color: CanvasText;
|
|
22170
|
+
}
|
|
21751
22171
|
.pimolu-input__wrapper:focus-within {
|
|
21752
22172
|
outline: 2px solid Highlight;
|
|
21753
22173
|
outline-offset: 2px;
|