Fix CSD for newer Firefox versions

This commit is contained in:
Rafael Mardojai CM 2019-02-16 21:34:41 -05:00
parent fc32fad244
commit 272bca28ef
2 changed files with 43 additions and 57 deletions

View File

@ -4,13 +4,25 @@
/* Navbar position */ /* Navbar position */
:root[tabsintitlebar] #nav-bar { :root[tabsintitlebar] #nav-bar {
margin-top: -47px !important; margin-top: 5px !important;
padding-right: 7px !important; padding-right: 7px !important;
position: relative; position: relative;
} }
:root[tabsintitlebar] #navigator-toolbox {
margin-top: -5px;
}
:root[tabsintitlebar] #toolbar-menubar:not([inactive=true]) {
height: 30px !important;
margin-bottom: 8px;
}
:root[tabsintitlebar] #titlebar {
-moz-appearance: none !important;
}
:root[tabsintitlebar] #toolbar-menubar { :root[tabsintitlebar] #TabsToolbar-customization-target {
padding-bottom: 0 !important; height: 37px !important;
margin-top: -8px !important;
-moz-appearance: none !important;
} }
/* Add window controls separator */ /* Add window controls separator */
@ -23,39 +35,29 @@
border-right: 1px solid rgba(0, 0, 0, .1); border-right: 1px solid rgba(0, 0, 0, .1);
} }
:root[tabsintitlebar] #titlebar {
height: 52px !important;
margin-bottom: 0px !important;
}
:root[tabsintitlebar] #titlebar-content {
margin-bottom: 0px !important;
}
/* Move window buttons next to the header bar */ /* Move window buttons next to the header bar */
:root[tabsintitlebar] #titlebar-buttonbox { :root[tabsintitlebar] #titlebar .titlebar-buttonbox-container {
position: absolute !important;
right: 0;
top: 5px;
-moz-appearance: none !important;
}
:root[tabsintitlebar] #titlebar .titlebar-buttonbox {
background-image: var(--gnome-headerbar-bgimage) !important; background-image: var(--gnome-headerbar-bgimage) !important;
border: none !important;
border-bottom: var(--gnome-headerbar-border-bottom) !important; border-bottom: var(--gnome-headerbar-border-bottom) !important;
box-shadow: var(--gnome-headerbar-box-shadow); box-shadow: var(--gnome-headerbar-box-shadow);
height: unset !important; height: unset !important;
margin-top: 0 !important; padding-right: 3px;
padding-bottom: 0 !important;
padding-right: 3px;
padding-top: 0 !important;
-moz-appearance: none !important; -moz-appearance: none !important;
} }
:root[tabsintitlebar] #titlebar .titlebar-buttonbox:-moz-window-inactive {
:root[tabsintitlebar] #titlebar-buttonbox:-moz-window-inactive {
background-image: var(--gnome-inactive-headerbar-bgimage) !important; background-image: var(--gnome-inactive-headerbar-bgimage) !important;
border-bottom: var(--gnome-inactive-headerbar-border-bottom) !important; border-bottom: var(--gnome-inactive-headerbar-border-bottom) !important;
box-shadow: var(--gnome-inactive-headerbar-box-shadow); box-shadow: var(--gnome-inactive-headerbar-box-shadow) !important;
}
:root[tabsintitlebar] #navigator-toolbox {
margin-top: -5px;
} }
/* Window buttons */ /* Window buttons */
:root[tabsintitlebar] #titlebar toolbarbutton { :root[tabsintitlebar] #titlebar .titlebar-button {
-moz-appearance: none !important; -moz-appearance: none !important;
border: var(--gnome-headerbar-button-border) !important; border: var(--gnome-headerbar-button-border) !important;
border-color: transparent !important; border-color: transparent !important;
@ -63,70 +65,54 @@
height: 34px; height: 34px;
margin: 6px 3px !important; margin: 6px 3px !important;
padding: 0 2px !important; padding: 0 2px !important;
position: relative;
transition: all .3s ease-out; transition: all .3s ease-out;
width: 34px; width: 34px;
} }
:root[tabsintitlebar] #titlebar toolbarbutton image { :root[tabsintitlebar] #titlebar .titlebar-button .toolbarbutton-icon {
filter: invert(85%); filter: invert(85%);
margin-left: 6px;
width: 16px; width: 16px;
} }
:root[tabsintitlebar] #titlebar:-moz-window-inactive toolbarbutton image {
:root[tabsintitlebar] #titlebar:-moz-window-inactive .titlebar-button .toolbarbutton-icon {
opacity: .7 !important; opacity: .7 !important;
} }
:root[tabsintitlebar] #titlebar:not(:-moz-window-inactive) toolbarbutton:not([disabled]):hover { :root[tabsintitlebar] #titlebar:not(:-moz-window-inactive) .titlebar-button:not([disabled]):hover {
background-image: var(--gnome-headerbar-button-hover-bgimage); background-image: var(--gnome-headerbar-button-hover-bgimage);
border: var(--gnome-headerbar-button-border) !important; border: var(--gnome-headerbar-button-border) !important;
} }
:root[tabsintitlebar] #titlebar:not(:-moz-window-inactive) toolbarbutton:not([disabled]):active { :root[tabsintitlebar] #titlebar:not(:-moz-window-inactive) .titlebar-button:not([disabled]):active {
background-image: var(--gnome-headerbar-button-active-bgimage); background-image: var(--gnome-headerbar-button-active-bgimage);
box-shadow: var(--gnome-headerbar-button-active-box-shadow); box-shadow: var(--gnome-headerbar-button-active-box-shadow);
border: var(--gnome-headerbar-button-border) !important; border: var(--gnome-headerbar-button-border) !important;
} }
:root[tabsintitlebar] #titlebar:not(:-moz-window-inactive) toolbarbutton[disabled] { :root[tabsintitlebar] #titlebar:not(:-moz-window-inactive) .titlebar-button[disabled] {
background-color: var(--gnome-headerbar-button-disabled-bgcolor); background-color: var(--gnome-headerbar-button-disabled-bgcolor);
box-shadow: var(--gnome-headerbar-button-disabled-box-shadow); box-shadow: var(--gnome-headerbar-button-disabled-box-shadow);
border: var(--gnome-headerbar-button-border) !important; border: var(--gnome-headerbar-button-border) !important;
} }
:root[tabsintitlebar] #titlebar-close .toolbarbutton-icon { :root[tabsintitlebar] #titlebar .titlebar-buttonbox .titlebar-close .toolbarbutton-icon {
filter: var(--gnome-icons-hack-filter); filter: var(--gnome-icons-hack-filter);
list-style-image: url("moz-icon://stock/window-close-symbolic?size=dialog") !important; list-style-image: url("moz-icon://stock/window-close-symbolic?size=dialog") !important;
} }
:root[tabsintitlebar] #titlebar-max .toolbarbutton-icon { :root[tabsintitlebar] #titlebar .titlebar-buttonbox .titlebar-max .toolbarbutton-icon {
filter: var(--gnome-icons-hack-filter); filter: var(--gnome-icons-hack-filter);
list-style-image: url("moz-icon://stock/window-maximize-symbolic?size=dialog") !important; list-style-image: url("moz-icon://stock/window-maximize-symbolic?size=dialog") !important;
} }
:root[tabsintitlebar] #titlebar-min .toolbarbutton-icon { :root[tabsintitlebar] #titlebar .titlebar-buttonbox .titlebar-min .toolbarbutton-icon {
filter: var(--gnome-icons-hack-filter); filter: var(--gnome-icons-hack-filter);
list-style-image: url("moz-icon://stock/window-minimize-symbolic?size=dialog") !important; list-style-image: url("moz-icon://stock/window-minimize-symbolic?size=dialog") !important;
} }
/* Remove ugly line before tabs */ /* Blank spaces on tabs start and end */
:root[tabsintitlebar] .titlebar-placeholder[type="pre-tabs"] { :root[tabsintitlebar] .titlebar-spacer {
border-inline-end: 0px solid !important; border-inline-end: 0px !important;
} width: 6px !important;
/* Remove blank space after tabs when window is maximized */
:root[tabsintitlebar] #main-window:not([sizemode="normal"]) .titlebar-placeholder[type="post-tabs"] {
display: none !important;
}
/* Remove window controls blank space after tabs */
:root[tabsintitlebar] .titlebar-placeholder[type="caption-buttons"] {
display: none !important;
}
/* Remove blank space before and after tabs */
:root[tabsintitlebar] .titlebar-placeholder[type="pre-tabs"],
:root[tabsintitlebar] .titlebar-placeholder[type="post-tabs"] {
display: none !important;
} }
/* Fix the issue when dragging tabs */ /* Fix the issue when dragging tabs */
:root[tabsintitlebar] #TabsToolbar[movingtab] + #nav-bar { :root[tabsintitlebar] #navigator-toolbox[movingtab] #TabsToolbar {
margin-top: -47px !important; padding-bottom: 0 !important;
} }
/* Window controls: at least 1 button */ /* Window controls: at least 1 button */
@ -154,7 +140,7 @@
:root[tabsintitlebar]:not([sizemode="maximized"]) #nav-bar { :root[tabsintitlebar]:not([sizemode="maximized"]) #nav-bar {
border-top-left-radius: 8px; border-top-left-radius: 8px;
} }
:root[tabsintitlebar]:not([sizemode="maximized"]) #titlebar-buttonbox { :root[tabsintitlebar]:not([sizemode="maximized"]) #TabsToolbar .titlebar-buttonbox {
border-top-right-radius: 8px; border-top-right-radius: 8px;
} }

View File

@ -136,7 +136,7 @@ panelview vbox.panel-subview-body > toolbarbutton label {
/* Customization overflow menu position */ /* Customization overflow menu position */
#customization-panel-container { #customization-panel-container {
padding: 0 75px 25px !important; padding: 0 75px 25px !important;
margin-top: -39px; margin-top: 10px;
z-index: 10; z-index: 10;
} }
#customization-panelWrapper > .panel-arrowbox { #customization-panelWrapper > .panel-arrowbox {