index.scss
3.05 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
.category {
margin-left: 40px;
.floor-header {
margin-top: 20px;
margin-bottom: 10px;
display: flex;
justify-content: space-between;
align-items: center;
}
.title {
font-family: PingFang-SC-Medium;
font-size: 40px;
color: #000;
text-align: left;
line-height: 56px;
}
.more {
font-family: SFProText-Medium;
font-weight: 500;
font-size: 28px;
color: #000;
display: flex;
align-items: center;
}
.more-text {
font-family: SFProText-Medium;
font-size: 28px;
color: #000;
}
.category-line {
position: relative;
left: 0;
right: 40px;
bottom: 0px;
margin-right: 40px;
background-color: #eee;
height: 2.5px;
}
.arrow-right-icon {
width: 24px;
height: 24px;
margin-right: 40rpx;
}
.scrollview {
white-space: nowrap;
.item-group {
display: inline-block;
width: 600px;
height: 440px;
margin-right: 20px;
&:last-child {
margin-right: 0;
}
}
.placehorder {
width: 90px;
height: 100%;
}
.item {
width: 600px;
height: 140px;
display: flex;
align-items: center;
.item-navigator {
width: 100%;
display: flex;
.item-img {
height: 140px;
margin-right: 20px;
display: flex;
.img {
width: 140px;
height: 140px;
}
}
.product-dec {
height: 100%;
width: 336px;
word-break: break-all;
display: flex;
flex-direction: column;
.item-name {
font-family: DINAlternate-Bold;
font-size: 28px;
color: #000;
margin-top: 20px;
width: 100%;
overflow: hidden;
text-overflow:ellipsis;
white-space: pre-line;
display:-webkit-box; //将对象作为弹性伸缩盒子模型显示。
-webkit-box-orient:vertical; //从上到下垂直排列子元素(设置伸缩盒子的子元素排列方式)
-webkit-line-clamp:2; //这个属性不是css的规范属性,需要组合上面两个属性,表示显示的行数。
}
.item-code {
font-family: SFProText-Regular;
font-size: 24px;
color: #999;
margin-top: 18px;
}
}
}
}
}
}