caseItem.sass 1.5 KB
.case-item {
	padding: 24rpx;
	border-radius: 24rpx;
	margin-top: 24rpx;
	background-color: white;
	transition: background-color 0.1s;
	box-shadow: 0 4px 12px 0 #2c66f71a;
	&:active {
		background-color: #f5f6f8;
	}
	> .title-wrapper {
		display: flex;
		justify-content: space-between;
		align-items: center;
		width: 100%;
		overflow: hidden;
		.name {
			flex: 1;
			overflow: hidden;
			text-overflow: ellipsis;
			white-space: nowrap;
			color: #292d33;
			font-size: 32rpx;
			font-weight: 500;
			line-height: 44rpx;
		}
		.case-status {
			font-size: 12px;
			font-weight: 500;
			line-height: 44rpx;
			padding: 0 20rpx;
			border-radius: 5rpx;

			&.case-fail {
				color: #f24724;
				background-color: rgba(242, 71, 36, 0.1);
			}
			&.case-success {
				color: #35c376;
				background-color: rgba(53, 195, 118, 0.1);
			}
		}
	}
	> .sub-title {
		line-height: 38rpx;
		color: #4673ff;
		font-size: 32rpx;
		font-weight: 500;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		margin-top: 8rpx;
	}
	> .label-item {
		display: flex;
		justify-content: space-between;
		margin-top: 8rpx;
		color: rgb(153, 153, 153);
		font-size: 24rpx;
		width: 100%;
		overflow: hidden;
		line-height: 36rpx;

		.label {
			color: #999ea8;
			&.colon {
				&::after {
					content: ":";
					margin-right: 16rpx;
				}
			}
		}
		.value {
			flex: 1;
			overflow: hidden;
			text-overflow: ellipsis;
			white-space: nowrap;
			text-align: right;
			color: #666666;
			font-weight: 400;
			margin-left: 12rpx;
		}
	}
}