/* stylelint-disable selector-type-no-unknown */

bixi-layout-header.bixi-layout-header {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  width: 100%;
  height: @layout48;
  background-color: @header-bg;
  // 显示 box-shadow;

  .bixi-layout-header-logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    overflow: hidden;
    color: @menu-active-color;
    font-size: 18px;
    white-space: nowrap;
    background: @logo-bg;
    background-repeat: round;
    border-bottom: 1px solid @header-border-color;
    cursor: pointer;
    transition: width 0.2s;
    img {
      display: block;
      width: auto;
      max-width: 100%;
      height: auto;
      max-height: 100%;
      margin-right: auto;
      margin-left: auto;
    }
  }

  &-opened {
    .bixi-layout-header-logo {
      width: @large-logo-width;
      padding: 6px 16px;
    }
  }
  &-collapsed {
    .bixi-layout-header-logo {
      width: @small-logo-width;
      padding: 8px;
    }
  }
  .bixi-layout-nav {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 16px;
    border-bottom: 1px solid #e9ecf2;
    .bixi-layout-header-info,
    .bixi-layout-header-tools {
      display: flex;
      align-items: center;
      height: 100%;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
    .bixi-layout-header-info {
      flex: 1;
    }
  }
  .router-area {
    color: @header-router-color;
    font-weight: 400;
    font-size: @layout-fontSize;
    .bread-link {
      color: @header-color;
      a {
        color: @header-disable-color;
        cursor: pointer;
        &:hover {
          color: @header-active-color;
        }
      }
    }
    .icon-separate {
      padding: 4px;
      color: @header-disable-color;
    }
  }
}
