@import "../../style/mixins/index";

@include b(system) {
  width: 100%;
  height: 100%;
  .el-header {
    padding: 0;
  }
  @include e(main) {
    padding: 0 !important;
  }
}

@include b(system-sidebar) {
  background: $--x-system-header-background;
  color: $--x-system-header-color;
  @include e(logo) {
    box-sizing: border-box;
    height: 60px;
    line-height: 60px;
    padding: 0 20px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
  @include e(name) {
    line-height: $--x-system-header-height;
    font-size: 20px;
    display: inline-block;
    vertical-align: middle;
    margin: 0 5px;
  }
  @include e(menu) {
    margin: 10px 0;
  }
}

@include b(system-header) {
  height: $--x-system-header-height;
  background: $--x-system-header-background;
  color: $--x-system-header-color;
  position: relative;

  > div {
    float: left;
    height: 100%;
  }
  @include e(logo) {
    padding: 0 20px;
    cursor: pointer;
    line-height: $--x-system-header-height;
  }
  @include e(name) {
    line-height: $--x-system-header-height;
    font-size: 20px;
    display: inline-block;
    vertical-align: middle;
    margin: 0 5px;
  }
  @include e(info) {
    float: right !important;
    position: absolute;
    top: 0;
    right: 0;
  }
  &:after {
    content: '';
    clear: both;
  }
  @include e(info) {
    > div {
      display: inline-block;
      vertical-align: middle;
      line-height: $--x-system-header-height;
      margin: 0 10px;
      padding: 0 10px;
    }
  }
  @include e(user) {
    &:hover {
      background: rgba(255, 255, 255, 0.1);
    }
  }
  @include e(user-link) {
    color: rgba(255, 255, 255, 0.8) !important;
    cursor: pointer;
    &:hover {
      color: rgba(255, 255, 255, 1) !important;
    }
  }
  @include e(avatar) {
    width: 32px;
    height: 32px;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    img {
      width: 100%;
      height: 100%;
    }
  }
}

@include b(system-slide) {
  &-enter, &-leave-to {
    transform: translate(-100%, 0);
  }
  &-leave-active {
    transform: translate(-100%, 0);
  }
  &-enter-active, &-leave-active {
    transition: transform 0.2s;
  }
}
