@charset "UTF-8";

@import "./color";
@import "./font-size";

// 默认链接的鼠标悬浮样式
.pointer {
  cursor: pointer;
}

// 主题内容区的容器
.nec-content {
  display: block;
  overflow: auto;
  max-width: 1280px;
  min-height: calc(100vh - 108px);
  margin: 0 auto;
  padding: 64px + 24px 24px 24px;
}

// 左侧导航条样式
.left-nav {
  width: 196px;
  float: left;
  background-color: $white;
  text-align: center;
  font-size: $nec-sub-title-font-size;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .1);

  > .first-nav {
    display: block;
    width: 100%;
    height: 50px;
    line-height: 50px;

    &.active,
    &:hover {
      color: $nec-primary-color;
      text-decoration: none;
    }
  }

  > .second-navs {
    background-color: $nec-content-bg;

    > li {
      height: 42px;
      line-height: 42px;

      &.active,
      &:hover {
        background-color: $nec-second-nav-bg;
        color: $nec-primary-color;
      }

      &.active {
        border-bottom: 1px solid $nec-primary-color;
      }

      a {
        display: inline-block;
        width: 100%;
        height: 100%;
      }

      a:hover {
        color: $black;
        text-decoration: none;
      }
    }
  }
}

// 右侧区域的容器
.right-content {
  min-width: 500px;
  margin-left: 208px;
}

// 无数据提示的容器
.no-data-container {
  background-color: $white;
  height: 400px;
  text-align: center;

  > img {
    margin-top: 80px;
  }

  > h5 {
    color: $nec-third-text-color;
  }
}

// 默认单行文字溢出变为省略号的样式
.overflow-ellipsis {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  word-break: break-all;
  word-wrap: break-word;
}

// 表单中不符合条件的时候显示的警告色外框
.invalid-error.ng-invalid:not(form):not(.ng-pristine) {
  border: 1px solid $nec-error-color;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075),
  0 0 8px rgba(255, 96, 96, 0.6)
}
