fix: refine panel appearance and shadow properties for better consistency across platforms

This commit is contained in:
mr. m
2025-04-04 18:11:59 +02:00
parent 91c993da13
commit a7e217152b
3 changed files with 25 additions and 29 deletions

View File

@@ -33,7 +33,7 @@ panel[type='arrow'][animate]:not([animate='open']) {
}
menupopup,
panel {
panel[type='arrow'] {
@media (-moz-windows-mica-popups) {
appearance: auto !important;
-moz-default-appearance: menupopup;
@@ -47,4 +47,18 @@ panel {
animation: none !important;
}
}
@media (-moz-platform: macos) {
appearance: auto !important;
-moz-default-appearance: menupopup;
/* We set the default background here, rather than on ::part(content),
* because otherwise it'd interfere with the native look. Non-native-looking
* popups should get their background via --panel-background */
background-color: Menu;
--panel-shadow-margin: 0px !important;
--panel-background: transparent !important;
--panel-border-color: transparent;
/* This should be kept in sync with GetMenuMaskImage() */
--panel-border-radius: 6px;
}
}