@import "./../../theme.scss";

html,body {
  height: 100%;
  overflow: hidden;
  color: $heading-color;
}

.layout {
  height: 100%;

  // 重写antd样式
  :global {
    .ant-menu-sub.ant-menu-inline {
      background: #FFF;
    }

    .ant-menu-item .ant-menu-title-content {
      font-size: 12px;
      color: $text-color;
    }

    .ant-menu-item-selected .ant-menu-title-content {
      color: $primary-color;
    }

    .ant-menu-submenu-title .ant-menu-item-icon {
      font-size: 16px;
    }
    .ant-menu.ant-menu-inline-collapsed > .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-item-icon {
      font-size: 20px;
    }

    .ant-menu-submenu-title > .ant-menu-title-content {
      color: $heading-color;
    }

    .ant-menu-item-active .ant-menu-title-content {
      color: $primary-color !important;
    }

    .ant-menu-inline .ant-menu-item::after {
      border-right-width: 6px;
    }

    .ant-menu-inline .ant-menu-item:not(:last-child) {
      margin-bottom: 0;
    }

    .ant-menu-inline .ant-menu-item {
      margin-top: 0;
    }

    .ant-menu-submenu-arrow {
      color: $text-color !important; 
    }
  }
}

.context {
  position: relative;
  display: flex;
  flex-direction: column;
}

.appName {
  display: flex;
  flex-direction: row;
  height: 50px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;

  h1 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    text-indent: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.hideIcon {
  font-size: 20px;
}

.menu {
  height: calc(100vh - 50px);
  overflow-y: auto;
}