Possibility to set margin and padding and to use all CSS dimension value types
-
In the Inspector the Sticky Block currently has very few layout options:
- Space between sticky block and top of screen:
<numeric value only>
- ?? Request 1: Please make this a text field and allow any CSS value, also e.g.
var(--wp--preset--spacing--30)
- ?? Request 1: Please make this a text field and allow any CSS value, also e.g.
- Move the block down a little bit if there is a toolbar at the top (for logged in users): Yes / No
- Pushup Element:
<text field>
to fill with an ID or class name
?? Request 2: Please add spacing options:
- Minimally at least margin-bottom, which is the space between the sticky block and the pushup element, the conceptual counterpart to “Space between sticky block and top of screen”.
- Ideally the same dimension control as the native blocks (slider for the theme.json fluid sizes which can altenratively also be set to any other CSS dimension (px, pc, em, rem, vh, vw) ).
Workarounds are possible luckily (but not elegant though):
- Set the spacing on the wrapped block. But not all those blocks have adequate spacing settings themselves! E.g. the Gutenslider block has margin-top-bottom combined (not margin-bottom alone).
- Deep nesting like: Sticky block (without spacing options) → Group block (with your spacing as desired) → Certain content block (incapable of spacing).
- Space between sticky block and top of screen:
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Possibility to set margin and padding and to use all CSS dimension value types’ is closed to new replies.