Skip to content

Commit 34d30b9

Browse files
authored
Add space for key features titles (#432)
Add space for card titles. Adds a fade for card content that is too long. See https://css-tricks.com/line-clampin/ for the CSS tricks used.
1 parent d46688e commit 34d30b9

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

static/css/keyfeatures.css

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
}
1515

1616
.keyfeatures-box-content {
17-
height: 175px;
17+
height: 200px;
1818
min-width: 275px;
19-
width: 325px;
20-
margin: 15px auto;
19+
width: 335px;
20+
margin: 25px auto;
2121
border-radius: 3px;
2222
}
2323

@@ -32,8 +32,21 @@
3232
}
3333

3434
.keyfeatures-box-text {
35-
margin: 15px 15px;
35+
margin: 15px;
3636
font-size: 14px;
37+
height: 6em;
38+
overflow: hidden;
39+
}
40+
41+
.keyfeatures-box-text:after {
42+
content: "";
43+
text-align: right;
44+
position: absolute;
45+
bottom:30px;
46+
right: 0;
47+
width: 70%;
48+
height: 1.2em;
49+
background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1) 50%);
3750
}
3851

3952
.keyfeatures-box-content:hover > .keyfeatures-box-text, .keyfeatures-box-content:focus > .keyfeatures-box-text, .keyfeatures-box-content:active > .keyfeatures-box-text {

0 commit comments

Comments
 (0)