Update csd.css

This commit is contained in:
vinceliuice 2025-02-12 11:48:27 +08:00
parent 83f8751767
commit 34bb3b6154

View File

@ -2,8 +2,8 @@
@namespace xul url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/* Headerbar top border corners rounded */
:root[tabsintitlebar], :root[customtitlebar] {
/* Headerbar top border corners rounded */
&:root[sizemode="normal"]:not([gtktiledwindow="true"]) {
#nav-bar {
border-top-left-radius: env(-moz-gtk-csd-titlebar-radius, 12px) !important;
@ -32,7 +32,6 @@
}
}
/* Always show nav bar window buttons*/
#nav-bar > .titlebar-buttonbox-container {
display: flex !important;
@ -45,11 +44,6 @@
}
}
/* Fullscreen headerbar padding for 1 button */
&:root[inFullscreen] #nav-bar {
padding-right: 50px !important;
}
/* Window buttons box */
#nav-bar .titlebar-buttonbox-container,
#titlebar .titlebar-buttonbox-container,
@ -78,13 +72,7 @@
padding: 2px 0 !important;
--inactive-titlebar-opacity: 1 !important;
}
&:root[inFullscreen] #nav-bar .titlebar-button,
&:root[inFullscreen] #titlebar .titlebar-button {
height: 24px;
width: 24px;
margin: 12px 4px !important;
padding: 0 !important;
}
#nav-bar .titlebar-button .toolbarbutton-icon,
#nav-bar:-moz-window-inactive .titlebar-button .toolbarbutton-icon,
#titlebar .titlebar-button .toolbarbutton-icon,
@ -92,14 +80,30 @@
opacity: 0 !important;
}
/* Remove close and minimize buttons from fullscreen buttons */
&:root[inFullscreen] #window-controls #close-button,
&:root[inFullscreen] #window-controls #minimize-button,
&:root[inFullscreen] #titlebar .titlebar-buttonbox .titlebar-close,
&:root[inFullscreen] #titlebar .titlebar-buttonbox .titlebar-min,
&:root[inFullscreen] #nav-bar .titlebar-buttonbox .titlebar-close,
&:root[inFullscreen] #nav-bar .titlebar-buttonbox .titlebar-min {
display: none !important;
/* Fullscreen headerbar */
&:root[inFullscreen] {
/* Fullscreen headerbar padding for 1 button */
#nav-bar {
padding-right: 50px !important;
}
#nav-bar .titlebar-button,
#titlebar .titlebar-button {
height: 24px;
width: 24px;
margin: 12px 4px !important;
padding: 0 !important;
}
/* Remove close and minimize buttons from fullscreen buttons */
#window-controls #close-button,
#window-controls #minimize-button,
#titlebar .titlebar-buttonbox .titlebar-close,
#titlebar .titlebar-buttonbox .titlebar-min,
#nav-bar .titlebar-buttonbox .titlebar-close,
#nav-bar .titlebar-buttonbox .titlebar-min {
display: none !important;
}
}
}
@ -133,7 +137,7 @@
/* Left window buttons */
@media (-moz-gtk-csd-reversed-placement) {
:root[tabsintitlebar], :root[customtitlebar] {
:root[tabsintitlebar], :root[customtitlebar] {
&:root:not([inFullscreen]) #nav-bar {
padding-right: 6px !important;
}
@ -150,7 +154,7 @@
&:root[inFullscreen] #nav-bar {
padding-left: 50px !important;
}
}
}
/* Window controls: at least 1 button */
@media (-moz-gtk-csd-minimize-button), (-moz-gtk-csd-maximize-button), (-moz-gtk-csd-close-button) {