Don't want to learn Bootstrap classes? Go to Bootstrap builder for busy developers.

Bootstrap class: .list-group

<div class="card">
  <ul class="list-group list-group-flush">
    <li class="list-group-item">Cras justo odio</li>
    <li class="list-group-item">Dapibus ac facilisis in</li>
    <li class="list-group-item">Vestibulum at eros</li>
  </ul>
</div>

Preview

  • Cras justo odio
  • Dapibus ac facilisis in
  • Vestibulum at eros

Sass source

/* _card.scss:78 */
+ .list-group {
  .list-group-item:first-child {
    border-top: 0;
  }

/* _list-group.scss:5 */
.list-group {
  display: flex;
  flex-direction: column;

  // No need to set list-style: none; since .list-group-item is block level
  padding-left: 0; // reset padding because ul and ol
  margin-bottom: 0;
}

Uses variables

/* _card.scss:78 */


/* _list-group.scss:5 */