Make it possible to define SCSS settings overrides from modules#8198
Make it possible to define SCSS settings overrides from modules#8198leio10 merged 4 commits intodecidim:developfrom
Conversation
leio10
left a comment
There was a problem hiding this comment.
Nice! I see that none of the built-in modules are using this, so I guess that this would be used by external modules to customize SCSS variables, right? What type of customizations are you thinking about?
|
Yes, you are correct @leio10. None of the core modules are using this. It would be used to create Decidim themes without having to add additional CSS includes in the view (which will be less performant and more cumbersome). This need came out as we wanted to build a module which would theme Decidim in a specific way. Example use cases would include:
You might ask why not to do it in the instance itself and I might ask why should we apply the same customizations to all instances separately making their maintenance harder? It's basically a baby step towards theming Decidim, similarly as you can theme any CMS system out there or e.g. how you can create themes for Discourse. |
|
Hey @ahukkanen |
|
@virgile-dev What do you mean exactly? We are working on a light Decidim theme but it is on hold right now and we'll continue next month. It's not going to be anything extensive, just something we feel looks a bit fresher, a better starting point (in our opinion). Mostly quite minor changes. But I am sure interested in what you have in mind, so let me know if you want to back'n'forth about that. |
* develop: (32 commits) Remove obsolete rake webpack task (#8237) Active storage migrations service (#7902) Fix content type delegation to blank attachments (#8230) Evote bug fixing (#8220) Fix the proposal data migration for proposals without authors or organization (#8015) Bump addressable version because security issues (#8229) Online meetings iframe visibility with time (#8097) Meetings iframe and iframe URL (#8096) Remove flaky test on meetings (#8226) Fix broken tests after problematic PRs (#8224) Apply permissions system to comments (#8035) Set current_component as commentable when commentable is a participatory space (#8189) Fix don't require inactive authorization handlers (#8122) Improve metrics calculations performance (#8215) Fix performance issue in notification settings page (#8155) Active storage migration (#7598) Update manual installation guide in documentation (#8217) Load JS configuration in elections focus mode layout (#8213) Fix user activity pagination when there are hidden items (#8202) Make it possible to define SCSS settings overrides from modules (#8198) ...
|
Here is an example how to use these features for themes: |
🎩 What? Why?
Right now it is possible to add extra SCSS to the main and admin SCSS from modules as of #8115 and #8154.
But it is not possible to override any Foundation/Decidim SCSS settings variables from modules.
This adds this possibility in order to make it easier to do theming directly from modules.
📌 Related Issues
Testing
$anchor-color: #f00;📋 Checklist
docs/.