PM 28.2.2: URL bar font size cannot be changed

Talk about code development, features, specific bugs, enhancements, patches, and similar things.
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.

This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.

Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
lenovolobo933

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.

User avatar
jars_
Lunatic
Lunatic
Posts: 397
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: 1650
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
Keeps coming back
Keeps coming back
Posts: 820
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 */

User avatar
jars_
Lunatic
Lunatic
Posts: 397
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
Keeps coming back
Keeps coming back
Posts: 820
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