index.scss 4.45 KB
@import './common.css';
@import './var.css';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.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%;
}

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

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}
a:hover {
  // 提高hover权重,其他地方的ahover如需改变,也使用important
  color: var(--color) !important;
}

div:focus {
  outline: none;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: ' ';
    clear: both;
    height: 0;
  }
}

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

// 标签选择框
.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;
  margin-bottom: 20px;
  align-items: center;
  .desc {
    font-weight: 400;
    margin: 0 5px;
    font-size: 12px;
    color: #86909c;
  }
  // .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;
  // }
}

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

  // 卡片样式
  &card {
    border-radius: var(--border-radius-big);
    background: #fff;
    overflow: auto;
    padding: 20px;
    &:not(:first-child) {
      margin-top: var(--card-margin);
    }
    // 卡片标题
    .g-card-title {
      display: flex;
      align-items: center;
      margin-bottom: 20px;
      font-size: 16px;
      font-weight: 500;
      color: var(--font-black);
      line-height: 1;
      .desc {
        font-weight: 400;
        margin: 0 5px;
        font-size: 12px;
        color: #86909c;
      }
    }
  }

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

  &tip-color {
    color: #999;
  }
  // 粘性底部
  &footer-sticky {
    position: sticky;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    bottom: 0;
    background: #fff;
    box-shadow: 0px -4px 20px 0px rgba(28, 49, 111, 0.1);
    border-radius: var(--border-radius-big);
    margin-top: var(--card-margin);
  }
}

.card-group-index + .g-card {
  margin-top: 0;
}