|
|
@@ -88,8 +88,11 @@
|
|
|
<h2>Ingredients</h2>
|
|
|
|
|
|
<ul>
|
|
|
- {#each ingredients as i}
|
|
|
- <li>{i.name}, {i.quantity} {i.unit}</li>
|
|
|
+ {#each ingredients as i, idx}
|
|
|
+ <li><button
|
|
|
+ onclick={()=>ingredients.splice(idx, 1)}
|
|
|
+ type="button"
|
|
|
+ >{i.name}, {i.quantity} {i.unit}</button></li>
|
|
|
{/each}
|
|
|
</ul>
|
|
|
|
|
|
@@ -112,8 +115,11 @@
|
|
|
<h2>Steps</h2>
|
|
|
|
|
|
<ol>
|
|
|
- {#each steps as s}
|
|
|
- <li>{s}</li>
|
|
|
+ {#each steps as s, idx}
|
|
|
+ <li><button
|
|
|
+ onclick={()=>{steps.splice(idx, 1)}}
|
|
|
+ type="button"
|
|
|
+ >{s}</button></li>
|
|
|
{/each}
|
|
|
</ol>
|
|
|
|
|
|
@@ -148,7 +154,7 @@
|
|
|
</div>
|
|
|
</fieldset>
|
|
|
|
|
|
- <button>
|
|
|
+ <button class="button">
|
|
|
{#if route === "/recipe/new"}
|
|
|
Create Recipe
|
|
|
{:else}
|
|
|
@@ -231,6 +237,37 @@
|
|
|
max-width: 100%;
|
|
|
}
|
|
|
|
|
|
+ ul li{
|
|
|
+ padding: 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ li button{
|
|
|
+ display: block;
|
|
|
+ width: 100%;
|
|
|
+ margin: 0;
|
|
|
+ padding: 0.55rem 0.7rem;
|
|
|
+ border: none;
|
|
|
+ outline: none;
|
|
|
+ background: none;
|
|
|
+ color: inherit;
|
|
|
+ font: inherit;
|
|
|
+ font-size: inherit;
|
|
|
+ line-height: inherit;
|
|
|
+ text-align: left;
|
|
|
+ cursor: pointer;
|
|
|
+ overflow-wrap: anywhere;
|
|
|
+ word-break: break-word;
|
|
|
+ }
|
|
|
+
|
|
|
+ ol li button{
|
|
|
+ padding: 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ ul li:hover,
|
|
|
+ ol li:hover{
|
|
|
+ border-color: var(--color-primary);
|
|
|
+ }
|
|
|
+
|
|
|
ol{
|
|
|
counter-reset: step;
|
|
|
}
|
|
|
@@ -456,7 +493,6 @@
|
|
|
|
|
|
@media (pointer: coarse){
|
|
|
.button,
|
|
|
- .standardForm button,
|
|
|
.visibilityOptions span{
|
|
|
min-height: 44px;
|
|
|
}
|