Difference between revisions of "Flex"
From Gulf of Fallen Stars
Line 36: | Line 36: | ||
-->{{#if:{{{nomargin|}}}|{{#vardefine:margin|margin:0px;}}{{#vardefine:padding|padding:0px;}}|}}<!-- | -->{{#if:{{{nomargin|}}}|{{#vardefine:margin|margin:0px;}}{{#vardefine:padding|padding:0px;}}|}}<!-- | ||
− | -->{{#vardefine:startdivs|<div style="display:flex; align-items:stretch; flex-basis:{{#var:width}};min-width:{{#var:minwidth}};"><div style="flex-basis:100%;{{#var:boxstyle}}{{#var:margin}}{{#var:padding}}{{#var:background}}{{#var:textstyle|}}">}}<!-- | + | -->{{#vardefine:startdivs|<div style="display:flex; align-items:stretch; flex-basis:{{#var:width}};min-width:{{#var:minwidth}};"><div style="flex-basis:100%;overflow-y: auto;{{#var:boxstyle}}{{#var:margin}}{{#var:padding}}{{#var:background}}{{#var:textstyle|}}">}}<!-- |
-->{{#vardefine:enddivs|</div></div>}}<!-- | -->{{#vardefine:enddivs|</div></div>}}<!-- | ||
Revision as of 12:12, 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