firefox-gnome-theme/theme/parts/buttons.css

324 lines
11 KiB
CSS
Raw Normal View History

2019-07-03 02:03:21 +03:00
/* Buttons */
2019-07-03 02:03:21 +03:00
@namespace xul "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
/* Hide buttons separator */
#nav-bar .toolbaritem-combined-buttons separator {
display: none !important;
}
#appMenu-popup .toolbaritem-combined-buttons toolbarseparator {
border: 0 !important;
}
2019-08-07 07:58:27 +03:00
/* Buttons */
2021-06-03 04:42:29 +03:00
menulist,
2019-07-03 02:03:21 +03:00
#nav-bar toolbarbutton:not(#urlbar-zoom-button):not(.subviewbutton),
.subviewbutton.panel-subview-footer,
.panel-footer button,
#downloadsPanel-mainView .download-state .downloadButton,
#appMenu-popup .panel-banner-item,
2019-07-08 07:07:52 +03:00
#appMenu-popup .toolbaritem-combined-buttons toolbarbutton:not(#appMenu-fxa-label),
2019-07-03 02:03:21 +03:00
#context-navigation menuitem,
.identity-popup-preferences-button:not(#hack),
.findbar-container toolbarbutton,
#sidebar-switcher-target,
2019-07-06 19:07:00 +03:00
#viewButton,
.close-icon:not(.tab-close-button),
2021-04-24 19:03:48 +03:00
button.close,
2019-07-10 19:01:32 +03:00
.menulist-label-box,
2019-08-01 23:23:16 +03:00
.expander-down, .expander-up,
.notification-button,
#identity-popup-security-expander,
2020-10-27 15:42:11 +02:00
#protections-popup-info-button,
#PanelUI-panic-view-button,
2019-08-20 06:55:37 +03:00
.tracking-protection-button,
.dialog-button,
.autocomplete-richlistitem[type="loginsFooter"],
.dialog-button-box button,
2021-06-03 04:44:14 +03:00
.searchbar-engine-one-off-item,
2021-06-03 16:33:47 +03:00
.permission-popup-permission-remove-button,
.button.connect-device,
#item-choose button,
#editBMPanel_newFolderButton {
2019-07-03 02:03:21 +03:00
-moz-appearance: none !important;
background: var(--gnome-button-background) !important;
border-radius: 6px !important;
2022-05-19 17:25:53 +03:00
border: 0 !important;
2021-06-06 01:56:15 +03:00
padding: 0 1px !important;
2019-07-06 19:07:00 +03:00
height: 34px !important;
max-height: 34px !important;
2019-07-03 02:03:21 +03:00
min-height: 34px !important;
min-width: 34px !important;
color: var(--gnome-toolbar-color) !important;
2020-10-27 15:42:11 +02:00
outline: 0 !important;
2019-08-27 02:40:04 +03:00
font: menu !important;
-moz-box-align: center !important;
transition: 0.3s;
2019-07-03 02:03:21 +03:00
}
.subviewbutton-iconic {
-moz-box-pack: center !important;
}
2019-07-03 02:03:21 +03:00
/* Flat Buttons */
#nav-bar toolbarbutton:not(#urlbar-zoom-button):not(.subviewbutton),
.close-icon:not(.tab-close-button),
button.close,
#protections-popup-info-button,
.permission-popup-permission-remove-button {
background: transparent !important;
transition: 0.3s;
}
2019-07-03 02:03:21 +03:00
/* Buttons with margins */
#nav-bar toolbarbutton:not(#urlbar-zoom-button):not(.subviewbutton),
.notification-button,
.subviewbutton.panel-subview-footer:not(:only-of-type),
.panel-footer button:not(:only-of-type) {
2021-06-06 01:56:15 +03:00
margin: 0 3px !important;
2019-07-03 02:03:21 +03:00
}
.close-icon:not(.tab-close-button) {
margin-left: 6px !important;
}
2019-07-03 02:03:21 +03:00
/* Text buttons */
2021-06-03 04:42:29 +03:00
menulist,
2019-07-03 02:03:21 +03:00
.subviewbutton.panel-subview-footer,
.panel-footer button,
#appMenu-popup .panel-banner-item,
2021-04-23 06:59:50 +03:00
#appMenu-popup #appMenu-zoomReset-button2:not(#hack),
#tracking-protection-preferences-button:not(#hack),
2019-08-01 23:23:16 +03:00
.findbar-container toolbarbutton.findbar-button,
.notification-button,
#PanelUI-panic-view-button,
2019-08-20 06:55:37 +03:00
.tracking-protection-button,
.dialog-button,
.autocomplete-richlistitem[type="loginsFooter"],
.dialog-button-box button,
2021-07-27 03:13:15 +03:00
.toolbaritem-combined-buttons:is(:not([cui-areatype="toolbar"]), [overflowedItem="true"]) > #appMenu-fxa-label2:not(#hack),
.button.connect-device,
#item-choose button,
#editBMPanel_newFolderButton {
2019-07-03 02:03:21 +03:00
padding: 2px 16px !important;
2019-07-05 21:06:25 +03:00
}
.subviewbutton.panel-subview-footer label,
.panel-footer button,
#appMenu-popup .panel-banner-item .toolbarbutton-text,
#appMenu-popup #appMenu-zoomReset-button2:not(#hack),
#tracking-protection-preferences-button:not(#hack),
.findbar-container toolbarbutton.findbar-button,
.notification-button,
#PanelUI-panic-view-button,
.tracking-protection-button,
.dialog-button,
.autocomplete-richlistitem[type="loginsFooter"],
.dialog-button-box button,
.button.connect-device,
#item-choose button {
2019-07-05 21:06:25 +03:00
text-align: center !important;
2019-07-03 02:03:21 +03:00
}
2019-07-10 19:01:32 +03:00
/* Drop down buttons */
#sidebar-switcher-target,
#viewButton {
padding: 2px 16px !important;
2019-07-10 19:01:32 +03:00
position: relative;
}
2019-08-08 22:14:04 +03:00
#sidebar-switcher-arrow,
#viewButton .button-menu-dropmarker { /* Arrow position, type b */
transform: translate(6px, 0)
}
.menulist-label-box {
padding: 2px 26px 2px 16px !important;
position: relative;
}
2019-07-10 19:01:32 +03:00
.menulist-label-box:after { /* Arrow position */
position: absolute !important;
right: 8px !important;
top: 8px !important;
}
.menulist-label-box:after { /* Create arrow if icon tag no exist */
content: "";
}
2019-07-03 02:03:21 +03:00
/* Hover buttons */
2021-06-03 04:42:29 +03:00
menulist:hover,
2019-07-03 02:03:21 +03:00
.subviewbutton.panel-subview-footer:hover,
.panel-footer button:hover,
#downloadsPanel-mainView .download-state .downloadButton:hover,
#appMenu-popup .panel-banner-item:hover,
#appMenu-popup .toolbaritem-combined-buttons toolbarbutton:not(#appMenu-fxa-label):not([disabled="true"]):hover,
#context-navigation menuitem:not([disabled="true"]):hover,
.identity-popup-preferences-button:not(#hack):hover,
.findbar-container toolbarbutton:hover,
.findbar-closebutton .toolbarbutton-icon:hover,
#sidebar-switcher-target:hover,
2019-07-06 19:07:00 +03:00
#viewButton:hover,
2019-07-10 19:01:32 +03:00
menulist:hover .menulist-label-box,
2019-08-01 23:23:16 +03:00
.expander-down:hover, .expander-up:hover,
.notification-button:hover,
#identity-popup-security-expander:hover,
2019-08-20 06:55:37 +03:00
.tracking-protection-button:hover,
.dialog-button:hover,
.autocomplete-richlistitem[type="loginsFooter"]:hover,
.dialog-button-box button:not([disabled="true"]):hover,
2021-06-03 04:44:14 +03:00
.searchbar-engine-one-off-item:hover,
.button.connect-device:hover,
#editBMPanel_newFolderButton:hover {
outline: 0 !important;
background: var(--gnome-button-hover-background) !important;
}
/* Hover flat buttons */
#nav-bar toolbarbutton:not(#urlbar-zoom-button):not(.subviewbutton):not([open]):not([disabled="true"]):not([checked]):hover,
.close-icon:not(.tab-close-button):hover,
button.close:hover,
#protections-popup-info-button:hover,
.permission-popup-permission-remove-button:hover,
#item-choose button:hover {
2019-07-03 02:03:21 +03:00
outline: 0 !important;
background: var(--gnome-button-flat-hover-background) !important;
2019-07-03 02:03:21 +03:00
}
/* Active buttons */
2021-06-03 04:42:29 +03:00
menulist[open],
2019-07-03 02:03:21 +03:00
.subviewbutton.panel-subview-footer:active,
.panel-footer button:active,
#downloadsPanel-mainView .download-state .downloadButton:active,
#appMenu-popup .panel-banner-item:active,
#appMenu-popup .toolbaritem-combined-buttons toolbarbutton:not([disabled="true"]):not(#appMenu-fxa-label):active,
#context-navigation menuitem:active:not([disabled="true"]),
.identity-popup-preferences-button:not(#hack):active,
.findbar-container toolbarbutton[checked],
.findbar-container toolbarbutton:active,
#sidebar-switcher-target:active, #sidebar-switcher-target.active,
2019-07-06 19:07:00 +03:00
#viewButton[open],
2019-07-10 19:01:32 +03:00
menulist[open] .menulist-label-box,
2019-08-01 23:23:16 +03:00
.expander-down:active, .expander-up:active,
.notification-button:active,
#identity-popup-security-expander:active,
2019-08-20 06:55:37 +03:00
.tracking-protection-button:active,
.dialog-button:active,
.autocomplete-richlistitem[type="loginsFooter"]:active,
.dialog-button-box button:not([disabled="true"]):active,
.button.connect-device:active,
#editBMPanel_newFolderButton:active {
background: var(--gnome-button-active-background) !important;
}
/* 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(.subviewbutton):not(.subviewbutton):not([disabled="true"])[open],
#nav-bar toolbarbutton:not(#urlbar-zoom-button):not(.subviewbutton):not([disabled="true"])[checked],
.close-icon:not(.tab-close-button):active,
button.close:active,
#protections-popup-info-button:not(#hack):active,
#protections-popup-info-button:not(#hack)[checked],
.permission-popup-permission-remove-button:active,
#item-choose button:active {
background: var(--gnome-button-flat-active-background) !important;
2019-07-03 02:03:21 +03:00
}
/* Disabled buttons */
#nav-bar toolbarbutton:not(#urlbar-zoom-button)[disabled="true"],
#appMenu-popup .toolbaritem-combined-buttons toolbarbutton[disabled="true"],
#context-navigation menuitem[disabled="true"],
.dialog-button-box button[disabled="true"] {
opacity: .5 !important;
2019-07-03 02:03:21 +03:00
}
/* Inactive window buttons */
#nav-bar toolbarbutton:not(#urlbar-zoom-button):not(.subviewbutton):-moz-window-inactive,
.findbar-container toolbarbutton:-moz-window-inactive,
2019-07-06 19:07:00 +03:00
#sidebar-switcher-target:-moz-window-inactive,
2019-08-01 23:23:16 +03:00
#viewButton:-moz-window-inactive,
2020-01-17 17:06:12 +02:00
.notification-button:-moz-window-inactive {
2019-07-03 02:03:21 +03:00
background: var(--gnome-inactive-button-background) !important;
box-shadow: var(--gnome-inactive-button-box-shadow) !important;
border-color: var(--gnome-inactive-button-border-color) !important;
}
/* Circle buttons */
#downloadsPanel-mainView .download-state .downloadButton,
2021-06-03 04:44:14 +03:00
.permission-popup-permission-remove-button:not(#hack) {
2019-07-03 02:03:21 +03:00
border-radius: 100% !important;
}
/* Combined buttons */
2022-12-16 20:01:43 +02:00
#nav-bar .toolbaritem-combined-buttons:not(.unified-extensions-item) toolbarbutton:not(:last-of-type):not(#hack),
#appMenu-popup .toolbaritem-combined-buttons:not(.unified-extensions-item) toolbarbutton:not(:last-of-type):not(#appMenu-zoomEnlarge-button),
#context-navigation menuitem:not(:last-of-type),
2019-08-01 23:25:30 +03:00
.findbar-container toolbarbutton.findbar-find-previous,
2021-05-10 15:58:52 +03:00
.findbar-button:not(:last-of-type),
.search-panel-one-offs .searchbar-engine-one-off-item:not(:last-child) {
2019-07-03 02:03:21 +03:00
border-top-right-radius: 0 !important;
border-bottom-right-radius: 0 !important;
border-right-width: 0 !important;
margin-right: 0 !important;
}
2022-12-16 20:01:43 +02:00
#nav-bar .toolbaritem-combined-buttons:not(.unified-extensions-item) toolbarbutton:not(:first-of-type):not(#hack),
#appMenu-popup .toolbaritem-combined-buttons:not(.unified-extensions-item) toolbarbutton:not(:first-of-type):not(#appMenu-fullscreen-button),
#context-navigation menuitem:not(:first-of-type),
.findbar-container toolbarbutton.findbar-find-previous,
2019-08-01 23:25:30 +03:00
.findbar-container toolbarbutton.findbar-find-next,
2021-05-10 15:58:52 +03:00
.findbar-button:not(:first-of-type),
.search-panel-one-offs .searchbar-engine-one-off-item:not(:first-child) {
2019-07-03 02:03:21 +03:00
border-top-left-radius: 0 !important;
border-bottom-left-radius: 0 !important;
margin-left: 0 !important;
}
2022-12-16 20:01:43 +02:00
#nav-bar .toolbaritem-combined-buttons:not(.unified-extensions-item) {
2019-07-03 02:03:21 +03:00
margin-left: 0 !important;
margin-right: 0 !important;
}
/* Opaque buttons */
#appMenu-popup .panel-banner-item[notificationid="update-restart"],
2019-07-03 02:03:21 +03:00
button.popup-notification-primary-button,
#editBookmarkPanelDoneButton,
2021-06-03 19:09:46 +03:00
#tracking-action-block,
.button.connect-device,
#editBookmarkPanelRemoveButton,
#PanelUI-panic-view-button {
2019-07-03 02:03:21 +03:00
color: white !important;
font-weight: bold !important;
2019-07-03 02:03:21 +03:00
}
/* Buttons with suggested action */
#appMenu-popup .panel-banner-item[notificationid="update-restart"],
button.popup-notification-primary-button:not(#hack),
#editBookmarkPanelDoneButton,
#tracking-action-block,
.button.connect-device {
background-color: var(--gnome-button-suggested-action-background) !important;
}
2019-07-03 02:03:21 +03:00
/* Buttons with destructive action */
2019-08-07 07:58:27 +03:00
#editBookmarkPanelRemoveButton,
#PanelUI-panic-view-button {
background-color: var(--gnome-button-destructive-action-background) !important;
2019-07-03 02:03:21 +03:00
}
/* Opaque buttons hover */
#appMenu-popup .panel-banner-item[notificationid="update-restart"]:hover,
button.popup-notification-primary-button:hover,
#editBookmarkPanelDoneButton:hover,
#tracking-action-block:hover,
.button.connect-device:hover,
2019-08-07 07:58:27 +03:00
#editBookmarkPanelRemoveButton:hover,
#PanelUI-panic-view-button:hover {
background-image: linear-gradient(rgba(255, 255, 255, .1), rgba(255, 255, 255, .1)) !important;
2019-07-03 02:03:21 +03:00
}
/* Opaque buttons active */
#appMenu-popup .panel-banner-item[notificationid="update-restart"]:active,
button.popup-notification-primary-button:active,
#editBookmarkPanelDoneButton:active,
#tracking-action-block:active,
.button.connect-device:active,
2019-08-07 07:58:27 +03:00
#editBookmarkPanelRemoveButton:active,
#PanelUI-panic-view-button:active {
background-image: linear-gradient(rgba(0, 0, 0, .2), rgba(0, 0, 0, .2)) !important;
}