-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.css
288 lines (273 loc) · 6.09 KB
/
main.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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
@charset "UTF-8";
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html {
font-size: 8px;
}
#grid-container {
display: grid;
grid-template-areas: "header" "nav" "main" "footer";
}
#header {
grid-area: header;
background-image: url(images/header.jpg);
background-size: cover;
background-position: center;
padding: 2rem 0;
font-size: 8px;
}
#header div {
display: flex;
align-items: center;
justify-content: center;
width: 44em;
font-size: 8px;
padding: 2rem;
margin: 0 auto;
background-color: #F6F1E6;
-webkit-clip-path: polygon(5% 50%, 1% 3%, 10% 10%, 20% 3%, 30% 10%, 40% 3%, 50% 10%, 60% 3%, 70% 10%, 80% 3%, 90% 10%, 99% 3%, 95% 50%, 99% 97%, 90% 90%, 80% 97%, 70% 90%, 60% 97%, 50% 90%, 40% 97%, 30% 90%, 20% 97%, 10% 90%, 1% 97%, 0% 100%);
clip-path: polygon(5% 50%, 1% 3%, 10% 10%, 20% 3%, 30% 10%, 40% 3%, 50% 10%, 60% 3%, 70% 10%, 80% 3%, 90% 10%, 99% 3%, 95% 50%, 99% 97%, 90% 90%, 80% 97%, 70% 90%, 60% 97%, 50% 90%, 40% 97%, 30% 90%, 20% 97%, 10% 90%, 1% 97%, 0% 100%);
/* genererar ett webkit prefix som inte stöds av css validatorn
men som ger ett bredare stöd i äldre versioner av web browsers
och är därför användbart */
}
#header div img {
width: 5.5em;
height: 5.5em;
}
#header div h1 {
background-image: linear-gradient(to right, #008000 0%, #ADD8E6 17%, #0000FF 35%, #800080 52%, #FF0000 68%, #FFA500 82%, #c4c417 97%);
-webkit-background-clip: text;
background-clip: text;
/* ger varning i css validatorn men har ett
brett stöd i olika webläaare och hittare inget enkelt alternativ att använda */
color: transparent;
font-size: 4.5em;
}
#nav {
grid-area: nav;
background-color: #831C44;
position: sticky;
top: 0;
z-index: 1;
}
#nav ul {
display: flex;
align-items: center;
justify-content: space-around;
padding: 1rem 0;
}
#nav ul li {
list-style: none;
}
#nav ul li a {
text-decoration: none;
padding: 6px 12px;
background-color: #F6F1E6;
color: #831C44;
font-size: 24px;
border-radius: 20px;
}
#main {
grid-area: main;
background-color: #831C44;
color: #F6F1E6;
}
#presentation-header {
font-size: 4rem;
text-align: center;
padding: 2rem 0;
}
div#presentation-container {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-around;
row-gap: 32px;
}
div#presentation-container div.card {
width: 37rem;
display: flex;
flex-direction: column;
align-items: center;
margin: 0 8px 2rem;
}
#image-container {
overflow: hidden;
}
#image-container img {
width: 100%;
-o-object-fit: cover;
object-fit: cover;
/* genererar ett webkit prefix som inte stöds av css validatorn
men som ger ett bredare stöd i äldre versioner av web browsers
och är därför användbart */
border-radius: 50%;
}
#presentation-text {
font-size: 3rem;
}
#skills h3 {
font-size: 3rem;
}
#skills #skills-container {
margin-top: 12px;
}
#skills #skills-container section {
display: flex;
flex-direction: column;
align-items: center;
font-size: 2.5rem;
}
#skills #skills-container section div {
width: 31rem;
height: 2.5rem;
}
#skills #skills-container section #html {
background: linear-gradient(to right, lightgreen 0%, lightgreen 50%, #F6F1E6 50%, #F6F1E6 100%);
}
#skills #skills-container section #css {
background: linear-gradient(to right, lightgreen 0%, lightgreen 40%, #F6F1E6 40%, #F6F1E6 100%);
}
#skills #skills-container section #figma {
background: linear-gradient(to right, lightgreen 0%, lightgreen 57%, #F6F1E6 57%, #F6F1E6 100%);
}
#interests h3 {
font-size: 3rem;
}
#interests #interests-container {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
margin-top: 12px;
}
#interests #interests-container div {
display: flex;
font-size: 2.5rem;
}
#interests #interests-container div img {
height: 3.5rem;
}
#courses {
padding: 2rem 0;
}
#courses table {
border: 1px solid #F6F1E6;
font-size: 2.5rem;
border-collapse: collapse;
}
#courses table td,
#courses table th {
border: 1px solid #F6F1E6;
text-align: center;
}
section#project {
margin-top: 4rem;
}
section#project h2 {
font-size: 4rem;
text-align: center;
margin-bottom: 2rem;
}
section#project div#project-container {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-around;
margin: 2rem 0;
gap: 3rem 8px;
}
section#project div#project-container section {
display: flex;
flex-direction: column;
align-items: center;
font-size: 2.5rem;
padding: 0 8px;
}
section#project div#project-container section video {
margin-top: 0.5rem;
width: 37rem;
}
#footer {
grid-area: footer;
display: flex;
align-items: center;
justify-content: center;
background-image: url(images/header.jpg);
background-size: cover;
background-position: center;
font-size: 8px;
}
#footer p#footer-text {
background-color: #F6F1E6;
}
#footer p#footer-text span {
background-image: linear-gradient(to right, #008000 0%, #ADD8E6 17%, #0000FF 35%, #800080 52%, #FF0000 68%, #FFA500 82%, #c4c417 97%);
-webkit-background-clip: text;
background-clip: text;
/* ger varning i css validatorn men har ett
brett stöd i olika webläaare och hittare inget enkelt alternativ att använda */
color: transparent;
font-size: 2em;
}
@media screen and (min-width: 641px) {
#nav {
display: none;
}
}
@media screen and (min-width: 655px) and (max-width: 1246px) {
#header {
font-size: 12px;
}
#header div {
font-size: 12px;
}
#footer {
font-size: 12px;
}
}
@media screen and (min-width: 1247px) and (max-width: 1440px) {
html {
font-size: 10px;
}
#header {
font-size: 20px;
}
#header div {
font-size: 20px;
}
#footer {
font-size: 16px;
}
}
@media screen and (min-width: 1441px) and (max-width: 1838px) {
html {
font-size: 12px;
}
#header {
font-size: 28px;
}
#header div {
font-size: 28px;
}
#footer {
font-size: 22px;
}
}
@media screen and (min-width: 1838px) {
html {
font-size: 14px;
}
#header {
font-size: 36px;
}
#header div {
font-size: 36px;
}
#footer {
font-size: 28px;
}
}/*# sourceMappingURL=main.css.map */