-
Notifications
You must be signed in to change notification settings - Fork 0
/
grid.css
77 lines (71 loc) · 1.5 KB
/
grid.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
html {
background: #edd4ed;
font-family: Helvetica;
-webkit-font-smoothing: antialiased;
padding: 20px 20px;
}
header {
width: 90%;
max-width: 1240px;
margin: 0 auto; }
.band {
width: 90%;
margin-left: auto;
margin-right: auto;
max-width: 1240px margin 0 auto;
display: grid;
grid-template-columns: 1fr;
grid-template-rows: auto;
grid-gap: 20px; }
@media (min-width: 30em) {
.band {
grid-template-columns: 1fr 1fr; } }
@media (min-width: 60em) {
.band {
grid-template-columns: repeat(4, 1fr); } }
.band a {
text-decoration: none;
}
.card {
background: white;
border-radius: 10px;
text-decoration: none;
color: #444444 box-shadow 0 2px 5px rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: column;
min-height: 100%;
position: relative;
top: 0;
transition: all .1s ease-in;
}
.card:hover {
top: -2px;
box-shadow: 0 4px 5px rgba(0, 0, 0, 0.2);
text-decoration: none;
}
.card article {
padding: 20px;
flex: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.card h1 {
font-size: 20px;
margin: 0;
color: #333; }
.card p {
flex: 1;
line-height: 1.4; }
.card span {
font-size: 12px;
font-weight: bold;
color: #999;
text-transform: uppercase;
letter-spacing: .05em;
margin: 2em 0 0 0; }
.card .thumb {
padding-bottom: 60%;
border-radius: 10px 10px 0px 0px ;
background-size: cover;
background-position: center center; }