Skip to content

Commit 0f3bf15

Browse files
committed
add desktop media query to about container,text,projectGrid, projectGridItem
1 parent 1f192bc commit 0f3bf15

File tree

1 file changed

+80
-0
lines changed

1 file changed

+80
-0
lines changed

css/style.css

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,3 +250,83 @@ footer {
250250
background-color: rgba(212, 212, 212, 0.8);
251251
}
252252
/************End of Footer Formatting************/
253+
254+
/************Media Query Formatting************/
255+
256+
/**Desktop Media Query Formatting**/
257+
@media screen and (min-width: 1300px) {
258+
259+
/*Format hero section*/
260+
.heroSection {
261+
height: 50vh;
262+
}
263+
264+
/*Format hero content h2*/
265+
.heroContent h2 {
266+
font-size: 4em;
267+
}
268+
269+
/*Format hero content a*/
270+
.heroContent a {
271+
font-size: 2em;
272+
padding: 30px;
273+
width: 50%;
274+
transition: 0.5s ease-in;/*Create button hover effect*/
275+
}
276+
277+
/*Create button hover effect*/
278+
.heroContent a:hover {
279+
background-color: #9ce2e1;
280+
color: white;
281+
}
282+
/*Format about section*/
283+
.aboutContainer {
284+
display: flex;
285+
flex-direction: row;
286+
align-items: center;
287+
justify-content: center;
288+
}
289+
290+
/*Format about section text*/
291+
.aboutContainer p {
292+
width: 65%;
293+
padding: 50px;
294+
font-size: 2em;
295+
text-align: left;
296+
}
297+
/*Format project grid*/
298+
.projectGrid {
299+
grid-template-columns: 1fr 1fr 1fr;/*Create a 3 column grid*/
300+
gap: 50px;
301+
padding: 15px;
302+
}
303+
304+
/*Format project grid items*/
305+
.projectGridItem {
306+
width: 100%;
307+
transition: 0.5s ease-in;/*Create hover outline effect*/
308+
}
309+
310+
/*Create outline hover effect*/
311+
.projectGridItem:hover {
312+
outline: 2px solid #dd7973;
313+
transform: scale(1.1);
314+
}
315+
316+
/*Format project grid item buttons*/
317+
.projectGridItem a {
318+
width: 60%;
319+
font-size: 2em;
320+
}
321+
322+
/*Format project grid item h3 tags*/
323+
.projectGridItem h3 {
324+
font-size: 2em;
325+
}
326+
327+
/*Format project grid item images*/
328+
.projectGridItem img {
329+
width: 100%;
330+
}
331+
}
332+
/************End of Media Query Formatting************/

0 commit comments

Comments
 (0)