userstyle for url text slightly upwards

Users and developers helping users with generic and technical Pale Moon issues on all operating systems.

Moderator: trava90

Forum rules
This board is for technical/general usage questions and troubleshooting for the Pale Moon browser only.
Technical issues and questions not related to the Pale Moon browser should be posted in other boards!
Please keep off-topic and general discussion out of this board, thank you!
User avatar
xlolitadabananax
Apollo supporter
Apollo supporter
Posts: 48
Joined: 2022-12-03, 13:18

userstyle for url text slightly upwards

Post by xlolitadabananax » 2025-04-12, 04:06

Does anyone have a userstyle to slightly move url text up ?

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 37773
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: userstyle for url text slightly upwards

Post by Moonchild » 2025-04-12, 09:37

You should just be able to do that using userContent.css
e.g.:

Code: Select all

A { 
  transform: translateY(-3px);
}
"A dead end street is a place to turn around and go into a new direction" - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
xlolitadabananax
Apollo supporter
Apollo supporter
Posts: 48
Joined: 2022-12-03, 13:18

Re: userstyle for url text slightly upwards

Post by xlolitadabananax » 2025-04-12, 19:34

thanks but i need a userstyle to use in stylem, so i can have a quick access to my scripts.
Last edited by xlolitadabananax on 2025-04-12, 20:10, edited 1 time in total.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 37773
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: userstyle for url text slightly upwards

Post by Moonchild » 2025-04-12, 19:49

I can't help you with a stylem script as I never looked into the format needed for that.
Maybe someone else can help.
"A dead end street is a place to turn around and go into a new direction" - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
xlolitadabananax
Apollo supporter
Apollo supporter
Posts: 48
Joined: 2022-12-03, 13:18

Re: userstyle for url text slightly upwards

Post by xlolitadabananax » 2025-04-12, 20:14

i meant userstyle sorry.

examples:

.urlbar-input-box, .ac-title, .ac-url-text {margin-left: 5px !important;}

this moves text in the url field to the right..

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 37773
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: userstyle for url text slightly upwards

Post by Moonchild » 2025-04-12, 22:33

xlolitadabananax wrote:
2025-04-12, 20:14
this moves text in the url field to the right..
only on pages where those fields have the named CSS classes.

The code I quoted above will change all A type elements (all anchors and links) moving the text the given number of pixels up.
So if your example works then the code above should work as well in your userstyle.
"A dead end street is a place to turn around and go into a new direction" - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
jobbautista9
Keeps coming back
Keeps coming back
Posts: 957
Joined: 2020-11-03, 06:47
Location: Philippines

Re: userstyle for url text slightly upwards

Post by jobbautista9 » 2025-04-13, 01:07

xlolitadabananax wrote:
2025-04-12, 19:34
thanks but i need a userstyle to use in stylem, so i can have a quick access to my scripts.
If it's for all sites, you can simply paste Moonchild's CSS in as a blank style when creating a new user style in Stylem from the add-on button, it should become a global style that way.
Image

"Destroying things, smartly!" - IJN Samidare, probably

Avatar artwork by ebifurya: https://www.pixiv.net/artworks/85379109

XUL add-ons developer. You can find a list of add-ons I manage at http://rw.rs/~job/software.html.

Kris_88
Board Warrior
Board Warrior
Posts: 1108
Joined: 2021-01-26, 11:18

Re: userstyle for url text slightly upwards

Post by Kris_88 » 2025-04-13, 04:49

Didn't anyone guess that the question was about the browser URL bar? ;)

This should work:

Code: Select all

.urlbar-input-box { margin-bottom: 3px !important; }
And don't forget the line at the beginning that specifies that the style applies to the browser itself.

Code: Select all

@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);

User avatar
xlolitadabananax
Apollo supporter
Apollo supporter
Posts: 48
Joined: 2022-12-03, 13:18

Re: userstyle for url text slightly upwards

Post by xlolitadabananax » 2025-04-13, 04:56

