Fixed firefox theme issues

This commit is contained in:
vinceliuice
2023-01-05 09:48:13 +08:00
parent 257ccd4549
commit 503e201216
3 changed files with 38 additions and 10 deletions

View File

@@ -12,7 +12,7 @@
/* Buttons */ /* Buttons */
menulist, menulist,
#nav-bar toolbarbutton:not(#urlbar-zoom-button):not(.subviewbutton), #nav-bar toolbarbutton:not(#urlbar-zoom-button),
.subviewbutton.panel-subview-footer, .subviewbutton.panel-subview-footer,
.panel-footer button, .panel-footer button,
#downloadsPanel-mainView .download-state .downloadButton, #downloadsPanel-mainView .download-state .downloadButton,
@@ -59,7 +59,7 @@ button.close,
} }
/* Flat Buttons */ /* Flat Buttons */
#nav-bar toolbarbutton:not(#urlbar-zoom-button):not(.subviewbutton), #nav-bar toolbarbutton:not(#urlbar-zoom-button),
.close-icon:not(.tab-close-button), .close-icon:not(.tab-close-button),
button.close, button.close,
#protections-popup-info-button, #protections-popup-info-button,
@@ -68,7 +68,7 @@ button.close,
} }
/* Buttons with margins */ /* Buttons with margins */
#nav-bar toolbarbutton:not(#urlbar-zoom-button):not(.subviewbutton), #nav-bar toolbarbutton:not(#urlbar-zoom-button),
.notification-button, .notification-button,
.subviewbutton.panel-subview-footer:not(:only-of-type), .subviewbutton.panel-subview-footer:not(:only-of-type),
.panel-footer button:not(:only-of-type) { .panel-footer button:not(:only-of-type) {
@@ -166,7 +166,7 @@ menulist:hover .menulist-label-box,
} }
/* Hover flat buttons */ /* Hover flat buttons */
#nav-bar toolbarbutton:not(#urlbar-zoom-button):not(.subviewbutton):not([open]):not([disabled="true"]):not([checked]):hover, #nav-bar toolbarbutton:not(#urlbar-zoom-button):not([open]):not([disabled="true"]):not([checked]):hover,
.close-icon:not(.tab-close-button):hover, .close-icon:not(.tab-close-button):hover,
button.close:hover, button.close:hover,
#protections-popup-info-button:hover, #protections-popup-info-button:hover,
@@ -199,12 +199,13 @@ menulist[open] .menulist-label-box,
.dialog-button-box button:not([disabled="true"]):active, .dialog-button-box button:not([disabled="true"]):active,
#editBMPanel_newFolderButton:active { #editBMPanel_newFolderButton:active {
background: var(--gnome-button-active-background) !important; background: var(--gnome-button-active-background) !important;
box-shadow: none !important;
} }
/* Active flat buttons */ /* Active flat buttons */
#nav-bar toolbarbutton:not(#urlbar-zoom-button):not(.subviewbutton):not([disabled="true"]):not(#hack):active, #nav-bar toolbarbutton:not(#urlbar-zoom-button):not([disabled="true"]):not(#hack):active,
#nav-bar toolbarbutton:not(#urlbar-zoom-button):not(.subviewbutton):not(.subviewbutton):not([disabled="true"])[open], #nav-bar toolbarbutton:not(#urlbar-zoom-button):not([disabled="true"])[open],
#nav-bar toolbarbutton:not(#urlbar-zoom-button):not(.subviewbutton):not([disabled="true"])[checked], #nav-bar toolbarbutton:not(#urlbar-zoom-button):not([disabled="true"])[checked],
.close-icon:not(.tab-close-button):active, .close-icon:not(.tab-close-button):active,
button.close:active, button.close:active,
#protections-popup-info-button:not(#hack):active, #protections-popup-info-button:not(#hack):active,
@@ -212,6 +213,7 @@ button.close:active,
.permission-popup-permission-remove-button:active, .permission-popup-permission-remove-button:active,
#item-choose button:active { #item-choose button:active {
background: var(--gnome-button-flat-active-background) !important; background: var(--gnome-button-flat-active-background) !important;
box-shadow: none !important;
} }
/* Disabled buttons */ /* Disabled buttons */
@@ -223,7 +225,7 @@ button.close:active,
} }
/* Inactive window buttons */ /* Inactive window buttons */
#nav-bar toolbarbutton:not(#urlbar-zoom-button):not(.subviewbutton):-moz-window-inactive, #nav-bar toolbarbutton:not(#urlbar-zoom-button):-moz-window-inactive,
.findbar-container toolbarbutton:-moz-window-inactive, .findbar-container toolbarbutton:-moz-window-inactive,
#sidebar-switcher-target:-moz-window-inactive, #sidebar-switcher-target:-moz-window-inactive,
#viewButton:-moz-window-inactive, #viewButton:-moz-window-inactive,
@@ -240,7 +242,7 @@ button.close:active,
} }
/* Combined buttons */ /* Combined buttons */
#nav-bar .toolbaritem-combined-buttons toolbarbutton:not(:last-of-type):not(#hack), /*#nav-bar .toolbaritem-combined-buttons toolbarbutton:not(:last-of-type):not(#hack),*/
#appMenu-popup .toolbaritem-combined-buttons toolbarbutton:not(:last-of-type):not(#appMenu-zoomEnlarge-button), #appMenu-popup .toolbaritem-combined-buttons toolbarbutton:not(:last-of-type):not(#appMenu-zoomEnlarge-button),
#context-navigation menuitem:not(:last-of-type), #context-navigation menuitem:not(:last-of-type),
.findbar-container toolbarbutton.findbar-find-previous, .findbar-container toolbarbutton.findbar-find-previous,
@@ -252,7 +254,7 @@ button.close:active,
margin-right: 0 !important; margin-right: 0 !important;
} }
#nav-bar .toolbaritem-combined-buttons toolbarbutton:not(:first-of-type):not(#hack), /*#nav-bar .toolbaritem-combined-buttons toolbarbutton:not(:first-of-type):not(#hack),*/
#appMenu-popup .toolbaritem-combined-buttons toolbarbutton:not(:first-of-type):not(#appMenu-fullscreen-button), #appMenu-popup .toolbaritem-combined-buttons toolbarbutton:not(:first-of-type):not(#appMenu-fullscreen-button),
#context-navigation menuitem:not(:first-of-type), #context-navigation menuitem:not(:first-of-type),
.findbar-container toolbarbutton.findbar-find-previous, .findbar-container toolbarbutton.findbar-find-previous,

