2020-07-31 14:11:26 +08:00
|
|
|
/* Popup menus and context menus */
|
|
|
|
|
|
|
|
@import "popups-contents.css";
|
|
|
|
@namespace xul "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
|
|
|
|
|
|
|
|
/* Style menus */
|
2023-05-27 00:18:06 +08:00
|
|
|
menupopup, panel {
|
2023-02-14 17:28:15 +08:00
|
|
|
-moz-appearance: none !important;
|
2021-12-11 12:44:36 +08:00
|
|
|
--panel-background: var(--gnome-menu-background) !important;
|
2023-01-13 15:13:44 +08:00
|
|
|
--panel-border-radius: 12px !important;
|
|
|
|
--panel-padding: 6px !important;
|
2024-09-05 20:40:17 +08:00
|
|
|
--panel-shadow: var(--gnome-popover-shadow), 0 0 0 1px var(--gnome-popover-border-color) !important;
|
2023-08-28 20:14:17 +08:00
|
|
|
/* --panel-shadow-margin: 3px 8px 13px !important; */
|
2023-05-25 01:54:44 +08:00
|
|
|
--panel-separator-color: var(--gnome-popover-separator-color) !important;
|
2023-05-26 23:29:38 +08:00
|
|
|
--panel-border-color: transparent !important;
|
2024-09-19 11:25:09 +08:00
|
|
|
--panel-color: var(--gnome-toolbar-color) !important;
|
2023-05-27 00:18:06 +08:00
|
|
|
--arrowpanel-border-radius: 12px !important;
|
|
|
|
--arrowpanel-background: var(--gnome-menu-background) !important;
|
2023-05-26 23:29:38 +08:00
|
|
|
--arrowpanel-border-color: transparent !important;
|
2024-09-19 11:25:09 +08:00
|
|
|
--arrowpanel-color: var(--gnome-toolbar-color) !important;
|
2023-05-27 00:18:06 +08:00
|
|
|
color: var(--gnome-toolbar-color) !important;
|
2023-08-30 19:56:15 +08:00
|
|
|
padding: 2px 4px 9px !important;
|
2023-05-26 23:29:38 +08:00
|
|
|
}
|
|
|
|
|
2024-09-05 20:40:17 +08:00
|
|
|
menupopup {
|
|
|
|
--panel-shadow: var(--gnome-popover-shadow), 0 0 0 1px var(--gnome-menu-border-color) !important;
|
|
|
|
}
|
|
|
|
|
2023-03-04 15:50:14 +08:00
|
|
|
.panel-arrowcontent {
|
|
|
|
border: none !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (prefers-color-scheme: dark) {
|
2024-09-05 20:40:17 +08:00
|
|
|
menupopup, panel {
|
|
|
|
--panel-border-color: rgba(255, 255, 255, 0.06) !important;
|
|
|
|
--arrowpanel-border-color: rgba(255, 255, 255, 0.06) !important;
|
|
|
|
}
|
2023-03-04 15:50:14 +08:00
|
|
|
|
2024-09-05 20:40:17 +08:00
|
|
|
.panel-arrowcontent {
|
|
|
|
border: 1px solid rgba(255, 255, 255, 0.06) !important;
|
|
|
|
}
|
2023-03-04 15:50:14 +08:00
|
|
|
}
|
|
|
|
|
2022-10-09 18:40:57 +08:00
|
|
|
menupopup label {
|
|
|
|
color: var(--gnome-toolbar-color) !important;
|
2020-07-31 14:11:26 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
menubar > menu > menupopup {
|
|
|
|
border-top-left-radius: 0 !important;
|
|
|
|
border-top-right-radius: 0 !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
menuitem, menupopup menu {
|
2021-08-03 14:24:26 +08:00
|
|
|
box-shadow: none !important;
|
2020-07-31 14:11:26 +08:00
|
|
|
}
|
|
|
|
|
2023-06-07 19:57:37 +08:00
|
|
|
menuitem[type="checkbox"] image,
|
|
|
|
menuitem[type="radio"] image {
|
2020-07-31 14:11:26 +08:00
|
|
|
visibility: visible !important;
|
|
|
|
}
|
|
|
|
|
2023-06-07 19:57:37 +08:00
|
|
|
@media (-moz-gtk-non-native-menus) or (-moz-non-native-content-theme) {
|
|
|
|
menuitem:is([type="checkbox"], [checked="true"]) .menu-iconic-icon {
|
|
|
|
appearance: none !important;
|
|
|
|
-moz-default-appearance: none !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
menuitem[type="radio"] .menu-iconic-icon {
|
|
|
|
appearance: none !important;
|
|
|
|
-moz-default-appearance: none !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-25 01:54:44 +08:00
|
|
|
menupopup menu[disabled="true"],
|
|
|
|
menuitem[disabled="true"]:hover,
|
|
|
|
menupopup menu[disabled="true"]:hover {
|
2024-09-01 20:38:26 +08:00
|
|
|
background-image: none !important;
|
|
|
|
background-color: transparent !important;
|
|
|
|
color: var(--gnome-inactive-toolbar-color) !important;
|
2020-07-31 14:11:26 +08:00
|
|
|
}
|
|
|
|
|
2023-05-25 01:54:44 +08:00
|
|
|
/* Bookmarks Folder Popup */
|
|
|
|
#PlacesToolbar menupopup[placespopup="true"]::part(content),
|
|
|
|
#PlacesToolbar menupopup[placespopup="true"]::part(arrowscrollbox),
|
|
|
|
#PlacesToolbar menupopup {
|
|
|
|
background: none !important;
|
|
|
|
padding: 3px 4px 6px !important;
|
|
|
|
margin: -3px 0 0 -12px !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Bookmarks Button Popup */
|
|
|
|
#BMB_bookmarksPopup {
|
|
|
|
margin: 10px -18px !important;
|
|
|
|
box-shadow: none !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
#BMB_bookmarksPopup menupopup {
|
|
|
|
padding: 6px !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
panel:not([remote]), #BMB_bookmarksPopup {
|
|
|
|
--arrowpanel-background: var(--gnome-popover-background) !important;
|
|
|
|
}
|
|
|
|
|
2020-07-31 14:11:26 +08:00
|
|
|
/* Adjust popovers position */
|
2021-08-03 14:24:26 +08:00
|
|
|
panel[type="arrow"] {
|
|
|
|
appearance: none !important;
|
|
|
|
background-color: transparent !important;
|
2024-09-01 20:38:26 +08:00
|
|
|
margin: 0 -18px !important;
|
2023-04-11 14:22:56 +08:00
|
|
|
}
|
|
|
|
|
2020-07-31 14:11:26 +08:00
|
|
|
/* Style popovers */
|
|
|
|
.panel-arrowcontent .panel-arrowcontent,
|
|
|
|
.panel-header, .PanelUI-subView,
|
|
|
|
.panel-subview-body, #widget-overflow-mainView, #protections-popup-footer,
|
|
|
|
panelview {
|
2021-10-11 10:58:02 +08:00
|
|
|
background: none !important;
|
2020-07-31 14:11:26 +08:00
|
|
|
}
|
|
|
|
|
2021-08-03 14:24:26 +08:00
|
|
|
panelview {
|
2023-02-14 17:28:15 +08:00
|
|
|
padding: var(--panel-padding) !important;
|
2021-08-03 14:24:26 +08:00
|
|
|
}
|
|
|
|
|
2023-02-14 17:28:15 +08:00
|
|
|
#customization-panelWrapper > .panel-arrowcontent {
|
|
|
|
box-shadow: var(--gnome-popover-shadow) !important;
|
2021-08-03 14:24:26 +08:00
|
|
|
border-radius: 12px !important;
|
2023-02-14 17:28:15 +08:00
|
|
|
background: var(--gnome-menu-background) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
#customization-panelWrapper > .panel-arrowbox > .panel-arrow[side="top"] {
|
|
|
|
fill: var(--gnome-menu-background) !important;
|
2023-03-04 15:50:14 +08:00
|
|
|
stroke: transparent !important;
|
2020-07-31 14:11:26 +08:00
|
|
|
}
|
2021-08-03 14:24:26 +08:00
|
|
|
|
2020-07-31 14:11:26 +08:00
|
|
|
.PanelUI-subView toolbarseparator:not([orient="vertical"]) {
|
|
|
|
margin: 10px 2px !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.panel-header {
|
|
|
|
padding: 0 0 10px 0 !important;
|
|
|
|
}
|
2021-06-03 14:15:17 +08:00
|
|
|
.panel-header + toolbarseparator,
|
|
|
|
#identity-popup-mainView-panel-header + toolbarseparator,
|
|
|
|
#permission-popup-mainView-panel-header + toolbarseparator,
|
|
|
|
#protections-popup-mainView-panel-header-section + toolbarseparator {
|
|
|
|
display: none !important;
|
|
|
|
}
|
2020-07-31 14:11:26 +08:00
|
|
|
.panel-footer {
|
|
|
|
background-color: transparent !important;
|
|
|
|
display: flex;
|
|
|
|
justify-content: flex-end;
|
|
|
|
padding-top: 0px !important;
|
|
|
|
}
|
2021-06-03 14:15:17 +08:00
|
|
|
.panel-footer.panel-footer-menulike {
|
|
|
|
border-top: 0 !important;
|
|
|
|
margin-top: 8px !important;
|
|
|
|
}
|
2020-07-31 14:11:26 +08:00
|
|
|
.panel-footer toolbarseparator {
|
|
|
|
display: none !important;
|
|
|
|
}
|
2021-06-03 14:15:17 +08:00
|
|
|
.proton-zap {
|
|
|
|
border-image: unset !important;
|
|
|
|
}
|
2023-01-13 15:13:44 +08:00
|
|
|
.panel-subview-body,
|
|
|
|
.panel-subview-body > .panel-subview-body {
|
2020-07-31 14:11:26 +08:00
|
|
|
padding: 0 !important;
|
|
|
|
}
|
|
|
|
.panel-subview-footer {
|
|
|
|
margin-top: 10px !important;
|
|
|
|
}
|
|
|
|
|
2023-01-13 15:13:44 +08:00
|
|
|
/* Remove unwanted separators */
|
|
|
|
.panel-header + toolbarseparator,
|
|
|
|
#identity-popup-mainView-panel-header + toolbarseparator,
|
|
|
|
#permission-popup-mainView-panel-header + toolbarseparator,
|
|
|
|
#protections-popup-mainView-panel-header-section + toolbarseparator {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
|
2020-07-31 14:11:26 +08:00
|
|
|
/* Style popovers menu buttons */
|
2023-01-13 15:13:44 +08:00
|
|
|
menuitem, menupopup menu,
|
2024-09-05 13:39:53 +08:00
|
|
|
.subviewbutton:not(#appMenu-fxa-label2, #downloadsHistory),
|
2023-01-13 15:13:44 +08:00
|
|
|
.toolbarbutton-1,
|
|
|
|
.protections-popup-footer-button,
|
|
|
|
.protections-popup-category,
|
|
|
|
.identity-popup-content-blocking-category,
|
|
|
|
#downloadsPanel-mainView .download-state {
|
|
|
|
-moz-appearance: none !important;
|
2022-10-09 18:40:57 +08:00
|
|
|
border-radius: 6px !important;
|
2020-07-31 14:11:26 +08:00
|
|
|
color: var(--gnome-toolbar-color) !important;
|
|
|
|
font: menu !important;
|
2023-01-13 15:13:44 +08:00
|
|
|
padding: 0 6px !important;
|
|
|
|
min-height: 28px !important;
|
2020-07-31 14:11:26 +08:00
|
|
|
}
|
2022-10-09 18:40:57 +08:00
|
|
|
|
2024-09-05 13:39:53 +08:00
|
|
|
#downloadsHistory {
|
|
|
|
border-radius: 6px !important;
|
|
|
|
}
|
|
|
|
|
2023-10-26 01:22:08 +08:00
|
|
|
.toolbar-menupopup :is(menu, menuitem) {
|
|
|
|
margin: 0 !important;
|
|
|
|
}
|
|
|
|
|
2024-09-05 13:39:53 +08:00
|
|
|
#downloadsPanel-mainView .download-state .downloadButton {
|
|
|
|
border: none !important;
|
|
|
|
background: none !important;
|
|
|
|
box-shadow: none !important;
|
|
|
|
--button-hover-bgcolor: var(--gnome-popover-button-hover-background) !important;
|
|
|
|
--button-active-bgcolor: var(--gnome-popover-button-active-background) !important;
|
|
|
|
}
|
|
|
|
|
2023-02-12 02:47:05 +08:00
|
|
|
.subviewbutton,
|
|
|
|
.protections-popup-footer-button,
|
2020-07-31 14:11:26 +08:00
|
|
|
.protections-popup-category,
|
2023-02-12 02:47:05 +08:00
|
|
|
.identity-popup-content-blocking-category,
|
|
|
|
#PlacesToolbar menupopup[placespopup="true"] .bookmark-item,
|
|
|
|
.openintabs-menuitem,
|
|
|
|
.widget-overflow-list .toolbarbutton-1 {
|
2020-07-31 14:11:26 +08:00
|
|
|
padding: 5px !important;
|
2021-06-03 14:15:17 +08:00
|
|
|
margin: 0 !important;
|
2020-07-31 14:11:26 +08:00
|
|
|
}
|
|
|
|
|
2023-02-12 02:47:05 +08:00
|
|
|
.subviewbutton[shortcut]:after {
|
|
|
|
opacity: 0.5 !important;
|
|
|
|
}
|
|
|
|
|
2024-09-01 20:38:26 +08:00
|
|
|
.subviewbutton {
|
|
|
|
@media not (prefers-contrast) {
|
|
|
|
&[shortcut]:not([disabled])::after {
|
|
|
|
color: var(--gnome-toolbar-color) !important;
|
|
|
|
opacity: 0.5 !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-02-12 02:47:05 +08:00
|
|
|
.bookmark-item .menu-right {
|
|
|
|
fill-opacity: 1 !important;
|
|
|
|
}
|
|
|
|
|
2022-10-09 18:40:57 +08:00
|
|
|
/* Menu buttons disabled */
|
2024-09-04 01:29:23 +08:00
|
|
|
menuitem[disabled="true"],
|
2024-09-03 16:58:53 +08:00
|
|
|
menupopup menu[disabled="true"],
|
2024-09-04 01:29:23 +08:00
|
|
|
menuitem[disabled="true"][_moz-menuactive],
|
|
|
|
menupopup menu[disabled="true"][_moz-menuactive],
|
2024-09-01 20:38:26 +08:00
|
|
|
.subviewbutton[disabled="true"],
|
|
|
|
.subviewbutton:not(#appMenu-fxa-label2)[disabled="true"],
|
|
|
|
.toolbarbutton-1[disabled="true"],
|
2022-10-09 18:40:57 +08:00
|
|
|
.protections-popup-category[disabled="true"],
|
|
|
|
.identity-popup-content-blocking-category[disabled="true"] {
|
2024-09-03 16:58:53 +08:00
|
|
|
opacity: 0.35 !important;
|
2024-09-01 20:38:26 +08:00
|
|
|
background-image: none !important;
|
|
|
|
background-color: transparent !important;
|
|
|
|
}
|
|
|
|
|
2024-09-04 02:47:17 +08:00
|
|
|
#context-navigation menuitem.menuitem-iconic[disabled="true"] {
|
2024-09-03 16:58:53 +08:00
|
|
|
opacity: 1 !important;
|
|
|
|
color: var(--gnome-inactive-toolbar-color) !important;
|
2024-09-01 20:38:26 +08:00
|
|
|
background-image: var(--gnome-button-disabled-background) !important;
|
2024-09-03 16:58:53 +08:00
|
|
|
border-color: var(--gnome-button-disabled-border-color) !important;
|
|
|
|
box-shadow: none !important;
|
2020-07-31 14:11:26 +08:00
|
|
|
}
|
|
|
|
|
2022-10-09 18:40:57 +08:00
|
|
|
/* Menu buttons hover */
|
|
|
|
menuitem:not([disabled="true"]):is(:hover, [_moz-menuactive]),
|
|
|
|
menupopup menu:not([disabled="true"]):is(:hover, [_moz-menuactive]),
|
2024-09-05 13:39:53 +08:00
|
|
|
.subviewbutton:not([disabled="true"], #appMenu-zoom-controls2, #appMenu-fxa-label2, #downloadsHistory):hover,
|
2022-10-09 18:40:57 +08:00
|
|
|
.protections-popup-footer-button:not([disabled="true"]):hover,
|
|
|
|
#protections-popup-show-report-stack:hover .protections-popup-footer-button,
|
|
|
|
.protections-popup-category:not([disabled="true"]):hover,
|
|
|
|
.identity-popup-content-blocking-category:not([disabled="true"]):hover,
|
|
|
|
#PlacesToolbar .bookmark-item:is(:hover, [open], [_moz-menuactive]),
|
|
|
|
#downloadsPanel-mainView .download-state:hover {
|
2024-09-03 16:58:53 +08:00
|
|
|
background-image: none !important;
|
2024-09-01 20:38:26 +08:00
|
|
|
background-color: var(--gnome-popover-button-hover-background) !important;
|
2020-07-31 14:11:26 +08:00
|
|
|
}
|
|
|
|
|
2024-08-31 20:34:02 +08:00
|
|
|
/* Menu buttons active */
|
2024-09-05 13:39:53 +08:00
|
|
|
.subviewbutton:not([disabled="true"], #appMenu-zoom-controls2, #appMenu-fxa-label2, #downloadsHistory):active,
|
2024-08-31 20:34:02 +08:00
|
|
|
.protections-popup-footer-button:not([disabled="true"]):active,
|
|
|
|
#protections-popup-show-report-stack:active .protections-popup-footer-button,
|
|
|
|
.protections-popup-category:not([disabled="true"]):active,
|
|
|
|
.identity-popup-content-blocking-category:not([disabled="true"]):active,
|
|
|
|
#downloadsPanel-mainView .download-state:active {
|
2024-09-03 16:58:53 +08:00
|
|
|
background-image: none !important;
|
2024-09-01 20:38:26 +08:00
|
|
|
background-color: var(--gnome-popover-button-active-background) !important;
|
2024-08-31 20:34:02 +08:00
|
|
|
}
|
|
|
|
|
2020-07-31 14:11:26 +08:00
|
|
|
/* Style popover separators */
|
|
|
|
toolbarseparator, menuseparator {
|
2023-05-26 23:29:38 +08:00
|
|
|
appearance: none !important;
|
|
|
|
/* border-color: var(--gnome-popover-separator-color) !important;*/
|
2020-07-31 14:11:26 +08:00
|
|
|
}
|
2023-01-13 15:13:44 +08:00
|
|
|
#PlacesToolbar menupopup[placespopup="true"] menuseparator {
|
2023-08-07 23:53:55 +08:00
|
|
|
border: none !important;
|
2023-01-13 15:13:44 +08:00
|
|
|
padding: 0 !important;
|
|
|
|
}
|
2023-08-07 23:53:55 +08:00
|
|
|
toolbarseparator, menuseparator::before {
|
2023-05-26 23:29:38 +08:00
|
|
|
border-top: 1px solid var(--gnome-popover-separator-color) !important;
|
2023-08-07 23:53:55 +08:00
|
|
|
}
|
|
|
|
menupopup menuseparator {
|
|
|
|
border: none !important;
|
2023-01-13 15:13:44 +08:00
|
|
|
margin: 4px 0 !important;
|
2020-07-31 14:11:26 +08:00
|
|
|
}
|
|
|
|
toolbarseparator[orient="vertical"] {
|
2023-01-13 15:13:44 +08:00
|
|
|
margin: 0 4px !important;
|
|
|
|
}
|
|
|
|
.panel-subview-body + toolbarseparator:not([orient="vertical"]) {
|
|
|
|
margin: 0 0 4px !important;
|
|
|
|
}
|
|
|
|
panelview > toolbarseparator:not([orient="vertical"]),
|
|
|
|
#identity-popup-clear-sitedata-footer toolbarseparator:not([orient="vertical"]),
|
|
|
|
#identity-popup-more-info-footer toolbarseparator:not([orient="vertical"]){
|
|
|
|
margin: 4px 6px !important;
|
|
|
|
}
|
|
|
|
#identity-popup-clear-sitedata-footer toolbarseparator:not([orient="vertical"]) {
|
|
|
|
margin-top: 0 !important;
|
2020-07-31 14:11:26 +08:00
|
|
|
}
|
2021-06-03 14:15:17 +08:00
|
|
|
|
|
|
|
/* Auto complete popups */
|
|
|
|
panel[type="autocomplete-richlistbox"] {
|
2023-05-26 14:47:26 +08:00
|
|
|
background: none !important;
|
2023-03-04 15:50:14 +08:00
|
|
|
border: 0 !important;
|
2023-05-26 14:47:26 +08:00
|
|
|
padding: 0 !important;
|
2021-06-03 14:15:17 +08:00
|
|
|
color: var(--gnome-toolbar-color) !important;
|
2023-05-26 14:47:26 +08:00
|
|
|
margin: 0 !important;
|
2021-06-03 14:15:17 +08:00
|
|
|
}
|
2023-05-26 14:47:26 +08:00
|
|
|
|
2021-06-03 14:15:17 +08:00
|
|
|
.autocomplete-richlistbox {
|
|
|
|
margin: 0 !important;
|
|
|
|
}
|
|
|
|
|
2023-05-26 14:47:26 +08:00
|
|
|
#PopupAutoComplete > richlistbox > richlistitem {
|
|
|
|
min-height: 20px;
|
|
|
|
border: 0;
|
|
|
|
border-radius: 3px !important;
|
|
|
|
padding: 0 6px !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
#PopupAutoComplete > richlistbox > richlistitem:hover {
|
|
|
|
background: var(--theme-primary-color) !important;
|
|
|
|
color: #ffffff !important;
|
|
|
|
}
|
|
|
|
|
2021-06-03 14:15:17 +08:00
|
|
|
.autocomplete-richlistitem:not([type="loginsFooter"]) {
|
|
|
|
color: var(--gnome-toolbar-color) !important;
|
|
|
|
font: menu !important;
|
|
|
|
margin: 0 !important;
|
|
|
|
}
|
|
|
|
.autocomplete-richlistitem:not([type="loginsFooter"]) .ac-site-icon {
|
|
|
|
fill: var(--gnome-toolbar-color) !important;
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
.autocomplete-richlistitem:not([type="loginsFooter"]):hover {
|
|
|
|
color: #fff !important;
|
|
|
|
background-color: Highlight !important;
|
|
|
|
}
|
|
|
|
.autocomplete-richlistitem:not([type="loginsFooter"]):hover .ac-site-icon {
|
|
|
|
fill: #fff !important;
|
|
|
|
}
|
2023-11-11 10:00:05 +08:00
|
|
|
|
|
|
|
/* Fixes for menu scrollbox */
|
|
|
|
arrowscrollbox.menupopup-arrowscrollbox {
|
|
|
|
height: 100%;
|
|
|
|
}
|