/
styles.css
120 lines (99 loc) · 1.8 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
body {
font-family: 'Cairo';
font-size: 20px;
background-color: #F5B7B1;
color: #34495E;
line-height: 1.5em;
}
h1 {
font-size: 32px;
}
a {
color: #34495E;
}
@media screen and (max-width: 768px) {
.container {
display: grid;
grid-template-rows: 50px 1fr 50px;
grid-template-columns: 1fr;
}
.content {
grid-column: 1 / 1;
grid-row: 2 / 2;
min-height: max-content;
}
#me {
height: 300px;
width: 300px;
border-radius:50%;
}
#intro {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
#intro-text {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
h1 {
margin-bottom: 0;
}
h2, p {
margin: 1rem;
}
}
@media screen and (min-width: 769px) {
.container {
display: grid;
grid-template-rows: 100px 1fr 50px;
grid-template-columns: 1fr 3fr 1fr;
width: 100vw;
height: 100vh;
}
.content {
grid-column: 2 / 2;
grid-row: 2 / 2;
}
#me {
height: 300px;
width: 300px;
border-radius:50%;
}
#intro {
display: flex;
}
#intro-text {
margin-left: 1rem;
}
h1 {
margin: 0;
}
}
.header {
grid-column: 1 / -1;
grid-row: 1 / 1;
align-self: center;
}
.menu {
display: flex;
justify-content: flex-end;
font-size: 24px;
}
.menu-item {
padding-right: 1.5rem;
}
.blog-image {
width: 100%;
}
.footer {
grid-column: 1 / -1;
grid-row: 3 / 3;
font-size: 16px;
justify-self: center;
line-height: 1em;
margin-top: 1.5em;
}