create multi-row_main_toolbar.css

This commit is contained in:
MrOtherGuy 2021-11-16 10:22:05 +02:00
parent cd77c41af7
commit 5d5370fab3
3 changed files with 59 additions and 19 deletions

View file

@ -0,0 +1,38 @@
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/multi-row_main_toolbar.css made available under Mozilla Public License v. 2.0
See the above repository for updates as well as full license text. */
/**
* Makes items in the main toolbar show on two (or three) lines.
* Anything before urlbar in the customization order is shown at first line.
* Urlbar is shown on second line, or first if no items are before it.
* Anything after urlbar on the third line.
*
* Unfortunately items that don't fit in a row are not pushed to overflow menu. Instead,
* they become invisible. Luckily that probably is less of a problem when using this style.
*/
:root{
--uc-multirow-toolbar-height: 40px;
}
:root[uidensity="compact"]{
--uc-multirow-toolbar-height: 34px;
}
:root[uidensity="touch"]{
--uc-multirow-toolbar-height: 44px;
}
#nav-bar-customization-target{
display: flex;
flex-wrap: wrap;
}
#urlbar{
--urlbar-toolbar-height: var(--uc-multirow-toolbar-height) !important;
}
#nav-bar-customization-target > [flex]{ flex-grow: 2 }
#nav-bar-customization-target > toolbarspring{ flex-grow: 1 }
#urlbar-container{
width: calc(100% - 20px);
margin-inline: 40px !important; /* Empty space on both sides of urlbar */
}

View file

