@pimolu/web-styles 0.1.0-beta.4 → 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.
@@ -0,0 +1,34 @@
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
+ }
package/dist/navbar.css CHANGED
@@ -1,3 +1,258 @@
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
+ display: none !important;
242
+ }
243
+ @media (prefers-reduced-motion: reduce) {
244
+ :where([class^=pimolu-], [class*=" pimolu-"]),
245
+ :where([class^=pimolu-], [class*=" pimolu-"])::before,
246
+ :where([class^=pimolu-], [class*=" pimolu-"])::after {
247
+ animation: none !important;
248
+ transition: none !important;
249
+ scroll-behavior: auto !important;
250
+ }
251
+ .pimolu-accordion__content[hidden] {
252
+ display: none !important;
253
+ }
254
+ }
255
+
1
256
  /* src/navbar.css */
2
257
  .pimolu-navbar {
3
258
  box-sizing: border-box;
@@ -235,6 +490,76 @@
235
490
  .pimolu-navbar--transparent {
236
491
  background: transparent;
237
492
  }
493
+ .pimolu-navbar__menu {
494
+ display: contents;
495
+ }
496
+ @container pimolu-navbar (max-width: 700px) {
497
+ .pimolu-navbar[data-collapsible=true][data-open=true] .pimolu-navbar__content,
498
+ .pimolu-navbar[data-collapsible=true][data-open=true] .pimolu-navbar__actions {
499
+ animation: pimolu-navbar-reveal 180ms cubic-bezier(0.16, 1, 0.3, 1);
500
+ }
501
+ }
502
+ @keyframes pimolu-navbar-reveal {
503
+ from {
504
+ opacity: 0;
505
+ transform: translateY(-4px);
506
+ }
507
+ to {
508
+ opacity: 1;
509
+ transform: translateY(0);
510
+ }
511
+ }
512
+ .pimolu-navbar__menu-panel {
513
+ display: flex;
514
+ flex-direction: column;
515
+ gap: var(--pimolu-spacing-4, 16px);
516
+ padding-top: max(var(--pimolu-spacing-6, 24px), env(safe-area-inset-top));
517
+ padding-bottom: max(var(--pimolu-spacing-6, 24px), env(safe-area-inset-bottom));
518
+ }
519
+ .pimolu-navbar__menu-panel .pimolu-navbar__content {
520
+ display: flex;
521
+ flex-direction: column;
522
+ align-items: stretch;
523
+ gap: var(--pimolu-spacing-1, 4px);
524
+ width: 100%;
525
+ order: initial;
526
+ overflow: visible;
527
+ }
528
+ .pimolu-navbar__menu-panel .pimolu-navbar__item {
529
+ width: 100%;
530
+ min-height: 44px;
531
+ white-space: normal;
532
+ }
533
+ .pimolu-navbar__menu-panel .pimolu-navbar__actions {
534
+ display: flex;
535
+ width: 100%;
536
+ margin-inline-start: 0;
537
+ padding-block-start: var(--pimolu-spacing-4, 16px);
538
+ border-block-start: 1px solid var(--pimolu-border);
539
+ }
540
+ .pimolu-navbar__menu-panel .pimolu-drawer__header {
541
+ padding-inline-end: 48px;
542
+ }
543
+ .pimolu-navbar__menu-panel .pimolu-drawer__close {
544
+ z-index: 2;
545
+ width: 44px;
546
+ height: 44px;
547
+ color: var(--pimolu-foreground);
548
+ border: 1px solid var(--pimolu-border);
549
+ background: var(--pimolu-muted);
550
+ }
551
+ .pimolu-drawer__content.pimolu-navbar__menu-panel--full {
552
+ inset: 0;
553
+ width: 100%;
554
+ height: 100%;
555
+ border-radius: 0;
556
+ }
557
+ .pimolu-navbar__menu-layer--instant,
558
+ .pimolu-navbar__menu-layer--instant .pimolu-drawer__overlay,
559
+ .pimolu-navbar__menu-layer--instant.pimolu-drawer__content {
560
+ animation: none !important;
561
+ transition: none !important;
562
+ }
238
563
  .pimolu-navbar--floating {
239
564
  border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
240
565
  border-radius: var(--pimolu-radius-lg);
package/dist/pimolu.css CHANGED
@@ -3641,6 +3641,32 @@
3641
3641
  background: ButtonFace;
3642
3642
  }
3643
3643
  }
