-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
345 lines (280 loc) · 7.83 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
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
body {
line-height: 1.6; /* without metric, multiplier of current font size */
background-color: #ffffff;
display: grid;
grid-template-rows: auto 1fr auto; /* header, main, footer (1fr is 1 fraction) */
grid-template-areas: "header" "main" "footer"; /* to define grid areas (for mobile) */
overflow: hidden; /* prevent scrolling on desktop */
min-height: 100vh;
margin: 0%;
font-family: Arial, Helvetica, sans-serif;
cursor: crosshair;
}
@media (max-width: 768px) { /*MOBILE SETTINGS for width < 768px */
header,
footer {
flex-direction: column; /* stack header elements vertically */
text-align: center;
}
main {
background-image: none !important;
flex-wrap: wrap;
max-width: 100% !important;
justify-content: center;
overflow: scroll;
}
form {
background-image: none !important;
flex-wrap: wrap;
min-width: 100% !important;
max-height: 100vh;
justify-content: center;
}
author {
display: none !important;
}
h3 {
font-size: 100% !important;
}
nav:hover,
#home-button:hover,
#show-contact-form:hover,
.icon:hover,
#submit:hover {
background-color: transparent !important; /* makes it so hover is clear on mobile */
}
.logo {
padding: none !important;
text-align: center !important; /* center logo for mobile */
}
.icon {
padding: 0 0 20px 0;
}
} /*end @media block for mobile */
/*---------------------------------------------------------------------*/
/*starts the header section */
header {
background-color: #ffffff;
border: none;
align-items: center; /* centers items vertically in section */
display: flex;
flex-wrap: wrap;
justify-content: space-between; /* space between divs */
grid-area: header; /* define the grid area (for mobile) */
}
nav { /*navigation links in header*/
text-align: right;
text-transform: lowercase;
font-weight: bold;
padding: 10px 20px 0 0; /* top right bottom left */
grid-area: nav; /* define the grid area (for mobile) */
cursor: crosshair;
color: #000000;
}
.nav:hover {
background-color: #000000;
}
#home-button,
#show-contact-form { /* links&buttons in nav */
border: none;
background-color: transparent;
font-weight: bold;
color: #000000;
cursor: crosshair;
}
#toggle-colors {
border: none;
background-color: transparent;
font-weight: bold;
font-size: 2rem;
cursor: crosshair;
}
#home-button:hover,
#show-contact-form:hover {
background-color: #000000;
}
.logo { /* logo top left in heading */
padding: 0px 0px 0px 30px;
max-width: 400px;
text-align: left;
}
/*-----------------------------------------------------------------------*/
a { /*general all links */
color: #000000;
text-decoration: none;
padding-inline: 5px;
cursor: crosshair;
}
#cvButton:hover {
background-color: #000000;
}
body.invert-colors #cvButton {
color: #ffffff; /* these are here because the invert-colors wasn't working on links */
background-color: transparent;
}
body.invert-colors #cvButton:hover { /* these are here because the invert-colors wasn't working on links */
background-color: #ffffff;
}
h3 { /* about me & jasmine is my life titles / section titles */
font-style: bold;
font-size: 230%;
margin: 4px;
font-family: Georgia, 'Times New Roman', Times, serif;
}
h2 { /*logo top left & page titles */
font-weight: normal;
font-family: Arial, Helvetica, sans-serif;
font-size: 4cqw;
margin: 4px;
}
p { /*general all paragraphs */
font-size: 0.7;
font-family: Arial, Helvetica, sans-serif;
}
/* ---------------------------------------------------------------*/
/*starts the about me row aka main section*/
main {
background: url("beethatidrew-curser.png") no-repeat;
background-color: #ffffff;
background-size: 100px; /* changes size of the bee */
background-position: center; /* changes position of the bee */
grid-area: main; /* define the grid area */
display: flex;
flex-direction: row;
align-items: center; /* centers items vertically in section */
}
#column1 { /*two divs in the main */
max-width: 550px;
text-align: left;
padding: 5px 60px; /*top&bottom right bottom left*/
background-color: transparent;
grid-area: column1;
}
#column2 {
background-color: transparent;
grid-area: column2;
max-width: 550px;
text-align: left;
padding: 5px 30px; /*top&bottom right bottom left*/
}
.headshot {
width: 300px;
border-radius: 40px;
}
.adventcalendar {
height: 100px;
width: 300px;
margin: 0;
padding: 10px;
display: grid;
grid-template-columns: repeat(5, 1fr);
justify-content: center;
background-color: transparent;
}
#column3 {
padding-left: 30px;
padding-bottom: 20px;
}
#present1,
#present2,
#present3,
#present4,
#present5,
#present6,
#present7,
#present8,
#present9,
#present10 {
font-size: 2rem;
margin: auto;
}
/* ---------------------------------------------------------------*/
/*starts the footer section */
footer {
font-size: 0.9em;
background-color: #ffffff;
align-items: center; /* centers items vertically in section */
grid-area: footer; /* define the grid area (for mobile) */
display: flex;
justify-content: right;
padding: 10px 20px 0 20px;
flex-wrap: wrap;
}
author {
padding: 0 20px 0 0;
}
.icon:hover {
background-color: #000000;
border-radius: 50%;
}
/*---------------------------------------------------------------------*/
/* invert colors css from the js & preventing inverts*/
.invert-colors {
filter: invert(100%) hue-rotate(180deg);
}
.invert-colors img { /* prevents img element from inverting */
filter: invert(2) hue-rotate(180deg) !important;
}
.invert-colors a { /*prevents social icons from inverting */
filter: invert(2) hue-rotate(180deg) !important;
}
.invert-colors #present1 {
filter: invert(2) hue-rotate(180deg) !important;
}
.invert-colors #present2 {
filter: invert(2) hue-rotate(180deg) !important;
}
.invert-colors #present3 {
filter: invert(2) hue-rotate(180deg) !important;
}
.invert-colors #present4 {
filter: invert(2) hue-rotate(180deg) !important;
}
.invert-colors #present5 {
filter: invert(2) hue-rotate(180deg) !important;
}
.invert-colors #present6 {
filter: invert(2) hue-rotate(180deg) !important;
}
.invert-colors #present7 {
filter: invert(2) hue-rotate(180deg) !important;
}
.invert-colors #present8 {
filter: invert(2) hue-rotate(180deg) !important;
}
.invert-colors #present9 {
filter: invert(2) hue-rotate(180deg) !important;
}
.invert-colors #present10 {
filter: invert(2) hue-rotate(180deg) !important;
}
.invert-colors .holidays {
filter: invert(2) hue-rotate(180deg) !important;
}
/*two objects below are for transition js of the about & traits sections*/
.hidden {
opacity: 0;
transform: translateY(20px); /* slightly moves down */
transition: opacity 0.8s ease, transform 0.8s ease; /* slowly transition */
}
.visible {
opacity: 1;
transform: translateY(0); /* resets to original position */
}
/*---------------------------------------------------------*/
/*starts contact form css */
#contact-form {
padding-left: 5%;
min-width: 100vw;
}
#submit,
#message,
#email,
#name {
border: 1px solid #ff0099;
color: #000000;
background-color: #ffffff;
}
#submit:hover {
background-color: #000000;
}