@import "./common.scss";
@import "./variables.scss";
@import "./mixin.scss";
@import "./transition.scss";
@import "./element-ui.scss";
@import "./sidebar.scss";
// @import "./l-theme.scss";

::-webkit-scrollbar {
  /*滚动条整体样式*/
  /*高宽分别对应横竖滚动条的尺寸*/
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-thumb {
  /*滚动条里面小方块*/
  border-radius: 5px;
  /*深色模式*/
  -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  background: #eee;

  /*浅色模式*/
  /*-webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
  background: rgb(245, 245, 245);
  border: 1px solid #333;
  border-bottom-width: 2px;*/
}

// ::-webkit-scrollbar-track {
//   /*滚动条里面轨道*/
//   -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
//   border-radius: 10px;
//   background: #eee;
// }

#app {
  height: 100%;
}

.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;
}
a:hover {
  // 提高hover权重，其他地方的ahover如需改变，也使用important
  color: $blue !important;
}

div:focus {
  outline: none;
}

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

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

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

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

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

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

/** 表单布局 **/
.form-header {
  font-size: 15px;
  color: #6379bb;
  border-bottom: 1px solid #ddd;
  margin: 8px 10px 25px 10px;
  padding-bottom: 5px;
}

/** 表格布局 **/
.el-table .fixed-width .el-button--mini {
  color: $text;
  padding-left: 0;
  padding-right: 0;
  width: inherit;
  border: none;
  box-shadow: none;
}

.el-tree-node__content > .el-checkbox {
  margin-right: 8px;
}

.list-group-striped > .list-group-item {
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
}

.list-group {
  padding-left: 0px;
  list-style: none;
}

.list-group-item {
  border-bottom: 1px solid #ffffff10;
  border-top: 1px solid #ffffff10;
  margin-bottom: -1px;
  padding: 11px 0px;
  font-size: 13px;
}

.pull-right {
  float: right !important;
}

.el-card__header {
  padding: 14px 15px 7px;
  min-height: 40px;
}

.el-card__body {
  padding: 15px 20px 20px 20px;
}

.card-box {
  padding-right: 15px;
  padding-left: 15px;
  margin-bottom: 10px;
}

/* button color */
.el-button--cyan.is-active,
.el-button--cyan:active {
  background-color: #0089c9;
  border-color: #0089c9;
  color: #ffffff;
}

.el-button--cyan:focus,
.el-button--cyan:hover {
  border-color: #015d88;
}

.el-button--cyan {
  background-color: #0089c9;
  border-color: #0089c9;
  color: #ffffff;
}

/* text color */
.text-navy {
  color: #1ab394;
}

.text-primary {
  color: inherit;
}

.text-success {
  color: #1c84c6;
}

.text-info {
  color: #23c6c8;
}

.text-warning {
  color: #f8ac59;
}

.text-danger {
  color: #ed5565;
}

.text-muted {
  color: #888888;
}

/* 拖拽列样式 */
.sortable-ghost {
  opacity: 0.8;
  color: #fff !important;
  background: #42b983 !important;
}

.top-right-btn {
  position: relative;
  float: right;
}

.tag-input {
  width: 240px;
  display: flex;
  border-radius: 4px;
  border: 1px solid #dcdfe6;
  align-items: center;
  padding: 0 15px;
  overflow: hidden;
  height: 32px;
  background-color: #fff;
  .tag-place {
    color: #bbb;
    font-size: 14px;
  }
}
.mid-action {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  align-items: center;
  .total {
    background-color: rgba(65, 133, 244, 0.1);
    border: 1px solid rgba(65, 133, 244, 0.2);
    border-radius: 3px;
    font-size: 14px;
    min-height: 32px;
    line-height: 32px;
    padding: 0 12px;
    color: #606266;
  }
  .num {
    color: #00f;
  }
}

.left-tree.el-tree {
  background: transparent;
  line-height: 30px;
  .el-tree-node__content {
    height: auto;
  }
  .fr {
    [class^="el-icon-"] {
      margin-left: 5px;
    }
    .el-icon-edit-outline {
      color: $blue;
    }
    .el-icon-circle-plus-outline {
      color: $green;
    }
    .el-icon-delete {
      color: $red;
    }
  }
}