@ -16,6 +16,7 @@
"button_effect_scale_onhover.css":["buttons","effect"],
"buttonlike_toolbarbuttons.css":["buttons"],
"centered_tab_content.css":["tab","icon"],
"centered_tab_label.css":["tab"],
"centered_top_statuspanel.css":["status"],
"classic_firefox_menu_button.css":["classic","menu"],
"classic_grid_main_menu_popup.css":["classic","menu","popup"],
@ -31,6 +32,7 @@
"dark_additional_windows.css":["windows","dark-mode"],
"dark_checkboxes_and_radios.css":["dark-mode"],
"dark_context_menus.css":["dark-mode","menu","popup"],
"dark_date_picker_panel.css":["popup","dark-mode"],
"dark_theme_aware_statuspanel.css":["status","dark-mode"],
"disable_newtab_on_middle_click.css":["hack","tabs"],
"fake_statusbar_w_bookmarksbar.css":["hack","status","toolbars","bookmarks"],
@ -55,9 +57,13 @@
"inline_tab_audio_icons.css":["tab","icon","proton"],
"less_static_throbber.css":["icon","tab","effect"],
"linux_gtk_window_control_patch.css":["patch","window-control"],
"loading_indicator_bouncing_line.css":["status","navigation","effect"],
"loading_indicator_rotating_image.css":["navigation","effect","status"],
"menubar_in_main_toolbar.css":["menubar","nav-bar","minimal","toolbars"],
"menubar_in_tabs_toolbar.css":["toolbars","minimal","menubar"],
"menubar_in_tabs_toolbar_oneliner_compatible.css":["toolbars","minimal","menubar"],
"menulike_bookmarks_folder_popups.css":["menu","bookmarks","colors"],
"menupopup_forced_color_schemes.css":["popup","colors","menu"],
"minimal_in-UI_scrollbars.css":["minimal","scrollbar"],
"minimal_text_fields.css":["minimal","urlbar"],
"minimal_toolbarbuttons.css":["minimal","buttons"],
@ -65,6 +71,7 @@
"minimal_toolbarbuttons_v3.css":["minimal","buttons"],
"more_visible_tab_icon.css":["tab","icon"],
"multi-row_bookmarks.css":["multi-row","bookmarks","toolbars"],
"multi-row_main_toolbar.css":["urlbar","toolbars","multi-row","hack"],
"multi-row_oneliner_combo_patch.css":["multi-row","patch","one-line","minimal"],
"multi-row_tabs.css":["tabs","multi-row","toolbars"],
"multi-row_tabs_Fx66+.css":["legacy"],
@ -94,6 +101,7 @@
"scrollable_menupopups.css":["scrollbar","popup","menu"],
"scrollable_urlbar_popup.css":["scrollbar","popup","urlbar"],
"selected_tab_as_urlbar.css":["hack"],
"selected_tab_gradient_border.css":["tab","colors","effect"],
"sharp_menupopup_corners.css":["popup","menu","proton"],
"show_navbar_on_focus_only.css":["urlbar","nav-bar","toolbars","hiding"],
"show_toolbars_in_popup_windows.css":["toolbars","popup"],
@ -111,6 +119,7 @@
"tabs_on_bottom.css":["tabs","toolbars","classic"],
"tabs_on_bottom_menubar_on_top_patch.css":["tabs","menubar","toolbars","classic","patch"],
"textual_context_navigation.css":["navigation","popup","menu"],
"textual_searchbar_one-offs.css":["popup","menu"],
"theme_additional_windows.css":["legacy"],
"theme_aware_modal_prompts.css":["effect","dark-mode","colors","popup"],
"theme_color_variables.css":["legacy"],
@ -124,6 +133,7 @@
"urlbar_and_popup_equal_width.css":["legacy"],
"urlbar_centered_text.css":["urlbar"],
"urlbar_connection_type_colors.css":["urlbar","colors","status"],
"urlbar_container_color_border.css":["colors","urlbar"],
"urlbar_popup_full_width.css":["urlbar","popup"],
"urlbar_results_in_two_rows.css":["urlbar","popup"],
"urlbar_visible_on_active_tab_click.css":["hack","urlbar"],
@ -133,14 +143,5 @@
"vertical_menubar.css":["menubar","hack"],
"vertical_popup_menubar.css":["menubar","menu","toolbars","popup"],
"window_control_fallback_for_custom_windows_theme.css":["window-control","buttons","colors","patch"],
"window_control_placeholder_support.css":["window-control","patch"],
"loading_indicator_bouncing_line.css":["status","navigation","effect"],
"loading_indicator_rotating_image.css":["navigation","effect","status"],
"menupopup_forced_color_schemes.css":["popup","colors","menu"],
"centered_tab_label.css":["tab"],
"dark_date_picker_panel.css":["popup","dark-mode"],
"textual_searchbar_one-offs.css":["popup","menu"],
"menulike_bookmarks_folder_popups.css":["menu","bookmarks","colors"],
"selected_tab_gradient_border.css":["tab","colors","effect"],
"urlbar_container_color_border.css":["colors","urlbar"]
"window_control_placeholder_support.css":["window-control","patch"]
}

View file

