-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
313 lines (241 loc) · 5.47 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
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
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
/* General ////////////////////////////////////////////////////////////////////////////////////////////// */
* {
box-sizing: border-box;
}
body {
margin: 0rem;
}
html {
font-family: "Playfair Display", serif;
font-size: 1.25rem;
color: rgb(121, 121, 121);
}
/* Replace all your colors with custom properties */
html {
--main-color: Teal;
--bright-color: wheat;
--pink-color: #deb8b8c7;
}
/* headings ////////////////////////////////////////////////////////////////////////////////////////////// */
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: "Raleway";
}
h2,
h3,
h4,
h5,
h6 {
color: var(--main-color);
}
h1 {
color: var(--main-color);
}
/* Links ////////////////////////////////////////////////////////////////////////////////////////////// */
.nav-link:link {
color: var(--main-color);
}
.nav-link:visited {
color: var(--bright-color);
}
.nav-link:hover {
color: var(--bright-color);
}
.nav-link:active {
background-color: DarkSlateGray;
}
/* Add a transition for the background-color for the nav links */
.nav-link {
background-color: var(--pink-color);
padding: 0.5rem;
transition: background-color 0.5s;
transition-timing-function: ease-in-out;
}
.nav-link:hover {
background-color: var(--main-color);
}
/* Add a pseudo class for the focus state of the nav links (which then also can use the transition) */
.nav-link:focus {
background-color: var(--main-color);
}
/* Class für Emoji Aufgabe */
.profession::after {
content: " ⚙️";
}
.profession::before {
content: "⚙️ ";
}
/* selection style*/
::selection {
background-color: var(--pink-color);
color: var(--bright-color);
}
/* article Blöcke Abstand */
article + article {
margin-top: 1rem;
}
.main-style {
padding: 1.25rem;
}
/* Unterbrechungslinien */
main article {
padding: 2rem;
border-bottom: 0.1rem solid var(--pink-color);
}
main article:last-child {
border-bottom: none;
}
/* header */
.header-style {
padding: 3rem 1rem;
padding-top: 3.1rem;
text-align: center;
background-image: linear-gradient(
10deg,
var(--pink-color),
var(--bright-color)
);
background-color: var(--pink-color);
}
.footer-style {
background-image: linear-gradient(var(--pink-color), var(--bright-color));
padding: 2rem;
text-align: center;
}
/* main article headings position to the left */
.article-headings {
position: relative;
left: -0.8rem;
}
/* hire me button */
.badge {
color: var(--pink-color);
background-color: var(--main-color);
font-size: 0.8rem;
font-family: "Raleway";
position: absolute; /* hier sollst du sein Badge */
top: 0.8rem;
right: 0.8rem;
padding-left: 0.5rem;
padding-right: 0.5rem;
opacity: 80%;
border-radius: 5%;
}
/* Increase the the hire me badge with a transform function (i.e. scale) when the header is hovered */
.badge {
transform-origin: 50% 50%;
transition: transform 0.5s;
}
header:hover .badge {
transform: scale(1.5);
}
/* Give that enclosing element a rem based font size (it should be big) */
.h1-and-profession {
font-size: 4rem;
}
/* The title (<h1>) should have the same size as the parent element */
h1 {
font-size: 1em;
}
/* The profession (<p>) should be 25% of the size */
.profession {
font-size: 25%;
}
/* Use the ch unit to limit the max-width of the main content */
.main-style {
max-width: 200ch;
}
/* Introduce breakpoints for medium and large screens */
/* medium */
html {
@media screen and (min-width: 786px) {
font-size: 16px;
}
}
/* large */
html {
@media screen and (min-width: 992px) {
font-size: 18px;
}
}
/* Use fixed position for the "Hire Me" badge beginning with the large breakpoint */
@media screen and (min-width: 992px) {
.badge {
position: fixed;
}
}
/* Hide the navigation and "Hire Me" badge for printers */
@media print {
.navigation,
.badge {
display: none;
}
}
/* Increase the spacing between the main articles beginning with the medium break point */
@media screen and (min-width: 786px) {
main > article {
margin: 4rem;
}
}
/* Use a flexbox for the navigation in the site header and Display all navigation links vertically by default */
.navigation {
display: flex;
flex-direction: column;
justify-content: center;
gap: 1rem;
margin: 4rem;
}
.nav-link {
padding: 1rem;
}
/* Starting with the medium breakpoint (768px) display the navigations links horizontally */
@media screen and (min-width: 768px) {
.navigation {
display: flex;
flex-direction: row;
justify-content: center;
gap: 2rem;
}
}
@media screen and (min-width: 768px) {
.nav-link {
max-width: 15rem;
flex: 1;
}
}
/* Beginning with the medium breakpoint display the job title on the left side and the time span on the right side */
@media screen and (min-width: 768px) {
.experiences-header-one-and-two {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: baseline; /* Zwei Schriftschnitte auf gleich Höhe bringen */
}
}
/* eigene Animation */
.article-headings {
border: 1px;
transition: color 1s ease-in;
}
.article-headings:hover {
color: var(--bright-color);
}
/* ////////////////////////// */
.article-headings {
transition: transform 0.5s;
transform-origin: 0% 0%;
}
.article-headings:hover {
transform: scale(1.3);
}
/* Use a two column layout using the grid for each article of the main content beginning with the medium breakpoint (768px) */
@media screen and (min-width: 768px) {
.article-grid {
display: grid;
grid-template-columns: 1fr 2fr;
}
}