From b26f1d3fc650f2159d2fc337ec0103a8519f1914 Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Tue, 2 May 2023 17:15:40 +0300 Subject: [PATCH] centered top statuspanel: use inline margin to center the statuspanel --- chrome/centered_top_statuspanel.css | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/chrome/centered_top_statuspanel.css b/chrome/centered_top_statuspanel.css index bf70956..68a743c 100644 --- a/chrome/centered_top_statuspanel.css +++ b/chrome/centered_top_statuspanel.css @@ -1,14 +1,16 @@ /* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/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{ +#statuspanel:not([hidden]){ + display: flex !important; + width: 100%; + max-width: 100% !important; padding-top: 0 !important; - top: 0 !important; + inset-block: 0 auto !important; inset-inline: auto !important; - margin-left: 50%; } #statuspanel-label{ - margin-left: -50% !important; - border-width: 0 1px 1px 1px; - border-style: none solid solid solid !important; -} + border-width: 0 1px 1px 1px !important; + border-style: solid !important; + margin-inline: auto !important; +} \ No newline at end of file