/**
 * EdGEL list styling
 */

@use "../settings" as *;
@use "../tools" as *;

/* Address formatted in a dl */
.dl-address {
  dt {
    @include visually-hidden();
  }
  dd {
    word-wrap: break-word;
  }
  dd,
  p {
    /* Don't allow paragraph breaks in an address */
    margin-bottom: 0;
  }
}

/* Enforce bottom margin */
.dl-address:last-child {
  margin-bottom: $paragraph-margin-bottom;
}

/* Reduce list indent */
ul,
ol {
  padding-left: 1.5em;
}

/* Unordered list style with chevrons instead of bullets */
.list-chevron {
  padding: 0;
  list-style: none;

  > li {
    position: relative;
    padding-left: 1.5em;

    &::before {
      display: inline-block;
      width: .7em;
      height: .7em;
      margin-right: .4em;
      content: "";
      background-image: escape-svg($uoe-chevron-icon);
      background-repeat: no-repeat;
      background-size: contain;
    }
  }
}
