.layout-header {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  // padding-right: 24px;
  border-bottom: 1px solid #efefef;
  background-color: #fff;
  // 解决元素设置fixed定位时遮挡问题，所以提高层级
  position: relative;
  z-index: 2;
  .ant-btn {
    height: 32px;
    padding: 0 16px;
    text-align: center;
    margin: 0;
    margin-left: 8px;
    & > span + .anticon {
      margin-left: 2px;
      font-size: 10px !important;
      color: #999999;
    }
  }
  .project-name {
    width: 300px;
    margin-left: 16px;
    font-size: 12px;
    cursor: pointer;
    i {
      display: inline-block;
      margin: 0 8px;
    }
  }
  .operation-area {
    width: 500px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    & > div:not(.publish) {
      width: 32px;
      height: 32px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      span {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        border-radius: 3px;
      }
      &:hover span {
        background: rgba(0, 0, 0, 0.06);
      }
      &:active svg {
        fill: @primary-color;
      }
    }
    .publish {
      padding: 3px 8px;
      color: #fff;
      background-color: @primary-color;
      font-size: 12px;
      border-radius: 2px;
      svg {
        margin-right: 4px;
      }
    }
    & > div.version {
      width: 150px;
      height: 24px;
      border: 1px solid #ddd;

      .ant-dropdown-trigger {
        padding: 0 8px;
        align-items: center;
        justify-content: space-between;
        span {
          width: 120px;
          display: inline-block;
        }
      }
    }
    .show-more:hover {
      color: @primary-color;
    }
  }
  .preview-service {
    display: flex;
    align-items: center;
    .single-service {
      padding: 8px;
      cursor: pointer;
      &.active {
        background: rgba(0, 0, 0, 0.06);
        border-radius: 4px;
      }
    }
    .service-size {
      font-size: 12px;
      margin-left: 40px;
      color: rgba(0, 0, 0, 0.65);
      span:first-child {
        display: inline-block;
        margin-right: 12px;
      }
    }
  }
}
.more-operation {
  .ant-dropdown-menu {
    background: #ffffff;
    box-shadow: 0px 3px 8px 0px rgba(0, 0, 0, 0.08),
      0px 2px 3px -2px rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    border: 1px solid #e4e4e4;
    padding: 8px;
    .ant-dropdown-menu-item {
      height: 32px;
      line-height: 32px;
      padding: 0;
      padding: 0 8px;
      font-size: 14px;
      span {
        display: inline-block;
        width: 100%;
      }
      &:hover {
        background: rgba(0, 0, 0, 0.06);
        border-radius: 3px;
      }
      &:active {
        color: @primary-color;
      }
    }
  }
}