// 全局样式公用业务样式
.g- {
  // 一级 页面标题
  &title {
    display: flex;
    align-items: center;
    height: 60px;
    font-size: 18px;
    font-weight: 500;
    color: #333;
    padding: 0 20px;
    background: #fff;
    border-radius: 4px 4px 0 0;
    .desc {
      font-weight: 400;
      margin-left: 5px;
      font-size: 12px;
      color: #999;
    }
    & + .g-card {
      border-radius: 0 0 4px 4px;
      margin-top: 0;
    }
  }
  // 二级 分类标题
  &title-sub {
    @extend .g-title;
    font-size: 16px;
    & + .g-card {
      border-radius: 0 0 4px 4px;
      margin-top: 0;
    }
  }

  // 卡片样式
  &card {
    margin-top: 10px;
    border-radius: 4px;
    background: #fff;
    overflow: auto;
    &:first-child {
      margin-top: 0;
    }
  }

  // 蓝色卡片组样式
  &card-blue-wrap {
    display: flex;
    .card-blue {
      color: #fff;
      width: 200px;
      height: 90px;
      background: linear-gradient(90deg, #3c89f0 0%, #1364f4 100%);
      border-radius: 4px;
      padding: 20px;
      margin-right: 10px;
      font-weight: 400;
      .value {
        font-size: 18px;
        margin-top: 10px;
      }
    }
  }

  &pad20 {
    padding: 20px;
  }
  &m20 {
    margin: 20px;
  }
  &p20t0 {
    padding: 0 20px 20px;
  }
  &p20b0 {
    padding: 20px 20px 0;
  }

  &bb1 {
    border-bottom: 1px solid #f1f1f1;
  }
  &bt1 {
    border-top: 1px solid #f1f1f1;
  }
  &bl1 {
    border-left: 1px solid #f1f1f1;
  }
  &br1 {
    border-right: 1px solid #f1f1f1;
  }
}

.l-panel {
  background-color: #fff;
}

.l-panel2 {
}

.chunk-bg {
  background-color: #fff;
  margin-bottom: 12px;
  .title {
    padding: 10px 10px 4px;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    &::before {
      content: "";
      width: 100%;
      height: 1px;
      background: linear-gradient(90deg, #cbd0d5 0%, #dddddd00 15%);
      position: absolute;
      left: 0px;
      top: 34px;
    }
  }
  .sub-title {
    padding-left: 10px;
    margin-top: 0;
  }
}
.narrow-row {
  .title {
    padding: 10px;
  }
  .el-form-item {
    padding: 4px 10px;
  }
}
.f-des {
  font-size: 14px;
  color: #797979;
  padding: 5px 10px;
  background-color: #00000012;
  border-radius: 5px;
  margin-bottom: 5px;
}
.form-tip {
  font-size: 12px;
  line-height: 16px;
  color: #797979;
  margin-top: 5px;
  padding-left: 5px;
}

.headerbar-container {
  transition: width 0.28s;
  height: 36px;

  .el-menu {
    border: none;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    padding-left: 36px;
    display: flex;
    .el-menu-item {
      height: 36px;
      line-height: 36px;
      text-align: center;
    }

    .el-menu-item.is-active {
      color: $textGreen !important;
      font-weight: 700;
      // background-color: rgb(214, 126, 10);
      // background-color: $menuActiveBg !important;
      // border-right: 2px solid #ec9b5d;
    }
  }

  .is-active > .el-submenu__title {
    color: $subMenuActiveText !important;
  }
}

// 数字输入框增加后缀
.el-form-item {
  .el-form-item__content {
    .append_unit {
      position: relative;
      &::after {
        content: attr(data-unit);
        position: absolute;
        top: 0;
        right: 0;
        padding: 0 10px;
        color: #909399;
        background-color: #f5f7fa;
        border: 1px solid #dcdfe6;
        border-radius: 4px;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
      }
    }
    .prepend_unit {
      position: relative;
      &::before {
        content: attr(data-prepend-unit);
        position: absolute;
        top: 0;
        left: 0;
        padding: 0 10px;
        color: #909399;
        background-color: #f5f7fa;
        border: 1px solid #dcdfe6;
        border-radius: 4px;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
      }
    }
    .el-input-number--mini {
      font-size: 12px;
    }
  }
}
