From 14296a0aca8fbfa1312657010a56c703b87a4116 Mon Sep 17 00:00:00 2001 From: Vince Date: Sun, 5 Sep 2021 15:44:47 +0800 Subject: [PATCH] Update #415 --- .../Monterey/left-tab-close-button.css | 28 ++++++++++++++++++ src/other/firefox/Monterey/parts/tabsbar.css | 29 ------------------- .../WhiteSur/left-tab-close-button.css | 19 ++++++++++++ src/other/firefox/WhiteSur/parts/tabsbar.css | 20 ------------- src/other/firefox/userChrome-Monterey.css | 3 ++ src/other/firefox/userChrome-WhiteSur.css | 3 ++ 6 files changed, 53 insertions(+), 49 deletions(-) create mode 100644 src/other/firefox/Monterey/left-tab-close-button.css create mode 100644 src/other/firefox/WhiteSur/left-tab-close-button.css diff --git a/src/other/firefox/Monterey/left-tab-close-button.css b/src/other/firefox/Monterey/left-tab-close-button.css new file mode 100644 index 0000000..7a6faec --- /dev/null +++ b/src/other/firefox/Monterey/left-tab-close-button.css @@ -0,0 +1,28 @@ +@media (-moz-gtk-csd-reversed-placement) { +.tab-content { + display: flex; + flex-direction: row; + justify-content: center; + align-items: center; + padding-right: 20px !important; +} + + +.tabbrowser-tab > .tab-stack > .tab-content > .tab-close-button { + order: 1; + min-width: 16px; +} + +.tabbrowser-tab > .tab-stack > .tab-content > .tab-icon-stack { + order: 2; + margin-left: auto; +} +.tabbrowser-tab > .tab-stack > .tab-content > .tab-label-container { + order: 3; + margin-right: auto; +} + +.tabbrowser-tab > .tab-stack > .tab-content > .tab-label-container > .tab-secondary-label { + display: none; +} +} diff --git a/src/other/firefox/Monterey/parts/tabsbar.css b/src/other/firefox/Monterey/parts/tabsbar.css index 104c2ae..52eeb76 100644 --- a/src/other/firefox/Monterey/parts/tabsbar.css +++ b/src/other/firefox/Monterey/parts/tabsbar.css @@ -153,32 +153,3 @@ height: 16px !important; width: 16px !important; } - -@media (-moz-gtk-csd-reversed-placement) { -.tab-content { - display: flex; - flex-direction: row; - justify-content: center; - align-items: center; - padding-right: 20px !important; -} - - -.tabbrowser-tab > .tab-stack > .tab-content > .tab-close-button { - order: 1; - min-width: 16px; -} - -.tabbrowser-tab > .tab-stack > .tab-content > .tab-icon-stack { - order: 2; - margin-left: auto; -} -.tabbrowser-tab > .tab-stack > .tab-content > .tab-label-container { - order: 3; - margin-right: auto; -} - -.tabbrowser-tab > .tab-stack > .tab-content > .tab-label-container > .tab-secondary-label { - display: none; -} -} diff --git a/src/other/firefox/WhiteSur/left-tab-close-button.css b/src/other/firefox/WhiteSur/left-tab-close-button.css new file mode 100644 index 0000000..159f5a8 --- /dev/null +++ b/src/other/firefox/WhiteSur/left-tab-close-button.css @@ -0,0 +1,19 @@ +@media (-moz-gtk-csd-reversed-placement) { +.tabbrowser-tab > .tab-stack > .tab-content > .tab-close-button { + order: 1; + min-width: 16px; +} + +.tabbrowser-tab > .tab-stack > .tab-content > .tab-icon-stack { + order: 2; + margin-left: auto; +} +.tabbrowser-tab > .tab-stack > .tab-content > .tab-label-container { + order: 3; + margin-right: auto; +} + +.tabbrowser-tab > .tab-stack > .tab-content > .tab-label-container > .tab-secondary-label { + display: none; +} +} diff --git a/src/other/firefox/WhiteSur/parts/tabsbar.css b/src/other/firefox/WhiteSur/parts/tabsbar.css index 50ee0cb..1994be9 100644 --- a/src/other/firefox/WhiteSur/parts/tabsbar.css +++ b/src/other/firefox/WhiteSur/parts/tabsbar.css @@ -381,23 +381,3 @@ tab[selected]:-moz-window-inactive { #tabbrowser-tabs[closebuttons="activetab"]>#tabbrowser-arrowscrollbox>.tabbrowser-tab>.tab-stack>.tab-content>.tab-icon-stack[selected="true"] { margin-left: auto !important; } - -@media (-moz-gtk-csd-reversed-placement) { -.tabbrowser-tab > .tab-stack > .tab-content > .tab-close-button { - order: 1; - min-width: 16px; -} - -.tabbrowser-tab > .tab-stack > .tab-content > .tab-icon-stack { - order: 2; - margin-left: auto; -} -.tabbrowser-tab > .tab-stack > .tab-content > .tab-label-container { - order: 3; - margin-right: auto; -} - -.tabbrowser-tab > .tab-stack > .tab-content > .tab-label-container > .tab-secondary-label { - display: none; -} -} diff --git a/src/other/firefox/userChrome-Monterey.css b/src/other/firefox/userChrome-Monterey.css index 410a4d9..24bb013 100644 --- a/src/other/firefox/userChrome-Monterey.css +++ b/src/other/firefox/userChrome-Monterey.css @@ -23,6 +23,9 @@ /*--------------Configure common theme features--------------*/ +/* Move tab close button to left. */ +/*@import "Monterey/left-tab-close-button.css"; /**/ + /* Hide the tab bar when only one tab is open (GNOMISH) * You should move the new tab button somewhere else for this to work, because by * default it is on the tab bar too. */ diff --git a/src/other/firefox/userChrome-WhiteSur.css b/src/other/firefox/userChrome-WhiteSur.css index 39b9b51..7804b1d 100644 --- a/src/other/firefox/userChrome-WhiteSur.css +++ b/src/other/firefox/userChrome-WhiteSur.css @@ -7,6 +7,9 @@ /*--------------Configure common theme features--------------*/ +/* Move tab close button to left. */ +/*@import "WhiteSur/left-tab-close-button.css"; /**/ + /* Hide the tab bar when only one tab is open (GNOMISH) * You should move the new tab button somewhere else for this to work, because by * default it is on the tab bar too. */