Element settings are used to render HTML, but can also be used to generate custom CSS. To have CSS rules generated automatically based on an element's settings, you can modify the
custom_css method of the element:
Each rule contains:
1. An optional media query, where possible values are mobile, tablet, tablet-up and desktop. For example, to have the rule apply to tablets only, us 'tablet'. For all screen sizes larger than tablet, use 'tablet-up'.
2. The selector(s) for the rule, provided in an array. You can prefix
: to each selector as in SCSS, which reference the element itself.
3. The declaration(s) for the rule, provided in an array. In the example above, the CSS color attribute is set to the value of the