CustomCSSforFx icon indicating copy to clipboard operation
CustomCSSforFx copied to clipboard

[Fx75+] Issues with new address bar aka 'megabar'

Open gabri25ele opened this issue 6 years ago • 114 comments

normally the selection of a part or of the whole url has a part highlighted in blue 7N87fMv

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

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)

gabri25ele avatar Apr 06 '20 11:04 gabri25ele

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; }

gabri25ele avatar Apr 06 '20 12:04 gabri25ele

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.

Aris-t2 avatar Apr 06 '20 12:04 Aris-t2

for now I deleted

#nav-bar:not(:-moz-lwtheme) { -moz-appearance: none !important; background: var(--general_toolbar_color_navbar, inherit) !important; }

gabri25ele avatar Apr 06 '20 12:04 gabri25ele

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;
}

Aris-t2 avatar Apr 06 '20 12:04 Aris-t2

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 avatar Apr 07 '20 23:04 Speravir

@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;
}

Aris-t2 avatar Apr 08 '20 08:04 Aris-t2

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 avatar Apr 08 '20 15:04 pgnd

@pgnd Test custom_css_for_fx_v3.0.5_v2.zip.

Aris-t2 avatar Apr 08 '20 16:04 Aris-t2

@Aris-t2 don't see a package yet; i'm pulling from github master ... will do as soon as it appears. thx!

pgnd avatar Apr 08 '20 16:04 pgnd

@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.

2BeeOrNot avatar Apr 08 '20 17:04 2BeeOrNot

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!

arghfrank avatar Apr 08 '20 17:04 arghfrank

@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 avatar Apr 08 '20 17:04 Aris-t2

@Aris-t2 305v2 + FF755 looks good. font size in AddressBar matches the 'rest'.

pgnd avatar Apr 08 '20 19:04 pgnd

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-false
  • Megabar enabled megabar-true

Also I have a different font and more font weight, but with the default font I do not see a better ratio.

Speravir avatar Apr 08 '20 22:04 Speravir

@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.

gashtal avatar Apr 09 '20 02:04 gashtal

@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.

Aris-t2 avatar Apr 09 '20 07:04 Aris-t2

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.

Achille-Grs avatar Apr 09 '20 10:04 Achille-Grs

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.

gabri25ele avatar Apr 09 '20 10:04 gabri25ele

@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.

Aris-t2 avatar Apr 09 '20 16:04 Aris-t2

browser.urlbar.update1 > false is only a temporary solution. The switch is not present/working on Fx 77 Nightly.

Aris-t2 avatar Apr 09 '20 16:04 Aris-t2