create centered_statuspanel.css and deprecate old one

This new defaults to bottom layout, but can be moved to top by setting
pref userchrome.centered-statuspanel.on-top.enabled
This commit is contained in:
MrOtherGuy
2023-05-10 19:37:14 +03:00
parent e8e15af36c
commit 26489fc1f8
4 changed files with 29 additions and 4 deletions

View File

@@ -0,0 +1,23 @@
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/centered_statuspanel.css made available under Mozilla Public License v. 2.0
See the above repository for updates as well as full license text. */
#statuspanel:not([hidden]){
display: flex !important;
justify-self: center !important;
padding-top: 0 !important;
inset-inline: auto !important;
}
#statuspanel-label{
border-width: 1px 1px 0px 1px !important;
border-style: solid !important;
margin-inline: auto !important;
}
/* Set this pref to true in about:config to make statuspanel show at top instead */
@supports -moz-bool-pref("userchrome.centered-statuspanel.on-top.enabled"){
#statuspanel:not([hidden]){
inset-block: 0 auto !important;
}
#statuspanel-label{
border-width: 0 1px 1px 1px !important;
}
}