@charset "utf-8";
@import './core';

body {
  color: @base_color;
  font-size: @base_size;
  line-height: 1.7;
  font-family: Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
  -webkit-font-smoothing: subpixel-antialiased;
  background: @base_bg_color;
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  margin: 0;
  padding: 0;
}

#root {

  .admin {
    background: @admin_bg_color;
    height: 100%;

    >.ant-layout {
      height: 100%;
    }

    #layout-header.collapsed {
      #logo {
        width: 80px;

        h1 {
          display: none;
        }
      }
    }

    #layout-header {
      overflow: hidden;
      padding: 0;
      padding-right: 24px;
      color: hsla(0, 0%, 100%, 0.65);

      #logo {
        width: 200px;
        height: 64px;
        position: relative;
        line-height: 64px;
        padding-left: 24px;
        transition: all 0.3s;
        background: #002140;
        overflow: hidden;
        display: inline-block;

        img {
          display: inline-block;
          vertical-align: middle;
          height: 32px;
        }

        h1 {
          color: #fff;
          display: inline-block;
          vertical-align: middle;
          font-size: 20px;
          margin: 0 0 0 12px;
          font-family: Avenir, Helvetica Neue, Arial, Helvetica, sans-serif;
          font-weight: 600;
        }
      }

      .header-menu {
        display: inline-block;
        line-height: 64px;
        padding: 0 24px;
        vertical-align: top;
      }

      .user-info {
        line-height: 64px;
        padding: 0 15px;
        cursor: pointer;
        transition: all 0.3s;
      }

      .user-info:hover {
        color: #fff;
      }

      .icon {
        font-size: 18px;
        line-height: 64px;
        padding: 0 20px;
        cursor: pointer;
        transition: all 0.3s;
      }

      .icon:hover {
        color: #fff;
      }
    }

    .left-slider {
      background: #fff;
      overflow-y: 'auto';

      .ant-layout-sider-trigger {
        background: #fff;
        color: @base_color;
      }

      .ant-layout-sider-trigger:hover {
        color: @theme_color;
      }

      .left-menu {
        padding: 10px 0;
      }
    }

    .page-layout {
      padding: 24px;
      overflow-y: auto;
    }

    .page-content {
      height: 100%;
      position: relative;
      padding-top: 20px;

      .ant-breadcrumb {
        top: -10px;
        position: absolute;
      }

      .page {
        height: 100%;
      }
    }

    .ant-form.ant-form-inline {
      margin-bottom: 10px;
    }

    .ant-form-inline .ant-form-item {
      margin-bottom: 10px;
    }

    .ant-table-row {
      span {
        a {
          margin-right: 10px;
        }
      }
    }
  }
}

/* use css to set position of modal */

.vertical-center-modal {
  text-align: center;
  white-space: nowrap;
}

.vertical-center-modal:before {
  content: '';
  display: inline-block;
  height: 100%;
  vertical-align: middle;
  width: 0;
}

.vertical-center-modal .ant-modal {
  display: inline-block;
  vertical-align: middle;
  top: 0;
  text-align: left;
}