mobirise - Add block parameters to custom html block -
so in mobirise 4.0.15
have noticed supplied template blocks have "block parameters" enabled, custom html blocks not.
looking @ source, can see parameter properties flow sass defined within <mbr-parameters>
.
however copy , pasting <mbr-parameters>
custom html block not enable "block parameters" reason.
so how can enable block parameters custom html block?
i've noticed if add 1 of supplied templates, replace own custom html, block parameters remain enabled allow me write own custom block parameters pretty cool.
i have contacted devs asking if whether there better approach workaround, @ least achieve desired results in meantime (i update post once have reply).
an example:
<mbr-parameters> <!-- block parameters controls (blue "gear" panel) --> <input inline type="range" title="margin top" name="margintop" min="0" max="8" step="1" value="6"> <input inline type="range" title="margin bottom" name="marginbottom" min="0" max="8" step="1" value="6"> <!-- end block parameters --> </mbr-parameters>
and in css:
margin-top: (@margintop* 15px); margin-bottom: (@marginbottom* 15px);
Comments
Post a Comment