From f1eabd163c8ce8f5e1d05a30e324eef78cd19af4 Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Wed, 30 Jun 2021 09:35:04 +0300 Subject: [PATCH] create centered_tab_label.css --- chrome/centered_tab_label.css | 7 +++++++ html_resources/tagmap.json | 3 ++- tags.csv | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 chrome/centered_tab_label.css diff --git a/chrome/centered_tab_label.css b/chrome/centered_tab_label.css new file mode 100644 index 0000000..eba7d1a --- /dev/null +++ b/chrome/centered_tab_label.css @@ -0,0 +1,7 @@ +/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/centered_tab_label.css made available under Mozilla Public License v. 2.0 +See the above repository for updates as well as full license text. */ + +.tab-label-container{ display: grid; justify-content: safe center } +.tab-label,.tab-secondary-label{ overflow: hidden } +.tabbrowser-tab[selected]:not(:hover) .tab-label-container, +#tabbrowser-tabs:not([closebuttons="activetab"]) .tabbrowser-tab:not(:hover,[pinned]) .tab-label-container{ margin-inline-end: 7px } \ No newline at end of file diff --git a/html_resources/tagmap.json b/html_resources/tagmap.json index 4a15f53..308862c 100644 --- a/html_resources/tagmap.json +++ b/html_resources/tagmap.json @@ -136,5 +136,6 @@ "window_control_placeholder_support.css":["window-control","patch"], "loading_indicator_bouncing_line.css":["status","navigation","effect"], "loading_indicator_rotating_image.css":["navigation","effect","status"], -"menupopup_forced_color_schemes.css":["popup","colors","menu"] +"menupopup_forced_color_schemes.css":["popup","colors","menu"], +"centered_tab_label.css":["tab"] } diff --git a/tags.csv b/tags.csv index f606949..6b3966e 100644 --- a/tags.csv +++ b/tags.csv @@ -136,3 +136,4 @@ window_control_placeholder_support.css,window-control,patch loading_indicator_bouncing_line.css,status,navigation,effect loading_indicator_rotating_image.css,navigation,effect,status menupopup_forced_color_schemes.css,popup,colors,menu +centered_tab_label.css,tab