From ee89221ad0c56f2c93ba021dfda4edd07c4e06a8 Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Fri, 31 Dec 2021 08:27:33 +0200 Subject: [PATCH] create multi-row_tabs_separate_pinned_row_patch.css --- ...lti-row_tabs_separate_pinned_row_patch.css | 21 +++++++++++++++++++ html_resources/tagmap.json | 3 ++- tags.csv | 1 + 3 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 chrome/multi-row_tabs_separate_pinned_row_patch.css diff --git a/chrome/multi-row_tabs_separate_pinned_row_patch.css b/chrome/multi-row_tabs_separate_pinned_row_patch.css new file mode 100644 index 0000000..a78e4b6 --- /dev/null +++ b/chrome/multi-row_tabs_separate_pinned_row_patch.css @@ -0,0 +1,21 @@ +/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/multi-row_tabs_separate_pinned_row_patch.css made available under Mozilla Public License v. 2.0 +See the above repository for updates as well as full license text. */ + +/* Use with multi-row_tabs.css to show pinned tabs on separate row. */ + +scrollbox[part][orient="horizontal"]::after{ + display: flow-root list-item; + content: ""; + flex-basis: -moz-available; + height: 0; + overflow: hidden; +} + +.tabbrowser-tab:not([pinned]), +.tabbrowser-tab:not([pinned]) + #tabs-newtab-button{ + order: 1; +} + +.tabbrowser-tab[first-visible-unpinned-tab]{ + margin-inline-start: 0 !important; +} \ No newline at end of file diff --git a/html_resources/tagmap.json b/html_resources/tagmap.json index 37f1e72..5b43288 100644 --- a/html_resources/tagmap.json +++ b/html_resources/tagmap.json @@ -147,5 +147,6 @@ "urlbar_info_icons_on_hover.css":["autohide","icon","urlbar","minimal"], "page_action_buttons_on_urlbar_hover.css":["urlbar","icon","minimal","autohide"], "integrated_searchbar_popup.css":["popup","colors"], -"context_menus_more_proton.css":["proton","menu"] +"context_menus_more_proton.css":["proton","menu"], +"multi-row_tabs_separate_pinned_row_patch.css":["tabs","multi-row","patch"] } diff --git a/tags.csv b/tags.csv index 4eb8070..765a5f2 100644 --- a/tags.csv +++ b/tags.csv @@ -147,3 +147,4 @@ urlbar_info_icons_on_hover.css,autohide,icon,urlbar,minimal page_action_buttons_on_urlbar_hover.css,urlbar,icon,minimal,autohide integrated_searchbar_popup.css,popup,colors context_menus_more_proton.css,proton,menu +multi-row_tabs_separate_pinned_row_patch.css,tabs,multi-row,patch