$component: $lib-name + "-logo";

.#{$component} {
  position: relative;
  background-color: #fff;
  &.is-logo-collapsed {
    .#{$component}-info {
      text-align: center;
      .#{$component}-info-right-icon, .#{$component}-info-name {
        display: none;
      }
      .#{$component}-info-img {
        margin: 0;
      }
    }
  }
  &-info {
    height: 56px;
    line-height: 56px;
    border-bottom: solid $border-color-light 1px;
    cursor: pointer;
    &-img {
     max-width: 24px;
     max-height: 24px;
     vertical-align: sub;
     margin: 0 6px 0 25px;
    }
    &-name {
      font-size: 16px;
      font-weight: bold;
    }
    &-right-icon {
      float: right;
      font-size: 12px;
      margin-right: 23px;
      color: #999;
    }
  }
  &-switch {
    position: fixed;
    left: -216px;
    top: 0;
    bottom: 0;
    width: 216px;
    padding: 0 16px;
    background: #fff;
    box-shadow: $box-shadow-base;
    box-sizing: border-box;
    transition: left $transition-time;
    z-index: 100;
    &-hd {
      font-size: 12px;
      padding: 18px 0;
      label {
        font-weight: 500;
        i {
          font-size: 12px;
        }
      }
      span {
        float: right;
        cursor: pointer;
        color: $primary-color;
      }
    }
    .switch-item {
      font-size: 16px;
      border: 1px solid $border-color-base;
      margin-bottom: 32px;
      padding: 25px;
      cursor: pointer;
      position: relative;
      img {
        max-width: 24px;
        max-height: 24px;
        margin-right: 8px;
        vertical-align: bottom;
      }
      &:hover, &.is-active {
        border-color: #fff;
        &::after{
          content: '';
          position: absolute;
          border: solid $primary-color 3px;
          left: 0;
          top: 0;
          bottom: 0;
          right: 0;
        }
      }
      .disabled-tips {
        font-size: 12px;
        padding-top: 17px;
        line-height: 19px;
        border-top: solid $border-color-base 1px;
        margin-top: 17px;
        a {
          color: $primary-color;
          text-decoration: none;
        }
      }
      &.switch-item-dsb {
        .switch-item-info {
          opacity: .5;
        }
        &:hover {
          border-color: #ddd;
          &::after {
            border: 0;
          }
        }
      }
    }
  }
}