Restrict title width to approximate of the empty space available in the toolbar
This commit is contained in:
parent
a5adf1fc77
commit
5b4bc28058
1 changed files with 11 additions and 2 deletions
|
@ -1,7 +1,16 @@
|
|||
/* Shows window title in menubar */
|
||||
/* Enable menubar for correct behavior */
|
||||
@-moz-document url(chrome://browser/content/browser.xhtml){
|
||||
head{ display: block; position: fixed; width: 100vw; text-align: center }
|
||||
head{
|
||||
display: block;
|
||||
position: fixed;
|
||||
right: 140px; /* Space for window controls */
|
||||
width: calc(100vw - 440px); /* Window width - window control width - menuitem (English) width */
|
||||
text-align: center
|
||||
}
|
||||
head > *{ display: none }
|
||||
head > title{ display: -moz-box; padding-top: 1px }
|
||||
head > title{ display: -moz-box; padding-top: 1px; max-width: 60vw; overflow-x: -moz-hidden-unscrollable; text-overflow: ellipsis }
|
||||
@media (-moz-os-version:windows-win10){
|
||||
:root[sizemode="maximized"] > head > title { padding-top: 10px }
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue