Skip to content

Commit

Permalink
fix nutrition subtitle & title-gap
Browse files Browse the repository at this point in the history
  • Loading branch information
JadlionHD committed Mar 6, 2024
1 parent f3d9297 commit db88135
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
9 changes: 6 additions & 3 deletions recipe-page/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
</div>

<div class="ingredients">
<div class="ingredients-title color-dark-rasp title-size">Ingredients</div>
<div class="ingredients-title color-dark-rasp title-size title-gap">Ingredients</div>
<ul>
<li>2-3 large eggs</li>
<li>Salt, to taste</li>
Expand All @@ -48,7 +48,7 @@
<hr />

<div class="instructions">
<div class="instructions-title color-dark-rasp title-size">Instructions</div>
<div class="instructions-title color-dark-rasp title-size title-gap">Instructions</div>
<ol>
<li>
<b>Beat the eggs:</b> In a bowl, beat the eggs with a pinch of salt and pepper until
Expand Down Expand Up @@ -78,7 +78,10 @@
<hr />

<div class="nutrition">
<div class="nutrition-title color-dark-rasp title-size">Nutrition</div>
<div class="nutrition-title color-dark-rasp title-size title-gap">Nutrition</div>
<div class="nutrition-subtitle">
The table below shows nutritional values per serving without the additional fillings
</div>
<table>
<thead>
<th style="width: 60%"></th>
Expand Down
10 changes: 10 additions & 0 deletions recipe-page/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ hr {
font-size: 28px;
}

.title-gap {
margin-top: 12px;
margin-bottom: 12px;
}

.nutrition table {
border-collapse: collapse;
width: 100%;
Expand All @@ -113,6 +118,11 @@ hr {
font-weight: bold;
}

.nutrition .nutrition-subtitle {
font-size: 14px;
color: #908c88;
}

/* Mobile */
@media only screen and (max-width: 768px) {
body {
Expand Down

0 comments on commit db88135

Please sign in to comment.