2023-11-15 09:07:54 +00:00
|
|
|
// Prevent window background overflows window border
|
|
|
|
#main-window {
|
|
|
|
background-color: initial;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Prevent background flicker
|
|
|
|
#browser {
|
|
|
|
background: var(--material-tabbar);
|
|
|
|
}
|
|
|
|
|
2024-02-14 11:21:31 +00:00
|
|
|
#titlebar {
|
2023-11-15 09:07:54 +00:00
|
|
|
height: var(--tab-min-height);
|
|
|
|
-moz-box-pack: center;
|
|
|
|
pointer-events: none;
|
2024-02-14 11:21:31 +00:00
|
|
|
-moz-appearance: -moz-window-titlebar;
|
2023-11-15 09:07:54 +00:00
|
|
|
}
|
|
|
|
|
2024-02-06 10:53:57 +00:00
|
|
|
#zotero-title-bar {
|
|
|
|
border-top: 1px solid var(--toolbar-field-border-color);
|
|
|
|
}
|
|
|
|
|
2023-11-15 09:07:54 +00:00
|
|
|
#toolbar-menubar {
|
|
|
|
pointer-events: none;
|
|
|
|
visibility: visible;
|
|
|
|
// space for 30*30 icon
|
2024-02-14 11:21:31 +00:00
|
|
|
margin: 0 8px;
|
2024-01-13 11:45:20 +00:00
|
|
|
height: var(--tab-min-height);
|
2024-02-14 11:21:31 +00:00
|
|
|
appearance: none;
|
|
|
|
flex: 1;
|
2023-11-15 09:07:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#menubar-items {
|
|
|
|
pointer-events: all;
|
|
|
|
}
|
|
|
|
|
2024-01-13 11:45:20 +00:00
|
|
|
#main-menubar {
|
|
|
|
height: var(--tab-min-height);
|
|
|
|
}
|
|
|
|
|
2023-11-15 09:07:54 +00:00
|
|
|
.titlebar-buttonbox {
|
|
|
|
pointer-events: all;
|
2024-02-14 11:21:31 +00:00
|
|
|
margin: 0 10px;
|
2023-11-15 09:07:54 +00:00
|
|
|
}
|
|
|
|
|
2024-01-13 11:45:20 +00:00
|
|
|
.titlebar-button {
|
2024-02-14 11:21:31 +00:00
|
|
|
position: static;
|
2024-01-18 10:16:59 +00:00
|
|
|
// Fix KDE rendering bug
|
|
|
|
z-index: 1;
|
2024-01-13 11:45:20 +00:00
|
|
|
}
|
|
|
|
|
2023-11-15 09:07:54 +00:00
|
|
|
.titlebar-icon-container {
|
2024-02-14 11:21:31 +00:00
|
|
|
display: none;
|
2023-11-15 09:07:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Following rules from https://searchfox.org/mozilla-central/source/browser/themes/linux/browser.css
|
|
|
|
|
|
|
|
/* The button box must appear on top of the navigator-toolbox in order for
|
|
|
|
* click and hover mouse events to work properly for the button in the restored
|
|
|
|
* window state. Otherwise, elements in the navigator-toolbox, like the menubar,
|
|
|
|
* can swallow those events. */
|
|
|
|
.titlebar-buttonbox {
|
|
|
|
z-index: 1;
|
2024-02-14 11:21:31 +00:00
|
|
|
display: flex;
|
2023-11-15 09:07:54 +00:00
|
|
|
align-items: center;
|
2024-02-14 11:21:31 +00:00
|
|
|
height: var(--tab-min-height);
|
2023-11-15 09:07:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Render titlebar command buttons according to system config.
|
|
|
|
* Use full scale icons here as the Gtk+ does. */
|
|
|
|
.titlebar-min {
|
|
|
|
appearance: auto;
|
|
|
|
-moz-default-appearance: -moz-window-button-minimize;
|
|
|
|
order: env(-moz-gtk-csd-minimize-button-position);
|
|
|
|
}
|
|
|
|
.titlebar-max {
|
|
|
|
appearance: auto;
|
|
|
|
-moz-default-appearance: -moz-window-button-maximize;
|
|
|
|
order: env(-moz-gtk-csd-maximize-button-position);
|
|
|
|
}
|
|
|
|
.titlebar-restore {
|
|
|
|
appearance: auto;
|
|
|
|
-moz-default-appearance: -moz-window-button-restore;
|
|
|
|
order: env(-moz-gtk-csd-maximize-button-position);
|
|
|
|
}
|
|
|
|
.titlebar-close {
|
|
|
|
appearance: auto;
|
|
|
|
-moz-default-appearance: -moz-window-button-close;
|
|
|
|
order: env(-moz-gtk-csd-close-button-position);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* When using lightweight themes, use our own buttons since native ones might
|
|
|
|
* assume a native background in order to be visible. */
|
|
|
|
.titlebar-button:-moz-lwtheme {
|
|
|
|
appearance: none;
|
|
|
|
border-radius: 100%;
|
|
|
|
}
|
|
|
|
.titlebar-button > .toolbarbutton-icon:-moz-lwtheme {
|
|
|
|
padding: 6px;
|
|
|
|
-moz-context-properties: stroke;
|
|
|
|
stroke: currentColor;
|
|
|
|
}
|
|
|
|
.titlebar-min:-moz-lwtheme {
|
|
|
|
list-style-image: url(chrome://browser/skin/window-controls/minimize.svg);
|
|
|
|
}
|
|
|
|
.titlebar-max:-moz-lwtheme {
|
|
|
|
list-style-image: url(chrome://browser/skin/window-controls/maximize.svg);
|
|
|
|
}
|
|
|
|
.titlebar-restore:-moz-lwtheme {
|
|
|
|
list-style-image: url(chrome://browser/skin/window-controls/restore.svg);
|
|
|
|
}
|
|
|
|
.titlebar-close:-moz-lwtheme {
|
|
|
|
list-style-image: url(chrome://browser/skin/window-controls/close.svg);
|
|
|
|
}
|
|
|
|
.titlebar-button:-moz-lwtheme:hover {
|
|
|
|
background-color: color-mix(in srgb, currentColor 12%, transparent);
|
|
|
|
}
|
|
|
|
.titlebar-button:-moz-lwtheme:hover:active {
|
|
|
|
background-color: color-mix(in srgb, currentColor 20%, transparent);
|
|
|
|
}
|
|
|
|
.titlebar-close:-moz-lwtheme:hover {
|
|
|
|
background-color: #d70022;
|
|
|
|
color: white;
|
|
|
|
}
|
|
|
|
.titlebar-close:-moz-lwtheme:hover:active {
|
|
|
|
background-color: #ff0039;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (not (-moz-gtk-csd-minimize-button)) {
|
|
|
|
.titlebar-min {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@media (not (-moz-gtk-csd-maximize-button)) {
|
|
|
|
.titlebar-restore,
|
|
|
|
.titlebar-max {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@media (not (-moz-gtk-csd-close-button)) {
|
|
|
|
.titlebar-close {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (-moz-gtk-csd-reversed-placement) {
|
2024-02-14 11:21:31 +00:00
|
|
|
.titlebar-buttonbox {
|
|
|
|
order: -1;
|
|
|
|
margin-right: 0;
|
2023-11-15 09:07:54 +00:00
|
|
|
}
|
|
|
|
}
|