Skip to content

Commit d375087

Browse files
committed
Makes tiles responsive, places links in left bottom corner
1 parent 94fc45f commit d375087

File tree

2 files changed

+30
-15
lines changed

2 files changed

+30
-15
lines changed

src/css/footer.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ footer.footer {
44
font-size: calc(15 / var(--rem-base) * 1rem);
55
line-height: var(--footer-line-height);
66
padding: 1.5rem;
7+
position: relative;
8+
float: left;
9+
width: 100%;
710
}
811

912
.footer p {

src/css/tiles.css

Lines changed: 27 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,6 @@
99
flex-wrap: wrap;
1010
}
1111

12-
@media screen and (max-width: 1140px) {
13-
.tile {
14-
width: calc((100% / 2) - 1rem);
15-
}
16-
}
17-
18-
@media screen and (max-width: 640px) {
19-
.tile {
20-
width: 100%;
21-
}
22-
}
23-
2412
.doc.tiles-page .sectionbody > hr {
2513
display: none;
2614
}
@@ -31,16 +19,34 @@
3119
/* margin: 20px 40px 20px 0; */ /* activate if only 2 tiles per row is preferred */
3220
padding: 1rem;
3321
width: calc((100% / 3) - 1.35rem);
34-
height: 220px;
3522
border-top: 8px solid var(--tile-border-top-color);
3623
background-color: var(--tile-background-color);
3724
}
3825

26+
.tile .content {
27+
display: flex;
28+
flex-direction: column;
29+
justify-content: stretch;
30+
height: 100%;
31+
}
32+
3933
.tile .content .paragraph {
4034
margin: 0;
4135
width: 100%;
4236
}
4337

38+
@media screen and (max-width: 1140px) {
39+
.tile {
40+
width: calc((100% / 2) - 1rem);
41+
}
42+
}
43+
44+
@media screen and (max-width: 640px) {
45+
.tile {
46+
width: 100%;
47+
}
48+
}
49+
4450
.tile .title p {
4551
color: var(--tile-title-font-color);
4652
font-style: normal;
@@ -52,9 +58,15 @@
5258
font-style: normal;
5359
}
5460

61+
.tile .content .paragraph.text {
62+
margin-bottom: 1rem;
63+
}
64+
65+
.tile .content .paragraph.link {
66+
margin-top: auto;
67+
}
68+
5569
.tile .link p {
56-
margin-top: 10px;
5770
width: 100%;
5871
font-size: calc(15.5 / var(--rem-base) * 1rem);
59-
text-align: center;
6072
}

0 commit comments

Comments
 (0)