mashimero: my emoji (Default)
mashimero ([personal profile] mashimero) wrote in [community profile] ao3_skins2010-09-26 01:36 am
Entry tags:

!important

Hi, I have a question regarding the use of !important. I'm working on a skin based off of the Helvetireader theme by Hicksdesign, but it's quite a big overhaul of the AO3 default style. I've managed to get this so far:

WIP preview

The problem is that I've had to use !important after almost every property. I'm not that great with CSS - what I know is all self-taught from online tutorials and such, but I don't think using so many !important is a good thing. However, I haven't found another way to get the results I want.

So, in your experiences with AO3 skinning, do you use !important, and if so, how often?

ETA: Here's what I have so far:
cesy: "Cesy" - An old-fashioned quill and ink (Default)

[personal profile] cesy 2010-09-26 07:29 pm (UTC)(link)
I've had to use it once or twice, but not very often. Basically, your skin code comes after all the default site scheme stuff, so will override it by CSS inheritance rules if they are equally specific, or if yours is more specific. If yours is less specific than the original rule, you'll need to use !important. However, if you're having to use it a lot, it basically means either there's something wrong with our code, or something wrong with yours, so it's worth sending in a support request with the code for your skin, or post it here and someone can have a look.
cesy: "Cesy" - An old-fashioned quill and ink (Default)

[personal profile] cesy 2010-09-27 10:43 am (UTC)(link)
Yeah, there's no option like that yet. It'd be worth requesting via Support, as I suspect other people may also want it.