@ -15,6 +15,7 @@ button_effect_scale_onclick.css,buttons,effect
button_effect_scale_onhover.css,buttons,effect
buttonlike_toolbarbuttons.css,buttons
centered_tab_content.css,tab,icon
centered_tab_label.css,tab
centered_top_statuspanel.css,status
classic_firefox_menu_button.css,classic,menu
classic_grid_main_menu_popup.css,classic,menu,popup
@ -30,6 +31,7 @@ custom_menupopup_check_icons.css,icon,menu,minimal,popup
dark_additional_windows.css,windows,dark-mode
dark_checkboxes_and_radios.css,dark-mode
dark_context_menus.css,dark-mode,menu,popup
dark_date_picker_panel.css,popup,dark-mode
dark_theme_aware_statuspanel.css,status,dark-mode
disable_newtab_on_middle_click.css,hack,tabs
fake_statusbar_w_bookmarksbar.css,hack,status,toolbars,bookmarks
@ -54,9 +56,13 @@ iconized_menubar_items.css,menubar,menu,icon
inline_tab_audio_icons.css,tab,icon,proton
less_static_throbber.css,icon,tab,effect
linux_gtk_window_control_patch.css,patch,window-control
loading_indicator_bouncing_line.css,status,navigation,effect
loading_indicator_rotating_image.css,navigation,effect,status
menubar_in_main_toolbar.css,menubar,nav-bar,minimal,toolbars
menubar_in_tabs_toolbar.css,toolbars,minimal,menubar
menubar_in_tabs_toolbar_oneliner_compatible.css,toolbars,minimal,menubar
menulike_bookmarks_folder_popups.css,menu,bookmarks,colors
menupopup_forced_color_schemes.css,popup,colors,menu
minimal_in-UI_scrollbars.css,minimal,scrollbar
minimal_text_fields.css,minimal,urlbar
minimal_toolbarbuttons.css,minimal,buttons
@ -64,6 +70,7 @@ minimal_toolbarbuttons_v2.css,minimal,buttons
minimal_toolbarbuttons_v3.css,minimal,buttons
more_visible_tab_icon.css,tab,icon
multi-row_bookmarks.css,multi-row,bookmarks,toolbars
multi-row_main_toolbar.css,urlbar,toolbars,multi-row,hack
multi-row_oneliner_combo_patch.css,multi-row,patch,one-line,minimal
multi-row_tabs.css,tabs,multi-row,toolbars
multi-row_tabs_Fx66+.css,legacy
@ -93,6 +100,7 @@ rounded_menupopups.css,menu,popup,urlbar
scrollable_menupopups.css,scrollbar,popup,menu
scrollable_urlbar_popup.css,scrollbar,popup,urlbar
selected_tab_as_urlbar.css,hack
selected_tab_gradient_border.css,tab,colors,effect
sharp_menupopup_corners.css,popup,menu,proton
show_navbar_on_focus_only.css,urlbar,nav-bar,toolbars,hiding
show_toolbars_in_popup_windows.css,toolbars,popup
@ -110,6 +118,7 @@ tabs_fill_available_width.css,tab,tabs
tabs_on_bottom.css,tabs,toolbars,classic
tabs_on_bottom_menubar_on_top_patch.css,tabs,menubar,toolbars,classic,patch
textual_context_navigation.css,navigation,popup,menu
textual_searchbar_one-offs.css,popup,menu
theme_additional_windows.css,legacy
theme_aware_modal_prompts.css,effect,dark-mode,colors,popup
theme_color_variables.css,legacy,
@ -123,6 +132,7 @@ toolbars_below_content.css,tabs,toolbars
urlbar_and_popup_equal_width.css,legacy
urlbar_centered_text.css,urlbar
urlbar_connection_type_colors.css,urlbar,colors,status
urlbar_container_color_border.css,colors,urlbar
urlbar_popup_full_width.css,urlbar,popup
urlbar_results_in_two_rows.css,urlbar,popup
urlbar_visible_on_active_tab_click.css,hack,urlbar
@ -133,12 +143,3 @@ vertical_menubar.css,menubar,hack
vertical_popup_menubar.css,menubar,menu,toolbars,popup
window_control_fallback_for_custom_windows_theme.css,window-control,buttons,colors,patch
window_control_placeholder_support.css,window-control,patch
loading_indicator_bouncing_line.css,status,navigation,effect
loading_indicator_rotating_image.css,navigation,effect,status
menupopup_forced_color_schemes.css,popup,colors,menu
centered_tab_label.css,tab
dark_date_picker_panel.css,popup,dark-mode
textual_searchbar_one-offs.css,popup,menu
menulike_bookmarks_folder_popups.css,menu,bookmarks,colors
selected_tab_gradient_border.css,tab,colors,effect
urlbar_container_color_border.css,colors,urlbar

