/
style.css
59 lines (50 loc) · 815 Bytes
/
style.css
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
* {
box-sizing: border-box;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}
body {
color: #555;
background-color: gainsboro;
}
h1 {
padding: 10px;
}
.wrapper {
width: 100%;
max-width: 980px;
margin: 16px auto;
padding: 5px;
}
.columns {
display: flex;
flex-flow: row wrap;
margin: 5px 0;
}
.column {
flex: 1;
margin: 10px;
background-color: white;
}
.column .image {
width: 100%;
height: 300px;
background-position: center;
background-size: cover;
}
.column h2,
.column p {
padding: 0 16px 8px;
}
@media screen and (max-width: 992px) {
.column {
flex-basis: 40%;
margin-bottom: 10px;
}
}
@media screen and (max-width: 576px) {
.column {
flex-basis: 100%;
margin-bottom: 10px;
}
}