// @import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
// @import './element-ui.scss';
@import './sidebar.scss';
@import './descriptions.css';
@import './descriptions-item.css';

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

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

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

#app {
  height: 100%;
}

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

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

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

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

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

// 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 {
    display: block;
    height: 0;
    clear: both;
    font-size: 0;
    visibility: hidden;
    content: " ";
  }
}

code {
  display: block;
  padding: 15px 16px;
  margin-bottom: 20px;
  font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 36px;
  background: #eef1f6;

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

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

.warn-content {
  padding: 16px;
  padding: 1rem;
  line-height: 1.6rem;
  word-spacing: .05rem;
  background: rgba(66, 185, 131, .1);
  border-radius: 2px;

  a {
    font-weight: 600;
    color: #42b983;
  }
}

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

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

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

.text-center {
  text-align: center;
}

.sub-navbar {
  position: relative;
  width: 100%;
  height: 50px;
  padding-right: 20px;
  line-height: 50px;
  text-align: right;
  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%);
  transition: 600ms ease position;

  .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;
    margin-bottom: 10px;
    vertical-align: middle;
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

.page-wrap {
  padding: 20px;
  text-align: center;
}


// 权限提示
.authNotify {
  cursor: pointer;

  .iconfont {
    font-size: 24px;
    color: $green;
  }

  .text {
    * {
      display: inline-block;
      vertical-align: middle;
    }
  }

  .headImg {
    width: 30px;
    margin-right: 10px;
    border-radius: 50%;
  }
}

.popover {
  text-align: center;
}

.el-dialog.is-fullscreen {
  height: 94%;
  margin-top: 2%;
}

.el-icon-edit {
  cursor: pointer;
}

.el-tag+.el-tag,
.el-link+.el-link {
  margin-left: 10px;
}

.el-button+.dot-button {
  margin-left: 10px;
}

.dot-button+.el-button {
  margin-left: 10px;
}

.last-btn-cell {
  .cell {
    overflow: visible;
  }
}


.warning {
  color: $red;

  .el-input__inner {
    color: $red;
    border: 1px solid lighten($red, 10%);
  }

  .el-input.is-focus .el-input__inner,
  .el-input__inner:focus {
    border: 1px solid lighten($red, 10%);
  }
}

.blue {
  color: $lightblue;
}

.strong {
  font-size: 2em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  padding: 0;
  margin: 0;
  font-weight: normal;
}

.custom-scroll::-webkit-scrollbar {
  display: block;
  width: 5px;
  background: #fafafa;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
  background: #bdbdbd;
}

.custom-scroll::-webkit-scrollbar-thumb {
  background: #e0e0e0;
  border-radius: 5px;
}

.block-wrap {
  width: 100%;
  box-sizing: border-box;
  padding: 20px;
  background: #fff;
  border: 1px solid #ddd;
}

.block-title {
  box-sizing: border-box;
  overflow: hidden;
  clear: both;
  font-size: 16px;
  font-weight: bold;
  line-height: 2;
  color: #333;
  font-weight: 600;
  border-bottom: 1px solid #DCDFE6;
  margin-bottom: 10px;;

  .el-button,
  .el-tag {
    float: right;
    margin-bottom: 5px;
  }
}

.block-content-center {
  text-align: center;
}

.btn-wrap {
  text-align: right;
}

.btn-wrap-center {
  padding: 10px 0 10px;
  text-align: center;
}


.sell-form {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: $gray;

  .sell-form-inner {
    position: absolute;
    top: 10px;
    right: 10px;
    bottom: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .top-block {
    display: flex;
    overflow: hidden;
    flex: 1;
  }

  .main-content {
    display: flex;
    overflow: hidden;
    flex-direction: column;
    flex: 1;

    .block-title {
      padding: 0 10px;
      margin-bottom: 20px;
    }

    .content-inner {
      overflow: auto;
      flex: 1;
    }
  }

  .side-content {
    width: 340px;
    margin-right: 10px;
  }

  .el-input,
  .el-select,
  .el-date-editor,
  .el-date-editor.el-input,
  .el-input-number {
    width: 200px;
  }

  .footer {
    margin-top: 10px;
    background: $yellow;
    border: 1px solid $darkYellow;

    .el-input,
    .el-date-editor,
    .el-date-editor.el-input,
    .el-input-number {
      width: 100px;
    }

    .el-select .el-input {
      width: 100%;
    }

    .btn-wrap {
      margin-bottom: 0;
    }
  }

  .item {
    margin-right: 20px;
  }


  .input-space {
    display: inline-block;
    width: 200px;
    text-align: left;

    * {
      display: inline-block;
      vertical-align: middle;
    }
  }

  .footer {
    margin-bottom: 0;
  }
}


.search-list-wrap {
  display: flex;
  height: 100%;
  box-sizing: border-box;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .1);

  .search-wrap {
    width: 340px;
    box-sizing: border-box;
    padding: 20px 10px 0;

    .search-input {
      width: 320px;
    }
  }

  .list-wrap {
    overflow: auto;
    flex: 1;
  }

  .list-content {
    padding: 0 10px 20px;
    margin-top: 10px;

    .list-item {
      position: relative;
      z-index: 0;
      display: flex;
      padding: 15px 10px 8px 5px;
      margin-top: -2px;
      color: #333;
      cursor: pointer;
      background: #F2F6FF;
      border: 2px solid #f0f0f0;
      transition: all .3s;
      justify-content: space-between;
      align-items: center;
      border-radius: 6px;
      margin-bottom: 10px;

      .goTop {
        display: inline-block;
        width: 14px;
        height: 14px;
        margin-right: 3px;
        overflow: hidden;

        i {
          display: none;
        }
      }

      &:hover {
        z-index: 1;
        background: rgba(216, 225, 253, .3);
        border: 2px solid darken($blue, 1%);

        .goTop {
          i {
            display: inline-block;
          }
        }
      }

      &.active {
        z-index: 2;
        background: $blue;
        color: #fff;
        border: 2px solid darken($blue, 1%);

        .price {
          color: #fff;
        }
      }

      &.disabled {
        cursor: not-allowed;
        // background: $darkgray !important;
        border: 2px solid darken($darkgray, 8%);
        overflow: hidden;

        .badge {
          position: absolute;
          background: $darkgray;
          z-index: 1;
          width: 55px;
          text-align: center;
          height: 40px;
          line-height: 50px;
          border-radius: 3px;
          color: #fff;
          font-size: 12px !important;
          padding: 2px 4px 0;
          top: -14px;
          right: -23px;
          -ms-transform: rotate(45deg);
          -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
          -webkit-transition: 0 0.1s ease-in;
          -moz-transition: 0 0.1s ease-in;
          -o-transition: 0 0.1s ease-in;
          transition: transform 0.1s ease-in;
        }
      }

      // &.active2 {
      //   border-color: rgb(67, 125, 233);
      // }
      .top-sign {
        position: absolute;
        top: 0;
        right: 0;
        width: 0;
        height: 0;
        border: 5px solid red;
        border-bottom-color: transparent;
        border-left-color: transparent;
      }
    }

    h5 {
      max-width: 220px;
      overflow: hidden;
      font-size: 16px;
      font-weight: bold;
      text-overflow: ellipsis;
      white-space: nowrap;

      span {
        display: inline-block;
        max-width: 200px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;

        &:hover {
          text-decoration: underline;
        }
      }
    }

    .top-btn {
      width: 50px;
      font-size: 12px;
    }

    .price {
      width: 70px;
      font-size: 13px;
      color: #606266;
      text-align: right;

      b {
        font-size: 1.4em;
        font-weight: normal;
      }

      a {
        display: block;
        margin-top: 8px;
      }
    }
  }
}

// 对话框的信息
.dialog-info {
  display: flex;
  flex-wrap: wrap;

  label {
    font-weight: bold;
    // color: $lightblue;
    color: #4d4d4d;
  }

  .el-form-item {
    width: 50%;
    margin-right: 0;
  }

  .narrow-form-item {
    width: 200px;
  }

  .block-wrap {
    margin: 20px 0;
    border-style: dashed;

    .block-title {
      margin-bottom: 20px;
    }
  }

  &:after {
    display: block;
    clear: both;
    content: '';
  }
}

.portrait {
  width: 100px;
  height: 100px;
  background-position: center;
  background-size: cover;
}

.pill-wrap {
  .pill {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;

    span {
      display: inline-block;
      padding: 5px 10px;
    }

    span:last-child {
      color: #372a1b;
      background: lighten($lightblue, 50%);
    }
  }
}


.focusFlash {
  animation: flash 2s infinite;
}

@keyframes flash {
  0% {
    box-shadow: 0 0 20px #7cbcf5;
  }

  50% {
    box-shadow: 0 0 0 #7cbcf5;
  }

  100% {
    box-shadow: 0 0 20px #7cbcf5;
  }
}

.is-flex {
  display: flex;
}

.form-box {
  padding: 20px 20px;
}