-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
2,312 additions
and
1,114 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/app/cookbook/recipe/steps/ingredient/ingredient.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<span> | ||
<span class="ingredient"> | ||
{{ displayName }} | ||
<tui-badge | ||
*ngIf="displayBadge" | ||
|
4 changes: 4 additions & 0 deletions
4
src/app/cookbook/recipe/steps/ingredient/ingredient.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
.ingredient { | ||
white-space: nowrap; | ||
} | ||
|
||
tui-badge { | ||
background-color: var(--tui-info-bg); | ||
color: black; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 6 additions & 11 deletions
17
src/app/shared/components/recipe-card/recipe-card.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,9 @@ | ||
<tui-island size="l" (click)="openRecipe()"> | ||
<div class="tui-island__content"> | ||
<div> | ||
<img | ||
*ngIf="recipe.pictures && recipe.pictures.length > 0" | ||
class="image" | ||
[src]="recipe.pictures[0]" | ||
/><br/> | ||
<p class="tui-island__category" *ngIf="recipe.category">{{ recipe.category }}</p> | ||
<h3 class="tui-island__title">{{ recipe.name }}</h3> | ||
</div> | ||
</div> | ||
<div | ||
*ngIf="recipe.pictures && recipe.pictures.length > 0" | ||
class="image" | ||
[style.background-image]="'url(' + recipe.pictures[0] + ')'"></div> | ||
<h3 class="tui-island__title">{{ recipe.name }}</h3> | ||
<p class="tui-island__category" *ngIf="recipe.category">{{ recipe.category }}</p> | ||
</tui-island> | ||
|
17 changes: 15 additions & 2 deletions
17
src/app/shared/components/recipe-card/recipe-card.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,16 @@ | ||
img { | ||
height: 10rem; | ||
.image { | ||
width: calc(100% + 2*1.25rem); | ||
height: 8rem; | ||
margin-bottom: 10px; | ||
background-size: cover; | ||
background-repeat: no-repeat; | ||
background-position: center; | ||
border-top-left-radius: var(--tui-radius-xl); | ||
border-top-right-radius: var(--tui-radius-xl); | ||
margin: -1.25rem; | ||
margin-bottom: 1rem; | ||
} | ||
|
||
.tui-island__category { | ||
margin-bottom: 0; | ||
} |