fenix-fox/chrome/show_window_title_in_menubar.css

25 lines
866 B
CSS
Raw Normal View History

2020-05-22 07:13:58 +02:00
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/show_window_title_in_menubar.css made available under Mozilla Public License v. 2.0
See the above repository for updates as well as full license text. */
2020-01-11 21:48:33 +01:00
/* Shows window title in menubar */
/* Enable menubar for correct behavior */
@-moz-document url(chrome://browser/content/browser.xhtml){
:root:not([sizemode="fullscreen"]) > head{
display: block;
position: fixed;
top: 2px;
right: 140px; /* Space for window controls */
width: calc(100vw - 440px); /* Window width - window control width - menuitem (English) width */
2020-02-01 14:47:27 +01:00
text-align: center;
z-index: 1;
pointer-events: none;
text-overflow: ellipsis;
overflow-x: hidden;
}
2020-01-11 21:48:33 +01:00
head > *{ display: none }
2020-02-01 14:47:27 +01:00
head > title{
display: contents;
max-width: 50vw;
white-space: nowrap;
2020-02-01 14:47:27 +01:00
}
2020-01-11 21:48:33 +01:00
}