Skip to content

Commit

Permalink
Fix icons in /meals/add subpage
Browse files Browse the repository at this point in the history
  • Loading branch information
mjkuranda committed Sep 6, 2022
1 parent 08d146e commit 013de8c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 13 deletions.
2 changes: 1 addition & 1 deletion public/css/basic.css
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ input[type="checkbox"]:hover {
transition: 618ms;
}
input[type="checkbox"]:checked {
box-shadow: inset 0 0 0 20px var(--cooper);
box-shadow: inset 0 0 0 30px var(--cooper);
}
input:not(:placeholder-shown):required:valid,
textarea:not(:placeholder-shown):required:valid {
Expand Down
10 changes: 6 additions & 4 deletions public/css/mobile/meals-add.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,15 @@
font-size: calc(var(--phi) * 0.618em);
}

.category-container {
font-size: calc(var(--phi) * 0.718em);
}

.category-container .category {
width: 100% !important;
}
.category-container .category label,
.category-container .category p {
margin-left: 0.2em;
cursor: pointer;
user-select: none;
}
.category-container input {
font-size: calc(var(--phi) * 0.5em);
}
Expand Down
18 changes: 10 additions & 8 deletions views/layouts/meals-add.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,16 @@
<ul>
{{#each this.ingredients as |ing|}}
<li>
<input type="checkbox" name="ings[]" data-id="{{ing.icon.name}}" value="{{ing.icon.name}}" />
<img
class="icon"
src="../../{{ing.icon.src}}"
alt="'{{ing.icon.name}}' ingredient image"
author="{{ing.icon.link}}"
></imgv>
<label>{{ing.name}}</label>
<input type="checkbox" id="{{ing.icon.name}}" name="ings[]" data-id="{{ing.icon.name}}" value="{{ing.icon.name}}" />
<label for="{{ing.icon.name}}" class="flex-center">
<img
class="icon"
src="../../{{ing.icon.src}}"
alt="'{{ing.icon.name}}' ingredient image"
author="{{ing.icon.link}}"
></img>
<p>{{ing.name}}</p>
</label>
</li>
{{/each}}
</ul>
Expand Down

0 comments on commit 013de8c

Please sign in to comment.