PM 28.2.2: URL bar font size cannot be changed

The place to report Pale Moon specific bugs on Linux and other operating systems.

Moderator: satrow

User avatar
lenovolobo933
New to the forum
New to the forum
Posts: 1
Joined: 2018-12-15, 13:37

PM 28.2.2: URL bar font size cannot be changed

Unread post by lenovolobo933 » 2018-12-15, 14:11

after creating /home/user/.moonchild productions/pale moon/user.default/chrome directory and creating userChrome.css with the following:

#urlbar .textbox-input-box,
#searchbar .textbox-input-box {
font-size: 300%;
}

and it failed. so i tried:

#urlbar {font-size: 14pt !important}

also there is no change in the URL bar font size.

jars_
Lunatic
Lunatic
Posts: 253
Joined: 2016-12-27, 00:12

Re: PM 28.2.2: URL bar font size cannot be changed

Unread post by jars_ » 2018-12-15, 15:26

Code: Select all

#urlbar {
	font-family: "Segoe UI","Franklin Gothic",Verdana !important;
	font-size: 1.1em !important; /* 1em, 1.1em,1.2em,... 1.03em, 1.08em etc */
	}


User avatar
therube
Board Warrior
Board Warrior
Posts: 1006
Joined: 2018-06-08, 17:02

Re: PM 28.2.2: URL bar font size cannot be changed

Unread post by therube » 2018-12-16, 16:07

@lenovolobo933, your example works here:

Code: Select all

#urlbar .textbox-input-box,
#searchbar .textbox-input-box {
font-size: 300%;
}
So maybe some other syntax issues elsewhere in your userChrome.css file?


Rename existing userChrome.css to userChrome.css.OLD, then create again with only the above code & test.
(You can always revert using the .OLD version.)
Last edited by therube on 2018-12-16, 16:09, edited 2 times in total.

Goodydino
Lunatic
Lunatic
Posts: 493
Joined: 2017-10-10, 21:20

Re: PM 28.2.2: URL bar font size cannot be changed

Unread post by Goodydino » 2018-12-16, 20:14

Did you put the namespace line at the start of userChrome.css? It is needed to get the stylesheet to work.

Code: Select all

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* set default namespace to XUL */

jars_
Lunatic
Lunatic
Posts: 253
Joined: 2016-12-27, 00:12

Re: PM 28.2.2: URL bar font size cannot be changed

Unread post by jars_ » 2018-12-16, 20:49

namespace line at the start of userChrome.css? It is needed to get the stylesheet to work.
No, not needed. Browser knows: userChrome - for browser interface. userContent - for pages.

Goodydino
Lunatic
Lunatic
Posts: 493
Joined: 2017-10-10, 21:20

Re: PM 28.2.2: URL bar font size cannot be changed

Unread post by Goodydino » 2018-12-17, 19:25

The file userChrome.css uses the namespace line, but userContent.css does not. I would suggest adding the namespace line to userChrome.css and see if it works better that way.

Locked