Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
epwinchell committed Sep 23, 2022
1 parent cbb2c12 commit 5da79fa
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
1 change: 1 addition & 0 deletions src/lib/mobile/MobileNav.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
border-radius: var(--global-border-radius);
background: var(--base);
display: none;
z-index: 3;
}
.mobileNav ul {
Expand Down
41 changes: 20 additions & 21 deletions src/lib/recipes/Recipe.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,6 @@
<!-- Title -->
<h1 class="section recipe_name">{data.name}</h1>
<div class="banner_bottom">
<!-- Ingredients -->
<div class="section recipe_keywords">
{#each data.keywords as keyword}
<Chip {keyword} />
{/each}
</div>

<!-- Category -->
{#if data.category}
<div class="section recipe_category">
Expand All @@ -46,7 +39,7 @@

<!-- Yield information -->
{#if data.yield}
<div class="section recipe_author">
<div class="section recipe_yield">
<span>Yields <b>{data.yield}</b> portions</span>
</div>
{/if}
Expand All @@ -57,6 +50,13 @@
<span><b>{data.nutrition.calories}</b> Calories</span>
</div>
{/if}

<!-- Ingredients -->
<div class="section recipe_keywords">
{#each data.keywords as keyword}
<Chip {keyword} />
{/each}
</div>
</div>
</div>

Expand Down Expand Up @@ -108,15 +108,24 @@
background-attachment: fixed;
background-size: cover;
/* background by SVGBackgrounds.com */
padding: 8px 4px 2px 4px;
padding: 8px 4px 2px 24px;
color: var(--white);
}
.banner a, h1 {
color: var(--white);
}
.banner .section {
margin-bottom: 10px;
}
.layout {
display: flex;
background: var(--white);
}
.layout > div {
width: 50%;
width: 60%;
padding: 10px;
}
.layout > div:first-child {
Expand Down Expand Up @@ -159,23 +168,13 @@
color: var(--accent);
}
.recipe_name,
.recipe_author,
.recipe_category,
.recipe_author a {
color: var(--white);
}
.recipe_author,
.recipe_category {
padding-left: 6px;
}
.recipe_name {
font-size: 3rem;
}
/* Keywords / Chips */
.recipe_keywords {
/* float: right;*/
/* float: right;*/
}
/* -------------------------------------------------------------------------
Expand Down

0 comments on commit 5da79fa

Please sign in to comment.