userContent code works for one site, but not another Topic is solved

Support and discussions for the x86/x64 Linux version of Pale Moon.

Moderators: trava90, satrow

User avatar
helloimustbegoing
Board Warrior
Board Warrior
Posts: 1799
Joined: Thu, 28 Jun 2012, 01:20

userContent code works for one site, but not another  Topic is solved

Unread postby helloimustbegoing » Sun, 01 Jul 2018, 04:22

Recently, the Linux Mint forums changed something on their site which caused the site to render "narrowly" on a wide screen monitor, with the sides being a blank green. A moderator on the site posted some code to be placed in the userContent.css file in the chrome folder that causes the site to be rendered across the whole screen for those who prefer that:

Code: Select all

@-moz-document domain(forums.linuxmint.com) {
   .wrap { max-width: none !important; }
}

https://forums.linuxmint.com/viewtopic.php?f=18&t=271467
https://forums.linuxmint.com/viewtopic.php?f=47&t=271771

This worked, so I decided to try this for another website that renders "narrowly" on my widescreen (the Devuan forums at dev1galaxy.org). I copied the code a second time, and replaced forums.linuxmint.com with dev1galaxy.org, but the Devuan forum still rendered narrowly on my screen. Can anyone explain why this code works for the Mint forum site, but not for the Devuan forum?

adisib
Lunatic
Lunatic
Posts: 342
Joined: Sat, 13 Jun 2015, 03:34
Location: KY

Re: userContent code works for one site, but not another

Unread postby adisib » Sun, 01 Jul 2018, 06:01

helloimustbegoing wrote:Can anyone explain why this code works for the Mint forum site, but not for the Devuan forum?


CSS is written for a specific document structure, but different websites can be completely different and not have any structural similarity. If both forums used the same forum software, then they may share enough in common for the code to work on both, but they don't. They do have a similar enough structure that it looks like you can just change the name of what css class to target though.

Try this; it will probably work but I haven't tried it:

Code: Select all

@-moz-document domain(dev1galaxy.org) {
   .pun { max-width: none !important; }
}
Last edited by adisib on Sun, 01 Jul 2018, 06:16, edited 2 times in total.

User avatar
helloimustbegoing
Board Warrior
Board Warrior
Posts: 1799
Joined: Thu, 28 Jun 2012, 01:20

Re: userContent code works for one site, but not another

Unread postby helloimustbegoing » Sun, 01 Jul 2018, 17:02

Thanks, that works. :thumbup:


Return to “Pale Moon for Linux”

Who is online

Users browsing this forum: No registered users and 6 guests