Skip to content

Commit fc31932

Browse files
committed
Add Reusable grid css for the next steps or the future :D.
1 parent f58e15e commit fc31932

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

starter/07-Omnifood-Desktop/content/css/style.css

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,31 @@ body {
6161
/***************************/
6262
/* GENERAL REUSABLE COMPONENTS */
6363
/***************************/
64+
65+
.container {
66+
/* 1140px */
67+
max-width: 120rem;
68+
padding: 0 3.2rem;
69+
margin: 0 auto;
70+
}
71+
72+
.grid {
73+
display: grid;
74+
gap: 9.6rem;
75+
}
76+
77+
.grid--2-cols {
78+
grid-template-columns: repeat(2, 1fr);
79+
}
80+
81+
.grid--3-cols {
82+
grid-template-columns: repeat(3, 1fr);
83+
}
84+
85+
.grid--4-cols {
86+
grid-template-columns: repeat(4, 1fr);
87+
}
88+
6489
.heading-primary {
6590
font-size: 5.2rem;
6691
font-weight: 600;
@@ -232,3 +257,11 @@ body {
232257
color: #cf711f;
233258
font-weight: 700;
234259
}
260+
261+
/***************************/
262+
/* HOW IT WORKS SECTION */
263+
/***************************/
264+
.section-how {
265+
padding: 9.6rem 0;
266+
background-color: orangered;
267+
}

starter/07-Omnifood-Desktop/content/index.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,14 @@ <h1 class="heading-primary">
6868
</div>
6969
</div>
7070
</section>
71+
<section class="section-how">
72+
<div class="container grid grid--2-cols">
73+
<div>Test 1</div>
74+
<div>Test 2</div>
75+
<div>Test 3</div>
76+
<div>Test 4</div>
77+
</div>
78+
</section>
7179
</main>
7280
</body>
7381
</html>

0 commit comments

Comments
 (0)