Skip to content

Commit 41233a0

Browse files
committed
Adds file tile.css
1 parent 574bf0e commit 41233a0

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

src/css/tiles.css

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
/* Sectionbody */
2+
3+
.doc.tiles-page .sectionbody {
4+
display: flex;
5+
position: relative;
6+
float: left;
7+
width: 100%;
8+
grid-gap: 2rem;
9+
flex-wrap: wrap;
10+
}
11+
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+
24+
.doc.tiles-page .sectionbody > hr {
25+
display: none;
26+
}
27+
28+
/* Tiles */
29+
30+
.tile {
31+
/* margin: 20px 40px 20px 0; */ /* activate if only 2 tiles per row is preferred */
32+
padding: 1rem;
33+
width: calc((100% / 3) - 1.35rem);
34+
height: 220px;
35+
border-top: 8px solid var(--tile-border-top-color);
36+
background-color: var(--tile-background-color);
37+
}
38+
39+
.tile .content .paragraph {
40+
margin: 0;
41+
width: 100%;
42+
}
43+
44+
.tile .title p {
45+
color: var(--tile-title-font-color);
46+
font-style: normal;
47+
}
48+
49+
.tile .text p {
50+
margin-top: 10px;
51+
font-size: calc(15.5 / var(--rem-base) * 1rem);
52+
font-style: normal;
53+
}
54+
55+
.tile .link p {
56+
margin-top: 10px;
57+
width: 100%;
58+
font-size: calc(15.5 / var(--rem-base) * 1rem);
59+
text-align: center;
60+
}

0 commit comments

Comments
 (0)