Нашёл код, рабочий для ff127 и каких-то ранее.
/*https://github.com/MrOtherGuy/firefox-csshacks/blob/master/chrome/tabs_on_bottom.css*/ #toolbar-menubar[autohide="true"] > .titlebar-buttonbox-container, #TabsToolbar > .titlebar-buttonbox-container{ position: fixed; display: block; top: 0px; right:0; height: 40px; } @media (-moz-bool-pref: "userchrome.force-window-controls-on-left.enabled"), (-moz-gtk-csd-reversed-placement), (-moz-platform: macos){ .titlebar-buttonbox-container{ left:0; right: unset !important; } } :root[uidensity="compact"] #TabsToolbar > .titlebar-buttonbox-container{ height: 32px } #toolbar-menubar[inactive] > .titlebar-buttonbox-container{ opacity: 0 } .titlebar-buttonbox-container > .titlebar-buttonbox{ height: 100%; } #titlebar{ order: 2; -moz-appearance: none !important; --tabs-navbar-shadow-size: 0px; --uc-menubar-vertical-overlap: 19px; /* for hide_tabs_with_one_tab_w_window_controls.css compatibility */ } /* Re-order window and tab notification boxes */ #navigator-toolbox > div{ display: contents } .global-notificationbox, #tab-notification-deck{ order: 2; } #TabsToolbar .titlebar-spacer{ display: none; } /* Also hide the toolbox bottom border which isn't at bottom with this setup */ #navigator-toolbox::after{ display: none !important; } @media (-moz-gtk-csd-close-button){ .titlebar-button{ flex-direction: column; } } /* At Activated Menubar */ :root:not([chromehidden~="menubar"], [sizemode="fullscreen"]) #toolbar-menubar:not([autohide="true"]) + #TabsToolbar > .titlebar-buttonbox-container { display: block !important; } #toolbar-menubar:not([autohide="true"]) > .titlebar-buttonbox-container { visibility: hidden; } /* These exist only for compatibility with autohide-tabstoolbar.css */ toolbox#navigator-toolbox > toolbar#nav-bar.browser-toolbar{ animation: none; } #navigator-toolbox:hover #TabsToolbar{ animation: slidein ease-out 48ms 1 } #TabsToolbar > .titlebar-buttonbox-container{ visibility: visible } :root:not([lwtheme]) #navigator-toolbox{ background-color: -moz-dialog } /* Uncomment the following if you want bookmarks toolbar to be below tabs */ /* #PersonalToolbar{ order: 2; } */ /*https://github.com/MrOtherGuy/firefox-csshacks/blob/master/chrome/tabs_on_bottom_menubar_on_top_patch.css*/ :root:not([sizemode="fullscreen"]){ --uc-window-control-width: 0px !important } :root{ /* height if native titlebar is enabled, assumes empty menubar */ --uc-menubar-height: 20px; } :root[tabsintitlebar]{ /* height when native titlebar is disabled, more roomy so can fit buttons etc. */ --uc-menubar-height: 29px; } :root:is([sizemode="fullscreen"],[chromehidden~="menubar"]){ --uc-menubar-height: 0px; } /* Since menubar is statically at top, remove fake drag-space that might be set by window_control_placeholder_support.css */ :root:not([sizemode="fullscreen"]) #nav-bar{ border-inline-width: 0 } #navigator-toolbox{ -moz-window-dragging: drag; padding-top: var(--uc-menubar-height) !important; } /* Remove window dragging from notification boxes */ #tab-notification-deck, .global-notificationbox{ -moz-window-dragging: no-drag; } :root:not([chromehidden~="menubar"]) #toolbar-menubar{ position: fixed; display: flex; top: 0px; height: var(--uc-menubar-height); width: 100%; overflow: hidden; } #toolbar-menubar > .titlebar-buttonbox-container{ height: 100%; order: 100; } #toolbar-menubar > [flex]{ flex-grow: 100; } #toolbar-menubar > spacer[flex]{ order: 99; flex-grow: 1; min-width: var(--uc-window-drag-space-post,20px); } #toolbar-menubar .toolbarbutton-1 { --toolbarbutton-inner-padding: 3px } :root:not([sizemode="fullscreen"]) #toolbar-menubar.browser-toolbar > .titlebar-buttonbox-container{ visibility: visible; } :root:not([chromehidden~="menubar"], [sizemode="fullscreen"]) #TabsToolbar#TabsToolbar#TabsToolbar > .titlebar-buttonbox-container { display: none !important; }
Добавлено 16-06-2024 01:27:44
Дополнительно для квадратных вкладок:
.tab-background { border-radius: 0 0 !important; margin-block: 0 0 !important; } .tab-background:not([selected]):not([multiselected]):not([beforeselected-visible]) { border-right: 1px solid rgba(0, 128, 128, .50) !important; border-top: 1px solid rgba(0, 128, 128, .50) !important; } .tab-background:is([selected], [multiselected]) { border-top: 2px solid #0983ff !important; }
Отредактировано pointer (16-06-2024 01:27:44)
Отсутствует