Add a simple way for oneliners to set minimum width for focused urlbar

This commit is contained in:
MrOtherGuy
2020-09-14 11:51:03 +03:00
parent 96f42f61de
commit 490a971b5f
3 changed files with 9 additions and 2 deletions

View File

@@ -6,13 +6,14 @@ See the above repository for updates as well as full license text. */
/* Use page_action_buttons_on_hover.css to hide page-action-buttons to save more space for the address */
/*
urlbar_full_width.css is VERY MUCH recommended for Firefox 71+ because of new urlbar popup
urlbar_popup_full_width.css is VERY MUCH recommended for Firefox 71+ because of new urlbar popup
*/
/* Modify these to change relative widths or default height */
#navigator-toolbox{
--uc-navigationbar-width: 40vw;
--uc-toolbar-height: 40px;
--uc-urlbar-min-width: none; /* Can set minimum width for focused urlbar here eg. 550px */
}
/* Override for other densities */
:root[uidensity="compact"] #navigator-toolbox{ --uc-toolbar-height: 32px; }
@@ -55,4 +56,6 @@ urlbar_full_width.css is VERY MUCH recommended for Firefox 71+ because of new ur
#urlbar-container:not(:hover) .urlbar-history-dropmarker{ margin-inline-start: -28px; }
/* Fix customization view */
#customization-panelWrapper > .panel-arrowbox > .panel-arrow{ margin-inline-end: initial !important; }
#customization-panelWrapper > .panel-arrowbox > .panel-arrow{ margin-inline-end: initial !important; }
#urlbar:focus-within{ min-width: var(--uc-urlbar-min-width,none) !important; }