@pimolu/web-styles 0.0.0-stage → 0.1.0-beta.10
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 -0
- package/README.md +124 -2
- package/dist/accordion.css +194 -0
- package/dist/alert.css +147 -0
- package/dist/anchor.css +121 -0
- package/dist/api-table.css +111 -0
- package/dist/app-shell.css +237 -0
- package/dist/arc-carousel.css +261 -0
- package/dist/aspect-ratio.css +34 -0
- package/dist/audio-player.css +327 -0
- package/dist/avatar-group.css +58 -0
- package/dist/avatar.css +130 -0
- package/dist/badge.css +185 -0
- package/dist/banner.css +145 -0
- package/dist/box.css +39 -0
- package/dist/breadcrumbs.css +48 -0
- package/dist/button-group.css +84 -0
- package/dist/button.css +284 -0
- package/dist/calendar.css +221 -0
- package/dist/card.css +163 -0
- package/dist/carousel.css +244 -0
- package/dist/cascader.css +273 -0
- package/dist/center.css +20 -0
- package/dist/chart.css +377 -0
- package/dist/chat.css +518 -0
- package/dist/checkbox.css +184 -0
- package/dist/circular-progress.css +125 -0
- package/dist/code-block.css +169 -0
- package/dist/code.css +81 -0
- package/dist/color-picker.css +295 -0
- package/dist/combobox.css +306 -0
- package/dist/command.css +241 -0
- package/dist/container.css +36 -0
- package/dist/context-menu.css +105 -0
- package/dist/coverflow-carousel.css +251 -0
- package/dist/currency-input.css +134 -0
- package/dist/dashboard-layout.css +244 -0
- package/dist/data-grid.css +515 -0
- package/dist/data-table.css +191 -0
- package/dist/date-picker.css +200 -0
- package/dist/date-range-picker.css +260 -0
- package/dist/description-list.css +76 -0
- package/dist/dialog.css +183 -0
- package/dist/docs-layout.css +196 -0
- package/dist/drawer.css +219 -0
- package/dist/dropdown-menu.css +82 -0
- package/dist/dropzone.css +248 -0
- package/dist/empty-state.css +120 -0
- package/dist/file-manager.css +408 -0
- package/dist/file-upload.css +235 -0
- package/dist/flex.css +70 -0
- package/dist/focus-scope.css +13 -0
- package/dist/footer.css +200 -0
- package/dist/form-field.css +141 -0
- package/dist/form.css +75 -0
- package/dist/gantt.css +406 -0
- package/dist/grid.css +51 -0
- package/dist/hero.css +176 -0
- package/dist/hover-card.css +76 -0
- package/dist/image-cropper.css +431 -0
- package/dist/image.css +158 -0
- package/dist/input-group.css +447 -0
- package/dist/input.css +271 -0
- package/dist/kanban.css +473 -0
- package/dist/label.css +39 -0
- package/dist/layered.css +23822 -0
- package/dist/lightbox.css +286 -0
- package/dist/link.css +66 -0
- package/dist/list.css +111 -0
- package/dist/loading-overlay.css +103 -0
- package/dist/masked-input.css +134 -0
- package/dist/mentions.css +212 -0
- package/dist/menubar.css +140 -0
- package/dist/modal.css +186 -0
- package/dist/motion.css +36 -0
- package/dist/multi-carousel.css +260 -0
- package/dist/multi-select.css +399 -0
- package/dist/navbar.css +574 -0
- package/dist/navigation-menu.css +132 -0
- package/dist/notification-center.css +331 -0
- package/dist/number-input.css +196 -0
- package/dist/page-header.css +169 -0
- package/dist/pagination.css +92 -0
- package/dist/password-input.css +303 -0
- package/dist/pdf-viewer.css +148 -0
- package/dist/peek-carousel.css +250 -0
- package/dist/phone-input.css +182 -0
- package/dist/pimolu.css +23521 -0
- package/dist/pimolu.min.css +1 -0
- package/dist/pin-input.css +121 -0
- package/dist/popconfirm.css +95 -0
- package/dist/popover.css +94 -0
- package/dist/progress.css +105 -0
- package/dist/prose.css +296 -0
- package/dist/qr-code.css +17 -0
- package/dist/radio.css +220 -0
- package/dist/range-slider.css +221 -0
- package/dist/rating.css +122 -0
- package/dist/resizable.css +122 -0
- package/dist/result.css +118 -0
- package/dist/scheduler.css +385 -0
- package/dist/scroll-area.css +55 -0
- package/dist/search-input.css +41 -0
- package/dist/segmented-control.css +176 -0
- package/dist/select.css +298 -0
- package/dist/separator.css +66 -0
- package/dist/sidebar.css +308 -0
- package/dist/signature.css +189 -0
- package/dist/skeleton.css +90 -0
- package/dist/slider.css +233 -0
- package/dist/spacer.css +20 -0
- package/dist/spinner.css +165 -0
- package/dist/split-button.css +100 -0
- package/dist/stack-carousel.css +250 -0
- package/dist/stack.css +58 -0
- package/dist/stat.css +159 -0
- package/dist/stepper.css +155 -0
- package/dist/switch.css +194 -0
- package/dist/table-of-contents.css +90 -0
- package/dist/table.css +184 -0
- package/dist/tabs.css +424 -0
- package/dist/tags-input.css +236 -0
- package/dist/textarea.css +208 -0
- package/dist/theme-builder.css +269 -0
- package/dist/themes.css +129 -0
- package/dist/thumbnail-carousel.css +244 -0
- package/dist/time-picker.css +174 -0
- package/dist/timeline.css +195 -0
- package/dist/toast.css +356 -0
- package/dist/toggle-group.css +21 -0
- package/dist/toggle.css +102 -0
- package/dist/tokens.css +902 -0
- package/dist/toolbar.css +161 -0
- package/dist/tooltip.css +95 -0
- package/dist/tour.css +196 -0
- package/dist/transfer.css +426 -0
- package/dist/tree-select.css +340 -0
- package/dist/tree-table.css +173 -0
- package/dist/tree-view.css +83 -0
- package/dist/typography.css +92 -0
- package/dist/video-player.css +299 -0
- package/dist/virtual-list.css +59 -0
- package/dist/visually-hidden.css +44 -0
- package/dist/watermark.css +41 -0
- package/package.json +174 -4
package/dist/footer.css
ADDED
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
/* src/footer.css */
|
|
2
|
+
.pimolu-footer {
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
border-block-start: 0;
|
|
5
|
+
background: var(--pimolu-surface);
|
|
6
|
+
color: var(--pimolu-surface-foreground);
|
|
7
|
+
font-family: var(--pimolu-font-body, inherit);
|
|
8
|
+
}
|
|
9
|
+
.pimolu-footer__inner {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-wrap: wrap;
|
|
12
|
+
gap: var(--pimolu-spacing-8, 32px) var(--pimolu-spacing-12, 48px);
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
width: 100%;
|
|
15
|
+
max-width: 1200px;
|
|
16
|
+
margin-inline: auto;
|
|
17
|
+
padding: var(--pimolu-spacing-10, 40px) var(--pimolu-spacing-6, 24px) var(--pimolu-spacing-8, 32px);
|
|
18
|
+
}
|
|
19
|
+
.pimolu-footer__brand {
|
|
20
|
+
display: flex;
|
|
21
|
+
flex: 1 1 16rem;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
gap: var(--pimolu-spacing-3, 12px);
|
|
24
|
+
min-width: 0;
|
|
25
|
+
max-width: 34rem;
|
|
26
|
+
}
|
|
27
|
+
.pimolu-footer__brand-mark {
|
|
28
|
+
min-width: 0;
|
|
29
|
+
color: var(--pimolu-surface-foreground);
|
|
30
|
+
font-size: 1.125rem;
|
|
31
|
+
font-weight: 700;
|
|
32
|
+
line-height: 1.3;
|
|
33
|
+
overflow-wrap: anywhere;
|
|
34
|
+
}
|
|
35
|
+
.pimolu-footer__description {
|
|
36
|
+
margin: 0;
|
|
37
|
+
max-width: 48ch;
|
|
38
|
+
color: var(--pimolu-muted-foreground);
|
|
39
|
+
font-size: 0.875rem;
|
|
40
|
+
line-height: 1.6;
|
|
41
|
+
overflow-wrap: anywhere;
|
|
42
|
+
}
|
|
43
|
+
.pimolu-footer__actions {
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-wrap: wrap;
|
|
46
|
+
align-items: center;
|
|
47
|
+
gap: var(--pimolu-spacing-2, 8px);
|
|
48
|
+
min-width: 0;
|
|
49
|
+
}
|
|
50
|
+
.pimolu-footer__columns {
|
|
51
|
+
display: grid;
|
|
52
|
+
flex: 2 1 30rem;
|
|
53
|
+
grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.75rem), 1fr));
|
|
54
|
+
gap: var(--pimolu-spacing-6, 24px) var(--pimolu-spacing-8, 32px);
|
|
55
|
+
min-width: 0;
|
|
56
|
+
}
|
|
57
|
+
.pimolu-footer__column {
|
|
58
|
+
min-width: 0;
|
|
59
|
+
}
|
|
60
|
+
.pimolu-footer__column-title {
|
|
61
|
+
margin: 0 0 var(--pimolu-spacing-3, 12px);
|
|
62
|
+
color: var(--pimolu-muted-foreground);
|
|
63
|
+
font-family: inherit;
|
|
64
|
+
font-size: 0.75rem;
|
|
65
|
+
font-weight: 700;
|
|
66
|
+
line-height: 1.4;
|
|
67
|
+
letter-spacing: 0.08em;
|
|
68
|
+
text-transform: uppercase;
|
|
69
|
+
overflow-wrap: anywhere;
|
|
70
|
+
}
|
|
71
|
+
.pimolu-footer__links {
|
|
72
|
+
display: grid;
|
|
73
|
+
gap: var(--pimolu-spacing-2, 8px);
|
|
74
|
+
margin: 0;
|
|
75
|
+
padding: 0;
|
|
76
|
+
list-style: none;
|
|
77
|
+
}
|
|
78
|
+
.pimolu-footer__item {
|
|
79
|
+
min-width: 0;
|
|
80
|
+
}
|
|
81
|
+
.pimolu-footer__link.pimolu-link {
|
|
82
|
+
position: relative;
|
|
83
|
+
display: inline-block;
|
|
84
|
+
max-width: 100%;
|
|
85
|
+
color: var(--pimolu-muted-foreground);
|
|
86
|
+
font-size: 0.875rem;
|
|
87
|
+
line-height: 1.5;
|
|
88
|
+
overflow-wrap: anywhere;
|
|
89
|
+
}
|
|
90
|
+
.pimolu-footer__link.pimolu-link:hover {
|
|
91
|
+
color: var(--pimolu-foreground);
|
|
92
|
+
}
|
|
93
|
+
.pimolu-footer a:focus-visible {
|
|
94
|
+
outline: 2px solid var(--pimolu-focus-ring, var(--pimolu-primary));
|
|
95
|
+
outline-offset: 2px;
|
|
96
|
+
border-radius: 2px;
|
|
97
|
+
}
|
|
98
|
+
.pimolu-footer__external-hint {
|
|
99
|
+
position: absolute;
|
|
100
|
+
width: 1px;
|
|
101
|
+
height: 1px;
|
|
102
|
+
padding: 0;
|
|
103
|
+
margin: -1px;
|
|
104
|
+
overflow: hidden;
|
|
105
|
+
clip-path: inset(50%);
|
|
106
|
+
white-space: nowrap;
|
|
107
|
+
}
|
|
108
|
+
.pimolu-footer__bottom {
|
|
109
|
+
display: flex;
|
|
110
|
+
flex-wrap: wrap;
|
|
111
|
+
align-items: center;
|
|
112
|
+
justify-content: space-between;
|
|
113
|
+
gap: var(--pimolu-spacing-3, 12px) var(--pimolu-spacing-6, 24px);
|
|
114
|
+
box-sizing: border-box;
|
|
115
|
+
width: 100%;
|
|
116
|
+
max-width: 1200px;
|
|
117
|
+
margin-inline: auto;
|
|
118
|
+
padding: var(--pimolu-spacing-4, 16px) var(--pimolu-spacing-6, 24px) var(--pimolu-spacing-6, 24px);
|
|
119
|
+
border-block-start: 0;
|
|
120
|
+
color: var(--pimolu-muted-foreground);
|
|
121
|
+
font-size: 0.8125rem;
|
|
122
|
+
line-height: 1.5;
|
|
123
|
+
}
|
|
124
|
+
.pimolu-footer__copyright {
|
|
125
|
+
margin: 0;
|
|
126
|
+
overflow-wrap: anywhere;
|
|
127
|
+
}
|
|
128
|
+
.pimolu-footer__legal {
|
|
129
|
+
display: flex;
|
|
130
|
+
flex-wrap: wrap;
|
|
131
|
+
align-items: center;
|
|
132
|
+
gap: var(--pimolu-spacing-2, 8px) var(--pimolu-spacing-4, 16px);
|
|
133
|
+
min-width: 0;
|
|
134
|
+
color: var(--pimolu-muted-foreground);
|
|
135
|
+
}
|
|
136
|
+
.pimolu-footer__legal .pimolu-link {
|
|
137
|
+
color: var(--pimolu-muted-foreground);
|
|
138
|
+
font-size: inherit;
|
|
139
|
+
}
|
|
140
|
+
.pimolu-footer__legal .pimolu-link:hover {
|
|
141
|
+
color: var(--pimolu-foreground);
|
|
142
|
+
}
|
|
143
|
+
@media (max-width: 720px) {
|
|
144
|
+
.pimolu-footer__inner {
|
|
145
|
+
padding: var(--pimolu-spacing-8, 32px) var(--pimolu-spacing-4, 16px);
|
|
146
|
+
}
|
|
147
|
+
.pimolu-footer__bottom {
|
|
148
|
+
padding: var(--pimolu-spacing-4, 16px) var(--pimolu-spacing-4, 16px) var(--pimolu-spacing-6, 24px);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
@media (prefers-reduced-motion: reduce) {
|
|
152
|
+
.pimolu-footer__link.pimolu-link {
|
|
153
|
+
transition: none;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
@media (forced-colors: active) {
|
|
157
|
+
.pimolu-footer a:focus-visible {
|
|
158
|
+
outline-color: Highlight;
|
|
159
|
+
}
|
|
160
|
+
.pimolu-footer {
|
|
161
|
+
border-color: CanvasText;
|
|
162
|
+
background: Canvas;
|
|
163
|
+
color: CanvasText;
|
|
164
|
+
}
|
|
165
|
+
.pimolu-footer__column-title,
|
|
166
|
+
.pimolu-footer__description,
|
|
167
|
+
.pimolu-footer__bottom,
|
|
168
|
+
.pimolu-footer__copyright,
|
|
169
|
+
.pimolu-footer__legal {
|
|
170
|
+
color: CanvasText;
|
|
171
|
+
}
|
|
172
|
+
.pimolu-footer__bottom {
|
|
173
|
+
border-color: CanvasText;
|
|
174
|
+
}
|
|
175
|
+
.pimolu-footer__link.pimolu-link,
|
|
176
|
+
.pimolu-footer__legal .pimolu-link {
|
|
177
|
+
color: LinkText;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
.pimolu-footer[data-bordered=true] {
|
|
181
|
+
border-block-start: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
|
|
182
|
+
}
|
|
183
|
+
.pimolu-footer--transparent {
|
|
184
|
+
background: transparent;
|
|
185
|
+
color: var(--pimolu-foreground);
|
|
186
|
+
}
|
|
187
|
+
.pimolu-footer--transparent .pimolu-footer__brand-mark {
|
|
188
|
+
color: inherit;
|
|
189
|
+
}
|
|
190
|
+
.pimolu-footer--floating {
|
|
191
|
+
border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
|
|
192
|
+
border-radius: var(--pimolu-radius-lg);
|
|
193
|
+
box-shadow: var(--pimolu-shadow-raised, none);
|
|
194
|
+
}
|
|
195
|
+
@media (forced-colors: active) {
|
|
196
|
+
.pimolu-footer[data-bordered=true],
|
|
197
|
+
.pimolu-footer--floating {
|
|
198
|
+
border-color: CanvasText;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
@@ -0,0 +1,141 @@
|
|
|
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
|
+
:where([data-pimolu-motion=off]) .pimolu-accordion__content[data-state=closing] {
|
|
22
|
+
display: none !important;
|
|
23
|
+
}
|
|
24
|
+
@media (prefers-reduced-motion: reduce) {
|
|
25
|
+
:where([class^=pimolu-], [class*=" pimolu-"]),
|
|
26
|
+
:where([class^=pimolu-], [class*=" pimolu-"])::before,
|
|
27
|
+
:where([class^=pimolu-], [class*=" pimolu-"])::after {
|
|
28
|
+
animation: none !important;
|
|
29
|
+
transition: none !important;
|
|
30
|
+
scroll-behavior: auto !important;
|
|
31
|
+
}
|
|
32
|
+
.pimolu-accordion__content[hidden],
|
|
33
|
+
.pimolu-accordion__content[data-state=closing] {
|
|
34
|
+
display: none !important;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/* src/form-field.css */
|
|
39
|
+
.pimolu-form-message--error {
|
|
40
|
+
animation: pimolu-field-feedback-in 180ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
41
|
+
}
|
|
42
|
+
@keyframes pimolu-field-feedback-in {
|
|
43
|
+
from {
|
|
44
|
+
opacity: 0;
|
|
45
|
+
transform: translateY(-3px);
|
|
46
|
+
}
|
|
47
|
+
to {
|
|
48
|
+
opacity: 1;
|
|
49
|
+
transform: translateY(0);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
.pimolu-form-field {
|
|
53
|
+
display: grid;
|
|
54
|
+
gap: 6px;
|
|
55
|
+
min-width: 0;
|
|
56
|
+
}
|
|
57
|
+
.pimolu-form-message {
|
|
58
|
+
margin: 0;
|
|
59
|
+
font-family: inherit;
|
|
60
|
+
font-size: 0.8125rem;
|
|
61
|
+
line-height: 1.4;
|
|
62
|
+
overflow-wrap: anywhere;
|
|
63
|
+
}
|
|
64
|
+
.pimolu-form-message--helper {
|
|
65
|
+
color: var(--pimolu-muted-foreground);
|
|
66
|
+
}
|
|
67
|
+
.pimolu-form-message--error {
|
|
68
|
+
color: var(--pimolu-danger, #dc2626);
|
|
69
|
+
}
|
|
70
|
+
.pimolu-form-group {
|
|
71
|
+
display: grid;
|
|
72
|
+
gap: 6px;
|
|
73
|
+
min-width: 0;
|
|
74
|
+
}
|
|
75
|
+
.pimolu-form-group__label {
|
|
76
|
+
color: var(--pimolu-foreground);
|
|
77
|
+
font-size: 0.875rem;
|
|
78
|
+
font-weight: 600;
|
|
79
|
+
line-height: 1.5;
|
|
80
|
+
}
|
|
81
|
+
.pimolu-form-group__description {
|
|
82
|
+
margin: 0;
|
|
83
|
+
color: var(--pimolu-muted-foreground);
|
|
84
|
+
font-size: 0.8125rem;
|
|
85
|
+
line-height: 1.5;
|
|
86
|
+
}
|
|
87
|
+
.pimolu-form-group__items {
|
|
88
|
+
display: grid;
|
|
89
|
+
gap: 10px;
|
|
90
|
+
min-width: 0;
|
|
91
|
+
}
|
|
92
|
+
.pimolu-form-group--horizontal .pimolu-form-group__items {
|
|
93
|
+
display: flex;
|
|
94
|
+
flex-wrap: wrap;
|
|
95
|
+
align-items: center;
|
|
96
|
+
gap: 12px;
|
|
97
|
+
}
|
|
98
|
+
.pimolu-form-group--horizontal .pimolu-form-group__items > .pimolu-form-field {
|
|
99
|
+
flex: 1 1 12rem;
|
|
100
|
+
min-width: 0;
|
|
101
|
+
}
|
|
102
|
+
.pimolu-fieldset {
|
|
103
|
+
display: grid;
|
|
104
|
+
gap: 12px;
|
|
105
|
+
box-sizing: border-box;
|
|
106
|
+
min-width: 0;
|
|
107
|
+
margin: 0;
|
|
108
|
+
padding: 0;
|
|
109
|
+
border: 0;
|
|
110
|
+
}
|
|
111
|
+
.pimolu-fieldset__legend {
|
|
112
|
+
padding: 0;
|
|
113
|
+
color: var(--pimolu-foreground);
|
|
114
|
+
font-family: inherit;
|
|
115
|
+
font-size: 0.875rem;
|
|
116
|
+
font-weight: 600;
|
|
117
|
+
line-height: 1.5;
|
|
118
|
+
}
|
|
119
|
+
.pimolu-fieldset__description {
|
|
120
|
+
margin: 0;
|
|
121
|
+
color: var(--pimolu-muted-foreground);
|
|
122
|
+
font-size: 0.8125rem;
|
|
123
|
+
line-height: 1.5;
|
|
124
|
+
}
|
|
125
|
+
.pimolu-fieldset__items {
|
|
126
|
+
display: grid;
|
|
127
|
+
gap: 12px;
|
|
128
|
+
min-width: 0;
|
|
129
|
+
}
|
|
130
|
+
.pimolu-fieldset[disabled] .pimolu-fieldset__legend,
|
|
131
|
+
.pimolu-fieldset[disabled] .pimolu-fieldset__description {
|
|
132
|
+
opacity: 0.6;
|
|
133
|
+
}
|
|
134
|
+
@media (forced-colors: active) {
|
|
135
|
+
.pimolu-form-message--error {
|
|
136
|
+
color: LinkText;
|
|
137
|
+
}
|
|
138
|
+
.pimolu-fieldset__legend {
|
|
139
|
+
color: CanvasText;
|
|
140
|
+
}
|
|
141
|
+
}
|
package/dist/form.css
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
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
|
+
:where([data-pimolu-motion=off]) .pimolu-accordion__content[data-state=closing] {
|
|
22
|
+
display: none !important;
|
|
23
|
+
}
|
|
24
|
+
@media (prefers-reduced-motion: reduce) {
|
|
25
|
+
:where([class^=pimolu-], [class*=" pimolu-"]),
|
|
26
|
+
:where([class^=pimolu-], [class*=" pimolu-"])::before,
|
|
27
|
+
:where([class^=pimolu-], [class*=" pimolu-"])::after {
|
|
28
|
+
animation: none !important;
|
|
29
|
+
transition: none !important;
|
|
30
|
+
scroll-behavior: auto !important;
|
|
31
|
+
}
|
|
32
|
+
.pimolu-accordion__content[hidden],
|
|
33
|
+
.pimolu-accordion__content[data-state=closing] {
|
|
34
|
+
display: none !important;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/* src/form.css */
|
|
39
|
+
.pimolu-form {
|
|
40
|
+
display: grid;
|
|
41
|
+
gap: 16px;
|
|
42
|
+
box-sizing: border-box;
|
|
43
|
+
min-width: 0;
|
|
44
|
+
color: var( --pimolu-surface-foreground, var(--pimolu-foreground, currentColor) );
|
|
45
|
+
font-family: var( --pimolu-font-body, var(--pimolu-font-family-sans, inherit) );
|
|
46
|
+
}
|
|
47
|
+
.pimolu-form > .pimolu-form__submit {
|
|
48
|
+
justify-self: start;
|
|
49
|
+
}
|
|
50
|
+
.pimolu-form__error {
|
|
51
|
+
animation: pimolu-form-feedback-in 180ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
52
|
+
margin: 0;
|
|
53
|
+
color: var(--pimolu-danger, #dc2626);
|
|
54
|
+
font-size: 0.8125rem;
|
|
55
|
+
line-height: 1.4;
|
|
56
|
+
overflow-wrap: anywhere;
|
|
57
|
+
}
|
|
58
|
+
@keyframes pimolu-form-feedback-in {
|
|
59
|
+
from {
|
|
60
|
+
opacity: 0;
|
|
61
|
+
transform: translateY(-3px);
|
|
62
|
+
}
|
|
63
|
+
to {
|
|
64
|
+
opacity: 1;
|
|
65
|
+
transform: translateY(0);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
@media (forced-colors: active) {
|
|
69
|
+
.pimolu-form__error {
|
|
70
|
+
color: LinkText;
|
|
71
|
+
}
|
|
72
|
+
.pimolu-form > .pimolu-form__submit {
|
|
73
|
+
border: 1px solid ButtonText;
|
|
74
|
+
}
|
|
75
|
+
}
|