_brand-text-box.css
1.12 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
.brand-text-box {
$size: 14px;
$line-height: 1.8;
$lines-to-show: 3;
float: left;
height: 100%;
width: 275px;
box-sizing: border-box;
padding: 34px 0;
position: relative;
h4 {
height: 40px;
line-height: 40px;
padding-right: 20px;
display: -webkit-box;
font-size: 16px;
font-weight: bold;
overflow: hidden;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
color: #1b1b1b;
}
p {
display: -webkit-box;
height: calc($size*$line-height*$lines-to-show);
margin: 25px 0;
padding-right: 20px;
font-size: $size;
line-height: 24px;
overflow: hidden;
-webkit-line-clamp: $lines-to-show;
-webkit-box-orient: vertical;
color: #1b1b1b;
}
button {
width: 140px;
height: 35px;
position: absolute;
bottom: 50px;
background-color: white;
outline: none;
border: 1px solid black;
font-size: 14px;
font-weight: bold;
cursor: pointer;
color: #1b1b1b;
}
}