-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
92 lines (78 loc) · 1.41 KB
/
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
body {
margin: 0;
font-family: "Roboto", system-ui;
background: #f7f7f7;
}
header {
background: #fff;
padding: 10px;
}
nav {
max-width: 1400px;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(5, 1fr);
text-align: center;
align-items: center;
}
nav a {
text-decoration: none;
color: #333;
}
nav h1 {
text-transform: uppercase;
line-height: 1em;
}
nav h1 div:first-child {
font-weight: 800;
letter-spacing: 1.5px;
}
nav h1 div:last-child {
font-weight: 400;
}
main {
max-width: 1200px;
margin: 60px auto;
padding: 20px;
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-auto-rows: 250px;
gap: 30px;
}
main div {
overflow: hidden;
background: #fff;
border-radius: 6px;
border: 16px solid #fff;
box-shadow: 3px 3px 3px rgba(0,0,0,0.05);
}
main img {
min-width: 100%;
height: 100%;
}
main .short {
grid-row: span 1;
}
main .tall {
grid-row: span 2;
}
@media screen and (max-width: 960px) {
main {
grid-template-columns: 1fr 1fr;
}
}
@media screen and (max-width: 620px) {
main {
grid-template-columns: 1fr;
max-width: 400px;
margin: 20px auto;
}
nav {
grid-template-columns: repeat(4, 1fr);
}
nav h1 {
grid-column: 1 / span 4;
grid-row: 1;
}
}