2020-05-22 05:13:58 +00: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 20:48:33 +00:00
|
|
|
/* Shows window title in menubar */
|
|
|
|
/* Enable menubar for correct behavior */
|
|
|
|
@-moz-document url(chrome://browser/content/browser.xhtml){
|
2020-02-02 10:53:13 +00:00
|
|
|
:root:not([sizemode="fullscreen"]) > head{
|
2020-01-11 21:06:38 +00:00
|
|
|
display: block;
|
|
|
|
position: fixed;
|
|
|
|
right: 140px; /* Space for window controls */
|
|
|
|
width: calc(100vw - 440px); /* Window width - window control width - menuitem (English) width */
|
2020-02-01 13:47:27 +00:00
|
|
|
text-align: center;
|
2020-10-31 07:57:03 +00:00
|
|
|
z-index: 1;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
2020-01-11 20:48:33 +00:00
|
|
|
head > *{ display: none }
|
2020-02-01 13:47:27 +00:00
|
|
|
head > title{
|
2020-10-31 07:57:03 +00:00
|
|
|
display: -moz-inline-box;
|
2020-02-01 13:47:27 +00:00
|
|
|
padding-top: 1px;
|
2020-10-31 07:57:03 +00:00
|
|
|
max-width: 50vw;
|
2020-02-01 13:47:27 +00:00
|
|
|
overflow-x: -moz-hidden-unscrollable;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
2020-01-11 21:06:38 +00:00
|
|
|
@media (-moz-os-version:windows-win10){
|
|
|
|
:root[sizemode="maximized"] > head > title { padding-top: 10px }
|
|
|
|
}
|
2020-01-11 20:48:33 +00:00
|
|
|
}
|