<template>
  <div id="app" v-cloak>
    <router-view v-if="isRouterAlive" v-cloak />
  </div>
</template>

<script>
import Vue from "vue";

export default {
  name: "App",
  provide() {
    return {
      reloads: this.reloads,
    };
  },
  data() {
    return {
      isRouterAlive: true,
    };
  },
  created() {},
  methods: {
    reloads() {
      this.isRouterAlive = false;
      this.$nextTick(function () {
        this.isRouterAlive = true;
      });
    },
  },
};
</script>
<style lang="scss">
* {
  margin: 0;
  padding: 0;
  touch-action: none !important;
}
[v-cloak] {
  display: none !important;
}
html {
  --color-primary: #00a79d;
}
// 13817a
body {
  background-color: #eef4f9 !important;
}
/* 出去多选框中的关闭按钮 */
.el-select__tags .el-tag__close.el-icon-close {
  display: none;
}
.el-checkbox__input.is-focus {
  visibility: hidden;
}
.el-checkbox__inner:hover {
  background-color: val(--color-primary);
}
.el-checkbox__input.is-checked .el-checkbox__inner,
.el-checkbox__input.is-indeterminate .el-checkbox__inner {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}
.el-select__tags .el-tag__close.el-icon-close {
  display: inline-block;
}
.el-checkbox__input.is-checked + .el-checkbox__label {
  color: #606266;
}
.el-tabs__item {
  font-size: 15px !important;
}
</style>
<style lang="scss">
.el-loading-spinner .circular {
  width: 42px;
  height: 42px;
  animation: loading-rotate 2s linear infinite;
  display: none;
}
.el-loading-spinner {
  // width: 180px!important;
  // height: 63px;
  // background: linear-gradient(to bottom, #fff 100%, #00f 100%);
  // ./icons/svg/loading.svg
  // background: url('~@/assets/images/mycard.png');
  // mask-image: url('assets/img/loading.png');
  // -webkit-mask-repeat: no-repeat;
  // mask-repeat: no-repeat;
  // -webkit-mask-position: center;
  // mask-position: center;
  // animation: raise 4s ease-in-out infinite;
  padding-top: 5px;
  position: absolute;
  left: 50%;
  margin-left: -40px;
  width: 60px !important;
  height: 60px;
  border-radius: 10px;
  background-color: #fff;
  -webkit-animation: rotateplane 1.5s infinite ease-in-out;
  animation: rotateplane 1.5s infinite ease-in-out;
  .iconfont {
    font-size: 40px;
  }
}
@-webkit-keyframes rotateplane {
  0% {
    -webkit-transform: translateZ(120px);
  }
  50% {
    -webkit-transform: translateZ(120px) rotateY(180deg);
  }
  100% {
    -webkit-transform: translateZ(120px) rotateY(180deg);
  }
}

@keyframes rotateplane {
  0% {
    transform: translateZ(120px) rotateY(0deg);
    -webkit-transform: translateZ(120px) rotateY(0deg);
  }

  50% {
    transform: translateZ(120px) rotateY(-179.9deg);
    -webkit-transform: translateZ(120px) rotateY(-179.9deg);
  }
  100% {
    transform: translateZ(120px) rotateY(0deg);
    -webkit-transform: translateZ(120px) rotateY(0deg);
  }
}
.el-table {
  width: 99% !important;
  border-left: 1px solid #ebeef5;
  border-right: 1px solid #ebeef5;
}
.el-tabs__content {
  overflow: auto;
}

