Active
Project:
CSS Injector
Version:
6.x-1.4
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
20 Jul 2010 at 22:31 UTC
Updated:
19 Feb 2015 at 06:26 UTC
Jump to comment: Most recent, Most recent file
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