_style-icon.css
2.02 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
.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;
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: 16px;
$line-height: 1.4;
$lines-to-show: 3;
width: 0;
border: none;
p {
height: calc($size*$line-height*$lines-to-show);
width: calc($width-2*$space);
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 {
left: calc($width/2-$buttonWidth/2); /* stylelint-disable-line */
}
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;
border: 1px solid #404040;
border-left: none;
p,
h4 {
display: block;
display: -webkit-box;
}
}
}
}
}