_style-icon.css
2.21 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
.style-icon-container {
$width: 221px;
$height: 320px;
$space: 15px;
$buttonWidth: 140px;
@extend .resource-container;
.smooth-card-container {
width: 1170px;
height: $height;
margin: 0 auto;
overflow: hidden;
}
.card {
height: $height;
width: calc($width + $space);
float: left;
position: relative;
box-sizing: border-box;
.img {
width: $width;
height: 100%;
float: left;
margin-right: $space;
background-size: 100% 100%;
background-position: center center;
}
&.last {
.img {
margin-right: 0;
}
}
.brand-text-box {
$size: 14px;
$line-height: 1.4;
$lines-to-show: 3;
width: 0;
border: none;
padding-top: 35px !important;
padding-bottom: 50px !important;
background: #f5f7f6;
p {
height: calc($size*$line-height*$lines-to-show);
width: calc($width-2*$space);
margin: 15px 0;
padding-right: $space;
font-size: $size;
line-height: $line-height;
overflow: hidden;
-webkit-line-clamp: $lines-to-show;
-webkit-box-orient: vertical;
color: #505050;
}
button {
width: 120px;
left: 20px;
font-family: "微软雅黑" !important;
background-color: #f5f7f6;
}
p,
h4 {
display: none;
}
}
&.active {
width: calc($width*2+$space);
float: left;
.img {
margin-right: 0;
}
.brand-text-box {
width: $width;
height: 100%;
float: left;
padding: 25px 0 25px $space;
p,
h4 {
display: block;
display: -webkit-box;
}
}
}
}
}