@import '../../style/common';

.@{prefix}header {
  position: relative;
  display: flex;
  width: 100%;
  height: @header-height;
  line-height: @header-height;
  text-align: center;
  background: @header-background-color;
  user-select: none;

  &::after {
    border-color: @header-border-color;
  }

  &--wrapper::after {
    position: relative;
    top: 0;
    display: block;
    width: 100%;
    height: @header-height;
    border-color: @header-border-color;
    content: '';
  }

  &--fixed {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1999;
    width: 100%;
  }

  &--maxZIndex {
    z-index: 3000;
  }

  &--primary {
    background: @primary-color;
    box-shadow: none;

    .@{prefix}header__title {
      color: #fff;
    }
  }

  .@{prefix}icon {
    display: inline-block;
    width: @header-icon-width;
    height: @header-icon-width;
    vertical-align: middle;
  }

  &__icon {
    display: inline-block;
    vertical-align: middle;
    fill: @header-icon-fill;

    svg {
      vertical-align: top;
    }
  }

  &__left,
  &__right {
    display: flex;
    flex: 1;
    flex-flow: row nowrap;
    align-content: center;
    align-items: center;
    min-width: 0;
    height: 100%;
    overflow: hidden;
  }

  &__left {
    justify-content: flex-start;
    padding-left: @header-padding-left;
  }

  &__right {
    justify-content: flex-end;
    padding-right: @header-padding-left;
  }

  &__title {
    display: flex;
    flex: 4;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    color: @text-color-2;
    font-weight: @header-title-font-weight;
    font-size: @header-font-size;
    letter-spacing: 0;
  }
}
