-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
91 lines (85 loc) · 1.48 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
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;1,200&display=swap");
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
h1 {
width: 15px 0px;
}
body {
font-family: "Sofia", sans-serif;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background-image: url(2.jpg);
background-repeat: no-repeat;
background-size: cover;
}
.container {
width: 1400px;
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: 100px 200px 200px 200px 100px;
}
header {
background-color: rgb(255, 255, 255);
grid-column: 1/-1;
display: flex;
align-items: center;
padding: 25px;
color: rgb(4, 251, 37);
}
header h1 {
opacity: 0.5;
}
.fa-book-reader {
color: rgba(255, 0, 0, 0.89);
padding: 10px;
}
ul {
margin-left: 300px;
}
ul a {
text-decoration: none;
color: rgb(0, 0, 0);
padding: 10px;
font: 1rem sans-serif;
}
button {
padding: 10px;
margin: 10px;
width: 125px;
border: none;
border-radius: 1rem;
}
button:hover {
background-color: rgba(39, 121, 197, 0.89);
}
aside {
background-color: green;
grid-column: 4/-1;
grid-row: 2/5;
}
article {
background-color: hotpink;
grid-column: 1/-2;
grid-row: 2/5;
}
footer {
background-color: khaki;
grid-column: 1/-1;
}
@media (max-width: 768px) {
.container {
grid-template-columns: 1fr;
grid-template-rows: 100px auto auto auto 100px;
}
header,
aside,
article,
footer {
grid-column-start: span 1;
}
}