Im trying to change the font color of a text which has already been set to white by default but no changes show. How can I get this to work for replacing default theme CSS?
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | css injector idea.png | 64.64 KB | brandonc503 |
Im trying to change the font color of a text which has already been set to white by default but no changes show. How can I get this to work for replacing default theme CSS?
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | css injector idea.png | 64.64 KB | brandonc503 |
Comments
Comment #1
zazinteractive commentedadd !important at the end. Such as
margin-left: 10px !important;Comment #2
honza pobořil commentedIts not clean solution. It could be better to allow set weights of inherited files.
Comment #3
zazinteractive commentedHow would that work in code though?
Comment #4
Vayira commentedputting !important is not enough to overide the theme css. It would be useful have the option of applying the css rules after the theme css.
Comment #5
zazinteractive commentedWhy wouldn't it override the theme css? Well, unless it is using !important as well.
Comment #6
merzikain commentedThis may help someone else looking to do something similar, though this module is not necessary for it to work.
I have a style sheet aggregator script that someone else created and I modified.
You can call this in your template file or in a phptemplate_preprocess_page() template.php function.
It will sort the style sheets into media types and then sort those by the weight of the module that they came from, giving preference to theme files.
It works great for my purposes. Feel free to use/modify it as you need.
Comment #7
brandonc503 commented*deleted as i cant remove account
Comment #8
brandonc503 commented*deleted as i cant remove account