Horizontal Spacing
The gap-horizontal-* classes can be used to create horizontal spacing between any immediate child elements with the exception of grid rows and columns. They are ideal for separating form controls such as buttons or creating small gaps between images, but can be used to separate almost any elements.
<div class="form-row text-bold text-sm"> <div class="form-col-20 background-accent-1-light gap-horizontal-md"> <button type="button" class="button-sm button-accent-1">Button 1</button> <button type="button" class="button-sm button-accent-1">Button 2</button> <button type="button" class="button-sm button-accent-1">Button 3</button> </div> </div>
Horizontal SpacingThe gap-horizontal-* classes should not be used to separate grid columns, but are intended for spacing elements within flex items, grid rows and columns.
Vertical Spacing
The gap-vertical-* classes can be used to create vertical spacing between any immediate child elements, and may be used to create spacing between grid rows. These are ideal for separating form controls such as buttons or creating small gaps between images, but can be used for almost any elements.
<div class="container gap-vertical-sm"> <div class="panel background-accent-1-light"> <div>Pellentesque habitant morbi tristique senectus</div> </div> <div class="panel background-accent-1-light"> <div>Pellentesque habitant morbi tristique senectus</div> </div> <div class="panel background-accent-1-light"> <div>Pellentesque habitant morbi tristique senectus</div> </div> <div class="panel background-accent-1-light"> <div>Pellentesque habitant morbi tristique senectus</div> </div> </div>
Row Spacing
The row-spacing-* classes are used to apply spacing between rows in any of the 3 grid types. They can also be used to create vertical spacing between most elements, and are available with the traditional grid system only.
The classes available are as follows:
<div class="container col-padding-md text-center text-sm"> <div class="form-row"> <div class="form-col-eq-3 background-accent-1-light">Lorem ipsum</div> <div class="form-col-eq-3 background-accent-1-light">Lorem ipsum</div> <div class="form-col-eq-3 background-accent-1-light">Lorem ipsum</div> </div> <div class="row-spacing-lg"></div> <div class="form-row"> <div class="form-col-eq-3 background-accent-1-light">Lorem ipsum</div> <div class="form-col-eq-3 background-accent-1-light">Lorem ipsum</div> <div class="form-col-eq-3 background-accent-1-light">Lorem ipsum</div> </div> </div>
Custom Margins
WebUI includes a number of utility classes that can be used to assist with element margins, as listed in the following table. These classes can be used on their own or in combination with the place-* or dock-* classes.<div class="panel background-accent-1-light height-lg-xl text-sm"> <div class="place-top-right margin-top-xs margin-right-sm pad-sm accent-1"> <div>place-top-right margin-top-xs margin-right-sm</div> </div> <div class="place-middle-left margin-left-sm pad-sm accent-1"> <div>place-middle-left margin-left-sm</div> </div> </div>