@pimolu/web-styles 0.1.0-beta.4 → 0.1.0-beta.6

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/dist/layered.css CHANGED
@@ -3691,6 +3691,32 @@
3691
3691
  background: ButtonFace;
3692
3692
  }
3693
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
+ }
3694
3720
  }
3695
3721
 
3696
3722
  /* src/range-slider.css */
@@ -5557,6 +5583,19 @@
5557
5583
 
5558
5584
  /* src/form-field.css */
5559
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
+ }
5560
5599
  .pimolu-form-field {
5561
5600
  display: grid;
5562
5601
  gap: 6px;
@@ -5728,13 +5767,32 @@
5728
5767
  transform: rotate(180deg);
5729
5768
  }
5730
5769
  .pimolu-accordion__content {
5770
+ display: grid;
5771
+ grid-template-rows: 1fr;
5731
5772
  min-width: 0;
5732
5773
  color: var(--pimolu-muted-foreground);
5733
5774
  font-size: 0.875rem;
5734
5775
  line-height: 1.6;
5735
5776
  }
5777
+ .pimolu-accordion__content[hidden] {
5778
+ display: none;
5779
+ }
5780
+ .pimolu-accordion__content-clip {
5781
+ min-height: 0;
5782
+ overflow: hidden;
5783
+ }
5736
5784
  .pimolu-accordion__content[data-state=open] {
5737
- animation: pimolu-accordion-in 160ms ease-out;
5785
+ animation: pimolu-accordion-in 220ms cubic-bezier(0.16, 1, 0.3, 1);
5786
+ }
5787
+ .pimolu-accordion__content[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;
5738
5796
  }
5739
5797
  .pimolu-accordion__content-inner {
5740
5798
  padding: 0 0 16px;
@@ -5748,14 +5806,26 @@
5748
5806
  }
5749
5807
  @keyframes pimolu-accordion-in {
5750
5808
  from {
5809
+ grid-template-rows: 0fr;
5751
5810
  opacity: 0;
5752
5811
  transform: translateY(-3px);
5753
5812
  }
5754
5813
  to {
5814
+ grid-template-rows: 1fr;
5755
5815
  opacity: 1;
5756
5816
  transform: translateY(0);
5757
5817
  }
5758
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
+ }
5759
5829
  @media (prefers-reduced-motion: reduce) {
5760
5830
  .pimolu-accordion__chevron {
5761
5831
  transition: none;
@@ -5763,6 +5833,10 @@
5763
5833
  .pimolu-accordion__content[data-state=open] {
5764
5834
  animation: none;
5765
5835
  }
5836
+ .pimolu-accordion__content[data-state=closing] {
5837
+ display: none;
5838
+ animation: none;
5839
+ }
5766
5840
  }
5767
5841
  @media (forced-colors: active) {
5768
5842
  .pimolu-accordion__item {
@@ -6316,6 +6390,76 @@
6316
6390
  .pimolu-navbar--transparent {
6317
6391
  background: transparent;
6318
6392
  }
6393
+ .pimolu-navbar__menu {
6394
+ display: contents;
6395
+ }
6396
+ @container pimolu-navbar (max-width: 700px) {
6397
+ .pimolu-navbar[data-collapsible=true][data-open=true] .pimolu-navbar__content,
6398
+ .pimolu-navbar[data-collapsible=true][data-open=true] .pimolu-navbar__actions {
6399
+ animation: pimolu-navbar-reveal 180ms cubic-bezier(0.16, 1, 0.3, 1);
6400
+ }
6401
+ }
6402
+ @keyframes pimolu-navbar-reveal {
6403
+ from {
6404
+ opacity: 0;
6405
+ transform: translateY(-4px);
6406
+ }
6407
+ to {
6408
+ opacity: 1;
6409
+ transform: translateY(0);
6410
+ }
6411
+ }
6412
+ .pimolu-navbar__menu-panel {
6413
+ display: flex;
6414
+ flex-direction: column;
6415
+ gap: var(--pimolu-spacing-4, 16px);
6416
+ padding-top: max(var(--pimolu-spacing-6, 24px), env(safe-area-inset-top));
6417
+ padding-bottom: max(var(--pimolu-spacing-6, 24px), env(safe-area-inset-bottom));
6418
+ }
6419
+ .pimolu-navbar__menu-panel .pimolu-navbar__content {
6420
+ display: flex;
6421
+ flex-direction: column;
6422
+ align-items: stretch;
6423
+ gap: var(--pimolu-spacing-1, 4px);
6424
+ width: 100%;
6425
+ order: initial;
6426
+ overflow: visible;
6427
+ }
6428
+ .pimolu-navbar__menu-panel .pimolu-navbar__item {
6429
+ width: 100%;
6430
+ min-height: 44px;
6431
+ white-space: normal;
6432
+ }
6433
+ .pimolu-navbar__menu-panel .pimolu-navbar__actions {
6434
+ display: flex;
6435
+ width: 100%;
6436
+ margin-inline-start: 0;
6437
+ padding-block-start: var(--pimolu-spacing-4, 16px);
6438
+ border-block-start: 1px solid var(--pimolu-border);
6439
+ }
6440
+ .pimolu-navbar__menu-panel .pimolu-drawer__header {
6441
+ padding-inline-end: 48px;
6442
+ }
6443
+ .pimolu-navbar__menu-panel .pimolu-drawer__close {
6444
+ z-index: 2;
6445
+ width: 44px;
6446
+ height: 44px;
6447
+ color: var(--pimolu-foreground);
6448
+ border: 1px solid var(--pimolu-border);
6449
+ background: var(--pimolu-muted);
6450
+ }
6451
+ .pimolu-drawer__content.pimolu-navbar__menu-panel--full {
6452
+ inset: 0;
6453
+ width: 100%;
6454
+ height: 100%;
6455
+ border-radius: 0;
6456
+ }
6457
+ .pimolu-navbar__menu-layer--instant,
6458
+ .pimolu-navbar__menu-layer--instant .pimolu-drawer__overlay,
6459
+ .pimolu-navbar__menu-layer--instant.pimolu-drawer__content {
6460
+ animation: none !important;
6461
+ transition: none !important;
6462
+ }
6319
6463
  .pimolu-navbar--floating {
6320
6464
  border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
6321
6465
  border-radius: var(--pimolu-radius-lg);
@@ -6592,6 +6736,14 @@
6592
6736
  color: Highlight;
6593
6737
  }
6594
6738
  }
6739
+ .pimolu-sidebar {
6740
+ transition: width 220ms cubic-bezier(0.16, 1, 0.3, 1), padding 220ms ease-out;
6741
+ }
6742
+ @media (prefers-reduced-motion: reduce) {
6743
+ .pimolu-sidebar {
6744
+ transition: none;
6745
+ }
6746
+ }
6595
6747
  }
6596
6748
 
6597
6749
  /* src/navigation-menu.css */
@@ -14028,12 +14180,23 @@
14028
14180
  justify-self: start;
14029
14181
  }
