Skip to content

Commit

Permalink
create tabs_on_bottom_v2.css
Browse files Browse the repository at this point in the history
This does reordering with grid display. Requires Firefox 132 for
supporting display: contents on xul elements.
  • Loading branch information
MrOtherGuy committed Sep 27, 2024
1 parent 3c18dab commit 44b7593
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 1 deletion.
45 changes: 45 additions & 0 deletions chrome/tabs_on_bottom_v2.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/tabs_on_bottom_v2.css made available under Mozilla Public License v. 2.0
See the above repository for updates as well as full license text. */

/* This reorders toolbar to place tabs below other toolbars. Requires Firefox 132+ */

#navigator-toolbox{
display: grid;
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;
}
#titlebar,
#TabsToolbar{
display: contents;
}
#TabsToolbar > .titlebar-buttonbox-container{
grid-area: caption;
}
#TabsToolbar > .titlebar-spacer[type="pre-tabs"]{
grid-area: pre;
}
#TabsToolbar > .titlebar-spacer[type="post-tabs"]{
grid-area: post;
}
.titlebar-spacer{
-moz-window-dragging: drag;
}
#nav-bar{
grid-area: toolbar1
}
#toolbar-menubar{
grid-area: mb;
}
#toolbar-menubar,
#TabsToolbar > .toolbar-items,
#PersonalToolbar,
.global-notificationbox,
#tab-notification-deck{
grid-column: 1/5;
}
.global-notificationbox,
#tab-notification-deck,
#TabsToolbar > .toolbar-items{
order: 1;
}
3 changes: 2 additions & 1 deletion html_resources/tagmap.json
Original file line number Diff line number Diff line change
Expand Up @@ -176,5 +176,6 @@
"iconized_places_context_menu.css":["menu","icon"],
"iconized_tabs_context_menu.css":["menu","icon"],
"iconized_textbox_context_menu.css":["menu","icon"],
"icon_only_context_menu_text_controls.css":["menu","icons","hack"]
"icon_only_context_menu_text_controls.css":["menu","icons","hack"],
"tabs_on_bottom_v2.css":["hack","tabs","toolbars"]
}
1 change: 1 addition & 0 deletions tags.csv
Original file line number Diff line number Diff line change
Expand Up @@ -176,3 +176,4 @@ iconized_places_context_menu.css,menu,icon
iconized_tabs_context_menu.css,menu,icon
iconized_textbox_context_menu.css,menu,icon
icon_only_context_menu_text_controls.css,menu,icons,hack
tabs_on_bottom_v2.css,hack,tabs,toolbars

0 comments on commit 44b7593

Please sign in to comment.