mobile-config-firefox/chrome/overlay_menubar.css

41 lines
1.3 KiB
CSS
Raw Normal View History

2020-05-22 05:13:58 +00:00
/* 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. */
2020-04-14 10:14:21 +00:00
/* Makes menubar appear as overlay in the top left corner */
2019-08-11 19:26:26 +00:00
#toolbar-menubar{
position: fixed;
display: flex;
2019-08-11 19:26:26 +00:00
top: 0;
width: 100vw;
height: initial !important;
z-index: 10;
}
#toolbar-menubar[autohide="true"][inactive="true"]{ height: 0px !important; }
#toolbar-menubar > spacer{ flex-grow: 1 }
2019-08-11 19:26:26 +00:00
#toolbar-menubar[inactive] > .titlebar-buttonbox-container{ display: none }
#main-menubar{
height: calc(var(--tab-min-height) + 2 * var(--tab-block-margin,0px));
background-color: var(--arrowpanel-background);
color: var(--arrowpanel-color);
}
2019-08-11 19:26:26 +00:00
#menubar-items{
-moz-box-orient: horizontal !important; /* Fx <112 compatibility */
flex-direction: row !important;
}
2019-08-11 19:26:26 +00:00
#menubar-items::after{
content: "";
display: flex;
2019-08-11 19:26:26 +00:00
width: 30px;
height: calc(var(--tab-min-height) + 2 * var(--tab-block-margin,0px));
background-image: linear-gradient(to right, var(--arrowpanel-background) 30%, transparent);
}
@media (-moz-gtk-csd-reversed-placement){
#toolbar-menubar[autohide="true"]:not([inactive]) > .titlebar-buttonbox-container{ display: none }
}