mirror of
https://codeberg.org/claui/mobile-config-firefox.git
synced 2024-11-14 05:10:16 +00:00
35 lines
No EOL
1.2 KiB
CSS
35 lines
No EOL
1.2 KiB
CSS
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/overlay_menubar.css made available under Mozilla Public License v. 2.0
|
|
See the above repository for updates as well as full license text. */
|
|
|
|
/* Makes menubar appear as overlay in the top left corner */
|
|
|
|
#toolbar-menubar{
|
|
position: fixed;
|
|
display: flex;
|
|
top: 0;
|
|
width: 100vw;
|
|
height: initial !important;
|
|
z-index: 10;
|
|
}
|
|
|
|
#toolbar-menubar[autohide="true"][inactive="true"]{ height: 0px !important; }
|
|
|
|
:root[tabsintitlebar][sizemode="maximized"] #toolbar-menubar{ top: 8px; }
|
|
|
|
#toolbar-menubar > spacer{ flex-grow: 1 }
|
|
#toolbar-menubar[inactive] > .titlebar-buttonbox-container{ display: none }
|
|
|
|
#main-menubar{ height: calc(var(--tab-min-height) + 4px); background-color: var(--toolbar-bgcolor); }
|
|
|
|
#menubar-items{ -moz-box-orient: horizontal !important; }
|
|
#menubar-items::after{
|
|
content: "";
|
|
display: -moz-box;
|
|
width: 30px;
|
|
height: calc(var(--tab-min-height) + 4px);
|
|
background-image: linear-gradient(to right, var(--toolbar-bgcolor) 30%, transparent);
|
|
}
|
|
|
|
@supports -moz-bool-pref("layout.css.osx-font-smoothing.enabled"){
|
|
#toolbar-menubar[autohide="true"]:not([inactive]) > .titlebar-buttonbox-container{ display: none }
|
|
} |