List
Format list elements.
.list-unstyle
.list-inline
.list-center
Loop config includes list classes by default. In manual mode use the mixin List()
# Unstyle
Remove default style of list elements
<ul class="list-unstyle">
<li>Lorem ipsum dolor sit amet consectetur.</li>
<li>Lorem ipsum dolor sit amet consectetur.</li>
<li>Lorem ipsum dolor sit amet consectetur.</li>
</ul>
- Lorem ipsum dolor sit amet consectetur.
- Lorem ipsum dolor sit amet consectetur.
- Lorem ipsum dolor sit amet consectetur.
# Inline
Set horizontal list. Adjust the the gap between from the property inlineSpacing of list.
// default config
list: (
...
inlineSpacing: 1em,
),
<ul class="list-inline">
<li>item 1</li>
<li>item 2</li>
<li>item 3</li>
<li>item 4</li>
</ul>
- item 1
- item 2
- item 3
- item 4
# Center
Horizontally center list elements.
<ul class="list-center">
<li>Lorem ipsum dolor sit.</li>
<li>Lorem ipsum dolor sit amet consectetur.</li>
<li>Lorem ipsum dolor sit amet.</li>
</ul>
<ul class="list-unstyle list-center">
<li>Lorem ipsum dolor sit amet consectetur.</li>
<li>Lorem ipsum dolor sit amet.</li>
<li>Lorem ipsum dolor sit consectetur.</li>
</ul>
<ul class="list-inline list-center">
<li>item 1</li>
<li>item 2</li>
<li>item 3</li>
<li>item 4</li>
</ul>
- Lorem ipsum dolor sit.
- Lorem ipsum dolor sit amet consectetur.
- Lorem ipsum dolor sit amet.
- Lorem ipsum dolor sit amet consectetur.
- Lorem ipsum dolor sit amet.
- Lorem ipsum dolor sit consectetur.
- item 1
- item 2
- item 3
- item 4