Page 1 of 1
CSS question
Posted: Sat Jan 25, 2014 12:26 pm
by SekoETC
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.
Re: CSS question
Posted: Sat Jan 25, 2014 1:29 pm
by EchoMan
Currently it is not. The CSS you manually enter is applied to the whole game.
Re: CSS question
Posted: Mon Jan 27, 2014 12:24 am
by Shaderon
That would definitely help a lot.
Re: CSS question
Posted: Mon Jan 27, 2014 12:28 am
by Greek
It's possible to do it client-side, as js script or something

Re: CSS question
Posted: Mon Jan 27, 2014 8:42 am
by joo
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.
Re: CSS question
Posted: Mon Jan 27, 2014 3:23 pm
by SekoETC
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.