Skip to content

Divide

Sass mixins

MixinPurpose
divide-x($width: "DEFAULT")Vertical dividers between children
divide-y($width: "DEFAULT")Horizontal dividers between children
divide-style($style)Divider border style
divide-color($name)Divider colour

Utility classes

Divide Width

ClassProperty on each child except the last
divide-xborder-right-width: 1px; other border widths: 0; border-style: solid
divide-yborder-bottom-width: 1px; other border widths: 0; border-style: solid
divide-x-{width} (0, 2, 4, 8)border-right-width: {width}px; other border widths: 0
divide-y-{width} (0, 2, 4, 8)border-bottom-width: {width}px; other border widths: 0

Divide Style

ClassProperty on each child except the last
divide-solidborder-style: solid
divide-dashedborder-style: dashed
divide-dottedborder-style: dotted
divide-doubleborder-style: double
divide-noneborder-style: none

Divide Colour

ClassProperty on each child except the last
divide-{color}border-color: {color}

Example

html
<ul class="divide-y">
  <li>Item one</li>
  <li>Item two</li>
  <li>Item three</li>
</ul>