index.scss 1.43 KB
.zui-cell {
  position: relative;
  display: flex;
  box-sizing: border-box;
  width: 100%;
  padding: $padding-md;
	&::after {
		position: absolute; 
		content: '';
		width: 100%;
		left: 0;
		bottom: 0;
		height: 1px;
		background-color: $color-border;
		-webkit-transform: scale(1, 0.5);
		transform: scale(1, 0.5);
		-webkit-transform-origin: center bottom;
		transform-origin: center bottom;
	}
  overflow: hidden;
  background-color: #fff;
	&--clickable {
		cursor: pointer;
		transition: background-color 150ms;
		&.active {
			background-color: $color-bg-active;
		}
	}
	&__left-icon, &__right-icon {
		display: flex;
		align-items: center;
		.zui-icon {
      font-size: 42upx;
    }
	}
	&__left-icon {
		padding-right: 10upx;
	}
	&__right-icon {
		padding-left: $padding-sm;
		color: $color-disabled;
	}
	&__title, &__value {
		display: flex;
	}
	&__title {
    flex: auto;
	  flex-direction: column;
	  justify-content: center;
    text-wrap: none;
    white-space: nowrap;
    word-break: break-all;
    padding-right: 10upx;
    box-sizing: border-box;
    text {
      white-space: nowrap;
      word-break: break-all;
    }
	}
	&__value {
    flex: auto;
	  align-items: center;
	  justify-content: flex-end;
		position: relative;
		overflow: hidden;
		color: $color-text-minor;
		text-align: right;
		vertical-align: middle;
		word-wrap: break-word;
	}
	&__label {
		padding-top: $padding-xs;
		color: $color-minor;
		font-size: $font-sm;
	}
}