@tempots/beatui 1.7.2 → 1.7.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/dist/beatui.css +18 -4
- package/dist/beatui.tailwind.css +18 -4
- package/package.json +1 -1
package/dist/beatui.css
CHANGED
|
@@ -5695,15 +5695,29 @@ a:focus-visible {
|
|
|
5695
5695
|
|
|
5696
5696
|
/*
|
|
5697
5697
|
* On mobile, .bc-menu uses position:fixed for a bottom-sheet layout.
|
|
5698
|
-
*
|
|
5699
|
-
*
|
|
5700
|
-
*
|
|
5701
|
-
*
|
|
5698
|
+
* Any transform on an ancestor (even identity matrix) changes the containing
|
|
5699
|
+
* block for position:fixed from the viewport to that ancestor (CSS spec).
|
|
5700
|
+
* The animation system sets transform on .bc-flyout-container for slide/scale,
|
|
5701
|
+
* which breaks the menu's fixed positioning and causes it to size relative to
|
|
5702
|
+
* the 0-width flyout container instead of the viewport.
|
|
5703
|
+
*
|
|
5704
|
+
* Fix: disable transform on mobile when containing a menu. The opacity fade
|
|
5705
|
+
* animation still works. Slide/scale aren't meaningful for a bottom sheet.
|
|
5702
5706
|
*/
|
|
5703
5707
|
@media (max-width: 640px) {
|
|
5704
5708
|
.bc-flyout-container:has(.bc-menu) {
|
|
5709
|
+
transform: none !important;
|
|
5710
|
+
transition-property: opacity !important;
|
|
5711
|
+
}
|
|
5712
|
+
|
|
5713
|
+
/* Dark backdrop behind the bottom-sheet menu on mobile */
|
|
5714
|
+
.bc-flyout-container:has(.bc-menu)::before {
|
|
5715
|
+
content: '';
|
|
5705
5716
|
position: fixed;
|
|
5706
5717
|
inset: 0;
|
|
5718
|
+
background: rgba(0, 0, 0, 0.5);
|
|
5719
|
+
pointer-events: none;
|
|
5720
|
+
z-index: -1;
|
|
5707
5721
|
}
|
|
5708
5722
|
}
|
|
5709
5723
|
|
package/dist/beatui.tailwind.css
CHANGED
|
@@ -5361,15 +5361,29 @@ a:focus-visible {
|
|
|
5361
5361
|
|
|
5362
5362
|
/*
|
|
5363
5363
|
* On mobile, .bc-menu uses position:fixed for a bottom-sheet layout.
|
|
5364
|
-
*
|
|
5365
|
-
*
|
|
5366
|
-
*
|
|
5367
|
-
*
|
|
5364
|
+
* Any transform on an ancestor (even identity matrix) changes the containing
|
|
5365
|
+
* block for position:fixed from the viewport to that ancestor (CSS spec).
|
|
5366
|
+
* The animation system sets transform on .bc-flyout-container for slide/scale,
|
|
5367
|
+
* which breaks the menu's fixed positioning and causes it to size relative to
|
|
5368
|
+
* the 0-width flyout container instead of the viewport.
|
|
5369
|
+
*
|
|
5370
|
+
* Fix: disable transform on mobile when containing a menu. The opacity fade
|
|
5371
|
+
* animation still works. Slide/scale aren't meaningful for a bottom sheet.
|
|
5368
5372
|
*/
|
|
5369
5373
|
@media (max-width: 640px) {
|
|
5370
5374
|
.bc-flyout-container:has(.bc-menu) {
|
|
5375
|
+
transform: none !important;
|
|
5376
|
+
transition-property: opacity !important;
|
|
5377
|
+
}
|
|
5378
|
+
|
|
5379
|
+
/* Dark backdrop behind the bottom-sheet menu on mobile */
|
|
5380
|
+
.bc-flyout-container:has(.bc-menu)::before {
|
|
5381
|
+
content: '';
|
|
5371
5382
|
position: fixed;
|
|
5372
5383
|
inset: 0;
|
|
5384
|
+
background: rgba(0, 0, 0, 0.5);
|
|
5385
|
+
pointer-events: none;
|
|
5386
|
+
z-index: -1;
|
|
5373
5387
|
}
|
|
5374
5388
|
}
|
|
5375
5389
|
|