caseItem.sass
1.5 KB
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
.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;
}
}
}