From da90d6d223cbca792b82deae0f631253acc5dfa1 Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Sun, 29 Sep 2024 09:33:28 +0300 Subject: [PATCH] tabs on bottom v2: add support for left-side caption buttons and themes --- chrome/tabs_on_bottom_v2.css | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/chrome/tabs_on_bottom_v2.css b/chrome/tabs_on_bottom_v2.css index ddb5238..f6cedd1 100644 --- a/chrome/tabs_on_bottom_v2.css +++ b/chrome/tabs_on_bottom_v2.css @@ -5,10 +5,25 @@ See the above repository for updates as well as full license text. */ #navigator-toolbox{ display: grid; - grid-template-areas: "mb mb mb mb" "pre toolbar1 post caption" "toolbar toolbar toolbar toolbar"; + grid-template-areas: "mb mb mb mb" + "pre toolbar1 post caption" + "toolbar toolbar toolbar toolbar"; grid-auto-columns: min-content 1fr min-content min-content; grid-template-rows: auto; } +@media (-moz-bool-pref: "userchrome.force-window-controls-on-left.enabled"), + (-moz-gtk-csd-reversed-placement), + (-moz-platform: macos){ + #navigator-toolbox{ + grid-template-areas: "mb mb mb mb" + "caption pre toolbar1 post" + "toolbar toolbar toolbar toolbar"; + grid-auto-columns: min-content min-content 1fr min-content; + } + @media (-moz-platform: windows){ + #TabsToolbar .titlebar-buttonbox{ flex-direction: row-reverse; } + } +} #titlebar, #TabsToolbar{ display: contents; @@ -22,6 +37,10 @@ See the above repository for updates as well as full license text. */ #TabsToolbar > .titlebar-spacer[type="post-tabs"]{ grid-area: post; } +#private-browsing-indicator-with-label{ + grid-area: post; + & > label{ display: none } +} .titlebar-spacer{ -moz-window-dragging: drag; } @@ -42,4 +61,7 @@ See the above repository for updates as well as full license text. */ #tab-notification-deck, #TabsToolbar > .toolbar-items{ order: 1; +} +.titlebar-spacer,.titlebar-buttonbox-container{ + background-color: var(--toolbar-bgcolor) } \ No newline at end of file