1 auto_devtools_theme_for_rdm.css,devtools,colors
15 button_effect_scale_onhover.css,buttons,effect
16 buttonlike_toolbarbuttons.css,buttons
17 centered_tab_content.css,tab,icon
18 centered_tab_label.css,tab
19 centered_top_statuspanel.css,status
20 classic_firefox_menu_button.css,classic,menu
21 classic_grid_main_menu_popup.css,classic,menu,popup
31 dark_additional_windows.css,windows,dark-mode
32 dark_checkboxes_and_radios.css,dark-mode
33 dark_context_menus.css,dark-mode,menu,popup
34 dark_date_picker_panel.css,popup,dark-mode
35 dark_theme_aware_statuspanel.css,status,dark-mode
36 disable_newtab_on_middle_click.css,hack,tabs
37 fake_statusbar_w_bookmarksbar.css,hack,status,toolbars,bookmarks
56 inline_tab_audio_icons.css,tab,icon,proton
57 less_static_throbber.css,icon,tab,effect
58 linux_gtk_window_control_patch.css,patch,window-control
59 loading_indicator_bouncing_line.css,status,navigation,effect
60 loading_indicator_rotating_image.css,navigation,effect,status
61 menubar_in_main_toolbar.css,menubar,nav-bar,minimal,toolbars
62 menubar_in_tabs_toolbar.css,toolbars,minimal,menubar
63 menubar_in_tabs_toolbar_oneliner_compatible.css,toolbars,minimal,menubar
64 menulike_bookmarks_folder_popups.css,menu,bookmarks,colors
65 menupopup_forced_color_schemes.css,popup,colors,menu
66 minimal_in-UI_scrollbars.css,minimal,scrollbar
67 minimal_text_fields.css,minimal,urlbar
68 minimal_toolbarbuttons.css,minimal,buttons
70 minimal_toolbarbuttons_v3.css,minimal,buttons
71 more_visible_tab_icon.css,tab,icon
72 multi-row_bookmarks.css,multi-row,bookmarks,toolbars
73 multi-row_main_toolbar.css,urlbar,toolbars,multi-row,hack
74 multi-row_oneliner_combo_patch.css,multi-row,patch,one-line,minimal
75 multi-row_tabs.css,tabs,multi-row,toolbars
76 multi-row_tabs_Fx66+.css,legacy
100 scrollable_menupopups.css,scrollbar,popup,menu
101 scrollable_urlbar_popup.css,scrollbar,popup,urlbar
102 selected_tab_as_urlbar.css,hack
103 selected_tab_gradient_border.css,tab,colors,effect
104 sharp_menupopup_corners.css,popup,menu,proton
105 show_navbar_on_focus_only.css,urlbar,nav-bar,toolbars,hiding
106 show_toolbars_in_popup_windows.css,toolbars,popup
118 tabs_on_bottom.css,tabs,toolbars,classic
119 tabs_on_bottom_menubar_on_top_patch.css,tabs,menubar,toolbars,classic,patch
120 textual_context_navigation.css,navigation,popup,menu
121 textual_searchbar_one-offs.css,popup,menu
122 theme_additional_windows.css,legacy
123 theme_aware_modal_prompts.css,effect,dark-mode,colors,popup
124 theme_color_variables.css,legacy,
132 urlbar_and_popup_equal_width.css,legacy
133 urlbar_centered_text.css,urlbar
134 urlbar_connection_type_colors.css,urlbar,colors,status
135 urlbar_container_color_border.css,colors,urlbar
136 urlbar_popup_full_width.css,urlbar,popup
137 urlbar_results_in_two_rows.css,urlbar,popup
138 urlbar_visible_on_active_tab_click.css,hack,urlbar
143 vertical_popup_menubar.css,menubar,menu,toolbars,popup
144 window_control_fallback_for_custom_windows_theme.css,window-control,buttons,colors,patch
145 window_control_placeholder_support.css,window-control,patch
loading_indicator_bouncing_line.css,status,navigation,effect
loading_indicator_rotating_image.css,navigation,effect,status
menupopup_forced_color_schemes.css,popup,colors,menu
centered_tab_label.css,tab
dark_date_picker_panel.css,popup,dark-mode
textual_searchbar_one-offs.css,popup,menu
menulike_bookmarks_folder_popups.css,menu,bookmarks,colors
selected_tab_gradient_border.css,tab,colors,effect
urlbar_container_color_border.css,colors,urlbar