Skip to content

Commit b7a3841

Browse files
committed
add about section formatting and desktop media queries
1 parent 97cc201 commit b7a3841

File tree

1 file changed

+160
-0
lines changed

1 file changed

+160
-0
lines changed

css/style.css

Lines changed: 160 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
/*Merriweather*/
99
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&family=Roboto+Slab:wght@100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
10+
11+
/*Varela Round*/
12+
@import url('https://fonts.googleapis.com/css2?family=Varela+Round&display=swap');
1013
/************End of Font Formatting************/
1114

1215
/************General Formatting************/
@@ -65,6 +68,7 @@ html {
6568
--navigation-font: 'Roboto', sans-serif;
6669
--footer-font: 'Roboto Slab', sans-serif;
6770
--section-title-font: 'Merriweather', sans-serif;
71+
--section-subtitle-font: 'Varela Round', sans-serif;
6872
}
6973
/************Header formatting************/
7074

@@ -189,6 +193,72 @@ section h2 {
189193
font-size: 1.3em;
190194
}
191195

196+
/**About Formatting**/
197+
198+
/*Format about content*/
199+
.aboutContent {
200+
display: flex;
201+
flex-direction: column;
202+
align-items: normal;
203+
justify-content: center;
204+
}
205+
206+
/*Format about content img*/
207+
.aboutContent img {
208+
width: 60%;
209+
}
210+
211+
/*Format about content header tag*/
212+
.aboutContent h4 {
213+
font-family: var(--section-subtitle-font);
214+
font-size: 1.5em;
215+
text-decoration: underline;
216+
text-align: left;
217+
}
218+
219+
/*Format about content p tag*/
220+
.aboutContent p {
221+
text-align: left;
222+
line-height: 2;
223+
letter-spacing: 2px;
224+
font-family: var(--section-subtitle-font);
225+
}
226+
227+
/*Format highlight item*/
228+
.highlightItem {
229+
display: flex;
230+
flex-direction: column;
231+
align-items: normal;
232+
justify-content: center;
233+
margin-top: 50px;
234+
}
235+
236+
/*Format highlight item icon*/
237+
.highlightItem i {
238+
font-size: 4em;
239+
background-color: #BDFFFD;
240+
padding: 15px;
241+
margin-bottom: 25px;
242+
width: 100px;
243+
border-radius: 50%;
244+
}
245+
246+
/*Format highlight h4 tag*/
247+
.highlightItem h4 {
248+
font-family: var(--section-subtitle-font);
249+
font-size: 1.5em;
250+
text-decoration: underline;
251+
text-align: left;
252+
}
253+
254+
/*Format highlight item p tag*/
255+
.highlightItem p {
256+
text-align: left;
257+
line-height: 2;
258+
letter-spacing: 2px;
259+
font-family: var(--section-subtitle-font);
260+
}
261+
192262
/************Footer formatting************/
193263
footer {
194264
text-align: center;
@@ -202,3 +272,93 @@ footer p {
202272
font-size: 0.8em;
203273
}
204274
/************Footer formatting************/
275+
276+
/************Media Queries************/
277+
278+
/*Desktop Media Query*/
279+
@media screen and (min-width: 1300px) {
280+
281+
/*Section Formatting/
282+
283+
/*Format section titles*/
284+
section h2 {
285+
font-size: 3em;
286+
}
287+
288+
/*Hero Section Formatting*/
289+
.heroSection {
290+
height: 50vh;
291+
}
292+
293+
/*Format hero content h2*/
294+
.heroContent h2 {
295+
font-size: 3em;
296+
}
297+
298+
/*Format hero content a*/
299+
.heroContent a {
300+
font-size: 1.5em;
301+
padding: 15px 30px;
302+
}
303+
304+
/*About Formatting*/
305+
306+
/*Format contentContainer to row*/
307+
.contentContainer {
308+
display: flex;
309+
justify-content: center;
310+
align-items: flex-start;
311+
flex-direction: row-reverse;
312+
gap: 100px;
313+
}
314+
315+
/*Format about content*/
316+
.aboutContent {
317+
display: flex;
318+
flex-direction: column;
319+
align-items: normal;
320+
justify-content: left;
321+
position: sticky;
322+
top: 0;
323+
margin: 20px;
324+
}
325+
326+
/*Format about content img*/
327+
.aboutContent img {
328+
width: 50%;
329+
}
330+
331+
/*Format about content header tag*/
332+
.aboutContent h4 {
333+
font-family: var(--section-subtitle-font);
334+
font-size: 3em;
335+
text-decoration: underline;
336+
text-align: left;
337+
}
338+
339+
/*Format about content p tag*/
340+
.aboutContent p {
341+
text-align: left;
342+
line-height: 2;
343+
letter-spacing: 2px;
344+
font-family: var(--section-subtitle-font);
345+
font-size: 2em;
346+
width: 800px
347+
}
348+
349+
/*Format highlight container*/
350+
.highlightContainer {
351+
margin: 20px;
352+
}
353+
354+
/*Format h4 title*/
355+
.highlightItem h4 {
356+
font-size: 3em;
357+
}
358+
359+
/*Format p tag*/
360+
.highlightItem p {
361+
font-size: 1.3em;
362+
width: 800px;
363+
}
364+
}

0 commit comments

Comments
 (0)