@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './btn.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  padding: 20px;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 30px;
}

.text-center {
  text-align: center
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

// 自定义全局样式
.flex-box {
  display: flex !important;
  flex-direction: row;
  align-items: center;
}

.a-link{
  color: #0081FF;
  &:hover{
    color: #0081FF;
    text-decoration: underline;
  }
}

.text-cl1{
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

ul, li {
  list-style: none;
  padding: 0;
  margin: 0;
}

.app-container {
  margin: 12px 24px;
  background: #FFFFFF;
  .el-input__inner{
    border-color: #D9D9D9;
    color: #232323;
    &::placeholder {
      color: rgba(35,35,35,0.5);
    }
  }
  .el-select .el-input .el-select__caret{
    color: #232323;
  }
  .query-box{
    justify-content: space-between;
  }
  .query-params {
    .form-content-width {
      width: 160px;
    }
    .el-form{
      &.el-form--inline .el-form-item{
        margin-right: 16px;
      }
      .el-form-item--mini.el-form-item, .el-form-item--small.el-form-item{
        margin-bottom: 8px;
        margin-top: 8px;
      }
    }
  }
  .query-ability{
    span{
      font-size: 14px;
      color: #232323;
      line-height: initial;
      margin-left: 20px;
      cursor: pointer;
      &:hover{
        color: #0081FF;
      }
      &:first-child{
        margin-left: 0;
      }
      img{
        width: 18px;
        height: 18px;
        margin-right: 5px;
      }
    }
  }
}

.container-box {
  padding: 16px;
}

.table-item{
  width: 100%;
  .el-table{
    font-size: 12px;
    color: #232323;
    .cell{
      padding-right: 12px !important;
      padding-left: 12px !important;
      line-height: 18px;
    }
    thead{
      color: rgba(35,35,35,0.7);
    }
    .sort-caret.ascending{
      border-bottom-color: rgba(0,129,255,0.5);
    }
    .ascending .sort-caret.ascending{
      border-bottom-color: #0081FF;
    }
    .sort-caret.descending{
      border-top-color: rgba(0,129,255,0.5);
    }
    .descending .sort-caret.descending{
      border-top-color: #0081FF;
    }
    .el-table__header-wrapper{
      th{
        background: #F0F3FA;
        text-align: left;
      }
    }
    .el-table__body-wrapper{
      &::-webkit-scrollbar {
        width: 16px; //竖轴宽度
        height: 16px; //横轴宽度
      }
      &::-webkit-scrollbar-track {
        background-color: #F3F4F5;
        border-radius: 0;
      }
      &::-webkit-scrollbar-thumb {
        background-color: rgba(98,110,126,0.2);
        border: 4px solid #F3F4F5;
        border-radius: 10px;
      }
      &::-webkit-scrollbar-corner {
        background: #F3F4F5;
        /*border-left: 1px solid #E0EAF2;*/
      }
      tr{
        &.current-row>td{
          background-color: initial;
        }
        &:nth-child(2n) {
          background: #F8FBFF;
        }
      }
    }
  }
}

.common-title{
  font-size: 16px;
  color: #232323;
  font-weight: 700;
  line-height: 0.9;
  position: relative;
  padding: 0 0 0 8px;
  &:before{
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 14px;
    background: #445781;
    content:"";
  }
}

.pagination-box{
  text-align: right;
  padding: 16px 0;
  .el-pagination{
    font-weight: normal;
    padding: 0;
    button, span:not([class*=suffix]){
      height: 24px;
      line-height: 24px;
    }
    &.is-background .btn-next,
    &.is-background .btn-prev,
    &.is-background .el-pager li{
      height: 24px;
      line-height: 24px;
      min-width: 24px;
      padding: 0 6px;
      margin: 0 4px;
      font-size: 12px;
      color: rgba(35,35,35,0.7);
      background-color: #F3F4F5;
    }
    &.is-background .el-pager li:not(.disabled):hover{
      background-color: rgba(0,129,255,0.3);
      color: #FFFFFF;
    }
    &.is-background{
      .el-pager{
        li:not(.disabled){
          &.active{
            background-color: $systemColor;
            color: #FFFFFF;
          }
        }
      }
      .el-pagination__jump{
        margin-left: 8px;
        color: #3D3D3D;
        .el-input{
          font-size: 12px;
        }
        .el-pagination__editor{
          height: 24px;
          margin: 0 8px;
        }
        .el-pagination__editor.el-input .el-input__inner{
          height: 24px;
          border-color: #CDD1D9;
          border-radius: 2px;
        }
      }
    }
  }
}

.el-drawer{
  .el-drawer__header{
    padding: 16px 2px 16px 16px;
    margin-bottom: 0;
    border-bottom: 1px solid #E1E1E1;
  }
  .el-drawer__body{
    overflow-y: auto;
    &::-webkit-scrollbar {
      width: 16px; //竖轴宽度
      height: 16px; //横轴宽度
    }
    &::-webkit-scrollbar-track {
      background-color: #F3F4F5;
      border-radius: 0;
    }
    &::-webkit-scrollbar-thumb {
      background-color: rgba(98,110,126,0.2);
      border: 4px solid #F3F4F5;
      border-radius: 10px;
    }
    &::-webkit-scrollbar-corner {
      background: #F3F4F5;
      /*border-left: 1px solid #E0EAF2;*/
    }
  }
}
