Hi,
Can I prevent the inheritance of the auto generated sites/default/files/css/sasson.css file ? Or Do I need to override its rules in my subtheme?
Thanks!
Hi,
Can I prevent the inheritance of the auto generated sites/default/files/css/sasson.css file ? Or Do I need to override its rules in my subtheme?
Thanks!
Comments
Comment #1
tsi commentedI was actually looking into integrating something like Disable css files into Sasson, this will allow you to disable stylesheets not only from Sasson but from core too.
Any help will be most welcome.
Comment #2
tsi commentedFYI, you could do this today pretty easily by calling an overridden file from your sub-theme:
If you'd like to override sasson.scss or layout.scss themselves - you could copy it to your sub-theme, call it from your .info file and modify it.
If you'd like to override the layout settings, you can simply copy the layout folder (contains the partials that define the layout) from Sasson to your sub-theme and modify them, no changes are needed in your info file (just like overriding a template file).
Don't forget to recompile your Sass files (alt+c).
Comment #3
tsi commentedSomewhat related, Sasson v3.x just got a new feature - it now allows you to disable CSS and/or JS files added by core and contrib modules - via theme settings.
You also have a checkbox to disable Sasson's JS, but for the stylesheets - the best way is the one described in #2.