From 396ac750ccd353a447802ebc88f87bd60b54d86b Mon Sep 17 00:00:00 2001 From: alstjr7375 Date: Tue, 29 Jun 2021 13:40:09 +0900 Subject: [PATCH] Add: Photon style New tab button - Smaller button --- userChrome.css | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/userChrome.css b/userChrome.css index 440caee..e56fd44 100644 --- a/userChrome.css +++ b/userChrome.css @@ -369,6 +369,20 @@ opacity: 1 !important; } + /** New tab button - Smaller button *****************************************/ + #tabs-newtab-button > .toolbarbutton-icon { + margin-left: 1px; + + /* Origianl: calc((var(--tab-min-height) - 16px) / 2) = 10px */ + --toolbarbutton-inner-padding: 6px; + } + :root[uidensity="compact"] #tabs-newtab-button > .toolbarbutton-icon { + --toolbarbutton-inner-padding: 4px; /* Photon: 6px */ + } + :root[uidensity="touch"] #tabs-newtab-button > .toolbarbutton-icon { + --toolbarbutton-inner-padding: 9px; /* Photon: 9px */ + } + /** Clipped tabs - Letters cleary *******************************************/ #tabbrowser-tabs[closebuttons=activetab] .tab-content:not([pinned]) { padding-inline-start: 8px !important;