Difference between revisions of "Flex"
From Gulf of Fallen Stars
(Created page with "<noinclude> === Parameters === '''type(required):''' begin / div / end '''cols(default 3):''' number of columns on widest screen. If set to 0, width/number columns is not def...") |
|||
Line 39: | Line 39: | ||
-->{{#vardefine:enddivs|</div></div>}}<!-- | -->{{#vardefine:enddivs|</div></div>}}<!-- | ||
− | -->{{#ifeq:{{{type}}}|begin|{{#var:startdivs}}}}<!-- | + | -->{{#ifeq:{{{type}}}|begin|<div style="display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:stretch;">{{#var:startdivs}}}}<!-- |
-->{{#ifeq:{{{type}}}|div|{{#var:enddivs}}{{#var:startdivs}}|}}<!-- | -->{{#ifeq:{{{type}}}|div|{{#var:enddivs}}{{#var:startdivs}}|}}<!-- | ||
-->{{#ifeq:{{{type}}}|nl|{{#var:enddivs}} | -->{{#ifeq:{{{type}}}|nl|{{#var:enddivs}} | ||
<wbr> | <wbr> | ||
{{#var:startdivs}}|}}<!-- | {{#var:startdivs}}|}}<!-- | ||
− | -->{{#ifeq:{{{type}}}|end|{{#var:enddivs}}}} | + | -->{{#ifeq:{{{type}}}|end|{{#var:enddivs}}</div>}} |
Revision as of 11:57, 29 March 2020
Parameters
type(required): begin / div / end
cols(default 3): number of columns on widest screen. If set to 0, width/number columns is not defined.
border(default false): whether the box should have a border
background(default transparent): the background of the grid cell. Defaults to white if border is true.
center(default false): center the text in the div
nomargin(default false): Overrides all margins and padding to 0