Skip to content
0

List Style ​

Control the marker type and position of list items.

List Style Type ​

ClassProperties
.list-nonelist-style-type: none
.list-disclist-style-type: disc
.list-decimallist-style-type: decimal

List Style Position ​

ClassProperties
.list-insidelist-style-position: inside
.list-outsidelist-style-position: outside

Basic Usage ​

html
<!-- Unordered list with disc markers -->
<ul class="list-disc">
  <li>Item one</li>
  <li>Item two</li>
</ul>

<!-- Ordered list with decimal markers -->
<ol class="list-decimal">
  <li>First</li>
  <li>Second</li>
</ol>

<!-- No markers -->
<ul class="list-none">
  <li>No bullet</li>
</ul>

<!-- Markers inside the content flow -->
<ul class="list-disc list-inside">
  <li>Inside position</li>
</ul>

SCSS Source ​

scss
// From _utilities.scss
$list-style-type-list: (none, disc, decimal) !default;
$list-style-position-list: (inside, outside) !default;

INFO

The framework reset sets list-style: none on all lists by default. Use .list-disc or .list-decimal to restore markers when needed.

Released under the MIT License.