[Fx75+] Issues with new address bar aka 'megabar'
normally the selection of a part or of the whole url has a part highlighted in blue

With the new 75 version of Firefox, there is a problem with CustomCSSforFx:

highlighted not appear 🤨
EDIT by Aris
Solutions: https://github.com/Aris-t2/CustomCSSforFx/blob/master/classic/userChrome.css#L706 or https://github.com/Aris-t2/CustomCSSforFx/blob/master/classic/userChrome.css#L707 or https://github.com/Aris-t2/CustomCSSforFx/issues/288#issuecomment-633233897 (comment)
I found that the problem is here: @import "./css/toolbars/general_toolbar_colors.css"; //**
and in particular inside the general_toolbar_colors.css
#nav-bar:not(:-moz-lwtheme) { -moz-appearance: none !important; background: var(--general_toolbar_color_navbar, inherit) !important; }
For some reason setting a linear-gradient or a specific color to background rule of #nav-bar causes this issue now. I will add a workaround on next update.
for now I deleted
#nav-bar:not(:-moz-lwtheme) { -moz-appearance: none !important; background: var(--general_toolbar_color_navbar, inherit) !important; }
No need to delete it, add the fix below the code:
#nav-bar:not(:-moz-lwtheme) #urlbar ::-moz-selection {
background-color: Highlight !important;
color: HighlightText !important;
}
I disabled this megabar thingy (by setting browser.urlbar.update1 to false), but I would love to understand why the bold marking of domains (and grey for the rest) does not anymore with this. (Edit: This is in strict sense wrong, see my answer below.)
And also, do you get it why the urlbar coloring code in https://www.camp-firefox.de/forum/thema/123678/ fails with the new bar? I tried to change some things, but was not successful.
@Speravir I haven't found the code to change domain/url appearance.
This urlbar coloring code issue is related to the z-index of the code. Change the z-index to see a different result.
#identity-box::after {
z-index: 1000000 !important;
}
In FF75/linux, with CustomCSSforFx latest applied, and separate search & address bars, the font size in the address bar is tiny ... looks ~ 8 point, whereas the rest of the UI, and in particular the Seach bar, fonts are uniformly/consistently at FF's default, currently set to 14point.
Is there a tweak available for increasing/matching the address-bar's font size?
@pgnd
Test custom_css_for_fx_v3.0.5_v2.zip.
@Aris-t2 don't see a package yet; i'm pulling from github master ... will do as soon as it appears. thx!
@pgnd On FF75/macOS I have this in my_userChrome.css to increase font size in address and search bars:
:-moz-any(#urlbar, #searchbar) { font-size: 16px !important; }
Works for me. Maybe there is a better way to do it.
this (selected text not showing as "selected"/inverted but only in different color) still happens for me with ff75 and "tabs below navigation toolbar" activated (i.e., when importing ./css/tabs/tabs_below_navigation_toolbar_fx74.css). when i comment this line out, the urlbar-selection show up correct, but .. not sure what to do here when i want my tabs below the navigation bar. :-|
the "fix" provided above is already included, using 3.0.5 ..
thanks in advance!
@pgnd The v2 package is attached to https://github.com/Aris-t2/CustomCSSforFx/releases/tag/3.0.5 Files not officially on Github yet ;-)
@Aris-t2 305v2 + FF755 looks good. font size in AddressBar matches the 'rest'.
Change the z-index to see a different result.
OMG (blushing)! This was apparently toooo simple. I already had noticed that I had to increase the z-index for the urlbar because since v. or 74 active tabs have a z-indiex of 2, but this one I overlooked … Thank you.
I haven't found the code to change domain/url appearance.
It turned out I was wrong, the domain is still marked bold(er), but this is much, much worse visible, see screenshots (with coloring style, but it is the same without):
- Megabar disabled

- Megabar enabled

Also I have a different font and more font weight, but with the default font I do not see a better ratio.
@pgnd The v2 package is attached to https://github.com/Aris-t2/CustomCSSforFx/releases/tag/3.0.5 Files not officially on Github yet ;-)
Seem to work for me, thank you for your continued effort.
@Speravir
Agreed, the difference between the "highlighted" domain and the rest of the url is almost unnoticeable. I'm still looking for the CSS code, that changes domain appearance. I know I came across it in the past, but can't find it atm.
Hi @Aris-t2! About FF 75 urlbar I found a small change and there is a possibility that it will affect the codeI Ι wanted you know about it.
• Restore Classic Address Bar in Firefox 75 In a new tab, type about:config in the address bar. In the search box, type or copy-paste the lines: ----- browser.urlbar.update1 ------ ----- browser.urlbar.openViewOnFocus ----- Double-click on the browser.urlbar.update1 value name in the search result to toggle its value from true to false. Do the same and the next. Then, restart Firefox.
How to restore the old Firefox address bar. Load about:config in the browser's address bar. Confirm that you will be careful. Search for the following preferences and set them all to FALSE browser.urlbar.openViewOnFocus browser.urlbar.update1 browser.urlbar.update1.interventions browser.urlbar.update1.searchTips browser.urlbar.update1.view.stripHttps Restart the Firefox web browser.
@Achille-Grs The megabar code does not affect the previous appearance reenabled by browser.urlbar.update1 > false. In fact using browser.urlbar.update1 > true/false is mentioned a couple of time within userChrome.css file.
browser.urlbar.update1 > false is only a temporary solution. The switch is not present/working on Fx 77 Nightly.