@import 'header.less';
@import 'side-menu/materials.less';
@import 'side-menu/outline.less';
@import 'side-menu/inspector.less';
@import 'side-menu/blocks.less';
@import 'side-menu/block-publish.less';
@import 'side-menu/market.less';
@import 'side-menu/pages.less';
@import 'side-menu/resources.less';
@import 'side-menu/setting.less';
@import 'side-menu/data.less';
@import 'side-menu/query.less';

.main-container {
  display: flex;
  .layout-aside {
    width: 48px;
    position: relative;
    top: 0;
    bottom: 0;
    left: 0;
    height: 100vh;
    overflow: hidden;
    box-shadow: 2px 0px 3px 0px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
    .column-bar-container {
      position: relative;
      z-index: 15; // 解决元素设置fixed定位时遮挡问题，所以提高层级
      height: 100%;
      background-color: #fff;
      .bar {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 48px;
        height: 40px;
        cursor: pointer;
        text-align: center;
        background-color: #fff;
        padding-top: 8px;
        .logo {
          width: 32px;
          height: 32px;
          background: rgba(0, 0, 0, 0.06);
          border-radius: 16px;
          display: flex;
          justify-content: center;
          align-items: center;
          svg {
            fill: #333;
          }
          &:hover {
            background-color: #f0fff0;
            svg {
              fill: @yee-primary-color;
            }
          }
        }
      }
      .menu-wrap {
        overflow-y: auto;
        overflow-x: hidden;
        display: flex;
        justify-content: space-between;
        flex-direction: column;
        height: calc(100vh - 40px);
      }
      .yee-menu-inline {
        border: none;
        padding-top: 12px;
        .yee-menu-item {
          height: 54px;
          // line-height: 40px;
          display: flex;
          flex-wrap: wrap;
          justify-content: center;
          // align-items: center;
          padding: 0 !important;
          background: #fff;
          margin-top: 0;
          .iconContent {
            height: 28px;
          }
          span {
            line-height: 0;
            font-size: 12px;
            color: #666666;
            padding-bottom: 4px;
          }
          .anticon {
            font-size: 30px;
          }
          svg {
            padding: 0;
            outline: none;
          }
          &:hover {
            svg {
              background: rgba(0, 0, 0, 0.06);
              border-radius: 4px;
              fill: #333;
            }
            span {
              color: #5b5b5b;
            }
          }
          &.yee-menu-item-selected {
            svg {
              background: #f0fff0;
              fill: @yee-primary-color !important;
            }
            &::after {
              display: none;
            }
            span {
              color: @yee-primary-color;
            }
          }
          &:not(:last-child) {
            margin-bottom: 8px;
          }
        }
      }
    }
    .menu {
      padding-left: 48px;
      .yee-drawer-body {
        padding: 0;
        height: calc(100% - 60px);
        overflow: hidden auto;
      }
    }
    .footer-operter {
      display: flex;
      align-items: center;
      flex-direction: column;
      cursor: pointer;
      padding-bottom: 40px;
      .setting-wrap {
        width: 32px;
        height: 32px;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .setting-active {
        background: rgba(82, 191, 99, 0.06);
      }
    }
  }
  .layout-content {
    // width: calc(100vm-48px);
    width: 100%;
    flex: 1;
    height: 100%;
  }

  .has-editor-panel {
    width: calc(100% - 256px);
  }
  .loading-container {
    width: calc(100vw - 48px);
    height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
