// @import './variables.scss'; // Already imported in style-resources-loader
// @import './mixins.scss'; // Already imported in style-resources-loader
@import './transition.scss';
@import './svgicon.scss';
@import './spacing.scss';
@import './sticky-header.scss';
@import './vue-datatable.scss';
@import './custom.scss';
@import './font.scss';
@import './button.scss';
@import './dynamic-row.scss';
@import './datetime-picker.scss';
@import './flex.scss';
@import './sticky-table-header.scss';
@import './status.scss';
@import './el-pagination.scss';
@import './animate.css';
@import './banner.scss';
@import './rich-text-content.scss';

/* Global scss */

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  // font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica Neue,
  //   Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
  font-family: Poppins, sans-serif;
  color: #333333 !important;
  background-color: rgba(242, 243, 248, 1);
}

html {
  height: 100%;
}

#app {
  height: 100%;
}

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

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

div:focus {
  outline: none;
}

.clearfix {
  @include clearfix;
}

label {
  font-weight: 700;
}

.app-container {
  padding: 25px 50px;
}

.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;
    min-width: 60px;
  }
}

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

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

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

.el-input-group--append .el-input__inner {
  border-right: 0px;
}

.el-input-group__append,
.el-input-group__prepend {
  background-color: #fff;
}

.el-input-group__prepend {
  padding: 0px 10px;
}

.el-dialog__header {
  border-bottom: 1px solid #ccc;
}

.el-dialog__footer {
  border-top: 1px solid #ccc;
}

@media only screen and (max-width: 600px) {
  .app-container {
    padding: 20px !important;
  }
}

.el-form-item__label {
  color: #333333;
}

.drawer__content {
  flex-direction: column;
  height: 100%;
  .batch {
    flex: 1;
  }
}

.env-watermark {
  position: absolute;
  font-size: 200px;
  color: rgba(0, 0, 0, 0.2);
  top: 50%;
  left: 50%;
  text-align: center;
  transform: translate(-50%, -50%);
  z-index: 1000;
  margin: auto;
  pointer-events: none;
}

.el-form-item.clear {
  label {
    float: unset !important;
  }
}

@media only screen and (max-width: 600px) {
  .el-form-item__label {
    line-height: 25px !important;
  }
}

.color-input {
  .el-form-item__content {
    display: flex;
    .el-input .el-input__inner {
      width: 92px;
    }
  }

  .el-input-group--append {
    width: 160px;
  }
  .el-input-group__append {
    padding: 0px;

    .el-input {
      width: 92px;
      padding: 0px;

      input {
        border: 0px;
        height: 34px;
        border-radius: 0px 4px 4px 0px;
      }
    }
  }
}
