Quote:
Originally Posted by ryoung
So I've added a text widget with a javascript 'job search' box on my site. The theme is making the text in the widget box greyscale until you hover over it. I'm not sure why?
I tried disabling the greyscale image 'on hover' in the postformat - but obviously that wasn't the issue. Can anyone offer any suggestions as to the issue? it is at www dot landmaninsider dot com
Edit: It also looks like it's using the two theme colors (blue and black), instead of the colors I've defined for it. If that helps anyone narrow down where the issue might lie.
|
I ran into the same problem. Montezuma has quite specific css. In order to override it, even with a later css declaration, you have to be at least as specific. Here's a simple
article about css specificity.
I don't like to touch theme css files, so I use the
lazyest stylesheet, which always comes up last. As long as you put equal or greater specificity later, it will override anything earlier. The other thing I like about the lazyest stylesheet is that it keeps all my custom css in one place.
Here's what I used to get my widget text larger and always black (and it worked):
Code:
.widget p
{
font-size: 110%;
color: black;
}
Why do I put my opening brace on a separate line? It makes it very easy to see all my braces that way, and to make sure that each declaration list is properly opened and closed. The overhead of the extra carriage return and line feed in the css file is negligible and, to me, well worth it. Having the opening brace on it's own line also clearly separates the declarations from the selectors.
Why don't I indent the declarations? I use a zero indent coding style, which uses carriage returns and line feeds instead of indents to group things. Look at the above code. Even if there were more selectors and declarations, it would still be quite easy to tell which was which.