@import '../../partials/variables';

.rules {
  padding: 0;

  &__item {
    display: flex;
    justify-content: space-between;
    align-items: center;

    border-bottom-right-radius: .25em;
    border-top-right-radius: .25em;

    padding: 5px 5px 5px 20px;

    @media (max-width: $mobile-breakpoint) {
      margin: 10px 0;
      padding: 25px 5px 20px 5px;
    }

    & * {
      padding: 0 2px 0 2px;
    }

    &:hover {
      cursor: pointer;
      background-color: var(--selected-color);
    }

    &--selected {
      background-color: var(--selected-color);
    }
  }

  &__info {
    display: flex;
    align-items: center;
    width: 80%;

    & i {
      margin: 0 5px 0 0;
      min-width: 20px;
    }

    & .favicon {
      margin: 0 5px 0 0;
    }
  }

  &__title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  & .badge {
    display: flex;
  }
}