.el-tabs__item:focus.is-active.is-focus:not(:active) {
  box-shadow: none;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
input[type="number"] {
  -moz-appearance: textfield;
}
.el-input__inner {
  line-height: 1px !important;
}
.el-dialog {
  margin-bottom: 10vh;
  .el-dialog__header {
    // background: #363d55;
    background: var(--color-primary);
    padding: 15px 20px 15px;
    .el-dialog__title {
      color: #fff;
    }
    .el-dialog__headerbtn .el-dialog__close {
      color: #fff;
    }
  }
}
.el-tabs__item.is-active {
  // color: var(--color-primary) !important;
  // font-size: 14px;
  font-weight: 600;
}
.el-tabs__item:hover {
  // color: var(--color-primary) !important;
  // font-size: 14px;
  font-weight: 600;
}
// 选择框组件
.el-form-item__content {
  font-size: 14px !important;
}
.el-select {
  width: 180px !important;
}

.el-input__count {
  background-color: transparent !important;
}
.multiple.el-select {
  width: 180px !important;
}
.searchBtn {
  width: 100px;
  height: 36px;
  line-height: 36px;
  background-color: #f85043;
  color: #fff;
  font-size: 14px;
  text-align: center;
  border-radius: 4px;
  position: relative;
  top: 3px;
  cursor: pointer;
}
.newBand {
  min-width: 100px;
  max-width: 150px;
  padding: 0 10px;
  height: 36px;
  line-height: 36px;
  margin-bottom: 20px;
  background-color: var(--color-primary);
  border: 1px solid var(--color-primary);
  cursor: pointer;
  color: #fff;
  font-size: 14px;
  text-align: center;
  border-radius: 4px;
  position: relative;
  top: 3px;
}
.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  margin-bottom: 20px;
  min-width: 100px;
  &:focus,
  &:hover {
    // background-color: #0e726c;
    // border-color: #0e726c;
    color: #fff;
  }
}
// 公用的搜索组件
.searchWrap {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: rgba(119, 119, 119, 1);
  height: 30px;
  margin-bottom: 30px;
  p {
    font-size: 14px;
    padding-left: 4px;
  }
  .searchItem {
    margin-left: 20px;
    position: relative;
    box-sizing: border-box;
    min-width: 116px;
    padding: 0 25px;
    height: 30px;
    line-height: 30px;
    background: rgba(246, 246, 246, 1);
    border-radius: 15px;
    color: #777;
    font-size: 14px;
    .el-icon-close {
      position: absolute;
      right: 5px;
      top: 8px;
    }
  }
}
.headWrap {
  padding: 40px 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  .left {
    width: 1100px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    .headItem {
      width: 320px;
      height: 30px;
      color: #444;
      border-right: 1px solid #979797;
      p {
        font-size: 14px;
        line-height: 30px;
        span {
          font-size: 22px;
          line-height: 30px;
        }
      }
      &:nth-child(1) {
        width: 256px;
      }
      &:nth-child(2n) {
        text-align: center;
      }
      &:nth-child(3n) {
        border-right: 1px solid #fff;
        text-align: center;
      }
      &:nth-child(4n) {
        text-align: left !important;
        width: 256px;
      }
      &:nth-child(5n) {
        text-align: center;
      }
    }
  }
}
// 公用编剧模板
.m-container {
  box-sizing: border-box;
  // background-color: #eef4f9;
  width: 100%;
  min-height: 560px;
  padding-top: 10px;
  .m-core {
    padding: 18px 20px 40px;
    margin-bottom: 20px;
    border-radius: 2px;
    background-color: #fff;
    position: relative;
  }
  & > h2 {
    height: 48px;
    line-height: 48px;
    position: relative;
    font-size: 26px;
    font-weight: 600;
    padding-bottom: 15px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    color: #212121;
    // border-bottom: 1px solid rgba(0, 0, 0, 0.25);
    .term {
      height: 32px;
      line-height: 32px;
      border-radius: 24px;
      width: 100px;
      color: var(--color-primary);
      border: 1px solid var(--color-primary);
      font-size: 14px;
      text-align: center;
      margin-right: 12px;
      &:nth-child(1) {
        margin-left: 47px;
      }
    }
    .term.active {
      color: #fff;
      background-color: var(--color-primary);
    }
    .squrt {
      // margin-right: 15px;
      // height: 34px;
      // width: 8px;
      // background-color: var(--color-primary);
    }
  }
}
.btnWrap {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  div {
    line-height: 40px;
    text-align: center;
    color: #fff;
    border-radius: 4px;
    margin-right: 20px;
    cursor: pointer;
  }
  .nextBtn {
    width: 120px;
    height: 40px;
    background-color: var(--color-primary);
  }
  .okBtn {
    width: 120px;
    height: 40px;
    background-color: #f97215;
  }
  .closeBtn {
    width: 120px;
    height: 40px;
    background-color: #777;
  }
}
::-webkit-scrollbar {
  width: 8px; /* 纵向滚动条*/
  height: 8px; /* 横向滚动条 */
  background-color: #fff;
}

/*定义滚动条轨道 内阴影*/
::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 8px rgba(0, 0, 0, 0);
  background-color: #fff;
}

/*定义滑块 内阴影*/
::-webkit-scrollbar-thumb {
  -webkit-box-shadow: inset 0 0 8px rgba(0, 0, 0, 0);
  background-color: #d5d5d5;
}
.el-input.is-disabled .el-input__inner {
  color: #333;
  opacity: 1;
}

.horizontal-scrollbar {
  .el-scrollbar__wrap {
    overflow-x: hidden;
    // margin-bottom: -8px !important;
    margin-right: -8px !important;
    .el-scrollbar__view {
      white-space: nowrap;
    }
  }
}
</style>
<style lang="less">
.main-dot {
  position: relative;
  &::after {
    content: "";
    display: block;
    position: absolute;
    height: 8px;
    width: 8px;
    background-color: #f56c6c;
    border-radius: 50%;
    right: 5px;
    top: 5px;
  }
}
.el-select__tags {
  overflow: hidden;
  flex-wrap: nowrap!important;
}
.select-all {
  .el-select__tags {
    flex-wrap: nowrap!important;
  }
}
.el-select__tags {

  .el-tag.el-tag--info.el-tag--small.el-tag--light {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    .el-select__tags-text {
      flex-wrap: nowrap;
      max-width: 60px;
      overflow: hidden;
      text-overflow: ellipsis;
      display: inline-block;
    }
  }
}
</style>