View File

@@ -229,14 +229,36 @@ menupopup menu:not([disabled="true"]):is(:hover, [_moz-menuactive]),
background: var(--gnome-menu-button-hover-background) !important; background: var(--gnome-menu-button-hover-background) !important;
} }
/* Menu buttons active */
menuitem:not([disabled="true"]):is(:active, [_moz-menuactive]),
menupopup menu:not([disabled="true"]):is(:active, [_moz-menuactive]),
.subviewbutton:not([disabled="true"], #appMenu-zoom-controls2, #appMenu-fxa-label2):active,
.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,
#PlacesToolbar .bookmark-item:active,
#downloadsPanel-mainView .download-state:active {
background: var(--gnome-button-flat-active-background) !important;
box-shadow: none !important;
border: none;
}
/* Menu buttons fix */ /* Menu buttons fix */
#appMenu-fxa-label2 { #appMenu-fxa-label2 {
padding: 0 !important; padding: 0 !important;
} }
#appMenu-fxa-label2:hover { #appMenu-fxa-label2:hover {
background: transparent !important; background: transparent !important;
} }
#appMenu-fxa-label2:active {
background: transparent !important;
box-shadow: none !important;
border: none;
}
/* Menu buttons back */ /* Menu buttons back */
.subviewbutton-back { .subviewbutton-back {
opacity: 1 !important; opacity: 1 !important;

View File

@@ -26,6 +26,10 @@ findbar {
border-top: 1px solid var(--gnome-toolbar-border-color) !important; border-top: 1px solid var(--gnome-toolbar-border-color) !important;
} }
.findbar-container {
height: 46px !important;
}
#toolbar-menubar[autohide="true"][inactive="true"]:not([customizing="true"]) { #toolbar-menubar[autohide="true"][inactive="true"]:not([customizing="true"]) {
min-height: 0 !important; min-height: 0 !important;
height: 0 !important; height: 0 !important;