From b436b28843201dc9a1adec570f5ac5c879e7f597 Mon Sep 17 00:00:00 2001 From: "@user0" <> Date: Mon, 22 May 2023 21:17:11 +0200 Subject: [PATCH] =?UTF-8?q?Add=20@user0=E2=80=99s=20contributions=20as=20o?= =?UTF-8?q?f=202023-05-22?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/userChrome/numbered_tabs.css | 5 ----- src/userChrome/single_tab_mode.css | 5 +++++ src/userChrome/single_tab_mode_with_space_for_1_item.css | 5 +++++ src/userChrome/single_tab_mode_with_space_for_2_items.css | 5 +++++ src/userChrome/single_tab_mode_with_space_for_3_items.css | 5 +++++ 5 files changed, 20 insertions(+), 5 deletions(-) diff --git a/src/userChrome/numbered_tabs.css b/src/userChrome/numbered_tabs.css index 33852a9..43fdbec 100644 --- a/src/userChrome/numbered_tabs.css +++ b/src/userChrome/numbered_tabs.css @@ -20,11 +20,6 @@ See the above repository for updates as well as full license text. */ width: 0 !important; } - /* Shorten tab content width so that tab number is more visible */ - .tabbrowser-tab[selected]:not(:hover,[pinned]) > .tab-stack > .tab-content { - width: calc(100vw - 150px) !important; - } - /* Hide tab number when hovering so that tab close button is clickable */ .tabbrowser-tab:not([pinned]):hover .tab-content::after { visibility: hidden !important; diff --git a/src/userChrome/single_tab_mode.css b/src/userChrome/single_tab_mode.css index 5740de2..c3908f8 100644 --- a/src/userChrome/single_tab_mode.css +++ b/src/userChrome/single_tab_mode.css @@ -12,6 +12,11 @@ min-width: 100vw !important; } + /* Shorten tab content width so that tab number is more visible */ + .tabbrowser-tab[selected]:not(:hover,[pinned]) > .tab-stack > .tab-content { + width: calc(100vw - 30px) !important; + } + /* Hide Newtab and New-tab buttons */ #new-tab-button, #tabs-newtab-button { diff --git a/src/userChrome/single_tab_mode_with_space_for_1_item.css b/src/userChrome/single_tab_mode_with_space_for_1_item.css index 56366f4..c52e0c1 100644 --- a/src/userChrome/single_tab_mode_with_space_for_1_item.css +++ b/src/userChrome/single_tab_mode_with_space_for_1_item.css @@ -17,4 +17,9 @@ min-width: calc(100vw - 40px) !important; } + /* Shorten tab content width so that tab number is more visible */ + .tabbrowser-tab[selected]:not(:hover,[pinned]) > .tab-stack > .tab-content { + width: calc(100vw - 70px) !important; + } + } diff --git a/src/userChrome/single_tab_mode_with_space_for_2_items.css b/src/userChrome/single_tab_mode_with_space_for_2_items.css index 52086e1..425b2d3 100644 --- a/src/userChrome/single_tab_mode_with_space_for_2_items.css +++ b/src/userChrome/single_tab_mode_with_space_for_2_items.css @@ -17,4 +17,9 @@ min-width: calc(100vw - 80px) !important; } + /* Shorten tab content width so that tab number is more visible */ + .tabbrowser-tab[selected]:not(:hover,[pinned]) > .tab-stack > .tab-content { + width: calc(100vw - 110px) !important; + } + } diff --git a/src/userChrome/single_tab_mode_with_space_for_3_items.css b/src/userChrome/single_tab_mode_with_space_for_3_items.css index 32dec54..2480250 100644 --- a/src/userChrome/single_tab_mode_with_space_for_3_items.css +++ b/src/userChrome/single_tab_mode_with_space_for_3_items.css @@ -17,4 +17,9 @@ min-width: calc(100vw - 120px) !important; } + /* Shorten tab content width so that tab number is more visible */ + .tabbrowser-tab[selected]:not(:hover,[pinned]) > .tab-stack > .tab-content { + width: calc(100vw - 150px) !important; + } + }