public.scss 4.93 KB
@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;
}

// element
.el-table--medium td {
  padding: 4px 0 !important;
}

.el-table .cell {
  padding: 0 0;
}

.el-range-editor--small.el-input__inner {
  width: 100%;
}

.up-btns {
  // position: absolute;
  // bottom: 7%;
  // right: 20px;
  text-align: right;
  padding: 10px 20px;
}

.ok-btn {
  width: 100px;
  margin-right: 40px;
}

.cancel-btn {
  width: 100px;
  color: #ffffff;
  background: #999999;
}

.edit-title {
  font-size: 18px;
  font-weight: bold;
  height: 48px;
  line-height: 48px;
  color: #0947c6;
  border-bottom: 1px solid #e7eaec;
  // padding-left: 20px;
  margin: 0 0;
}

.edit-sub-title::before {
  position: absolute;
  display: inline-block;
  content: "";
  height: 18px;
  width: 4px;
  top: 2px;
  left: 0;
  background-color: #0947c6;
}

.edit-sub-title {
  position: relative;
  font-size: 16px;
  font-weight: 700;
  color: #333333;
  margin: 0 0 30px 0;
  padding-left: 8px;
}

.title-tips {
  font-size: 14px;
  font-weight: normal;
  color: #d9534f;
  margin-left: 8px;
}

.table-header-left-txt {
  font-size: 12px;
  color: #6c6f71;
  margin-left: 20px;
}

.el-input.is-disabled .el-input__inner {
  color: #606266;
}

.suffix {
  font-style: inherit;
  color: #606266;
  line-height: 30px;
}

// 公共样式-文字
// 页面标题
.car-main-head {
  color: rgba(#000000, 0.85);
  font-size: 20px;
  font-weight: bold;
}

// 小标题
.car-sub-head {
  color: rgba(#000000, 0.85);
  font-size: 16px;
  font-weight: bold;
}

// 强调 -加粗
.car-strong-txt {
  color: rgba(#000000, 0.65);
  font-size: 14px;
  font-weight: bold;
}

// 正文
.car-txt {
  color: rgba(#000000, 0.65);
  font-size: 14px;
}

// 辅助文字
.car-help-txt {
  color: rgba(#000000, 0.45);
  font-size: 14px;
}

// 失效文字
.car-disabled-txt {
  color: rgba(#000000, 0.25);
  font-size: 14px;
}

// 链接文字
.car-link-txt {
  color: #1890ff;
  font-size: 14px;
}

// 错误提示
.car-error-txt {
  color: #f5222d;
  font-size: 14px;
}

// 提示图标
.tips-block {
  position: relative;
}

.tips-label {
  margin-right: 20px;
}

.tips-icon {
  position: absolute;
  display: inline-block;
  width: 12px;
  height: 12px;
  top: 0px;
  right: 14px;
  margin-right: 4px;
  cursor: pointer;
  border: 1px solid #7f7f7f;
  border-radius: 50%;
}

.tips-icon::before {
  content: "?";
  position: absolute;
  width: 8px;
  height: 8px;
  top: -12px;
  left: 1px;
  font-size: 10px;
}

.one-line-ellipsis {
  width: 100%;
  white-space: nowrap;
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.two-line-ellipsis {
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.blue {
  color: #0947c6;
}

.m-b-10 {
  margin-bottom: 10px;
}

.flex-align {
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-36 {
  width: 36px;
  height: 36px;
}

.pointer {
  cursor: pointer;
}

.img-circle {
  border-radius: 50%;
}

.m-b-20 {
  margin-bottom: 20px;
}

.p-l-40 {
  padding-left: 40px;
}

.img-60 {
  width: 60px;
  height: 60px;
}

.grey {
  background-color: #999999;
}

.txt-green {
  color: #61cc43;
}

.txt-orange {
  color: #fb8f28;
}

.txt-blue {
  color: #5850ff;
}

.txt-grey {
  color: #999999;
}

.text-e8 {
  color: #eb4e4e !important;
}

/* 以下两个修改箭头颜色  */
// .el-tooltip__popper[x-placement^='top'] .popper__arrow {
//   border-top-color: #505050;
//   opacity: 90%;
// }

// .el-tooltip__popper[x-placement^='top'] .popper__arrow:after {
//   border-top-color: #505050;
//   opacity: 90%;
// }
// .tooltip-class {
//   background-color: #505050 !important;
//   opacity: 90%;
// }

.el-popover {
  overflow: hidden;
}

.scrollHeight {
  max-height: 200px !important;
  overflow-y: scroll;
}

.el-tooltip__popper.is-light {
  width: 177px;
  box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid #e4e7ed !important;
  color: #666;
}

.el-tooltip__popper.is-light[x-placement^=top] .popper__arrow {
  border-color: #e4e7ed !important;
}

.el-textarea {
  .el-input__count {
    right: -55px;
    bottom: 0;
  }
}

.remark-popper-class{
  width: 50%;
}

.shop-tooltip {
  max-width: 236px;
}
.text-hide {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}