Replace Background for specific games

Discussions about BGA (all languages)
Forum rules
Warning: challenging a moderation in Forum = 10 days ban
More info & details about how to challenge a moderation: viewtopic.php?p=119756
Post Reply
User avatar
Weasy Mac
Posts: 11
Joined: 29 May 2021, 20:13

Replace Background for specific games

Post by Weasy Mac »

Hi, I want to change the background picture of specific games with some custom CSS. I know how to replace it for the whole website but how do you apply it for only one specific game.

I found in the browsers dev tools that BGA has some special rules that are crossed out and the main background is, in this case, replaced by the Splendor one (see picture).

https://i.imgur.com/0YSFeSH.png

Simply copying the rules in the BGA custom CSS box doesn't work.

Anyone know how to do this? Thanks.
User avatar
xiongmao1298
Posts: 46
Joined: 08 December 2020, 20:29

Re: Replace Background for specific games

Post by xiongmao1298 »

Code: Select all

html:has(<some game specific class selector>) {
	background: <your background> !important;
}
should do it. If you're using Firefox, :has support might need to be enabled in the browser settings first.
User avatar
Weasy Mac
Posts: 11
Joined: 29 May 2021, 20:13

Re: Replace Background for specific games

Post by Weasy Mac »

xiongmao1298 wrote: 17 November 2023, 16:58

Code: Select all

html:has(<some game specific class selector>) {
	background: <your background> !important;
}
should do it. If you're using Firefox, :has support might need to be enabled in the browser settings first.
Doesn't work, but thanks.
Post Reply

Return to “Discussions”