@pimolu/web-styles 0.1.0-beta.1 → 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 +109 -14
- package/README.md +125 -30
- package/dist/accordion.css +73 -1
- package/dist/alert.css +1 -1
- package/dist/api-table.css +6 -5
- package/dist/app-shell.css +87 -22
- package/dist/arc-carousel.css +261 -0
- package/dist/avatar.css +37 -0
- package/dist/badge.css +37 -0
- package/dist/button.css +8 -2
- package/dist/card.css +37 -0
- package/dist/carousel.css +25 -4
- package/dist/cascader.css +1 -1
- package/dist/chart.css +99 -2
- package/dist/chat.css +1 -0
- package/dist/checkbox.css +1 -1
- package/dist/circular-progress.css +23 -1
- package/dist/code-block.css +2 -2
- package/dist/color-picker.css +1 -1
- package/dist/combobox.css +1 -1
- package/dist/command.css +37 -0
- package/dist/coverflow-carousel.css +251 -0
- package/dist/currency-input.css +1 -1
- package/dist/dashboard-layout.css +92 -28
- package/dist/date-picker.css +1 -1
- package/dist/docs-layout.css +9 -0
- package/dist/form-field.css +50 -0
- package/dist/form.css +48 -0
- package/dist/gantt.css +19 -1
- package/dist/input-group.css +15 -3
- package/dist/input.css +14 -2
- package/dist/kanban.css +27 -2
- package/dist/layered.css +23822 -0
- package/dist/masked-input.css +1 -1
- package/dist/mentions.css +1 -1
- package/dist/modal.css +186 -0
- package/dist/motion.css +36 -0
- package/dist/multi-carousel.css +260 -0
- package/dist/multi-select.css +1 -1
- package/dist/navbar.css +343 -0
- package/dist/number-input.css +1 -1
- package/dist/page-header.css +29 -1
- package/dist/password-input.css +14 -2
- package/dist/peek-carousel.css +250 -0
- package/dist/phone-input.css +1 -1
- package/dist/pimolu.css +1990 -415
- package/dist/pimolu.min.css +1 -1
- package/dist/pin-input.css +1 -1
- package/dist/popover.css +4 -0
- package/dist/radio.css +1 -1
- package/dist/range-slider.css +8 -1
- package/dist/scheduler.css +19 -2
- package/dist/segmented-control.css +70 -3
- package/dist/select.css +3 -1
- package/dist/sidebar.css +116 -6
- package/dist/slider.css +71 -1
- package/dist/stack-carousel.css +250 -0
- package/dist/switch.css +1 -1
- package/dist/table.css +37 -0
- package/dist/tabs.css +129 -40
- package/dist/tags-input.css +9 -2
- package/dist/textarea.css +1 -1
- package/dist/themes.css +129 -0
- package/dist/thumbnail-carousel.css +244 -0
- package/dist/time-picker.css +1 -1
- package/dist/toast.css +225 -8
- package/dist/tokens.css +902 -0
- package/dist/toolbar.css +37 -0
- package/dist/tree-select.css +1 -1
- package/dist/tree-table.css +10 -0
- package/package.json +20 -8
- package/LICENSE +0 -21
package/dist/navbar.css
CHANGED
|
@@ -1,3 +1,260 @@
|
|
|
1
|
+
/* src/drawer.css */
|
|
2
|
+
.pimolu-drawer {
|
|
3
|
+
position: fixed;
|
|
4
|
+
inset: 0;
|
|
5
|
+
z-index: 50;
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
}
|
|
9
|
+
.pimolu-drawer__overlay {
|
|
10
|
+
position: absolute;
|
|
11
|
+
inset: 0;
|
|
12
|
+
background: rgba(15, 23, 42, 0.55);
|
|
13
|
+
}
|
|
14
|
+
.pimolu-drawer__content {
|
|
15
|
+
--pimolu-drawer-size: 24rem;
|
|
16
|
+
--pimolu-drawer-shift-x: 100%;
|
|
17
|
+
--pimolu-drawer-shift-y: 0%;
|
|
18
|
+
position: absolute;
|
|
19
|
+
z-index: 1;
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
max-width: 100%;
|
|
22
|
+
max-height: 100%;
|
|
23
|
+
padding: var(--pimolu-spacing-6, 24px);
|
|
24
|
+
overflow-y: auto;
|
|
25
|
+
overscroll-behavior: contain;
|
|
26
|
+
background: var( --pimolu-surface, var(--pimolu-background) );
|
|
27
|
+
color: var( --pimolu-surface-foreground, var(--pimolu-foreground) );
|
|
28
|
+
border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
|
|
29
|
+
box-shadow: var(--pimolu-shadow-raised, none);
|
|
30
|
+
-webkit-backdrop-filter: blur(var(--pimolu-glass-blur, 18px));
|
|
31
|
+
backdrop-filter: blur(var(--pimolu-glass-blur, 18px));
|
|
32
|
+
font-family: var(--pimolu-font-body, inherit);
|
|
33
|
+
font-size: 0.875rem;
|
|
34
|
+
line-height: 1.5;
|
|
35
|
+
outline: none;
|
|
36
|
+
}
|
|
37
|
+
.pimolu-drawer__content--right {
|
|
38
|
+
top: 0;
|
|
39
|
+
right: 0;
|
|
40
|
+
bottom: 0;
|
|
41
|
+
width: min(100%, var(--pimolu-drawer-size));
|
|
42
|
+
border-top-left-radius: var( --pimolu-radius-lg, 12px );
|
|
43
|
+
border-bottom-left-radius: var( --pimolu-radius-lg, 12px );
|
|
44
|
+
--pimolu-drawer-shift-x: 100%;
|
|
45
|
+
--pimolu-drawer-shift-y: 0%;
|
|
46
|
+
}
|
|
47
|
+
.pimolu-drawer__content--left {
|
|
48
|
+
top: 0;
|
|
49
|
+
left: 0;
|
|
50
|
+
bottom: 0;
|
|
51
|
+
width: min(100%, var(--pimolu-drawer-size));
|
|
52
|
+
border-top-right-radius: var( --pimolu-radius-lg, 12px );
|
|
53
|
+
border-bottom-right-radius: var( --pimolu-radius-lg, 12px );
|
|
54
|
+
--pimolu-drawer-shift-x: -100%;
|
|
55
|
+
--pimolu-drawer-shift-y: 0%;
|
|
56
|
+
}
|
|
57
|
+
.pimolu-drawer__content--top {
|
|
58
|
+
top: 0;
|
|
59
|
+
right: 0;
|
|
60
|
+
left: 0;
|
|
61
|
+
height: min(100%, var(--pimolu-drawer-size));
|
|
62
|
+
border-bottom-right-radius: var( --pimolu-radius-lg, 12px );
|
|
63
|
+
border-bottom-left-radius: var( --pimolu-radius-lg, 12px );
|
|
64
|
+
--pimolu-drawer-shift-x: 0%;
|
|
65
|
+
--pimolu-drawer-shift-y: -100%;
|
|
66
|
+
}
|
|
67
|
+
.pimolu-drawer__content--bottom {
|
|
68
|
+
right: 0;
|
|
69
|
+
bottom: 0;
|
|
70
|
+
left: 0;
|
|
71
|
+
height: min(100%, var(--pimolu-drawer-size));
|
|
72
|
+
border-top-left-radius: var( --pimolu-radius-lg, 12px );
|
|
73
|
+
border-top-right-radius: var( --pimolu-radius-lg, 12px );
|
|
74
|
+
--pimolu-drawer-shift-x: 0%;
|
|
75
|
+
--pimolu-drawer-shift-y: 100%;
|
|
76
|
+
}
|
|
77
|
+
.pimolu-drawer__content--sm {
|
|
78
|
+
--pimolu-drawer-size: 20rem;
|
|
79
|
+
}
|
|
80
|
+
.pimolu-drawer__content--md {
|
|
81
|
+
--pimolu-drawer-size: 24rem;
|
|
82
|
+
}
|
|
83
|
+
.pimolu-drawer__content--lg {
|
|
84
|
+
--pimolu-drawer-size: 32rem;
|
|
85
|
+
}
|
|
86
|
+
.pimolu-drawer__header {
|
|
87
|
+
display: grid;
|
|
88
|
+
gap: 6px;
|
|
89
|
+
min-width: 0;
|
|
90
|
+
margin-block-end: var( --pimolu-spacing-4, 16px );
|
|
91
|
+
}
|
|
92
|
+
.pimolu-drawer__content[data-close-button=true] .pimolu-drawer__header {
|
|
93
|
+
padding-inline-end: var( --pimolu-spacing-8, 32px );
|
|
94
|
+
}
|
|
95
|
+
.pimolu-drawer__title {
|
|
96
|
+
margin: 0;
|
|
97
|
+
color: inherit;
|
|
98
|
+
font-family: var( --pimolu-font-heading, inherit );
|
|
99
|
+
font-size: 1.25rem;
|
|
100
|
+
font-weight: 600;
|
|
101
|
+
line-height: 1.3;
|
|
102
|
+
overflow-wrap: anywhere;
|
|
103
|
+
}
|
|
104
|
+
.pimolu-drawer__description {
|
|
105
|
+
margin: 0;
|
|
106
|
+
color: var(--pimolu-muted-foreground);
|
|
107
|
+
font-size: 0.875rem;
|
|
108
|
+
line-height: 1.5;
|
|
109
|
+
overflow-wrap: anywhere;
|
|
110
|
+
}
|
|
111
|
+
.pimolu-drawer__footer {
|
|
112
|
+
display: flex;
|
|
113
|
+
align-items: center;
|
|
114
|
+
justify-content: flex-end;
|
|
115
|
+
flex-wrap: wrap;
|
|
116
|
+
gap: var(--pimolu-spacing-3, 12px);
|
|
117
|
+
margin-block-start: var( --pimolu-spacing-6, 24px );
|
|
118
|
+
}
|
|
119
|
+
.pimolu-drawer__close {
|
|
120
|
+
position: absolute;
|
|
121
|
+
inset-block-start: 12px;
|
|
122
|
+
inset-inline-end: 12px;
|
|
123
|
+
display: inline-grid;
|
|
124
|
+
place-items: center;
|
|
125
|
+
box-sizing: border-box;
|
|
126
|
+
width: 32px;
|
|
127
|
+
height: 32px;
|
|
128
|
+
padding: 0;
|
|
129
|
+
border: 0;
|
|
130
|
+
border-radius: var(--pimolu-radius-sm, 4px);
|
|
131
|
+
background: transparent;
|
|
132
|
+
color: var(--pimolu-muted-foreground);
|
|
133
|
+
line-height: 0;
|
|
134
|
+
cursor: pointer;
|
|
135
|
+
}
|
|
136
|
+
.pimolu-drawer__close:hover {
|
|
137
|
+
background: var(--pimolu-muted);
|
|
138
|
+
color: var(--pimolu-foreground);
|
|
139
|
+
}
|
|
140
|
+
.pimolu-drawer__close:focus-visible {
|
|
141
|
+
outline: 2px solid var(--pimolu-focus-ring, currentColor);
|
|
142
|
+
outline-offset: 2px;
|
|
143
|
+
}
|
|
144
|
+
.pimolu-drawer[data-state=open] .pimolu-drawer__overlay {
|
|
145
|
+
animation: pimolu-drawer-overlay-in 180ms ease-out;
|
|
146
|
+
}
|
|
147
|
+
.pimolu-drawer[data-state=closing] .pimolu-drawer__overlay {
|
|
148
|
+
animation: pimolu-drawer-overlay-out 180ms ease-in forwards;
|
|
149
|
+
}
|
|
150
|
+
.pimolu-drawer[data-state=open] .pimolu-drawer__content {
|
|
151
|
+
animation: pimolu-drawer-content-in 220ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
152
|
+
}
|
|
153
|
+
.pimolu-drawer[data-state=closing] .pimolu-drawer__content {
|
|
154
|
+
animation: pimolu-drawer-content-out 180ms ease-in forwards;
|
|
155
|
+
}
|
|
156
|
+
@keyframes pimolu-drawer-overlay-in {
|
|
157
|
+
from {
|
|
158
|
+
opacity: 0;
|
|
159
|
+
}
|
|
160
|
+
to {
|
|
161
|
+
opacity: 1;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
@keyframes pimolu-drawer-overlay-out {
|
|
165
|
+
from {
|
|
166
|
+
opacity: 1;
|
|
167
|
+
}
|
|
168
|
+
to {
|
|
169
|
+
opacity: 0;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
@keyframes pimolu-drawer-content-in {
|
|
173
|
+
from {
|
|
174
|
+
opacity: 0;
|
|
175
|
+
transform: translate(var(--pimolu-drawer-shift-x), var(--pimolu-drawer-shift-y));
|
|
176
|
+
}
|
|
177
|
+
to {
|
|
178
|
+
opacity: 1;
|
|
179
|
+
transform: translate(0, 0);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
@keyframes pimolu-drawer-content-out {
|
|
183
|
+
from {
|
|
184
|
+
opacity: 1;
|
|
185
|
+
transform: translate(0, 0);
|
|
186
|
+
}
|
|
187
|
+
to {
|
|
188
|
+
opacity: 0;
|
|
189
|
+
transform: translate(var(--pimolu-drawer-shift-x), var(--pimolu-drawer-shift-y));
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
@media (max-width: 600px) {
|
|
193
|
+
.pimolu-drawer__content {
|
|
194
|
+
padding: var(--pimolu-spacing-4, 16px);
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
@media (prefers-reduced-motion: reduce) {
|
|
198
|
+
.pimolu-drawer[data-state=open] .pimolu-drawer__overlay,
|
|
199
|
+
.pimolu-drawer[data-state=closing] .pimolu-drawer__overlay,
|
|
200
|
+
.pimolu-drawer[data-state=open] .pimolu-drawer__content,
|
|
201
|
+
.pimolu-drawer[data-state=closing] .pimolu-drawer__content {
|
|
202
|
+
animation: none;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
@media (forced-colors: active) {
|
|
206
|
+
.pimolu-drawer__overlay {
|
|
207
|
+
background: CanvasText;
|
|
208
|
+
opacity: 0.5;
|
|
209
|
+
}
|
|
210
|
+
.pimolu-drawer__content {
|
|
211
|
+
border: 1px solid CanvasText;
|
|
212
|
+
background: Canvas;
|
|
213
|
+
color: CanvasText;
|
|
214
|
+
box-shadow: none;
|
|
215
|
+
}
|
|
216
|
+
.pimolu-drawer__close:focus-visible {
|
|
217
|
+
outline-color: Highlight;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
/* src/motion.css */
|
|
222
|
+
:root {
|
|
223
|
+
--pimolu-interaction-duration: 150ms;
|
|
224
|
+
--pimolu-interaction-easing: ease-out;
|
|
225
|
+
}
|
|
226
|
+
: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) {
|
|
227
|
+
transition:
|
|
228
|
+
background-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
|
|
229
|
+
border-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
|
|
230
|
+
color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
|
|
231
|
+
box-shadow var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out);
|
|
232
|
+
}
|
|
233
|
+
:where([data-pimolu-motion=off], [data-pimolu-motion=off] *),
|
|
234
|
+
:where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::before,
|
|
235
|
+
:where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::after {
|
|
236
|
+
animation: none !important;
|
|
237
|
+
transition: none !important;
|
|
238
|
+
scroll-behavior: auto !important;
|
|
239
|
+
}
|
|
240
|
+
:where([data-pimolu-motion=off]) .pimolu-accordion__content[hidden],
|
|
241
|
+
:where([data-pimolu-motion=off]) .pimolu-accordion__content[data-state=closing] {
|
|
242
|
+
display: none !important;
|
|
243
|
+
}
|
|
244
|
+
@media (prefers-reduced-motion: reduce) {
|
|
245
|
+
:where([class^=pimolu-], [class*=" pimolu-"]),
|
|
246
|
+
:where([class^=pimolu-], [class*=" pimolu-"])::before,
|
|
247
|
+
:where([class^=pimolu-], [class*=" pimolu-"])::after {
|
|
248
|
+
animation: none !important;
|
|
249
|
+
transition: none !important;
|
|
250
|
+
scroll-behavior: auto !important;
|
|
251
|
+
}
|
|
252
|
+
.pimolu-accordion__content[hidden],
|
|
253
|
+
.pimolu-accordion__content[data-state=closing] {
|
|
254
|
+
display: none !important;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
|
|
1
258
|
/* src/navbar.css */
|
|
2
259
|
.pimolu-navbar {
|
|
3
260
|
box-sizing: border-box;
|
|
@@ -28,6 +285,10 @@
|
|
|
28
285
|
align-items: center;
|
|
29
286
|
gap: 8px;
|
|
30
287
|
flex: none;
|
|
288
|
+
max-width: 100%;
|
|
289
|
+
min-width: 0;
|
|
290
|
+
overflow: hidden;
|
|
291
|
+
text-overflow: ellipsis;
|
|
31
292
|
color: inherit;
|
|
32
293
|
font-size: 0.9375rem;
|
|
33
294
|
font-weight: 700;
|
|
@@ -48,6 +309,8 @@
|
|
|
48
309
|
min-width: 0;
|
|
49
310
|
}
|
|
50
311
|
.pimolu-navbar__item {
|
|
312
|
+
box-sizing: border-box;
|
|
313
|
+
min-height: 40px;
|
|
51
314
|
display: inline-flex;
|
|
52
315
|
align-items: center;
|
|
53
316
|
gap: 6px;
|
|
@@ -189,6 +452,7 @@
|
|
|
189
452
|
box-sizing: border-box;
|
|
190
453
|
width: 100%;
|
|
191
454
|
white-space: normal;
|
|
455
|
+
min-height: 44px;
|
|
192
456
|
}
|
|
193
457
|
.pimolu-navbar[data-collapsible=true][data-open=true] .pimolu-navbar__actions {
|
|
194
458
|
display: flex;
|
|
@@ -204,6 +468,15 @@
|
|
|
204
468
|
padding: 10px 16px;
|
|
205
469
|
}
|
|
206
470
|
}
|
|
471
|
+
@container pimolu-navbar (max-width: 700px) {
|
|
472
|
+
.pimolu-navbar[data-collapsible=true] .pimolu-navbar__brand {
|
|
473
|
+
max-width: calc(100% - 64px);
|
|
474
|
+
}
|
|
475
|
+
.pimolu-navbar__toggle {
|
|
476
|
+
min-width: 44px;
|
|
477
|
+
min-height: 44px;
|
|
478
|
+
}
|
|
479
|
+
}
|
|
207
480
|
@media (forced-colors: active) {
|
|
208
481
|
.pimolu-navbar {
|
|
209
482
|
border-color: CanvasText;
|
|
@@ -219,6 +492,76 @@
|
|
|
219
492
|
.pimolu-navbar--transparent {
|
|
220
493
|
background: transparent;
|
|
221
494
|
}
|
|
495
|
+
.pimolu-navbar__menu {
|
|
496
|
+
display: contents;
|
|
497
|
+
}
|
|
498
|
+
@container pimolu-navbar (max-width: 700px) {
|
|
499
|
+
.pimolu-navbar[data-collapsible=true][data-open=true] .pimolu-navbar__content,
|
|
500
|
+
.pimolu-navbar[data-collapsible=true][data-open=true] .pimolu-navbar__actions {
|
|
501
|
+
animation: pimolu-navbar-reveal 180ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
@keyframes pimolu-navbar-reveal {
|
|
505
|
+
from {
|
|
506
|
+
opacity: 0;
|
|
507
|
+
transform: translateY(-4px);
|
|
508
|
+
}
|
|
509
|
+
to {
|
|
510
|
+
opacity: 1;
|
|
511
|
+
transform: translateY(0);
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
.pimolu-navbar__menu-panel {
|
|
515
|
+
display: flex;
|
|
516
|
+
flex-direction: column;
|
|
517
|
+
gap: var(--pimolu-spacing-4, 16px);
|
|
518
|
+
padding-top: max(var(--pimolu-spacing-6, 24px), env(safe-area-inset-top));
|
|
519
|
+
padding-bottom: max(var(--pimolu-spacing-6, 24px), env(safe-area-inset-bottom));
|
|
520
|
+
}
|
|
521
|
+
.pimolu-navbar__menu-panel .pimolu-navbar__content {
|
|
522
|
+
display: flex;
|
|
523
|
+
flex-direction: column;
|
|
524
|
+
align-items: stretch;
|
|
525
|
+
gap: var(--pimolu-spacing-1, 4px);
|
|
526
|
+
width: 100%;
|
|
527
|
+
order: initial;
|
|
528
|
+
overflow: visible;
|
|
529
|
+
}
|
|
530
|
+
.pimolu-navbar__menu-panel .pimolu-navbar__item {
|
|
531
|
+
width: 100%;
|
|
532
|
+
min-height: 44px;
|
|
533
|
+
white-space: normal;
|
|
534
|
+
}
|
|
535
|
+
.pimolu-navbar__menu-panel .pimolu-navbar__actions {
|
|
536
|
+
display: flex;
|
|
537
|
+
width: 100%;
|
|
538
|
+
margin-inline-start: 0;
|
|
539
|
+
padding-block-start: var(--pimolu-spacing-4, 16px);
|
|
540
|
+
border-block-start: 1px solid var(--pimolu-border);
|
|
541
|
+
}
|
|
542
|
+
.pimolu-navbar__menu-panel .pimolu-drawer__header {
|
|
543
|
+
padding-inline-end: 48px;
|
|
544
|
+
}
|
|
545
|
+
.pimolu-navbar__menu-panel .pimolu-drawer__close {
|
|
546
|
+
z-index: 2;
|
|
547
|
+
width: 44px;
|
|
548
|
+
height: 44px;
|
|
549
|
+
color: var(--pimolu-foreground);
|
|
550
|
+
border: 1px solid var(--pimolu-border);
|
|
551
|
+
background: var(--pimolu-muted);
|
|
552
|
+
}
|
|
553
|
+
.pimolu-drawer__content.pimolu-navbar__menu-panel--full {
|
|
554
|
+
inset: 0;
|
|
555
|
+
width: 100%;
|
|
556
|
+
height: 100%;
|
|
557
|
+
border-radius: 0;
|
|
558
|
+
}
|
|
559
|
+
.pimolu-navbar__menu-layer--instant,
|
|
560
|
+
.pimolu-navbar__menu-layer--instant .pimolu-drawer__overlay,
|
|
561
|
+
.pimolu-navbar__menu-layer--instant.pimolu-drawer__content {
|
|
562
|
+
animation: none !important;
|
|
563
|
+
transition: none !important;
|
|
564
|
+
}
|
|
222
565
|
.pimolu-navbar--floating {
|
|
223
566
|
border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
|
|
224
567
|
border-radius: var(--pimolu-radius-lg);
|
package/dist/number-input.css
CHANGED
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
min-height: var(--pimolu-number-input-height);
|
|
38
38
|
padding-inline: var(--pimolu-number-input-padding);
|
|
39
39
|
background: var( --pimolu-surface, var(--pimolu-background, #ffffff) );
|
|
40
|
-
border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border, #e2e8f0);
|
|
40
|
+
border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-control-border, var(--pimolu-border, #e2e8f0));
|
|
41
41
|
border-radius: var(--pimolu-radius-md, 8px);
|
|
42
42
|
box-shadow: var(--pimolu-number-input-elevation);
|
|
43
43
|
transition:
|
package/dist/page-header.css
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
/* src/page-header.css */
|
|
2
2
|
.pimolu-page-header {
|
|
3
|
+
container-type: inline-size;
|
|
4
|
+
--pimolu-page-header-title-size: clamp(1.75rem, 5cqi, 2.75rem);
|
|
5
|
+
width: 100%;
|
|
3
6
|
display: flex;
|
|
4
7
|
flex-direction: column;
|
|
5
8
|
gap: var(--pimolu-spacing-4, 16px);
|
|
@@ -8,6 +11,22 @@
|
|
|
8
11
|
color: var(--pimolu-foreground);
|
|
9
12
|
font-family: var(--pimolu-font-body, inherit);
|
|
10
13
|
}
|
|
14
|
+
.pimolu-page-header[data-size=sm] {
|
|
15
|
+
--pimolu-page-header-title-size: clamp(1.25rem, 4cqi, 1.75rem);
|
|
16
|
+
gap: 12px;
|
|
17
|
+
}
|
|
18
|
+
.pimolu-page-header[data-size=sm] .pimolu-page-header__content {
|
|
19
|
+
gap: 8px;
|
|
20
|
+
}
|
|
21
|
+
.pimolu-page-header[data-size=sm] .pimolu-page-header__description {
|
|
22
|
+
font-size: 0.875rem;
|
|
23
|
+
}
|
|
24
|
+
.pimolu-page-header[data-size=lg] {
|
|
25
|
+
--pimolu-page-header-title-size: clamp(2rem, 7cqi, 4rem);
|
|
26
|
+
}
|
|
27
|
+
.pimolu-page-header__actions {
|
|
28
|
+
max-width: 100%;
|
|
29
|
+
}
|
|
11
30
|
.pimolu-page-header__breadcrumbs {
|
|
12
31
|
display: flex;
|
|
13
32
|
justify-content: flex-start;
|
|
@@ -55,7 +74,7 @@
|
|
|
55
74
|
margin: 0;
|
|
56
75
|
color: var(--pimolu-foreground);
|
|
57
76
|
font-family: var(--pimolu-font-heading, inherit);
|
|
58
|
-
font-size: clamp(1.75rem, 3.5vw, 2.75rem);
|
|
77
|
+
font-size: var(--pimolu-page-header-title-size, clamp(1.75rem, 3.5vw, 2.75rem));
|
|
59
78
|
font-weight: 700;
|
|
60
79
|
line-height: 1.1;
|
|
61
80
|
letter-spacing: -0.02em;
|
|
@@ -99,9 +118,14 @@
|
|
|
99
118
|
justify-content: center;
|
|
100
119
|
}
|
|
101
120
|
.pimolu-page-header--center .pimolu-page-header__body {
|
|
121
|
+
width: 100%;
|
|
122
|
+
flex-direction: column;
|
|
123
|
+
align-items: center;
|
|
102
124
|
justify-content: center;
|
|
103
125
|
}
|
|
104
126
|
.pimolu-page-header--center .pimolu-page-header__content {
|
|
127
|
+
flex: none;
|
|
128
|
+
width: 100%;
|
|
105
129
|
align-items: center;
|
|
106
130
|
margin-inline: auto;
|
|
107
131
|
text-align: center;
|
|
@@ -110,6 +134,10 @@
|
|
|
110
134
|
.pimolu-page-header--center .pimolu-page-header__actions {
|
|
111
135
|
justify-content: center;
|
|
112
136
|
}
|
|
137
|
+
.pimolu-page-header--center .pimolu-page-header__actions {
|
|
138
|
+
flex: none;
|
|
139
|
+
width: 100%;
|
|
140
|
+
}
|
|
113
141
|
@media (max-width: 640px) {
|
|
114
142
|
.pimolu-page-header__body {
|
|
115
143
|
align-items: flex-start;
|
package/dist/password-input.css
CHANGED
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
min-height: var(--pimolu-input-height);
|
|
36
36
|
padding-inline: var(--pimolu-input-padding);
|
|
37
37
|
background: var( --pimolu-surface, var(--pimolu-background) );
|
|
38
|
-
border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
|
|
38
|
+
border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-control-border, var(--pimolu-border));
|
|
39
39
|
border-radius: var(--pimolu-radius-md, 8px);
|
|
40
40
|
box-shadow: var(--pimolu-input-elevation);
|
|
41
41
|
transition:
|
|
@@ -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;
|
|
@@ -167,7 +172,9 @@
|
|
|
167
172
|
}
|
|
168
173
|
.pimolu-input__wrapper:focus-within {
|
|
169
174
|
border-color: var(--pimolu-input-tone);
|
|
170
|
-
box-shadow:
|
|
175
|
+
box-shadow: var(--pimolu-input-elevation);
|
|
176
|
+
outline: 3px solid color-mix(in srgb, var(--pimolu-input-tone) 22%, transparent);
|
|
177
|
+
outline-offset: 0;
|
|
171
178
|
}
|
|
172
179
|
.pimolu-input--invalid {
|
|
173
180
|
--pimolu-input-tone: var(--pimolu-danger, #dc2626);
|
|
@@ -249,6 +256,11 @@
|
|
|
249
256
|
}
|
|
250
257
|
}
|
|
251
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
|
+
}
|
|
252
264
|
.pimolu-input__wrapper:focus-within {
|
|
253
265
|
outline: 2px solid Highlight;
|
|
254
266
|
outline-offset: 2px;
|