@moonchild & @jobbautista9

your code doesn't work as a userstyle in stylem.

& @kris_88

you'r language is a known userstyle language but that code doesn't move the urlbar text up..

i tried 2xp & 8xp, and nothing changes, & at 9xp or 10 & above, a white space covers the url text, so that code isn't the right one to move text up in the urlbar..

User avatar
xlolitadabananax
Apollo supporter
Apollo supporter
Posts: 48
Joined: 2022-12-03, 13:18

Re: userstyle for url text slightly upwards

Post by xlolitadabananax » 2025-04-13, 05:17

I retried your code kris, & it seems to work but partly, so it's not a definitive solution.

i'll explain..

your code seems to partly work for normal urls..
this one:
.urlbar-input-box, .ac-title, .ac-url-text {margin-bottom: 8px !important;}

so playing with px moves url up or down, but ... .
what i need to move actually is what i see with an extension
(navigation bar enhancer 1.3.4) & your given code only affects it
by instoring a blank image or transparancy over the extension's given text.

that's why i need a userstyle that can move the text given by the extension.
Last edited by xlolitadabananax on 2025-04-13, 05:19, edited 1 time in total.

Kris_88
Board Warrior
Board Warrior
Posts: 1108
Joined: 2021-01-26, 11:18

Re: userstyle for url text slightly upwards

Post by Kris_88 » 2025-04-13, 05:18

xlolitadabananax wrote:
2025-04-13, 04:56
so that code isn't the right one to move text up in the urlbar..
It works for me.
Or explain more precisely what you want...
Untitled1.png
You do not have the required permissions to view the files attached to this post.

Kris_88
Board Warrior
Board Warrior
Posts: 1108
Joined: 2021-01-26, 11:18

Re: userstyle for url text slightly upwards

Post by Kris_88 » 2025-04-13, 05:29

xlolitadabananax wrote:
2025-04-13, 05:17
(navigation bar enhancer 1.3.4)
I honestly don't want to experiment with additional extensions...

Try a slightly modified method suggested by Moonchild:

Code: Select all

.urlbar-input-box { transform: translateY(-3px); }

User avatar
xlolitadabananax
Apollo supporter
Apollo supporter
Posts: 48
Joined: 2022-12-03, 13:18

Re: userstyle for url text slightly upwards

Post by xlolitadabananax » 2025-04-13, 05:36

wow Kris, ur a master, it perfectly works now ))

one last tweak: do you have a userstyle code to turn bookmarks text type into:
Times New Roman
?

Kris_88
Board Warrior
Board Warrior
Posts: 1108
Joined: 2021-01-26, 11:18

Re: userstyle for url text slightly upwards

Post by Kris_88 » 2025-04-13, 05:58

xlolitadabananax wrote:
2025-04-13, 05:36
one last tweak: do you have a userstyle code to turn bookmarks text type into:
Times New Roman
?
Do you mean the buttons in the bookmarks toolbar?

Code: Select all

toolbarbutton.bookmark-item { font-family: "Times New Roman", Times, serif !important; }

User avatar
xlolitadabananax
Apollo supporter
Apollo supporter
Posts: 48
Joined: 2022-12-03, 13:18

Re: userstyle for url text slightly upwards

Post by xlolitadabananax » 2025-04-13, 06:38

Thanks a bunch Kris ))

Kris_88
Board Warrior
Board Warrior
Posts: 1108
Joined: 2021-01-26, 11:18

Re: userstyle for url text slightly upwards

Post by Kris_88 » 2025-04-13, 06:48

Don't mention it...

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 37773
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: userstyle for url text slightly upwards

Post by Moonchild » 2025-04-13, 15:13

Kris_88 wrote:
2025-04-13, 04:49
Didn't anyone guess that the question was about the browser URL bar? ;)
No, because OP didn't specify it was for the browser UI. Just mentioned "URL text"
"A dead end street is a place to turn around and go into a new direction" - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite