cyanoxide Posted August 28, 2018 Share Posted August 28, 2018 Hi all, I've currently trying to optimize my website and in doing so I'm trying to activate all the CCC features. As of right now I've got CCC merging all of my CSS except for one CSS file containing the majority of the custom CSS for the site. When I add this file into the autoload folder it shows up somewhere in the middle of the load order for CSS files however all of the module CSS files load in after this file and this causes conflicts. Is there a way to force this file to load after the modules? I could go through the file in question and add a tonne of important tags but it would take too long to try to work out which selectors will need these tags and in general that's a bad practice. Link to comment Share on other sites More sharing options...
Rolige Posted August 29, 2018 Share Posted August 29, 2018 Hello, That behavior is like that, all CSS files in the autoload are loaded before any module, you need create your CSS rules with a more specify path to get a greater weight than other, or use "!important", although in your case adding !important to everything is a very bad practice. Regards! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now