CSS question

Forum for general requests for support for players. Both staff members and veteran players can help new players with problems they encounter. No chatting in this forum, please.

Moderators: Public Relations Department, Players Department, Programming Department

User avatar
SekoETC
Posts: 15525
Joined: Wed May 05, 2004 11:07 am
Location: Finland
Contact:

CSS question

Postby SekoETC » Sat Jan 25, 2014 12:26 pm

Would it be possible to use different style sheets for different characters? Especially when you have two characters in the same location, if you could for example change the colors or background to something different, it would be easier to tell them apart and you would be certain you were playing the right one without having to check the name.
Not-so-sad panda
User avatar
EchoMan
Posts: 7768
Joined: Fri Aug 26, 2005 1:01 pm
Location: Stockholm, Sweden

Re: CSS question

Postby EchoMan » Sat Jan 25, 2014 1:29 pm

Currently it is not. The CSS you manually enter is applied to the whole game.
User avatar
Shaderon
Posts: 267
Joined: Wed Sep 21, 2005 5:53 am
Location: England (The rain center of the universe or so it seems)

Re: CSS question

Postby Shaderon » Mon Jan 27, 2014 12:24 am

That would definitely help a lot.
Earn cash in your spare time by blackmailing your friends - A spam email is for life not just for Christmas.
User avatar
Greek
Programming Dept. Member/Translator-Polish
Posts: 4726
Joined: Mon Feb 13, 2006 5:41 pm
Location: Kraków, Poland
Contact:

Re: CSS question

Postby Greek » Mon Jan 27, 2014 12:28 am

It's possible to do it client-side, as js script or something ;)
‘Never! Run before you walk! Fly before you crawl! Keep moving forward! You think we should try to get a decent mail service in the city. I think we should try to send letters anywhere in the world! Because if we fail, I’d rather fail really hugely’
User avatar
joo
Posts: 5021
Joined: Fri Jun 17, 2005 2:26 pm
Location: London, UK

Re: CSS question

Postby joo » Mon Jan 27, 2014 8:42 am

There is a hack using pure CSS that achieves something like this (in recent versions of Firefox and Chrome, at least):

Code: Select all

body > table:first-of-type {
    background: none !important;
}

#ownCharId[value="314159"] ~ td:first-of-type b:first-of-type {
    outline: 9999px solid #400;
    background: #400;
    position: relative;
    z-index: -1;
}


Replace 314159 the ID of the character you wish to affect (which can be found in the HTML source of their character page, as something like: <input id="ownCharId" type="hidden" name="ocharid" value="314159">); change both instances of #400 to the background colour you want for that character; and then, on each main character page (notably excluding sub-pages like notes, hunting, and character descriptions, where I'm not sure it can be done with pure CSS) that background colour will (appear to) be used. You can make multiple copies of the second section, with each one affecting a different character.
User avatar
SekoETC
Posts: 15525
Joined: Wed May 05, 2004 11:07 am
Location: Finland
Contact:

Re: CSS question

Postby SekoETC » Mon Jan 27, 2014 3:23 pm

Ok, looks like you have to hit Ctrl F5 to make it use the new CSS. I picked a color at random and good god it was hideous! Ok, best to pick something that makes the text readable.
Not-so-sad panda

Return to “General Support”

Who is online

Users browsing this forum: No registered users and 0 guests