14030
14182
  .pimolu-form__error {
14183
+ animation: pimolu-form-feedback-in 180ms cubic-bezier(0.16, 1, 0.3, 1);
14031
14184
  margin: 0;
14032
14185
  color: var(--pimolu-danger, #dc2626);
14033
14186
  font-size: 0.8125rem;
14034
14187
  line-height: 1.4;
14035
14188
  overflow-wrap: anywhere;
14036
14189
  }
14190
+ @keyframes pimolu-form-feedback-in {
14191
+ from {
14192
+ opacity: 0;
14193
+ transform: translateY(-3px);
14194
+ }
14195
+ to {
14196
+ opacity: 1;
14197
+ transform: translateY(0);
14198
+ }
14199
+ }
14037
14200
  @media (forced-colors: active) {
14038
14201
  .pimolu-form__error {
14039
14202
  color: LinkText;
@@ -16828,6 +16991,45 @@
16828
16991
  }
16829
16992
  }
16830
16993
 
16994
+ /* src/motion.css */
16995
+ @layer pimolu {
16996
+ :root {
16997
+ --pimolu-interaction-duration: 150ms;
16998
+ --pimolu-interaction-easing: ease-out;
16999
+ }
17000
+ :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) {
17001
+ transition:
17002
+ background-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
17003
+ border-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
17004
+ color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
17005
+ box-shadow var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out);
17006
+ }
17007
+ :where([data-pimolu-motion=off], [data-pimolu-motion=off] *),
17008
+ :where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::before,
17009
+ :where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::after {
17010
+ animation: none !important;
17011
+ transition: none !important;
17012
+ scroll-behavior: auto !important;
17013
+ }
17014
+ :where([data-pimolu-motion=off]) .pimolu-accordion__content[hidden],
17015
+ :where([data-pimolu-motion=off]) .pimolu-accordion__content[data-state=closing] {
17016
+ display: none !important;
17017
+ }
17018
+ @media (prefers-reduced-motion: reduce) {
17019
+ :where([class^=pimolu-], [class*=" pimolu-"]),
17020
+ :where([class^=pimolu-], [class*=" pimolu-"])::before,
17021
+ :where([class^=pimolu-], [class*=" pimolu-"])::after {
17022
+ animation: none !important;
17023
+ transition: none !important;
17024
+ scroll-behavior: auto !important;
17025
+ }
17026
+ .pimolu-accordion__content[hidden],
17027
+ .pimolu-accordion__content[data-state=closing] {
17028
+ display: none !important;
17029
+ }
17030
+ }
17031
+ }
17032
+
16831
17033
  /* src/toolbar.css */
16832
17034
  @layer pimolu {
16833
17035
  .pimolu-toolbar {
@@ -18273,6 +18475,7 @@
18273
18475
  white-space: nowrap;
18274
18476
  }
18275
18477
  a.pimolu-chat__attachment-name {
18478
+ text-decoration: underline;
18276
18479
  text-underline-offset: 2px;
18277
18480
  }
18278
18481
  a.pimolu-chat__attachment-name:hover {
@@ -0,0 +1,36 @@
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
+ }
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;
@@ -235,6 +492,76 @@
235
492
  .pimolu-navbar--transparent {
236
493
  background: transparent;
237
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
+ }
238
565
  .pimolu-navbar--floating {
239
566
  border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
240
567
  border-radius: var(--pimolu-radius-lg);