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