Skip to content

Commit

Permalink
Merge pull request #511 from seyfeb/bugfix/510
Browse files Browse the repository at this point in the history
Updates color in nutrition info and removes bullet point
  • Loading branch information
christianlupus authored Jan 15, 2021
2 parents 58a0b97 + 512737c commit ee80881
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 16 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
[#505](https://github.com/nextcloud/cookbook/pull/505) @christianlupus
- Allow pasting of instructions without newline again
[#503](https://github.com/nextcloud/cookbook/pull/503) @christianlupus
- Updated color and bullets in nutrition information, fixes #510
[#511](https://github.com/nextcloud/cookbook/pull/511/) @seyfeb


## 0.7.8 - 2021-01-08
Expand Down
25 changes: 11 additions & 14 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -113,22 +113,19 @@
flex-basis: 20rem;
padding-right: 2rem;
}
#app-content-wrapper aside ul {
list-style-type: disc;
#app-content-wrapper aside ul li {
margin-left: 1em;
}
#app-content-wrapper aside ul li {
margin-left: 1em;
#app-content-wrapper aside ul li span,
#app-content-wrapper aside ul li input[type="checkbox"] {
line-height: 1rem;
margin: 0 0.5rem 0 0;
padding: 0;
height: auto;
width: 1rem;
display: inline-block;
vertical-align: middle;
}
#app-content-wrapper aside ul li span,
#app-content-wrapper aside ul li input[type="checkbox"] {
line-height: 1rem;
margin: 0 0.5rem 0 0;
padding: 0;
height: auto;
width: 1rem;
display: inline-block;
vertical-align: middle;
}

#app-content-wrapper .recipe-content {
padding: 1rem;
Expand Down
3 changes: 2 additions & 1 deletion src/components/RecipeNutritionInfoItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ li {
li .title {
margin-bottom: 0em;
color: var(--color-primary);
color: var(--color-main-text);
font-weight: bolder;
}
</style>
6 changes: 5 additions & 1 deletion src/components/RecipeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@

<section v-if="showNutritions">
<h3>{{ t('cookbook', 'Nutrition Information') }}</h3>
<ul>
<ul class="nutrition-items">
<recipe-nutrition-info-item v-if="('servingSize' in nutrition) && !isNullOrEmpty(nutrition['servingSize'])" :title="t('cookbook', 'Serving Size')" :data="nutrition['servingSize']" />
<recipe-nutrition-info-item v-if="('calories' in nutrition) && !isNullOrEmpty(nutrition['calories'])" :title="t('cookbook', 'Energy')" :data="nutrition['calories']" />
<recipe-nutrition-info-item v-if="('sugarContent' in nutrition) && !isNullOrEmpty(nutrition['sugarContent'])" :title="t('cookbook', 'Sugar')" :data="nutrition['sugarContent']" />
Expand Down Expand Up @@ -379,6 +379,10 @@ aside {
margin-top: 2rem;
}
.nutrition-items {
list-style-type: none;
}
.times {
display: flex;
margin-top: 10px;
Expand Down

0 comments on commit ee80881

Please sign in to comment.