@use '../utilities/text';

// —————————————————————————————————————————————————————————————————
// elements
// dense
// list item - bold
// —————————————————————————————————————————————————————————————————

// —————————————————————————————————————————————————————————————————
// elements
// —————————————————————————————————————————————————————————————————

.list {
  display: flex;
  flex-direction: column;
  align-items: flex-start; // so that children don't take 100% width (for focus style)

  &_item {
    display: flex;
    align-items: center;

    & + & {
      margin-top: .5rem;
    }

    &Icon {
      display: flex;
      height: 1em;
      width: 1em;
      margin-right: .5em;
    }
  }
}

// —————————————————————————————————————————————————————————————————
// dense
// —————————————————————————————————————————————————————————————————

.list-dense .list_item,
.list_item-dense {
  @extend %caption;

  + .list_item {
    margin-top: .25rem;
  }
}

// —————————————————————————————————————————————————————————————————
// list item - bold
// —————————————————————————————————————————————————————————————————

.list_item-bold {
  @extend %text-bold;

  .list_itemIcon * {
    stroke: currentColor;
    stroke-width: 0.5rem;
  }
}
