From f036a4ca2389e5e36a2f654425cf479378359f43 Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Sun, 5 Jun 2022 07:31:01 +0300 Subject: [PATCH] create fake_tab_tooltip.css --- chrome/fake_tab_tooltip.css | 23 +++++++++++++++++++++++ html_resources/tagmap.json | 3 ++- tags.csv | 1 + 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 chrome/fake_tab_tooltip.css diff --git a/chrome/fake_tab_tooltip.css b/chrome/fake_tab_tooltip.css new file mode 100644 index 0000000..fc0844c --- /dev/null +++ b/chrome/fake_tab_tooltip.css @@ -0,0 +1,23 @@ +/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/fake_tab_tooltip.css made available under Mozilla Public License v. 2.0 +See the above repository for updates as well as full license text. */ + +/* This creates a fake tooltip-like box under hovered tab showing it's full title. + * In about:config you can set `browser.chrome.toolbar_tips` to false to disable + * normal tooltips - that however disables normal tooltips also from everything + * else in the toolbar area. + */ + +.tabbrowser-tab:hover::after{ + display: block; + content: attr(label); + background: var(--arrowpanel-background); + border: 1px solid var(--arrowpanel-border-color); + color: var(--arrowpanel-color); + padding: 0.3em; + position: fixed; + transform: translateY(calc(var(--tab-min-height) + 2 * var(--tab-block-margin))); + z-index: 2; + color-scheme: dark; + border-radius: 5px; + box-shadow: 2px 2px 4px rgba(0,0,0,0.3) +} \ No newline at end of file diff --git a/html_resources/tagmap.json b/html_resources/tagmap.json index 2b77b72..ab55d94 100644 --- a/html_resources/tagmap.json +++ b/html_resources/tagmap.json @@ -151,5 +151,6 @@ "vertical_popup_menubar.css":["menubar","menu","toolbars","popup"], "window_control_fallback_for_custom_windows_theme.css":["window-control","buttons","colors","patch"], "window_control_force_linux_system_style.css":["window-control","buttons","icon"], -"window_control_placeholder_support.css":["window-control","patch"] +"window_control_placeholder_support.css":["window-control","patch"], +"fake_tab_tooltip.css":["tab","hack","popup"] } diff --git a/tags.csv b/tags.csv index 543c925..f2f6739 100644 --- a/tags.csv +++ b/tags.csv @@ -151,3 +151,4 @@ vertical_popup_menubar.css,menubar,menu,toolbars,popup window_control_fallback_for_custom_windows_theme.css,window-control,buttons,colors,patch window_control_force_linux_system_style.css,window-control,buttons,icon window_control_placeholder_support.css,window-control,patch +fake_tab_tooltip.css,tab,hack,popup