3644
+ .pimolu-slider__control::-webkit-slider-thumb {
3645
+ transition: box-shadow 150ms ease-out;
3646
+ }
3647
+ .pimolu-slider__control::-moz-range-thumb {
3648
+ transition: box-shadow 150ms ease-out;
3649
+ }
3650
+ .pimolu-slider__control:not(:disabled):is(:hover, :focus-visible)::-webkit-slider-thumb {
3651
+ box-shadow: 0 0 0 4px color-mix(in srgb, var(--pimolu-slider-tone) 18%, transparent);
3652
+ }
3653
+ .pimolu-slider__control:not(:disabled):is(:hover, :focus-visible)::-moz-range-thumb {
3654
+ box-shadow: 0 0 0 4px color-mix(in srgb, var(--pimolu-slider-tone) 18%, transparent);
3655
+ }
3656
+ @media (prefers-reduced-motion: reduce) {
3657
+ .pimolu-slider__control::-webkit-slider-thumb {
3658
+ transition: none;
3659
+ }
3660
+ .pimolu-slider__control::-moz-range-thumb {
3661
+ transition: none;
3662
+ }
3663
+ }
3664
+ [data-pimolu-motion=off] .pimolu-slider__control::-webkit-slider-thumb {
3665
+ transition: none;
3666
+ }
3667
+ [data-pimolu-motion=off] .pimolu-slider__control::-moz-range-thumb {
3668
+ transition: none;
3669
+ }
3644
3670
 
3645
3671
  /* src/range-slider.css */
3646
3672
  .pimolu-range-slider {
@@ -5477,6 +5503,19 @@
5477
5503
  }
5478
5504
 
5479
5505
  /* src/form-field.css */
5506
+ .pimolu-form-message--error {
5507
+ animation: pimolu-field-feedback-in 180ms cubic-bezier(0.16, 1, 0.3, 1);
5508
+ }
5509
+ @keyframes pimolu-field-feedback-in {
5510
+ from {
5511
+ opacity: 0;
5512
+ transform: translateY(-3px);
5513
+ }
5514
+ to {
5515
+ opacity: 1;
5516
+ transform: translateY(0);
5517
+ }
5518
+ }
5480
5519
  .pimolu-form-field {
5481
5520
  display: grid;
5482
5521
  gap: 6px;
@@ -5646,13 +5685,32 @@
5646
5685
  transform: rotate(180deg);
5647
5686
  }
5648
5687
  .pimolu-accordion__content {
5688
+ display: grid;
5689
+ grid-template-rows: 1fr;
5649
5690
  min-width: 0;
5650
5691
  color: var(--pimolu-muted-foreground);
5651
5692
  font-size: 0.875rem;
5652
5693
  line-height: 1.6;
5653
5694
  }
5695
+ .pimolu-accordion__content[hidden] {
5696
+ display: none;
5697
+ }
5698
+ .pimolu-accordion__content-clip {
5699
+ min-height: 0;
5700
+ overflow: hidden;
5701
+ }
5654
5702
  .pimolu-accordion__content[data-state=open] {
5655
- animation: pimolu-accordion-in 160ms ease-out;
5703
+ animation: pimolu-accordion-in 220ms cubic-bezier(0.16, 1, 0.3, 1);
5704
+ }
5705
+ .pimolu-accordion__content[hidden][data-state=closing] {
5706
+ display: grid;
5707
+ animation: pimolu-accordion-out 220ms cubic-bezier(0.4, 0, 1, 1) both;
5708
+ }
5709
+ .pimolu-accordion[data-animated=false] .pimolu-accordion__content {
5710
+ animation: none;
5711
+ }
5712
+ .pimolu-accordion[data-animated=false] .pimolu-accordion__chevron {
5713
+ transition: none;
5656
5714
  }
