Skip to content

Commit

Permalink
ensure there are no native popup shadows.
Browse files Browse the repository at this point in the history
  • Loading branch information
aminomancer committed Jan 24, 2022
1 parent 04e2135 commit 67560c4
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions resources/in-content/devtools.css
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ and a few elements like checkboxes */
border-radius: var(--menupopup-border-radius) !important;
margin: var(--menupopup-margin) !important;
overflow: hidden !important;
-moz-window-shadow: none !important;
}

menupopup menu > menupopup {
Expand Down
1 change: 1 addition & 0 deletions resources/in-content/menus.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ menupopup.in-menulist {
--menu-icon-opacity: 1 !important;
user-select: none !important;
-moz-user-select: none !important;
-moz-window-shadow: none !important;
}

#ContentSelectDropdown > menupopup > :where(menucaption, menuitem) > .menu-iconic-text,
Expand Down
4 changes: 4 additions & 0 deletions uc-context-menus.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ rules in here should match similar rules in userContent.css,
since devtools and certain system pages contain the same elements,
but *inside* of content documents rather than in the UI where userChrome.css can style them. */

menupopup {
-moz-window-shadow: none !important;
}

menupopup:not([type="arrow"]) {
appearance: none !important;
background: var(--menupopup-background) !important;
Expand Down
1 change: 1 addition & 0 deletions uc-urlbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ toolbarpaletteitem[place="palette"] > #search-container {
calc(-5px - var(--searchbar-popup-box-shadow-size, 15px))
calc(0px - var(--searchbar-popup-box-shadow-size, 15px)) !important;
background: none;
-moz-window-shadow: none !important;
}

.searchbar-engine-name,
Expand Down
1 change: 1 addition & 0 deletions userChrome.au.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ the last 75% or so of this stylesheet is dedicated to restoring pre-proton conte
--panel-border-color: var(--arrowpanel-border-color);
--panel-border-radius: var(--arrowpanel-border-radius);
--panel-padding: var(--arrowpanel-padding);
-moz-window-shadow: none;
}

panel[type="autocomplete-richlistbox"] {
Expand Down

0 comments on commit 67560c4

Please sign in to comment.