-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
72 lines (62 loc) · 1.79 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
@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Courgette&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&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&family=Style+Script&family=Yeseva+One&display=swap');
body {
margin:20px;
font-family: "Poppins";
background-color: #d1dfde;
}
ul,li {
padding: 0;
list-style-type: none;
}
h1,h2,h3 {
color:#757a7a;
}
p {
color:#8a9190;
}
header{
max-width: 1200px;
margin: 40px auto;
border-bottom: 1px solid #bbc7c7;
}
.grid-container{
display:grid;
grid-template-columns: 1fr 1fr 1fr;
gap:60px;
max-width: 1200px;
margin:20px auto;
}
article.featured {
/* Take all three columns in width */
grid-column: span 3; /* assign specific column to item , no need to specify the starting point as it is the first */
display: grid;
grid-template-columns: 1fr 1fr;
gap:60px;
align-items: center;
border-bottom: 1px solid #bbc7c7;
padding-bottom: 40px;
}
article img, article.featured img{
width: 100%; /* Take full width of the column they have been assigned to, only and not its own width */
border: 4px solid #fff;
border-radius: 8px;
}
article p, article h2, h3 {
margin: 20px 10px;
}
/* responsive */
@media screen and (max-width: 980px) {
article {
grid-column: span 3;
display: grid;
grid-template-columns: 1fr 1fr;
gap:60px;
align-items: center;
}
}
@media screen and (max-width: 760px) {
article, article.featured {
display:block;
margin : 0 20px;
}
}