Add a simple way for oneliners to set minimum width for focused urlbar
This commit is contained in:
parent
96f42f61de
commit
490a971b5f
3 changed files with 9 additions and 2 deletions
|
@ -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 */
|
/* 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 */
|
/* Modify these to change relative widths or default height */
|
||||||
#navigator-toolbox{
|
#navigator-toolbox{
|
||||||
--uc-navigationbar-width: 40vw;
|
--uc-navigationbar-width: 40vw;
|
||||||
--uc-toolbar-height: 40px;
|
--uc-toolbar-height: 40px;
|
||||||
|
--uc-urlbar-min-width: none; /* Can set minimum width for focused urlbar here eg. 550px */
|
||||||
}
|
}
|
||||||
/* Override for other densities */
|
/* Override for other densities */
|
||||||
:root[uidensity="compact"] #navigator-toolbox{ --uc-toolbar-height: 32px; }
|
:root[uidensity="compact"] #navigator-toolbox{ --uc-toolbar-height: 32px; }
|
||||||
|
@ -56,3 +57,5 @@ urlbar_full_width.css is VERY MUCH recommended for Firefox 71+ because of new ur
|
||||||
|
|
||||||
/* Fix customization view */
|
/* 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; }
|
|
@ -13,6 +13,7 @@ See the above repository for updates as well as full license text. */
|
||||||
#navigator-toolbox{
|
#navigator-toolbox{
|
||||||
--uc-navigationbar-width: 40vw;
|
--uc-navigationbar-width: 40vw;
|
||||||
--uc-toolbar-height: 40px;
|
--uc-toolbar-height: 40px;
|
||||||
|
--uc-urlbar-min-width: none; /* Can set minimum width for focused urlbar here eg. 550px */
|
||||||
}
|
}
|
||||||
/* prevent urlbar overflow on narrow windows */
|
/* prevent urlbar overflow on narrow windows */
|
||||||
/* Dependent on how many items are in navigation toolbar ADJUST AS NEEDED */
|
/* Dependent on how many items are in navigation toolbar ADJUST AS NEEDED */
|
||||||
|
@ -52,6 +53,8 @@ See the above repository for updates as well as full license text. */
|
||||||
|
|
||||||
/* Hide dropdown placeholder */
|
/* Hide dropdown placeholder */
|
||||||
#urlbar-container:not(:hover) .urlbar-history-dropmarker{ margin-inline-start: -28px; }
|
#urlbar-container:not(:hover) .urlbar-history-dropmarker{ margin-inline-start: -28px; }
|
||||||
|
|
||||||
|
#urlbar:focus-within{ min-width: var(--uc-urlbar-min-width,none) !important; }
|
||||||
}
|
}
|
||||||
/* Fix customization view */
|
/* 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; }
|
|
@ -14,6 +14,7 @@ See the above repository for updates as well as full license text. */
|
||||||
box-shadow: inset 0 0 0 1px var(--lwt-toolbar-field-border-color, hsla(240,5%,5%,.25));
|
box-shadow: inset 0 0 0 1px var(--lwt-toolbar-field-border-color, hsla(240,5%,5%,.25));
|
||||||
background-color: var(--lwt-toolbar-field-background-color, hsla(0,0%,100%,.8));
|
background-color: var(--lwt-toolbar-field-background-color, hsla(0,0%,100%,.8));
|
||||||
border-radius: var(--toolbarbutton-border-radius);
|
border-radius: var(--toolbarbutton-border-radius);
|
||||||
|
--uc-urlbar-min-width: none; /* navbar_tabs_oneliner.css compatibility */
|
||||||
}
|
}
|
||||||
|
|
||||||
#urlbar[focused]{ box-shadow: inset 0 0 0 1px var(--lwt-toolbar-field-border-focus, highlight); }
|
#urlbar[focused]{ box-shadow: inset 0 0 0 1px var(--lwt-toolbar-field-border-focus, highlight); }
|
||||||
|
|
Loading…
Reference in a new issue