-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
81 lines (79 loc) · 1.2 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
header {
text-align: center;
width: 100%;
background-color: darkblue;
color: aliceblue;
padding: 1rem;
position: fixed;
top: 0;
}
.container {
margin-top: 60px;
}
/* aside */
aside {
float: left;
padding: 2rem;
}
a {
text-decoration: none;
font-size: 1.5rem;
text-align: center;
}
aside li {
list-style-type: none;
padding: 15px 25px;
margin: 3px;
background-color: antiquewhite;
border-radius: 20px;
}
/* main */
.main__pages {
/* float: right; */
padding: 2rem;
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(3, 1fr);
gap: 2rem 2rem;
}
.page {
box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, 0.5);
}
img {
max-width: 100%;
height: auto;
}
@media (max-width: 1024px) {
html {
font-size: 13px;
}
.main__pages {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 768px) {
.main__pages {
grid-template-columns: 1fr;
}
aside {
float: none;
padding: 1rem 1rem 0;
}
aside ul {
display: flex;
justify-content: space-between;
}
aside li {
display: inline-block;
}
}
@media (max-width: 406px) {
h1 {
font-size: 1.5rem;
}
}