/*
 * 公共样式
 */
body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, textarea, p, blockquote, th, td {
  margin: 0;
  padding: 0;
}

body {
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, SimSun, sans-serif;
  font-size: $fontDefault;
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  color: $textColor;
}

html {
  height: 100%;
}

#app {
  height: 100%;
}

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

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

ul li {
  list-style: none;
}

div:focus {
  outline: none;
}

.clearfix {
  @include clearfix;
}

label {
  font-weight: 700;
}


/* 定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

/* 定义滚动条轨道 内阴影+圆角 */
::-webkit-scrollbar-track {
  border-radius: 3px;
}

::-webkit-scrollbar-corner {
  display: none;
}

/* 定义滑块 内阴影+圆角 */
::-webkit-scrollbar-thumb {
  background: $bgIcon;
  border-radius: 3px;
}

.scroll-blue {
  &::-webkit-scrollbar-thumb {
    background: #4A5C7D;
  }
}

.app-container {
  padding: 20px;
}

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

// Refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

aside {
  background: #eef1f6;
  color: #2c3e50;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

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

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

.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
    width: 60px;
  }
}

.filter-container {

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

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

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

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;
  }
}

.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;
  }
}

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


.dt-btn {
  height: 26px;
  line-height: normal;
  padding: 0 6px;
  text-align: center;
  background: $colorPrimary;
  border-color: $colorPrimary;
  color: #ffffff;
  font-size: $fontDefault;
  display: inline-block;

  i ~ span span {
    padding-left: 4px;
  }

  i {
    font-size: $fontLarge;
  }

  span {
    line-height: 22px;
  }

  &.dt-small {
    height: 22px;
    padding: 0 4px;
  }

  &.dt-large {
    height: 30px;
    padding: 0 8px;
  }

  &.el-button:focus, &.el-button:hover {
    background: $colorPrimary;
    border-color: $colorPrimary;
    color: #ffffff;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
  }

  &.el-button:active {
    background: $colorHover;
    border-color: $colorHover;
    color: #ffffff;
  }

  &.el-button.is-disabled, &.el-button.is-disabled:focus, &.el-button.is-disabled:hover {
    color: #ffffff;
    background-color: $bgIconDisabled;
    border-color: $bgIconDisabled
  }

  &.el-button.is-loading:before {
    background: none;
  }
}

.dt-btn-border {
  height: 26px;
  line-height: normal;
  padding: 0 6px;
  text-align: center;
  background: transparent;
  border-color: $colorPrimary;
  color: $colorPrimary;
  font-size: $fontDefault;
  display: inline-block;

  i ~ span span {
    padding-left: 4px;
  }

  i {
    font-size: $fontLarge;
  }

  span {
    line-height: 22px;
  }

  &.dt-small {
    height: 22px;
    line-height: 22px;
    padding: 0 4px;
  }

  &.dt-large {
    height: 30px;
    line-height: 30px;
    padding: 0 8px;
  }

  &.el-button:focus, &.el-button:hover {
    background: transparent;
    border-color: $colorPrimary;
    color: $colorPrimary;
  }

  &.el-button:active {
    background: transparent;
    border-color: $colorHover;
    color: $colorHover;
  }

  &.el-button.is-disabled, &.el-button.is-disabled:focus, &.el-button.is-disabled:hover {
    color: #ffffff;
    background-color: $bgIconDisabled;
    border-color: $bgIconDisabled
  }

  &.el-button.is-loading:before {
    background: none;
  }
}

.dt-btn-text {
  height: 26px;
  line-height: normal;
  padding: 0 6px;
  text-align: center;
  background: transparent;
  border: none;
  color: $colorPrimary;
  font-size: $fontDefault;
  display: inline-block;

  i ~ span span {
    padding-left: 4px;
  }

  i {
    font-size: $fontLarge;
  }

  span {
    line-height: 22px;
  }

  &.dt-small {
    height: 22px;
    line-height: 22px;
    padding: 0 4px;
  }

  &.dt-large {
    height: 30px;
    line-height: 30px;
    padding: 0 8px;
  }

  &.el-button:focus, &.el-button:hover {
    background: transparent;
    border: none;
    color: $colorPrimary;

    span {
      text-decoration: underline;
    }
  }

  &.el-button:active {
    background: transparent;
    border: none;
    color: $colorPrimary;

    span {
      text-decoration: underline;
    }
  }

  &.el-button.is-disabled, &.el-button.is-disabled:focus, &.el-button.is-disabled:hover {
    color: $textDisabled;
    background: transparent;
    border: none;
  }

  &.el-button.is-loading:before {
    background: none;
  }
}

.pb-16 {
  padding-bottom: 16px;
}

// 链接样式
.dt-link {
  color: $colorPrimary;
  text-decoration: underline;

  &:hover {
    color: $colorPrimary;
    text-decoration: underline;
  }
}
