userChrome.css & userContent.css

Board for discussions around the Basilisk web browser.

Moderator: Basilisk-Dev

User avatar
Jasantes
Hobby Astronomer
Hobby Astronomer
Posts: 19
Joined: 2024-02-07, 02:11

userChrome.css & userContent.css

Unread post by Jasantes » 2024-10-06, 22:48

Basically, I use these stylesheets for two purposes:
userChrome.css: move the find bar (Ctrl+F) to top.
userContent.css: change the cursor (+) when pointing to links that open a new tab/window
I have toolkit.legacyUserProfileCustomizations.stylesheets > true
Neither of them are working in Basilisk.
What could be the reason or the solution?

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

Re: userChrome.css & userContent.css

Unread post by therube » 2024-10-07, 16:47

How about posting the code you are using, & in what browser it does work?

And you have those two file in a /chrome/ subdirectory?

I use:

Code: Select all

/* Change cursor for links that open in new window */
:link[target="_blank"], :visited[target="_blank"],
:link[target="_new"],   :visited[target="_new"] {
   cursor:  crosshair;
}
in userContent.css (in SeaMonkey, not sure offhand about PM & don't have Basilisk).

Test page: https://www.w3schools.com/tags/tryit.as ... ink_target

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

Re: userChrome.css & userContent.css

Unread post by Moonchild » 2024-10-07, 19:31

toolkit.legacyUserProfileCustomizations.stylesheets
That's a Firefox-ism that doesn't do anything in Basilisk/Pale Moon.

You may also want to make sure you've put the .css files in the correct file system location...
"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
Jasantes
Hobby Astronomer
Hobby Astronomer
Posts: 19
Joined: 2024-02-07, 02:11

Re: userChrome.css & userContent.css

Unread post by Jasantes » 2024-10-08, 14:51

Perfect, thank you. I included hover that works fine in FF, but not here.

And what about userChrome? What is the way to move the find bar to the top?

User avatar
Jasantes
Hobby Astronomer
Hobby Astronomer
Posts: 19
Joined: 2024-02-07, 02:11

Re: userChrome.css & userContent.css

Unread post by Jasantes » 2024-10-08, 16:18

Ok, I found the solution for userChrome:

.browserContainer > findbar {
-moz-box-ordinal-group:0 !important;
border-top: none !important;
border-bottom: 1px solid ThreeDShadow !important;
}

https://support.mozilla.org/es/questions/1372399