diff --git a/options/options.twig b/options/options.twig index 5ca8532..7946416 100644 --- a/options/options.twig +++ b/options/options.twig @@ -173,6 +173,12 @@ .action_update_options_string_form .form-label { font-size: 16px; } + /* row 177: 15px between the LAST checkbox of a checkbox group and the + following item (.checkbox-last is set in twig on the last checkbox of + each consecutive run; beats .mb-1 by specificity) */ + .form-check.checkbox-last { + margin-bottom: 15px; + } /* row 128/130: the section headers this page inserts (h2 inside the tab panes, e.g. "Header", "Logos", "Page background") — row 128 made them h1-sized, which turned out too big, so row 130 fixes them at 24px. @@ -401,6 +407,18 @@ {% endfor %} {% endif %} {% endif %} + {# row 177: keys of the LAST checkbox of each consecutive checkbox run in this + tab — its .form-check gets the extra class .checkbox-last (margin-bottom: + 15px, see the style block), so there is 15px between a checkbox group and + the following item #} + {% set aLastCheckboxKeys = [] %} + {% for ck in aTabKeys %} + {% set cka = aOptionAttributes.optionAttributes[ck] ?? null %} + {% if cka is not null and cka.type == 'checkbox' %} + {% set nka = aOptionAttributes.optionAttributes[aTabKeys[loop.index] ?? ''] ?? null %} + {% if nka is null or nka.type != 'checkbox' %}{% set aLastCheckboxKeys = aLastCheckboxKeys|merge([ck]) %}{% endif %} + {% endif %} + {% endfor %}