GlCell.wxss 1.3 KB
/* components/GlCell/GlCell.wxss */
.cell-box {
  background: #fff;
  font-size: 28rpx;
  color: #333333;
  box-sizing: border-box;
}

.cell {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  /* padding-left: 40rpx; */
  align-items: center;
}

.cellHeight {
  height: 120rpx;
}

.cell.border {
  border-bottom: 2rpx solid rgba(195, 195, 195, .3);
}

.cell-label {
  width: 25%;
}

.titleIcon {
  width: 34rpx;
  height: 34rpx;
}

.cell-value {
  width: 75%;
  position: relative;
  height: 100%;
}

.cell-value .false {
  padding-right: 40rpx !important;
}

.value {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding-right: 70rpx;
  box-sizing: border-box;
}

.required {
  color: #f00;
}

.details,
.placeholder {
  display: none;
}

.slot:empty+.details,
.slot:empty+.placeholder {
  display: block;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.placeholder {
  color: #C3C3C3;
}

.cell-value .right {
  justify-content: flex-end;
  height: 100%;
  box-sizing: border-box;
}

.cell-value .right .details,
.cell-value .right .placeholder {
  text-align: right;
}

.slot {
  width: 100%;
}

.slot:empty {
  display: none;
}

.arrow {
  position: absolute;
  right: 40rpx;
  top: 50%;
  transform: translateY(-50%);
  width: 28rpx;
  height: 26rpx;
}