@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/README.fr.md
CHANGED
|
@@ -6,7 +6,7 @@ La couche de style derrière Pimolu UI. Chargez une feuille complète, optez pou
|
|
|
6
6
|
|
|
7
7
|
[Démarrage rapide](https://pimolu.com/docs/quick-start) · [Thèmes](https://pimolu.com/docs/theming) · [Personnalisation](https://github.com/pimoludev/ui/blob/main/docs/CUSTOMIZATION.md) · [Source](https://github.com/pimoludev/ui/tree/main/packages/web-styles)
|
|
8
8
|
|
|
9
|
-
> **Bêta :** `0.1.0-beta.
|
|
9
|
+
> **Bêta :** `0.1.0-beta.5` est une prévisualisation. Les entrées CSS publiques et les tokens visuels peuvent évoluer avant `1.0.0`.
|
|
10
10
|
|
|
11
11
|
## Pourquoi les styles Pimolu ?
|
|
12
12
|
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ The styling layer behind Pimolu UI. Load one complete stylesheet, opt into predi
|
|
|
6
6
|
|
|
7
7
|
[Quick start](https://pimolu.com/docs/quick-start) · [Theming](https://pimolu.com/docs/theming) · [Customization](https://github.com/pimoludev/ui/blob/main/docs/CUSTOMIZATION.md) · [Source](https://github.com/pimoludev/ui/tree/main/packages/web-styles)
|
|
8
8
|
|
|
9
|
-
> **Beta:** `0.1.0-beta.
|
|
9
|
+
> **Beta:** `0.1.0-beta.5` is a preview. Public CSS entry points and visual tokens may change before `1.0.0`.
|
|
10
10
|
|
|
11
11
|
## Why Pimolu styles?
|
|
12
12
|
|
package/dist/accordion.css
CHANGED
|
@@ -1,3 +1,38 @@
|
|
|
1
|
+
/* src/motion.css */
|
|
2
|
+
:root {
|
|
3
|
+
--pimolu-interaction-duration: 150ms;
|
|
4
|
+
--pimolu-interaction-easing: ease-out;
|
|
5
|
+
}
|
|
6
|
+
: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) {
|
|
7
|
+
transition:
|
|
8
|
+
background-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
|
|
9
|
+
border-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
|
|
10
|
+
color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
|
|
11
|
+
box-shadow var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out);
|
|
12
|
+
}
|
|
13
|
+
:where([data-pimolu-motion=off], [data-pimolu-motion=off] *),
|
|
14
|
+
:where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::before,
|
|
15
|
+
:where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::after {
|
|
16
|
+
animation: none !important;
|
|
17
|
+
transition: none !important;
|
|
18
|
+
scroll-behavior: auto !important;
|
|
19
|
+
}
|
|
20
|
+
:where([data-pimolu-motion=off]) .pimolu-accordion__content[hidden] {
|
|
21
|
+
display: none !important;
|
|
22
|
+
}
|
|
23
|
+
@media (prefers-reduced-motion: reduce) {
|
|
24
|
+
:where([class^=pimolu-], [class*=" pimolu-"]),
|
|
25
|
+
:where([class^=pimolu-], [class*=" pimolu-"])::before,
|
|
26
|
+
:where([class^=pimolu-], [class*=" pimolu-"])::after {
|
|
27
|
+
animation: none !important;
|
|
28
|
+
transition: none !important;
|
|
29
|
+
scroll-behavior: auto !important;
|
|
30
|
+
}
|
|
31
|
+
.pimolu-accordion__content[hidden] {
|
|
32
|
+
display: none !important;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
1
36
|
/* src/accordion.css */
|
|
2
37
|
.pimolu-accordion {
|
|
3
38
|
min-width: 0;
|
|
@@ -76,13 +111,32 @@
|
|
|
76
111
|
transform: rotate(180deg);
|
|
77
112
|
}
|
|
78
113
|
.pimolu-accordion__content {
|
|
114
|
+
display: grid;
|
|
115
|
+
grid-template-rows: 1fr;
|
|
79
116
|
min-width: 0;
|
|
80
117
|
color: var(--pimolu-muted-foreground);
|
|
81
118
|
font-size: 0.875rem;
|
|
82
119
|
line-height: 1.6;
|
|
83
120
|
}
|
|
121
|
+
.pimolu-accordion__content[hidden] {
|
|
122
|
+
display: none;
|
|
123
|
+
}
|
|
124
|
+
.pimolu-accordion__content-clip {
|
|
125
|
+
min-height: 0;
|
|
126
|
+
overflow: hidden;
|
|
127
|
+
}
|
|
84
128
|
.pimolu-accordion__content[data-state=open] {
|
|
85
|
-
animation: pimolu-accordion-in
|
|
129
|
+
animation: pimolu-accordion-in 220ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
130
|
+
}
|
|
131
|
+
.pimolu-accordion__content[hidden][data-state=closing] {
|
|
132
|
+
display: grid;
|
|
133
|
+
animation: pimolu-accordion-out 220ms cubic-bezier(0.4, 0, 1, 1) both;
|
|
134
|
+
}
|
|
135
|
+
.pimolu-accordion[data-animated=false] .pimolu-accordion__content {
|
|
136
|
+
animation: none;
|
|
137
|
+
}
|
|
138
|
+
.pimolu-accordion[data-animated=false] .pimolu-accordion__chevron {
|
|
139
|
+
transition: none;
|
|
86
140
|
}
|
|
87
141
|
.pimolu-accordion__content-inner {
|
|
88
142
|
padding: 0 0 16px;
|
|
@@ -96,19 +150,32 @@
|
|
|
96
150
|
}
|
|
97
151
|
@keyframes pimolu-accordion-in {
|
|
98
152
|
from {
|
|
153
|
+
grid-template-rows: 0fr;
|
|
99
154
|
opacity: 0;
|
|
100
155
|
transform: translateY(-3px);
|
|
101
156
|
}
|
|
102
157
|
to {
|
|
158
|
+
grid-template-rows: 1fr;
|
|
103
159
|
opacity: 1;
|
|
104
160
|
transform: translateY(0);
|
|
105
161
|
}
|
|
106
162
|
}
|
|
163
|
+
@keyframes pimolu-accordion-out {
|
|
164
|
+
from {
|
|
165
|
+
grid-template-rows: 1fr;
|
|
166
|
+
opacity: 1;
|
|
167
|
+
}
|
|
168
|
+
to {
|
|
169
|
+
grid-template-rows: 0fr;
|
|
170
|
+
opacity: 0;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
107
173
|
@media (prefers-reduced-motion: reduce) {
|
|
108
174
|
.pimolu-accordion__chevron {
|
|
109
175
|
transition: none;
|
|
110
176
|
}
|
|
111
|
-
.pimolu-accordion__content[data-state=open]
|
|
177
|
+
.pimolu-accordion__content[data-state=open],
|
|
178
|
+
.pimolu-accordion__content[hidden][data-state=closing] {
|
|
112
179
|
animation: none;
|
|
113
180
|
}
|
|
114
181
|
}
|
package/dist/avatar.css
CHANGED
|
@@ -1,3 +1,38 @@
|
|
|
1
|
+
/* src/motion.css */
|
|
2
|
+
:root {
|
|
3
|
+
--pimolu-interaction-duration: 150ms;
|
|
4
|
+
--pimolu-interaction-easing: ease-out;
|
|
5
|
+
}
|
|
6
|
+
: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) {
|
|
7
|
+
transition:
|
|
8
|
+
background-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
|
|
9
|
+
border-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
|
|
10
|
+
color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
|
|
11
|
+
box-shadow var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out);
|
|
12
|
+
}
|
|
13
|
+
:where([data-pimolu-motion=off], [data-pimolu-motion=off] *),
|
|
14
|
+
:where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::before,
|
|
15
|
+
:where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::after {
|
|
16
|
+
animation: none !important;
|
|
17
|
+
transition: none !important;
|
|
18
|
+
scroll-behavior: auto !important;
|
|
19
|
+
}
|
|
20
|
+
:where([data-pimolu-motion=off]) .pimolu-accordion__content[hidden] {
|
|
21
|
+
display: none !important;
|
|
22
|
+
}
|
|
23
|
+
@media (prefers-reduced-motion: reduce) {
|
|
24
|
+
:where([class^=pimolu-], [class*=" pimolu-"]),
|
|
25
|
+
:where([class^=pimolu-], [class*=" pimolu-"])::before,
|
|
26
|
+
:where([class^=pimolu-], [class*=" pimolu-"])::after {
|
|
27
|
+
animation: none !important;
|
|
28
|
+
transition: none !important;
|
|
29
|
+
scroll-behavior: auto !important;
|
|
30
|
+
}
|
|
31
|
+
.pimolu-accordion__content[hidden] {
|
|
32
|
+
display: none !important;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
1
36
|
/* src/avatar.css */
|
|
2
37
|
.pimolu-avatar {
|
|
3
38
|
--pimolu-avatar-size: 40px;
|
package/dist/badge.css
CHANGED
|
@@ -1,3 +1,38 @@
|
|
|
1
|
+
/* src/motion.css */
|
|
2
|
+
:root {
|
|
3
|
+
--pimolu-interaction-duration: 150ms;
|
|
4
|
+
--pimolu-interaction-easing: ease-out;
|
|
5
|
+
}
|
|
6
|
+
: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) {
|
|
7
|
+
transition:
|
|
8
|
+
background-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
|
|
9
|
+
border-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
|
|
10
|
+
color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
|
|
11
|
+
box-shadow var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out);
|
|
12
|
+
}
|
|
13
|
+
:where([data-pimolu-motion=off], [data-pimolu-motion=off] *),
|
|
14
|
+
:where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::before,
|
|
15
|
+
:where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::after {
|
|
16
|
+
animation: none !important;
|
|
17
|
+
transition: none !important;
|
|
18
|
+
scroll-behavior: auto !important;
|
|
19
|
+
}
|
|
20
|
+
:where([data-pimolu-motion=off]) .pimolu-accordion__content[hidden] {
|
|
21
|
+
display: none !important;
|
|
22
|
+
}
|
|
23
|
+
@media (prefers-reduced-motion: reduce) {
|
|
24
|
+
:where([class^=pimolu-], [class*=" pimolu-"]),
|
|
25
|
+
:where([class^=pimolu-], [class*=" pimolu-"])::before,
|
|
26
|
+
:where([class^=pimolu-], [class*=" pimolu-"])::after {
|
|
27
|
+
animation: none !important;
|
|
28
|
+
transition: none !important;
|
|
29
|
+
scroll-behavior: auto !important;
|
|
30
|
+
}
|
|
31
|
+
.pimolu-accordion__content[hidden] {
|
|
32
|
+
display: none !important;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
1
36
|
/* src/badge.css */
|
|
2
37
|
.pimolu-badge {
|
|
3
38
|
--pimolu-badge-height: 24px;
|
package/dist/button.css
CHANGED
|
@@ -202,6 +202,12 @@
|
|
|
202
202
|
align-items: center;
|
|
203
203
|
justify-content: center;
|
|
204
204
|
}
|
|
205
|
+
.pimolu-button__loading-indicator {
|
|
206
|
+
display: inline-flex;
|
|
207
|
+
align-items: center;
|
|
208
|
+
justify-content: center;
|
|
209
|
+
flex-shrink: 0;
|
|
210
|
+
}
|
|
205
211
|
.pimolu-button__spinner {
|
|
206
212
|
width: 1em;
|
|
207
213
|
height: 1em;
|
package/dist/card.css
CHANGED
|
@@ -1,3 +1,38 @@
|
|
|
1
|
+
/* src/motion.css */
|
|
2
|
+
:root {
|
|
3
|
+
--pimolu-interaction-duration: 150ms;
|
|
4
|
+
--pimolu-interaction-easing: ease-out;
|
|
5
|
+
}
|
|
6
|
+
: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) {
|
|
7
|
+
transition:
|
|
8
|
+
background-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
|
|
9
|
+
border-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
|
|
10
|
+
color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
|
|
11
|
+
box-shadow var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out);
|
|
12
|
+
}
|
|
13
|
+
:where([data-pimolu-motion=off], [data-pimolu-motion=off] *),
|
|
14
|
+
:where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::before,
|
|
15
|
+
:where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::after {
|
|
16
|
+
animation: none !important;
|
|
17
|
+
transition: none !important;
|
|
18
|
+
scroll-behavior: auto !important;
|
|
19
|
+
}
|
|
20
|
+
:where([data-pimolu-motion=off]) .pimolu-accordion__content[hidden] {
|
|
21
|
+
display: none !important;
|
|
22
|
+
}
|
|
23
|
+
@media (prefers-reduced-motion: reduce) {
|
|
24
|
+
:where([class^=pimolu-], [class*=" pimolu-"]),
|
|
25
|
+
:where([class^=pimolu-], [class*=" pimolu-"])::before,
|
|
26
|
+
:where([class^=pimolu-], [class*=" pimolu-"])::after {
|
|
27
|
+
animation: none !important;
|
|
28
|
+
transition: none !important;
|
|
29
|
+
scroll-behavior: auto !important;
|
|
30
|
+
}
|
|
31
|
+
.pimolu-accordion__content[hidden] {
|
|
32
|
+
display: none !important;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
1
36
|
/* src/card.css */
|
|
2
37
|
.pimolu-card {
|
|
3
38
|
--pimolu-card-padding: 16px;
|
package/dist/command.css
CHANGED
|
@@ -1,3 +1,38 @@
|
|
|
1
|
+
/* src/motion.css */
|
|
2
|
+
:root {
|
|
3
|
+
--pimolu-interaction-duration: 150ms;
|
|
4
|
+
--pimolu-interaction-easing: ease-out;
|
|
5
|
+
}
|
|
6
|
+
: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) {
|
|
7
|
+
transition:
|
|
8
|
+
background-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
|
|
9
|
+
border-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
|
|
10
|
+
color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
|
|
11
|
+
box-shadow var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out);
|
|
12
|
+
}
|
|
13
|
+
:where([data-pimolu-motion=off], [data-pimolu-motion=off] *),
|
|
14
|
+
:where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::before,
|
|
15
|
+
:where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::after {
|
|
16
|
+
animation: none !important;
|
|
17
|
+
transition: none !important;
|
|
18
|
+
scroll-behavior: auto !important;
|
|
19
|
+
}
|
|
20
|
+
:where([data-pimolu-motion=off]) .pimolu-accordion__content[hidden] {
|
|
21
|
+
display: none !important;
|
|
22
|
+
}
|
|
23
|
+
@media (prefers-reduced-motion: reduce) {
|
|
24
|
+
:where([class^=pimolu-], [class*=" pimolu-"]),
|
|
25
|
+
:where([class^=pimolu-], [class*=" pimolu-"])::before,
|
|
26
|
+
:where([class^=pimolu-], [class*=" pimolu-"])::after {
|
|
27
|
+
animation: none !important;
|
|
28
|
+
transition: none !important;
|
|
29
|
+
scroll-behavior: auto !important;
|
|
30
|
+
}
|
|
31
|
+
.pimolu-accordion__content[hidden] {
|
|
32
|
+
display: none !important;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
1
36
|
/* src/command.css */
|
|
2
37
|
.pimolu-command {
|
|
3
38
|
display: flex;
|
package/dist/form-field.css
CHANGED
|
@@ -1,4 +1,52 @@
|
|
|
1
|
+
/* src/motion.css */
|
|
2
|
+
:root {
|
|
3
|
+
--pimolu-interaction-duration: 150ms;
|
|
4
|
+
--pimolu-interaction-easing: ease-out;
|
|
5
|
+
}
|
|
6
|
+
: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) {
|
|
7
|
+
transition:
|
|
8
|
+
background-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
|
|
9
|
+
border-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
|
|
10
|
+
color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
|
|
11
|
+
box-shadow var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out);
|
|
12
|
+
}
|
|
13
|
+
:where([data-pimolu-motion=off], [data-pimolu-motion=off] *),
|
|
14
|
+
:where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::before,
|
|
15
|
+
:where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::after {
|
|
16
|
+
animation: none !important;
|
|
17
|
+
transition: none !important;
|
|
18
|
+
scroll-behavior: auto !important;
|
|
19
|
+
}
|
|
20
|
+
:where([data-pimolu-motion=off]) .pimolu-accordion__content[hidden] {
|
|
21
|
+
display: none !important;
|
|
22
|
+
}
|
|
23
|
+
@media (prefers-reduced-motion: reduce) {
|
|
24
|
+
:where([class^=pimolu-], [class*=" pimolu-"]),
|
|
25
|
+
:where([class^=pimolu-], [class*=" pimolu-"])::before,
|
|
26
|
+
:where([class^=pimolu-], [class*=" pimolu-"])::after {
|
|
27
|
+
animation: none !important;
|
|
28
|
+
transition: none !important;
|
|
29
|
+
scroll-behavior: auto !important;
|
|
30
|
+
}
|
|
31
|
+
.pimolu-accordion__content[hidden] {
|
|
32
|
+
display: none !important;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
1
36
|
/* src/form-field.css */
|
|
37
|
+
.pimolu-form-message--error {
|
|
38
|
+
animation: pimolu-field-feedback-in 180ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
39
|
+
}
|
|
40
|
+
@keyframes pimolu-field-feedback-in {
|
|
41
|
+
from {
|
|
42
|
+
opacity: 0;
|
|
43
|
+
transform: translateY(-3px);
|
|
44
|
+
}
|
|
45
|
+
to {
|
|
46
|
+
opacity: 1;
|
|
47
|
+
transform: translateY(0);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
2
50
|
.pimolu-form-field {
|
|
3
51
|
display: grid;
|
|
4
52
|
gap: 6px;
|
package/dist/form.css
CHANGED
|
@@ -1,3 +1,38 @@
|
|
|
1
|
+
/* src/motion.css */
|
|
2
|
+
:root {
|
|
3
|
+
--pimolu-interaction-duration: 150ms;
|
|
4
|
+
--pimolu-interaction-easing: ease-out;
|
|
5
|
+
}
|
|
6
|
+
: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) {
|
|
7
|
+
transition:
|
|
8
|
+
background-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
|
|
9
|
+
border-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
|
|
10
|
+
color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
|
|
11
|
+
box-shadow var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out);
|
|
12
|
+
}
|
|
13
|
+
:where([data-pimolu-motion=off], [data-pimolu-motion=off] *),
|
|
14
|
+
:where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::before,
|
|
15
|
+
:where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::after {
|
|
16
|
+
animation: none !important;
|
|
17
|
+
transition: none !important;
|
|
18
|
+
scroll-behavior: auto !important;
|
|
19
|
+
}
|
|
20
|
+
:where([data-pimolu-motion=off]) .pimolu-accordion__content[hidden] {
|
|
21
|
+
display: none !important;
|
|
22
|
+
}
|
|
23
|
+
@media (prefers-reduced-motion: reduce) {
|
|
24
|
+
:where([class^=pimolu-], [class*=" pimolu-"]),
|
|
25
|
+
:where([class^=pimolu-], [class*=" pimolu-"])::before,
|
|
26
|
+
:where([class^=pimolu-], [class*=" pimolu-"])::after {
|
|
27
|
+
animation: none !important;
|
|
28
|
+
transition: none !important;
|
|
29
|
+
scroll-behavior: auto !important;
|
|
30
|
+
}
|
|
31
|
+
.pimolu-accordion__content[hidden] {
|
|
32
|
+
display: none !important;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
1
36
|
/* src/form.css */
|
|
2
37
|
.pimolu-form {
|
|
3
38
|
display: grid;
|
|
@@ -11,12 +46,23 @@
|
|
|
11
46
|
justify-self: start;
|
|
12
47
|
}
|
|
13
48
|
.pimolu-form__error {
|
|
49
|
+
animation: pimolu-form-feedback-in 180ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
14
50
|
margin: 0;
|
|
15
51
|
color: var(--pimolu-danger, #dc2626);
|
|
16
52
|
font-size: 0.8125rem;
|
|
17
53
|
line-height: 1.4;
|
|
18
54
|
overflow-wrap: anywhere;
|
|
19
55
|
}
|
|
56
|
+
@keyframes pimolu-form-feedback-in {
|
|
57
|
+
from {
|
|
58
|
+
opacity: 0;
|
|
59
|
+
transform: translateY(-3px);
|
|
60
|
+
}
|
|
61
|
+
to {
|
|
62
|
+
opacity: 1;
|
|
63
|
+
transform: translateY(0);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
20
66
|
@media (forced-colors: active) {
|
|
21
67
|
.pimolu-form__error {
|
|
22
68
|
color: LinkText;
|
package/dist/input-group.css
CHANGED
|
@@ -63,6 +63,11 @@
|
|
|
63
63
|
color: var(--pimolu-muted-foreground);
|
|
64
64
|
opacity: 1;
|
|
65
65
|
}
|
|
66
|
+
.pimolu-input__control:is(:autofill, :-webkit-autofill) {
|
|
67
|
+
-webkit-background-clip: text;
|
|
68
|
+
background-clip: text;
|
|
69
|
+
-webkit-text-fill-color: var(--pimolu-foreground);
|
|
70
|
+
}
|
|
66
71
|
.pimolu-input__control::-webkit-search-cancel-button,
|
|
67
72
|
.pimolu-input__control::-webkit-search-decoration {
|
|
68
73
|
-webkit-appearance: none;
|
|
@@ -251,6 +256,11 @@
|
|
|
251
256
|
}
|
|
252
257
|
}
|
|
253
258
|
@media (forced-colors: active) {
|
|
259
|
+
.pimolu-input__control:is(:autofill, :-webkit-autofill) {
|
|
260
|
+
-webkit-background-clip: border-box;
|
|
261
|
+
background-clip: border-box;
|
|
262
|
+
-webkit-text-fill-color: CanvasText;
|
|
263
|
+
}
|
|
254
264
|
.pimolu-input__wrapper:focus-within {
|
|
255
265
|
outline: 2px solid Highlight;
|
|
256
266
|
outline-offset: 2px;
|
package/dist/input.css
CHANGED
|
@@ -63,6 +63,11 @@
|
|
|
63
63
|
color: var(--pimolu-muted-foreground);
|
|
64
64
|
opacity: 1;
|
|
65
65
|
}
|
|
66
|
+
.pimolu-input__control:is(:autofill, :-webkit-autofill) {
|
|
67
|
+
-webkit-background-clip: text;
|
|
68
|
+
background-clip: text;
|
|
69
|
+
-webkit-text-fill-color: var(--pimolu-foreground);
|
|
70
|
+
}
|
|
66
71
|
.pimolu-input__control::-webkit-search-cancel-button,
|
|
67
72
|
.pimolu-input__control::-webkit-search-decoration {
|
|
68
73
|
-webkit-appearance: none;
|
|
@@ -251,6 +256,11 @@
|
|
|
251
256
|
}
|
|
252
257
|
}
|
|
253
258
|
@media (forced-colors: active) {
|
|
259
|
+
.pimolu-input__control:is(:autofill, :-webkit-autofill) {
|
|
260
|
+
-webkit-background-clip: border-box;
|
|
261
|
+
background-clip: border-box;
|
|
262
|
+
-webkit-text-fill-color: CanvasText;
|
|
263
|
+
}
|
|
254
264
|
.pimolu-input__wrapper:focus-within {
|
|
255
265
|
outline: 2px solid Highlight;
|
|
256
266
|
outline-offset: 2px;
|