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

pre, .el-textarea__inner {
  margin: 0;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}
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;
}
p { margin: 0 }

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);
    }
  }
}
.text-primary {
  color: $--color-primary !important;
}
.text-disabled {
  color: #C0C4CC !important;
  cursor: not-allowed !important;
}
//main-container全局样式
.container {
  padding: 20px;
  background-color: #F7F7F7;
}
.app-container {
  padding: 20px;
  background-color: white;
}

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

// 滚动条
.j-scrollbar { overflow-y: auto; }
.j-scrollbar::-webkit-scrollbar {
  width: 4px;
  border-radius: 10px;
  -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  background: #c1c1c1;
}

// drop-down
.el-dropdown-link {
  cursor: pointer;
  color: #409EFF;
}
.el-icon-arrow-down {
  font-size: 12px;
}
.d-flex { display: flex; align-items: center; justify-content: space-between }
.options-item-icon {
  background-color: #c7eec7;
  //margin-right: 6px;
  margin: 0 3px;
}
// form
.full-form .el-form-item {
  .el-select,.el-date-editor,.el-input { width: 100% }
}
.standard-form .el-form-item {
  .el-select,.el-date-editor,.el-input { width: 200px }
}
.el-select.short-select {
  width: 100px!important;
  .el-input { width: 100%  }
}
.form-item-fixed-width { width: 300px !important; margin-right: 10px }
.top-form-item-fixed-width { width: 200px !important; margin-right: 10px }
.no-bottom-form .el-form-item { margin-bottom: 0 }
.form-tip {
  font-size: 13px;
  line-height: 16px;
  color: #8a8f97;
  display: inline-block;
}
.required-label {
  &:before {
    content: '*';
    color: #F56C6C;
    margin-right: 4px;
  }
}

// table 查询条件分割线
.table-header-button { display: flex }
.el-divider.el-divider--horizontal.mini-divider-table {
  margin: 12px 0;
  background-color: #ededed;
}
.el-table__fixed-right::before { background-color: white; }
.footer-btns { text-align: center }

// step
.el-step__title { font-size: 13px; margin-left: -13px }

.warning {
  color: $danger;
}
.gap { margin: 10px 0; height: 10px; }
.info-header {
  display: flex;
  align-items: center;
  .el-button {
    margin-right: 10px;
  }
}
.info-title {
  font-size: 16px;
  font-weight: bold;
  height: 27.6px;
  line-height: 27.6px;
}
.info-header {
  position: relative;
  .info-title-line {
    &::before{
      content: "";
      position: absolute;
      top: 3px;
      left: -6px;
      width: 2px;
      height: 16px;
      color: #00B37D;
      background-color: #00B37D;
      margin-right: 6px;
    }
  }
}


.card-border {
  border: 1px solid #ebebeb;
  padding: 10px 20px;
}

// upload
.el-upload-list--picture-card .el-upload-list__item {
  width: 90px !important;
  height: 90px !important;
}
// 主图样式
.image-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
  margin-right: 6px;
  .image-tag {
    position: absolute;
    top: 0;
    width: 0;
    height: 0;
    border-top: 40px solid rgba(201,55,86,0.7);
    border-right: 55px solid transparent;
  }
  .image-tag-tips {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 13px;
    color: white;
  }
}

.video-wrapper {
  width: 200px;
  height: auto;
  max-height: 200px;
  margin-right: 10px;
}

// tag
.tag-name.el-tag{
  max-width: 79px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tag-no-border.el-tag{
  border-width: 0;
  color: #1A1A1A;
  font-weight: 400;
}
// tree
.el-tree .el-tree-node .el-checkbox.is-disabled .el-checkbox__inner{
  &:after {
    border-color: #8c8f94;
  }
}


// tree-select
.vue-treeselect .vue-treeselect__menu-container .vue-treeselect__menu {
  height: 120px !important;
  z-index: 999;
}


.not-found-text {
  font-size: 16px;
  font-weight: 400;
  color: rgba(26,26,26,0.6);
}

// switch
.el-switch {
  position: relative;
  .el-switch__core {
    width: 50px !important;
  }
  .el-switch__label--left {
    position: absolute;
    z-index: 2;
    right: -5px;
  }
  .el-switch__label.is-active {
    display: block !important;
    position: absolute;
    color: white !important;
  }
  .el-switch__label.el-switch__label--right {
    right: 17px
  }
  .el-switch__label.el-switch__label--right,.el-switch__label--left {
    display: none;
  }
}

.hidden-scroller-x {
  .el-scrollbar .el-scrollbar__wrap {overflow-x: hidden;}
}

// tree highlight
.el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content {
  background-color: $--color-primary-light-9 !important;
}
// 短横线
.short-line {
  color: #DCDFE6;
  margin: 0 2px;
}

.content-title {
  font-size: 16px;
  font-weight: 600;
}
