-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharticleStyle.css
More file actions
74 lines (73 loc) · 1.01 KB
/
articleStyle.css
File metadata and controls
74 lines (73 loc) · 1.01 KB
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
body {
background-color: lightgray;
background-size: cover;
background: no-repeat;
font-family: "Playfair Display", serif;
}
.wrapper {
display: grid;
grid-template-rows: 200px 1fr 1fr 1fr;
grid-gap: 1px;
height: 100vh;
}
header {
padding: 0px;
grid-row: 1/2;
width: 100%;
text-align: center;
color: white;
font-size: 40px;
background-color: #f46731;
}
.articles {
background-color: black;
}
article {
margin-top: 10px;
background-color: black;
color: white;
text-align: center;
grid-gap: 1px;
}
.art1 h2 {
color: #33a8dd;
}
.art2 h2 {
color: #f46731;
}
.art3 h2 {
color: #2bcdc0;
}
.art1 {
grid-row: 2/3;
width: 100%;
height: 100%;
}
.art2 {
grid-row: 3/4;
width: 100%;
height: 100%;
}
.art3 {
grid-row: 4/5;
width: 100%;
height: 100%;
}
@media (min-width: 495px) {
.wrapper {
grid-template-rows: repeat(2, auto);
}
header {
grid-row: 1/2;
padding-top: 60px;
}
.articles {
grid-row: 2/3;
display: flex;
flex-direction: columns;
text-align: center;
}
a {
padding: 20px;
}
}