Hello. Is there a possibility to assign the offset-box for other module type then features? On the page I’m working on I would like to distinguish two text modules which are placed one after another, and it would be nice if the second one would have different background like the features module with offset-box class assigned.
@goraht, If you set frontmatter variable class
in text.md, the value of class
will be appended to the classes of module ‘text’.
See /user/themes/quark/templates/modular/text.html.twig:line4
<section class="section modular-text {{ page.header.class}} bg-gray">
You can then add the required background color for each class
to css.
By the way, class offset-box
isn’t really helpful, because the css defined for it only works for selector .modular-features.offset-box .frame-box
Thank you for your reply. It helped a little - it motivated me to dig deeper into it’s twig template and I did all necessary changes in it (and some changes in css were also necessary). Now it looks like I wanted.