!important

Sep. 26th, 2010 01:36 am
mashimero: my emoji (Default)
[personal profile] mashimero posting in [community profile] ao3_skins
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:

Date: 2010-09-26 07:29 pm (UTC)
cesy: "Cesy" - An old-fashioned quill and ink (Default)
From: [personal profile] cesy
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.

Date: 2010-09-27 10:43 am (UTC)
cesy: "Cesy" - An old-fashioned quill and ink (Default)
From: [personal profile] cesy
Yeah, there's no option like that yet. It'd be worth requesting via Support, as I suspect other people may also want it.

Profile

ao3_skins: OTW logo with text "Emerging" (Default)
AO3 Skins

December 2024

S M T W T F S
1234567
891011121314
15161718192021
22 232425262728
293031    

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 23rd, 2025 04:24 am
Powered by Dreamwidth Studios