From a6ab9b7efddd8224a438b2092c7d5e1d52520a0c Mon Sep 17 00:00:00 2001 From: bmFtZQ <62812711+bmFtZQ@users.noreply.github.com> Date: Thu, 16 Feb 2023 13:21:46 +0800 Subject: [PATCH] fix spacing before first tab #80 --- chrome/content/common.css | 8 +++++--- chrome/toolbar/tabbar.css | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/chrome/content/common.css b/chrome/content/common.css index b82a5b1..469f685 100644 --- a/chrome/content/common.css +++ b/chrome/content/common.css @@ -78,7 +78,8 @@ } /* preferences */ -@-moz-document url-prefix(about:preferences), url-prefix(about:addons) { +@-moz-document url-prefix(about:preferences), +url-prefix(about:addons) { .category[selected] { position: relative !important; border-radius: 4px !important; @@ -96,8 +97,9 @@ background-color: var(--in-content-accent-color); border-radius: 3px; position: absolute; - left: 0; - top: 12px; + left: 2px; + top: 50%; + translate: 0 -50%; } button.tab-button:hover { diff --git a/chrome/toolbar/tabbar.css b/chrome/toolbar/tabbar.css index dbd93c6..d91890b 100644 --- a/chrome/toolbar/tabbar.css +++ b/chrome/toolbar/tabbar.css @@ -347,7 +347,7 @@ toolbarbutton[part="scrollbutton-down"] { margin-top: calc(2px + var(--tab-block-margin)) !important; } -#tabbrowser-tabs:not([overflow="true"]) .tabbrowser-tab[first-visible-tab] { +#tabbrowser-tabs:not([overflow="true"]) .tabbrowser-tab:first-of-type { margin-inline-start: 8px !important; }