@import '../../style/index.less';

//@basicLayout-prefix-cls: ~'@{pro-layout-prefix-cls}';
@ant-layout-sider-prefix-cls: ~'@{ant-prefix}-layout-sider';
@pro-layout-sider-menu-prefix-cls: ~'@{ant-prefix}-pro-sider';

/* ant-pro-layout */
.@{pro-layout-prefix-cls} {
  display: flex;
  width: 100%;
  min-height: 100vh;
  overflow: hidden auto;
  /* 布局头部样式 */

  /* 头部菜单模式 */

  &-top {
    //border: 1px red dashed;

    .@{pro-layout-prefix-cls}-sider {
      display: none;
    }
  }

  /* 侧边栏模式 */

  &-side {
    .@{pro-layout-prefix-cls}-header {
      padding-left: 0;
    }
  }

  /* 混合模式 */

  &-mix {
    /* 直接固定头部 */

    .ant-layout-header {
      position: fixed;
      top: 0;
      width: 100%;
      left: 0;
    }

    .ant-pro-layout-sider .ant-layout-sider-children .header {
      margin: 0;
    }
  }

  .ant-layout {
  }

  /* 固定头部 */

  &&-fixed-header {
    //border: 1px red dashed;
    //height: 100vh;

    .ant-layout-header {
      position: fixed;
      top: 0;
      width: 100%;
      left: 0;
    }
  }

  /* 固定侧边菜单 */

  &&-fixed-sidebar {
    .@{ant-prefix}-layout-sider-children {
      max-height: 100vh;
      position: fixed;
      top: 0;
    }
  }

  /* 主体内容样式 */

  &-content {
    position: relative;
    //margin: 16px;
    //padding: 16px;
    background: @component-background;
  }

  .logo-container {
    display: flex;
    //border: 1px red dashed;
    justify-content: center;
    align-items: center;
    //height: 48px;
    width: 100%;
    height: 100%;
    padding: 0 12px;

    .logo {
      flex: 0 0 32px;

      //flex: 0 0;
      //min-height: 32px;
      //max-height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      //border: 1px red dashed;
      height: 100%;
      width: 100%;

      img {
        height: 100%;
        object-fit: contain;
      }
    }

    .title {
      height: 100%;
      display: flex;
      justify-content: flex-start;
      align-items: center;
      font-weight: bold;
      font-size: 18px;
      padding: 0 8px;

      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }
}

/* 全局滚动条样式 */
::-webkit-scrollbar {
  width: @pro-scrollbar-width;
  height: @pro-scrollbar-width;
  background: transparent;
}

::-webkit-scrollbar-track {
  //background: rgba(255, 255, 255, 0.15);
  //background: white;
  border-radius: @pro-scrollbar-width;
  -webkit-box-shadow: inset 0 0 5px rgba(37, 37, 37, 0.05);
}

/* 滚动条滑块 */

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: @pro-scrollbar-width;
  -webkit-box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.05);
}

html {
  overflow-y: unset !important;
}

body {
  overflow: hidden auto !important;
}
