@import '../../styles/common';

.ExceptionList {
  margin: 0;
  padding: 0;
  list-style: none;
}

.Item {
  position: relative;
  padding-left: rem(24px);
  color: color('ink', 'lighter');

  + .Item {
    margin-top: spacing(extra-tight);
  }
}

.Icon {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: rem(20px);
  height: rem(20px);
  margin-right: spacing(extra-tight);

  @include recolor-icon(color('ink', 'lightest'));

  .statusWarning & {
    @include recolor-icon(color('yellow', 'dark'));
  }

  .statusCritical & {
    @include recolor-icon(color('red', 'dark'));
  }
}

.Bullet {
  width: rem(6px);
  height: rem(6px);
  border-radius: 100%;
  background-color: color('ink', 'lightest');

  .statusWarning & {
    background-color: color('yellow', 'dark');
  }

  .statusCritical & {
    background-color: color('red', 'dark');
  }
}

.Title {
  + .Description::before {
    content: '–';
    margin: 0 spacing(extra-tight);
  }

  .statusWarning &,
  .statusCritical & {
    font-weight: 500;
  }

  .statusWarning & {
    color: color('yellow', 'dark');
  }

  .statusCritical & {
    color: color('red', 'dark');
  }
}