5657
5715
  .pimolu-accordion__content-inner {
5658
5716
  padding: 0 0 16px;
@@ -5666,19 +5724,32 @@
5666
5724
  }
5667
5725
  @keyframes pimolu-accordion-in {
5668
5726
  from {
5727
+ grid-template-rows: 0fr;
5669
5728
  opacity: 0;
5670
5729
  transform: translateY(-3px);
5671
5730
  }
5672
5731
  to {
5732
+ grid-template-rows: 1fr;
5673
5733
  opacity: 1;
5674
5734
  transform: translateY(0);
5675
5735
  }
5676
5736
  }
5737
+ @keyframes pimolu-accordion-out {
5738
+ from {
5739
+ grid-template-rows: 1fr;
5740
+ opacity: 1;
5741
+ }
5742
+ to {
5743
+ grid-template-rows: 0fr;
5744
+ opacity: 0;
5745
+ }
5746
+ }
5677
5747
  @media (prefers-reduced-motion: reduce) {
5678
5748
  .pimolu-accordion__chevron {
5679
5749
  transition: none;
5680
5750
  }
5681
- .pimolu-accordion__content[data-state=open] {
5751
+ .pimolu-accordion__content[data-state=open],
5752
+ .pimolu-accordion__content[hidden][data-state=closing] {
5682
5753
  animation: none;
5683
5754
  }
5684
5755
  }
@@ -6226,6 +6297,76 @@ button.pimolu-stepper__button:hover .pimolu-stepper__marker {
6226
6297
  .pimolu-navbar--transparent {
6227
6298
  background: transparent;
6228
6299
  }
6300
+ .pimolu-navbar__menu {
6301
+ display: contents;
6302
+ }
6303
+ @container pimolu-navbar (max-width: 700px) {
6304
+ .pimolu-navbar[data-collapsible=true][data-open=true] .pimolu-navbar__content,
6305
+ .pimolu-navbar[data-collapsible=true][data-open=true] .pimolu-navbar__actions {
6306
+ animation: pimolu-navbar-reveal 180ms cubic-bezier(0.16, 1, 0.3, 1);
6307
+ }
6308
+ }
6309
+ @keyframes pimolu-navbar-reveal {
6310
+ from {
6311
+ opacity: 0;
6312
+ transform: translateY(-4px);
6313
+ }
6314
+ to {
6315
+ opacity: 1;
6316
+ transform: translateY(0);
6317
+ }
6318
+ }
6319
+ .pimolu-navbar__menu-panel {
6320
+ display: flex;
6321
+ flex-direction: column;
6322
+ gap: var(--pimolu-spacing-4, 16px);
6323
+ padding-top: max(var(--pimolu-spacing-6, 24px), env(safe-area-inset-top));
6324
+ padding-bottom: max(var(--pimolu-spacing-6, 24px), env(safe-area-inset-bottom));
6325
+ }
6326
+ .pimolu-navbar__menu-panel .pimolu-navbar__content {
6327
+ display: flex;
6328
+ flex-direction: column;
6329
+ align-items: stretch;
6330
+ gap: var(--pimolu-spacing-1, 4px);
6331
+ width: 100%;
6332
+ order: initial;
6333
+ overflow: visible;
6334
+ }
6335
+ .pimolu-navbar__menu-panel .pimolu-navbar__item {
6336
+ width: 100%;
6337
+ min-height: 44px;
6338
+ white-space: normal;
6339
+ }
6340
+ .pimolu-navbar__menu-panel .pimolu-navbar__actions {
6341
+ display: flex;
6342
+ width: 100%;
6343
+ margin-inline-start: 0;
6344
+ padding-block-start: var(--pimolu-spacing-4, 16px);
6345
+ border-block-start: 1px solid var(--pimolu-border);
6346
+ }
6347
+ .pimolu-navbar__menu-panel .pimolu-drawer__header {
6348
+ padding-inline-end: 48px;
6349
+ }
6350
+ .pimolu-navbar__menu-panel .pimolu-drawer__close {
6351
+ z-index: 2;
6352
+ width: 44px;
6353
+ height: 44px;
6354
+ color: var(--pimolu-foreground);
6355
+ border: 1px solid var(--pimolu-border);
6356
+ background: var(--pimolu-muted);
6357
+ }
6358
+ .pimolu-drawer__content.pimolu-navbar__menu-panel--full {
6359
+ inset: 0;
6360
+ width: 100%;
6361
+ height: 100%;
6362
+ border-radius: 0;
6363
+ }
6364
+ .pimolu-navbar__menu-layer--instant,
6365
+ .pimolu-navbar__menu-layer--instant .pimolu-drawer__overlay,
6366
+ .pimolu-navbar__menu-layer--instant.pimolu-drawer__content {
6367
+ animation: none !important;
6368
+ transition: none !important;
6369
+ }
6229
6370
  .pimolu-navbar--floating {
6230
6371
  border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
6231
6372
  border-radius: var(--pimolu-radius-lg);
@@ -6500,6 +6641,14 @@ button.pimolu-stepper__button:hover .pimolu-stepper__marker {
6500
6641
  color: Highlight;
6501
6642
  }
6502
6643
  }
6644
+ .pimolu-sidebar {
6645
+ transition: width 220ms cubic-bezier(0.16, 1, 0.3, 1), padding 220ms ease-out;
6646
+ }
6647
+ @media (prefers-reduced-motion: reduce) {
6648
+ .pimolu-sidebar {
6649
+ transition: none;
6650
+ }
6651
+ }
6503
6652
 
6504
6653
  /* src/navigation-menu.css */
6505
6654
  .pimolu-navigation-menu {
@@ -13834,12 +13983,23 @@ button.pimolu-list__row:focus-visible {
13834
13983
  justify-self: start;
13835
13984
  }
13836
13985
  .pimolu-form__error {
13986
+ animation: pimolu-form-feedback-in 180ms cubic-bezier(0.16, 1, 0.3, 1);
13837
13987
  margin: 0;
13838
13988
  color: var(--pimolu-danger, #dc2626);
13839
13989
  font-size: 0.8125rem;
13840
13990
  line-height: 1.4;
13841
13991
  overflow-wrap: anywhere;
13842
13992
  }
13993
+ @keyframes pimolu-form-feedback-in {
13994
+ from {
13995
+ opacity: 0;
13996
+ transform: translateY(-3px);
13997
+ }
13998
+ to {
13999
+ opacity: 1;
14000
+ transform: translateY(0);
14001
+ }
14002
+ }
13843
14003
  @media (forced-colors: active) {
13844
14004
  .pimolu-form__error {
13845
14005
  color: LinkText;
@@ -16605,6 +16765,41 @@ button.pimolu-list__row:focus-visible {
16605
16765
  }
16606
16766
  }
16607
16767
 
16768
+ /* src/motion.css */
16769
+ :root {
16770
+ --pimolu-interaction-duration: 150ms;
16771
+ --pimolu-interaction-easing: ease-out;
16772
+ }
16773
+ :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) {
16774
+ transition:
16775
+ background-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
16776
+ border-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
16777
+ color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
16778
+ box-shadow var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out);
16779
+ }
16780
+ :where([data-pimolu-motion=off], [data-pimolu-motion=off] *),
16781
+ :where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::before,
16782
+ :where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::after {
16783
+ animation: none !important;
16784
+ transition: none !important;
16785
+ scroll-behavior: auto !important;
16786
+ }
16787
+ :where([data-pimolu-motion=off]) .pimolu-accordion__content[hidden] {
16788
+ display: none !important;
16789
+ }
16790
+ @media (prefers-reduced-motion: reduce) {
16791
+ :where([class^=pimolu-], [class*=" pimolu-"]),
16792
+ :where([class^=pimolu-], [class*=" pimolu-"])::before,
16793
+ :where([class^=pimolu-], [class*=" pimolu-"])::after {
16794
+ animation: none !important;
16795
+ transition: none !important;
16796
+ scroll-behavior: auto !important;
16797
+ }
16798
+ .pimolu-accordion__content[hidden] {
16799
+ display: none !important;
16800
+ }
16801
+ }
16802
+
16608
16803
  /* src/toolbar.css */
16609
16804
  .pimolu-toolbar {
16610
16805
  display: flex;