@import "mixins/mixins";
@import "mixins/utils";
@import "common/var";

@include b(breadcrumb) {
  font-size: 14px;
  line-height: 20px;
  @include utils-clearfix;

  @include e(separator) {
    margin: 0 8px;
    color: $--color-text-secondary;
  }

  @include e(item) {
    float: left;

    @include e(inner) {
      color: $--color-text-secondary;

      &.is-link, & a {
        text-decoration: none;
        transition: $--color-transition-base;
        color: $--color-text-secondary;
        &:hover {
          color: $--color-primary;
          cursor: pointer;
        }
        &:active {
          color: $--color-primary-dark-2;
          cursor: pointer;
        }
      }
    }

    &:last-child {
      .el-breadcrumb__inner,
      .el-breadcrumb__inner a {
        &, &:hover {
          font-weight: normal;
          color: $--color-text-primary;
          cursor: text;
        }
      }

      .el-breadcrumb__separator {
        display: none;
      }
    }
  }
}
