Replace uses of [{first,last}-visible-tab] with pseudo-classes

Those attributes don't exist anymore in Firefox 109
This commit is contained in:
MrOtherGuy
2023-01-29 20:49:11 +02:00
parent eeba98f261
commit 8c41908dd8
3 changed files with 15 additions and 2 deletions

View File

@@ -1,7 +1,10 @@
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/hide_tabs_with_one_tab.css made available under Mozilla Public License v. 2.0
See the above repository for updates as well as full license text. */
/* Makes tabs toolbar items zero-height initially and sets enlarge them to fill up space equal to tab-min-height set on tabs. Optionally use privatemode_indicator_as_menu_button.css to replace main menu icon with private browsing indicator while tabs are hidden. */
/* Makes tabs toolbar items zero-height initially and sets enlarge them to fill up space equal to tab-min-height set on tabs. Optionally use privatemode_indicator_as_menu_button.css to replace main menu icon with private browsing indicator while tabs are hidden.
This will NOT work correctly if you have hidden tabs such as with tab groups extensions
*/
/* This style causes CSD window controls to disappear on linux, but you can kind of work around that by using window_control_fallback_for_custom_windows_theme.css */
@@ -23,6 +26,7 @@ See the above repository for updates as well as full license text. */
height: calc(var(--tab-min-height) + 2 * var(--tab-block-margin,0px));
}
.tabbrowser-tab:only-of-type,
.tabbrowser-tab[first-visible-tab="true"][last-visible-tab="true"]{
visibility: collapse !important;
min-height: 0 !important;