public.scss 3 KB
Newer Older
葛齐林's avatar
葛齐林 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
@import '~@/assets/style/unit/color.scss';

// 工具类名统一前缀
$prefix: d2;

// 禁止用户选中 鼠标变为手形
%unable-select {
  user-select: none;
  cursor: pointer;
}

// 填满父元素
// 组要父元素 position: relative | absolute;
%full {
  position: absolute;
  top: 0px;
  right: 0px;
  bottom: 0px;
  left: 0px;
}

// flex 垂直水平居中
%flex-center-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
}

%flex-center-col {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

// 将元素模拟成卡片外观
%card {
  border: 1px solid #dddee1;
  border-color: #e9eaec;
  background: #fff;
  border-radius: 4px;
  font-size: 14px;
  position: relative;
}

// 分页靠右显示
.el-pagination {
  margin-top: 15px;
  text-align: right;
}

// 字体使用规范

//主标题
.el-h1 {
  font: 20px Extra large;
  color: #303133;
}

//标题
.el-h2 {
  font: 18px large;
  color: #303133;
}

//小标题
.el-h3 {
  font: 16px Medium;
  color: #303133;
}

//正文
.el-text {
  font: 14px Small;
  color: #606266;
}

//正文(小)
.el-text-s {
  font: 13px Extra Small;
  color: #909399;
}

//辅助文字
.el-text-ss {
  font: 12px Extra Extra Small;
  color: #C0C4CC;
}

//边框色

//一级边框&&一级灰
$el-bg-color-1: #DCDFE6;

//二级边框&&二级灰
$el-bg-color-2: #E4E7ED;

//三级边框&&三级灰
$el-bg-color-3: #EBEEF5;

//四级边框&&四级灰
$el-bg-color-4: #F2F6FC;
caojm's avatar
caojm committed
104 105 106



xiexingan's avatar
xiexingan committed
107 108 109 110 111
// 选中
.isActive {
  background: #4cb527 !important;
  border: transparent 1px solid !important;
}
caojm's avatar
caojm committed
112 113


caojm's avatar
caojm committed
114

caojm's avatar
caojm committed
115
//  表格大概样式
caojm's avatar
caojm committed
116
.hall,.office-area-control,.use-electro-data {
caojm's avatar
caojm committed
117
  .el-table__row > td {
高超凡's avatar
高超凡 committed
118
    // border: none;
caojm's avatar
caojm committed
119
  }
caojm's avatar
caojm committed
120 121 122 123 124 125
  th{
    background: rgba(0, 151, 255, 0.08);
    font-size: 12px;
    

  }
caojm's avatar
caojm committed
126 127 128 129 130 131 132 133 134 135 136 137

  td::before {
    height: 0px;
  }
  .el-table--border,
  .el-table--group {
    border-left: none;
  }
  .el-table--border::after,
  .el-table--group::after {
    width: 0;
  }
caojm's avatar
caojm committed
138 139 140 141



}
xiexingan's avatar
xiexingan committed
142 143 144


// ~~~
145
.margin-lr-20 {
xiexingan's avatar
xiexingan committed
146 147
  margin: 0 20px;
}
148 149 150 151 152 153 154 155 156 157 158 159

// color
.color-blue {
  color: #21ACFC;
}

.color-cyan {
  color: #36CBCB;
}

.color-green {
  color: #4ECB74;
caojm's avatar
caojm committed
160

xiexingan's avatar
xiexingan committed
161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203
}
// 首页菜单选中
.theme-d2 .d2-theme-container .d2-theme-container-aside .d2-layout-header-aside-menu-side>.el-menu> .el-menu-item:first-child{
  background: transparent ;
  }




.en-tabs {
  .el-tabs__header {
    margin: 0;
  }
  .el-tabs__active-bar{
    bottom:-1px ;
  }
  .el-tabs__nav-wrap::after {
    height: 0;
  }
  .el-tabs__nav-wrap {
    background: #f2f4f5;

    .el-tabs__nav {
      border-bottom: 1px solid #e5e9ec;
    }
  }
  .el-tabs__header {
    border: 1px solid #e5e9ec;
  }
  .el-tabs__item:nth-child(2) {
    padding: 0 30px !important;
  }

  .el-tabs__item:last-child {
    padding: 0 30px !important;
  }
  .el-tabs__item.is-active {
    background: #fff;
  }
}