2018-09-26 18:37:12 +03:00
|
|
|
/* GNOME CSD styles for headerbar on Firefox [tabsintitlebar] */
|
|
|
|
|
|
|
|
@namespace xul url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
|
|
|
|
2019-06-27 06:12:28 +03:00
|
|
|
#main-window {
|
|
|
|
-moz-appearance: -moz-window-titlebar !important;
|
2018-09-26 18:37:12 +03:00
|
|
|
}
|
2019-06-02 21:15:51 +03:00
|
|
|
|
2019-06-27 06:12:28 +03:00
|
|
|
/* Headerbar top border corners rounded */
|
|
|
|
:root[tabsintitlebar]:not([inFullscreen]):not([sizemode="maximized"]) #nav-bar {
|
|
|
|
border-radius: 7px 7px 0 0 !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Window buttons: at least 1 button */
|
2019-06-02 21:15:51 +03:00
|
|
|
@media (-moz-gtk-csd-minimize-button), (-moz-gtk-csd-maximize-button), (-moz-gtk-csd-close-button) {
|
|
|
|
:root[tabsintitlebar]:not([inFullscreen]) #nav-bar {
|
|
|
|
padding-right: 50px !important;
|
|
|
|
}
|
2019-02-17 04:34:41 +02:00
|
|
|
}
|
2019-06-27 06:12:28 +03:00
|
|
|
/* Window buttons: at least 2 buttons */
|
2019-06-02 21:15:51 +03:00
|
|
|
@media (-moz-gtk-csd-minimize-button) and (-moz-gtk-csd-maximize-button),
|
|
|
|
(-moz-gtk-csd-minimize-button) and (-moz-gtk-csd-close-button),
|
|
|
|
(-moz-gtk-csd-maximize-button) and (-moz-gtk-csd-close-button) {
|
|
|
|
:root[tabsintitlebar]:not([inFullscreen]) #nav-bar {
|
|
|
|
padding-right: 90px !important;
|
|
|
|
}
|
|
|
|
}
|
2019-06-27 06:12:28 +03:00
|
|
|
/* Window buttons: 3 buttons */
|
2019-06-02 21:15:51 +03:00
|
|
|
@media (-moz-gtk-csd-minimize-button) and (-moz-gtk-csd-maximize-button) and (-moz-gtk-csd-close-button) {
|
|
|
|
:root[tabsintitlebar]:not([inFullscreen]) #nav-bar {
|
|
|
|
padding-right: 130px !important;
|
|
|
|
}
|
2019-02-17 04:34:41 +02:00
|
|
|
}
|
2018-09-26 18:37:12 +03:00
|
|
|
|
2019-06-27 06:12:28 +03:00
|
|
|
/* Fullscreen headerbar padding for 1 button */
|
2019-06-02 21:15:51 +03:00
|
|
|
:root[tabsintitlebar][inFullscreen] #nav-bar {
|
|
|
|
padding-right: 50px !important;
|
2018-09-26 18:37:12 +03:00
|
|
|
}
|
|
|
|
|
2019-06-02 21:15:51 +03:00
|
|
|
/* Window buttons box */
|
|
|
|
:root[tabsintitlebar] #titlebar .titlebar-buttonbox-container,
|
2019-07-09 17:33:27 +03:00
|
|
|
:root[tabsintitlebar] #titlebar-buttonbox-container,
|
2019-06-02 21:15:51 +03:00
|
|
|
:root[tabsintitlebar][inFullscreen] #window-controls {
|
2019-07-09 17:33:27 +03:00
|
|
|
-moz-appearance: none !important;
|
2019-09-10 03:36:41 +03:00
|
|
|
padding: 6px 3px;
|
2019-02-17 04:34:41 +02:00
|
|
|
position: absolute !important;
|
|
|
|
right: 0;
|
2019-07-09 17:33:27 +03:00
|
|
|
top: 0;
|
2019-02-17 04:34:41 +02:00
|
|
|
}
|
2019-06-02 21:15:51 +03:00
|
|
|
:root[tabsintitlebar] #titlebar .titlebar-buttonbox {
|
2018-11-03 19:02:24 +02:00
|
|
|
-moz-appearance: none !important;
|
2018-09-26 18:37:12 +03:00
|
|
|
}
|
2019-06-02 21:15:51 +03:00
|
|
|
|
2019-06-27 06:12:28 +03:00
|
|
|
/* Window buttons style */
|
2019-06-02 21:15:51 +03:00
|
|
|
:root[tabsintitlebar] #titlebar .titlebar-button,
|
|
|
|
:root[tabsintitlebar][inFullscreen] #window-controls toolbarbutton {
|
2018-09-26 18:37:12 +03:00
|
|
|
-moz-appearance: none !important;
|
2019-06-25 03:57:54 +03:00
|
|
|
border: 1px solid var(--gnome-button-border-color) !important;
|
2018-09-26 18:37:12 +03:00
|
|
|
border-color: transparent !important;
|
2019-06-04 03:47:27 +03:00
|
|
|
border-radius: 5px !important;
|
2018-09-26 18:37:12 +03:00
|
|
|
height: 34px;
|
2019-09-10 03:36:41 +03:00
|
|
|
margin: 0 3px !important;
|
2018-09-26 18:37:12 +03:00
|
|
|
padding: 0 2px !important;
|
|
|
|
width: 34px;
|
|
|
|
}
|
2019-06-02 21:15:51 +03:00
|
|
|
:root[tabsintitlebar] #titlebar .titlebar-button .toolbarbutton-icon,
|
|
|
|
:root[tabsintitlebar][inFullscreen] #window-controls toolbarbutton .toolbarbutton-icon {
|
2018-09-26 18:37:12 +03:00
|
|
|
width: 16px;
|
|
|
|
}
|
2019-06-02 21:15:51 +03:00
|
|
|
:root[tabsintitlebar] #titlebar:-moz-window-inactive .titlebar-button .toolbarbutton-icon,
|
|
|
|
:root[tabsintitlebar][inFullscreen] #window-controls:-moz-window-inactive toolbarbutton .toolbarbutton-icon {
|
|
|
|
opacity: .5 !important;
|
2018-09-26 18:37:12 +03:00
|
|
|
}
|
2019-06-02 21:15:51 +03:00
|
|
|
:root[tabsintitlebar] #titlebar:not(:-moz-window-inactive) .titlebar-button:not([disabled]):hover,
|
|
|
|
:root[tabsintitlebar][inFullscreen] #window-controls:not(:-moz-window-inactive) toolbarbutton:not([disabled]):hover {
|
2019-06-25 03:57:54 +03:00
|
|
|
background-image: var(--gnome-button-hover-background);
|
|
|
|
border-color: var(--gnome-button-border-color) !important;
|
|
|
|
border-bottom-color: var(--gnome-button-border-accent-color) !important;
|
|
|
|
box-shadow: var(--gnome-button-box-shadow);
|
2018-09-26 18:37:12 +03:00
|
|
|
}
|
2019-06-02 21:15:51 +03:00
|
|
|
:root[tabsintitlebar] #titlebar:not(:-moz-window-inactive) .titlebar-button:not([disabled]):active,
|
|
|
|
:root[tabsintitlebar][inFullscreen] #window-controls:not(:-moz-window-inactive) toolbarbutton:not([disabled]):active {
|
2019-07-09 17:33:27 +03:00
|
|
|
background: var(--gnome-button-active-background);
|
2019-06-25 03:57:54 +03:00
|
|
|
box-shadow: var(--gnome-button-active-box-shadow);
|
2019-07-09 17:33:27 +03:00
|
|
|
border-color: var(--gnome-button-active-border-color) !important;
|
2018-09-26 18:37:12 +03:00
|
|
|
}
|
|
|
|
|
2019-06-27 06:12:28 +03:00
|
|
|
/* Remove close and minimize buttons from fullscreen buttons */
|
2019-06-02 21:15:51 +03:00
|
|
|
:root[tabsintitlebar][inFullscreen] #window-controls #close-button,
|
|
|
|
:root[tabsintitlebar][inFullscreen] #window-controls #minimize-button {
|
|
|
|
display: none;
|
2018-09-26 18:37:12 +03:00
|
|
|
}
|
|
|
|
|
2019-06-02 21:15:51 +03:00
|
|
|
/* Left window buttons */
|
|
|
|
@media (-moz-gtk-csd-reversed-placement) {
|
|
|
|
:root[tabsintitlebar]:not([inFullscreen]) #nav-bar {
|
|
|
|
padding-right: 3px !important;
|
2018-09-26 18:37:12 +03:00
|
|
|
}
|
2019-06-02 21:15:51 +03:00
|
|
|
|
|
|
|
/* Window buttons box */
|
|
|
|
:root[tabsintitlebar] #titlebar .titlebar-buttonbox-container {
|
|
|
|
left: 0;
|
|
|
|
right: auto;
|
2018-09-26 18:37:12 +03:00
|
|
|
}
|
2019-06-02 21:15:51 +03:00
|
|
|
|
|
|
|
/* Window controls: at least 1 button */
|
|
|
|
@media (-moz-gtk-csd-minimize-button), (-moz-gtk-csd-maximize-button), (-moz-gtk-csd-close-button) {
|
|
|
|
:root[tabsintitlebar]:not([inFullscreen]) #nav-bar {
|
|
|
|
padding-left: 50px !important;
|
|
|
|
}
|
2018-09-26 18:37:12 +03:00
|
|
|
}
|
2019-06-02 21:15:51 +03:00
|
|
|
/* Window controls: at least 2 buttons */
|
|
|
|
@media (-moz-gtk-csd-minimize-button) and (-moz-gtk-csd-maximize-button),
|
|
|
|
(-moz-gtk-csd-minimize-button) and (-moz-gtk-csd-close-button),
|
|
|
|
(-moz-gtk-csd-maximize-button) and (-moz-gtk-csd-close-button) {
|
|
|
|
:root[tabsintitlebar]:not([inFullscreen]) #nav-bar {
|
|
|
|
padding-left: 90px !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
/* Window controls: 3 buttons */
|
|
|
|
@media (-moz-gtk-csd-minimize-button) and (-moz-gtk-csd-maximize-button) and (-moz-gtk-csd-close-button) {
|
|
|
|
:root[tabsintitlebar]:not([inFullscreen]) #nav-bar {
|
|
|
|
padding-left: 130px !important;
|
|
|
|
}
|
|
|
|
}
|
2018-09-26 18:37:12 +03:00
|
|
|
}
|
|
|
|
|
2019-07-09 17:33:27 +03:00
|
|
|
/* Remove tabsbar titlebar blank spaces */
|
|
|
|
:root[tabsintitlebar] #TabsToolbar .titlebar-placeholder {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
|
2019-06-27 06:12:28 +03:00
|
|
|
/* Prevent menubar from breaking */
|
2019-06-02 21:15:51 +03:00
|
|
|
:root[tabsintitlebar] #toolbar-menubar:not([inactive=true]) {
|
|
|
|
height: 30px !important;
|
|
|
|
margin-bottom: 8px;
|
|
|
|
}
|
2019-06-27 06:12:28 +03:00
|
|
|
|
|
|
|
/* Remove default style of titlebar */
|
2019-06-02 21:15:51 +03:00
|
|
|
:root[tabsintitlebar] #titlebar {
|
|
|
|
-moz-appearance: none !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Fix the issue when dragging tabs */
|
|
|
|
:root[tabsintitlebar] #navigator-toolbox[movingtab] #TabsToolbar {
|
|
|
|
padding-bottom: 0 !important;
|
|
|
|
}
|
2019-07-06 19:19:14 +03:00
|
|
|
|
2019-07-09 17:33:27 +03:00
|
|
|
/* FF 60 fixes */
|
|
|
|
:root[tabsintitlebar] #titlebar[style="margin-bottom: -1px;"] {
|
2019-08-14 00:17:37 +03:00
|
|
|
margin-bottom: -38px !important;
|
2019-07-09 17:33:27 +03:00
|
|
|
}
|
|
|
|
:root[tabsintitlebar] #titlebar-content {
|
|
|
|
display: block !important;
|
|
|
|
position: absolute;
|
|
|
|
height: 38px !important;
|
|
|
|
top: 0 !important;
|
|
|
|
}
|
|
|
|
:root[tabsintitlebar] #titlebar-buttonbox {
|
|
|
|
height: auto !important;
|
|
|
|
padding: 0 !important;
|
|
|
|
margin: 0 !important;
|
|
|
|
}
|
|
|
|
:root[tabsintitlebar] #titlebar-content .titlebar-button {
|
|
|
|
padding: 0 7px !important;
|
|
|
|
}
|