-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
98 lines (83 loc) · 1.48 KB
/
styles.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
93
94
95
96
97
98
body {
margin: 0;
background-color: #36454F;
font-family: 'Courier New', Courier, monospace;
color: #ffffff;
}
a {
text-decoration: none;
color: white;
font-size: 1.5vw;
}
header {
border-bottom: 1px solid;
padding: 10px;
background-color: black;
font-size: 2vw;
}
nav {
max-width: 1400px;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(5, 1fr);
align-items: center;
text-align: center;
}
nav h1 {
line-height: 3vw;
text-transform: uppercase;
}
nav div:first-child {
font-weight: 800;
letter-spacing: 0.5vw;
}
nav div:last-child {
font-size: 2vw;
font-weight: 100;
}
main {
max-width: 1400px;
margin: 1vw auto;
padding: 1vw;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 2vw;
}
main div {
overflow: hidden;
background-color: black;
border: 2px solid #fff;
border-radius: 2vw;
box-shadow: 0 0 1.5vw aliceblue;
}
main img {
width: 100%;
height: 100%;
}
main .short {
padding: 1vw;
grid-row: span 1;
}
main .large {
grid-row: span 2;
}
@media (max-width: 750px) {
main {
grid-template-columns: repeat(2, 1fr);
max-width: 600px;
}
}
@media (max-width: 600px) {
main {
grid-template-columns: 1fr;
max-width: 500px;
margin: 1vw auto;
}
nav {
grid-template-columns: repeat(4, 1fr);
}
nav h1 {
grid-column: span 4;
grid-row: 1;
}
}