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;
}
}

View File

@@ -1,4 +1,4 @@
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/centered_top_statuspanel.css made available under Mozilla Public License v. 2.0
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/deprecated/centered_top_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]){

View File

@@ -17,7 +17,7 @@
"buttonlike_toolbarbuttons.css":["buttons"],
"centered_tab_content.css":["tab","icon"],
"centered_tab_label.css":["tab"],
"centered_top_statuspanel.css":["status"],
"centered_top_statuspanel.css":["legacy"],
"context_menus_more_proton.css":["proton","menu"],
"classic_firefox_menu_button.css":["classic","menu"],
"classic_grid_main_menu_popup.css":["classic","menu","popup"],
@@ -161,5 +161,6 @@
"overlay_sidebar_header.css":["sidebar","hack"],
"compact_extensions_panel.css":["popup","menu","minimal"],
"tab_animated_active_border.css":["tab","effect","colors"],
"status_inside_menubar.css":["menubar","status","hack"]
"status_inside_menubar.css":["menubar","status","hack"],
"centered_statuspanel.css":["status"]
}

View File

@@ -16,7 +16,7 @@ button_effect_scale_onhover.css,buttons,effect
buttonlike_toolbarbuttons.css,buttons
centered_tab_content.css,tab,icon
centered_tab_label.css,tab
centered_top_statuspanel.css,status
centered_top_statuspanel.css,legacy
context_menus_more_proton.css,proton,menu
classic_firefox_menu_button.css,classic,menu
classic_grid_main_menu_popup.css,classic,menu,popup
@@ -161,3 +161,4 @@ overlay_sidebar_header.css,sidebar,hack
compact_extensions_panel.css,popup,menu,minimal
tab_animated_active_border.css,tab,effect,colors
status_inside_menubar.css,menubar,status,hack
centered_statuspanel.css,status
1 auto_devtools_theme_for_rdm.css,devtools,colors
16 buttonlike_toolbarbuttons.css,buttons
17 centered_tab_content.css,tab,icon
18 centered_tab_label.css,tab
19 centered_top_statuspanel.css,status centered_top_statuspanel.css,legacy
20 context_menus_more_proton.css,proton,menu
21 classic_firefox_menu_button.css,classic,menu
22 classic_grid_main_menu_popup.css,classic,menu,popup
161 compact_extensions_panel.css,popup,menu,minimal
162 tab_animated_active_border.css,tab,effect,colors
163 status_inside_menubar.css,menubar,status,hack
164 centered_statuspanel.css,status