gram/packages/renderer/tests/__snapshots__/output-snapshots.test.ts.snap
abiwab 6142d252f4
All checks were successful
CI / Build & Test (pull_request) Successful in 5m47s
fix(renderer): explain the baker's percentage in a tooltip and drop its frame
2026-11-30 19:49:12 +01:00

1365 lines
50 KiB
Text
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Bun Snapshot v1, https://bun.sh/docs/test/snapshots
exports[`renderer output snapshots toHTML output is stable 1`] = `
"<article class="gram-recipe">
<h1 class="recipe-title">Crêpes</h1>
<div class="recipe-timings-bar">
<span class="timing-pill total" data-tooltip="Total time: 45 min">
<svg class="gicon gicon-clock" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z"/></svg> <span class="timing-text">45 min</span>
<div class="timing-tooltip">
<div class="timing-tooltip-title">Total time = prep + active + idle</div>
<div class="timing-row">
<span class="timing-label">Prep time</span>
<span class="timing-val">+ ~8 min</span>
</div>
<div class="timing-row">
<span class="timing-label">Active time</span>
<span class="timing-val">+ 37 min</span>
</div>
<div class="timing-divider"></div>
<div class="timing-row">
<span class="timing-label"><strong>Total time</strong></span>
<span class="timing-val"><strong>= 45 min</strong></span>
</div>
<div class="timing-divider"></div>
<div class="timing-row"><span class="timing-label timing-detail-type">For the hour-by-hour plan, see the run sheet.</span></div>
</div>
</span>
<span class="timing-pill" data-tooltip="Active time: 37 min">
<svg class="gicon gicon-fire" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M183.89,153.34a57.6,57.6,0,0,1-46.56,46.55A8.75,8.75,0,0,1,136,200a8,8,0,0,1-1.32-15.89c16.57-2.79,30.63-16.85,33.44-33.45a8,8,0,0,1,15.78,2.68ZM216,144a88,88,0,0,1-176,0c0-27.92,11-56.47,32.66-84.85a8,8,0,0,1,11.93-.89l24.12,23.41,22-60.41a8,8,0,0,1,12.63-3.41C165.21,36,216,84.55,216,144Zm-16,0c0-46.09-35.79-85.92-58.21-106.33L119.52,98.74a8,8,0,0,1-13.09,3L80.06,76.16C64.09,99.21,56,122,56,144a72,72,0,0,0,144,0Z"/></svg> <span class="timing-text">37 min active time</span>
<div class="timing-tooltip">
<div class="timing-tooltip-title">Active time = sum of manual work time</div>
<div class="timing-row">
<span class="timing-label">Batter <span class="timing-detail-type">(Active)</span></span>
<span class="timing-val">+ 34 min</span>
</div>
<div class="timing-row">
<span class="timing-label">Cooking <span class="timing-detail-type">(Active)</span></span>
<span class="timing-val">+ 3 min</span>
</div>
</div>
</span>
<span class="timing-pill" data-tooltip="Prep time: ~8 min">
<svg class="gicon gicon-knife" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M231.87,32.13a27.84,27.84,0,0,0-39.32,0L18.34,206.4a8,8,0,0,0,3.86,13.45A160.67,160.67,0,0,0,58.4,224c32.95,0,65.92-10.2,96.95-30.23,31.76-20.5,50.19-43.82,51-44.81a8,8,0,0,0-.64-10.59L185.32,118l46.55-46.56A27.85,27.85,0,0,0,231.87,32.13ZM189.1,144.44a220.41,220.41,0,0,1-42.86,36.16c-34.43,22.1-69.94,30.92-105.77,26.3L146,101.33Zm31.46-84.3L174,106.7,157.32,90l46.55-46.56a11.8,11.8,0,0,1,16.69,16.69Z"/></svg> <span class="timing-text"><span class="est">~</span>8 min prep time</span>
<div class="timing-tooltip">
<div class="timing-tooltip-title">Prep time = time to gather and prepare ingredients and cookware (Estimated)</div>
<div class="timing-row">
<span class="timing-label"><strong>Batter</strong></span>
<span class="timing-val">+ 6 min</span>
</div>
<div class="timing-row">
<span class="timing-label"><span class="timing-detail-type">Ingredients lookup (base) (5 × 1 min)</span></span>
<span class="timing-val">+ 5 min</span>
</div>
<div class="timing-row">
<span class="timing-label"><span class="timing-detail-type">Cookware lookup (base) (1 × 1 min)</span></span>
<span class="timing-val">+ 1 min</span>
</div>
<div class="timing-divider"></div>
<div class="timing-row">
<span class="timing-label"><strong>Cooking</strong></span>
<span class="timing-val">+ 2 min</span>
</div>
<div class="timing-row">
<span class="timing-label"><span class="timing-detail-type">Ingredients lookup (base) (1 × 1 min)</span></span>
<span class="timing-val">+ 1 min</span>
</div>
<div class="timing-row">
<span class="timing-label"><span class="timing-detail-type">Cookware lookup (base) (1 × 1 min)</span></span>
<span class="timing-val">+ 1 min</span>
</div>
</div>
</span>
</div>
<div class="recipe-hero-bar">
<div class="hero-item hero-portions">
<svg class="gicon gicon-users" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M117.25,157.92a60,60,0,1,0-66.5,0A95.83,95.83,0,0,0,3.53,195.63a8,8,0,1,0,13.4,8.74,80,80,0,0,1,134.14,0,8,8,0,0,0,13.4-8.74A95.83,95.83,0,0,0,117.25,157.92ZM40,108a44,44,0,1,1,44,44A44.05,44.05,0,0,1,40,108Zm210.14,98.7a8,8,0,0,1-11.07-2.33A79.83,79.83,0,0,0,172,168a8,8,0,0,1,0-16,44,44,0,1,0-16.34-84.87,8,8,0,1,1-5.94-14.85,60,60,0,0,1,55.53,105.64,95.83,95.83,0,0,1,47.22,37.71A8,8,0,0,1,250.14,206.7Z"/></svg>
<span class="scale-val"><strong>4</strong> portions</span>
<button type="button" class="edit-portions-btn" data-gram-action="edit-portions" aria-label="Change the portions" title="Change the portions"><svg class="gicon gicon-pencil-simple" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM92.69,208H48V163.31l88-88L180.69,120ZM192,108.68,147.31,64l24-24L216,84.68Z"/></svg></button>
</div>
</div>
<details class="prep-accordion shopping-list" open>
<summary class="prep-summary">
<span class="prep-summary-title">Shopping List &amp; Cookware</span>
</summary>
<div class="prep-body">
<div class="mep-group">
<div class="mep-group-header">
<h5 class="mep-group-title">Shopping List</h5>
<button type="button" class="copy-shopping-btn" aria-label="Copy list" data-copied-text="Copied!"><span class="copy-icon"><svg class="gicon gicon-copy" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"/></svg></span><span class="check-icon" style="display:none"><svg class="gicon gicon-check" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"/></svg></span> <span class="copy-label">Copy list</span></button>
</div>
<ul class="kit-list">
<li class="kit-ingredient"><label><input type="checkbox"><span><span class="kit-name-col"><span class="kit-name ingredient" data-name="flour">flour</span></span><span class="kit-qty"><span class="kit-mass">200 g</span></span></span></label></li>
<li class="kit-ingredient"><label><input type="checkbox"><span><span class="kit-name-col"><span class="kit-name ingredient" data-name="sugar">sugar</span></span><span class="kit-qty"><span class="kit-mass">1 tbsp</span></span></span></label></li>
<li class="kit-ingredient"><label><input type="checkbox"><span><span class="kit-name-col"><span class="kit-name ingredient" data-name="salt">salt</span></span></span></label></li>
<li class="kit-ingredient"><label><input type="checkbox"><span><span class="kit-name-col"><span class="alt-group"><span class="ingredient" data-name="egg">egg <span class="quantity">2</span></span> <span class="keyword">or</span> <span class="ingredient" data-name="egg substitute">egg substitute <span class="quantity">2</span></span></span></span></span></label></li>
</ul>
</div>
<div class="mep-group">
<h5 class="mep-group-title">Cookware</h5>
<ul class="kit-list">
<li class="kit-cookware"><label><input type="checkbox"><span><span class="kit-name-col"><span class="kit-name cookware" data-name="large-bowl">large bowl</span></span></span></label></li>
<li class="kit-cookware"><label><input type="checkbox"><span><span class="kit-name-col"><span class="kit-name cookware" data-name="pan">pan</span></span></span></label></li>
</ul>
</div>
</div>
</details>
<div class="instructions">
<section>
<h3 class="section-header" data-declares="batter">Batter <span class="section-declaration-badge" data-declares="batter" data-tooltip="Intermediate result for this section"><svg class="gicon gicon-arrow-right" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z"/></svg> batter</span></h3>
<div class="section-ingredients">
<ul class="kit-list">
<li class="kit-ingredient"><label><input type="checkbox"><span><span class="kit-name-col"><span class="kit-name ingredient" data-name="flour">flour</span></span><span class="kit-qty"><span class="kit-mass">200 g</span></span></span></label></li>
<li class="kit-ingredient"><label><input type="checkbox"><span><span class="kit-name-col"><span class="kit-name ingredient" data-name="sugar">sugar</span></span><span class="kit-qty"><span class="kit-mass">1 tbsp</span></span></span></label></li>
<li class="kit-ingredient"><label><input type="checkbox"><span><span class="kit-name-col"><span class="kit-name ingredient" data-name="salt">salt</span></span></span></label></li>
<li class="kit-ingredient"><label><input type="checkbox"><span><span class="kit-name-col"><span class="alt-group"><span class="ingredient" data-name="egg">egg <span class="quantity">2</span></span> <span class="keyword">or</span> <span class="ingredient" data-name="egg substitute">egg substitute <span class="quantity">2</span></span></span></span></span></label></li>
</ul>
</div>
<ol class="steps">
<li value="1">
In a <span class="gram-nobr"><span class="cookware" data-name="large bowl">large bowl</span>,</span> mix <span class="gram-nobr"><span class="ingredient" data-name="flour">flour <span class="step-quantity">(200 g)</span></span>,</span> <span class="ingredient" data-name="sugar">sugar <span class="step-quantity">(1 tbsp)</span></span> and a pinch of <span class="gram-nobr"><span class="ingredient" data-name="salt">salt</span>.</span>
</li>
<li value="2">
Add <span class="ingredient" data-name="egg">egg <span class="step-quantity">(2)</span></span> <span class="ingredient-alt-badge" data-tooltip="Alternatives
egg substitute: 2" data-tooltip-html="&lt;div class=&quot;gram-tip&quot;&gt;&lt;div class=&quot;gram-tip-head&quot;&gt;&lt;span class=&quot;gram-tip-title&quot;&gt;Alternatives&lt;/span&gt;&lt;/div&gt;&lt;dl class=&quot;gram-tip-rows&quot;&gt;&lt;dt&gt;egg substitute&lt;/dt&gt;&lt;dd&gt;&lt;span class=&quot;gram-tip-value&quot;&gt;2&lt;/span&gt;&lt;/dd&gt;&lt;/dl&gt;&lt;/div&gt;">(alt)</span> and whisk for <span class="gram-nobr"><span class="timer" data-tooltip="Active time" data-value="2" data-unit="min" data-minutes="2"><svg class="gicon gicon-timer" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M128,40a96,96,0,1,0,96,96A96.11,96.11,0,0,0,128,40Zm0,176a80,80,0,1,1,80-80A80.09,80.09,0,0,1,128,216ZM173.66,90.34a8,8,0,0,1,0,11.32l-40,40a8,8,0,0,1-11.32-11.32l40-40A8,8,0,0,1,173.66,90.34ZM96,16a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H104A8,8,0,0,1,96,16Z"/></svg> <span class="timer-text">2 min</span></span>.</span>
</li>
<li class="step-comment">
<span class="comment-icon"><svg class="gicon gicon-info" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z"/></svg></span>
<span class="comment-text">Rest the batter before cooking</span>
</li>
<li value="3">
Let rest at <span class="temp" data-semantic="fridge"><svg class="gicon gicon-thermometer" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M212,56a28,28,0,1,0,28,28A28,28,0,0,0,212,56Zm0,40a12,12,0,1,1,12-12A12,12,0,0,1,212,96Zm-84,57V88a8,8,0,0,0-16,0v65a32,32,0,1,0,16,0Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,120,200Zm40-66V48a40,40,0,0,0-80,0v86a64,64,0,1,0,80,0Zm-40,98a48,48,0,0,1-27.42-87.4A8,8,0,0,0,96,138V48a24,24,0,0,1,48,0v90a8,8,0,0,0,3.42,6.56A48,48,0,0,1,120,232Z"/></svg> fridge</span> for <span class="gram-nobr"><span class="timer" data-tooltip="Active time" data-value="30" data-unit="min" data-minutes="30"><svg class="gicon gicon-timer" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M128,40a96,96,0,1,0,96,96A96.11,96.11,0,0,0,128,40Zm0,176a80,80,0,1,1,80-80A80.09,80.09,0,0,1,128,216ZM173.66,90.34a8,8,0,0,1,0,11.32l-40,40a8,8,0,0,1-11.32-11.32l40-40A8,8,0,0,1,173.66,90.34ZM96,16a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H104A8,8,0,0,1,96,16Z"/></svg> <span class="timer-text">30 min</span></span>.</span>
</li>
</ol>
</section>
<section>
<h3 class="section-header">Cooking</h3>
<div class="section-ingredients">
<ul class="kit-list">
<li class="kit-reference"><label><input type="checkbox"><span><span class="kit-name-col"><span class="kit-name reference" data-name="batter" data-ref-id="batter">batter</span></span></span></label></li>
</ul>
</div>
<ol class="steps">
<li value="1">
Heat a <span class="cookware" data-name="pan">pan</span> on <span class="gram-nobr"><span class="temp" data-semantic="medium heat"><svg class="gicon gicon-thermometer" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M212,56a28,28,0,1,0,28,28A28,28,0,0,0,212,56Zm0,40a12,12,0,1,1,12-12A12,12,0,0,1,212,96Zm-84,57V88a8,8,0,0,0-16,0v65a32,32,0,1,0,16,0Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,120,200Zm40-66V48a40,40,0,0,0-80,0v86a64,64,0,1,0,80,0Zm-40,98a48,48,0,0,1-27.42-87.4A8,8,0,0,0,96,138V48a24,24,0,0,1,48,0v90a8,8,0,0,0,3.42,6.56A48,48,0,0,1,120,232Z"/></svg> medium heat</span>.</span>
</li>
<li value="2">
Pour <span class="reference" data-ref-id="batter" data-tooltip="Intermediate ingredient" data-tooltip-html="&lt;div class=&quot;gram-tip&quot;&gt;&lt;div class=&quot;gram-tip-head&quot;&gt;&lt;span class=&quot;gram-tip-title&quot;&gt;batter&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;gram-tip-subtitle&quot;&gt;Intermediate ingredient&lt;/div&gt;&lt;/div&gt;"><svg class="gicon gicon-caret-circle-right" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm29.66-93.66a8,8,0,0,1,0,11.32l-40,40a8,8,0,0,1-11.32-11.32L140.69,128,106.34,93.66a8,8,0,0,1,11.32-11.32Z"/></svg> batter</span> and cook for active <span class="gram-nobr"><span class="timer" data-tooltip="Active time" data-value="1" data-unit="min" data-minutes="1"><svg class="gicon gicon-timer" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M128,40a96,96,0,1,0,96,96A96.11,96.11,0,0,0,128,40Zm0,176a80,80,0,1,1,80-80A80.09,80.09,0,0,1,128,216ZM173.66,90.34a8,8,0,0,1,0,11.32l-40,40a8,8,0,0,1-11.32-11.32l40-40A8,8,0,0,1,173.66,90.34ZM96,16a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H104A8,8,0,0,1,96,16Z"/></svg> <span class="timer-text">1 min</span></span>.</span>
</li>
</ol>
</section>
</div>
</article>
"
`;
exports[`renderer output snapshots toMarkdown output is stable 1`] = `
"# Crêpes
> **Metadata**
> - **Total time**: 45 min
> - **Active time**: 37 min
> - **Prep time**: 8 min (est.)
> - portions: 4
## Shopping List
- **flour** (200 g)
- **sugar** (1 tbsp)
- **salt**
- **egg** (2) or **egg substitute** (2)
## Cookware
- *large bowl*
- *pan*
## Instructions
### Batter
**Ingredients**:
- **flour** (200 g)
- **sugar** (1 tbsp)
- **salt**
- **egg** (2) or **egg substitute** (2)
1. In a *large bowl*, mix **flour** (200 g), **sugar** (1 tbsp) and a pinch of **salt**.
2. Add **egg** (2) or **egg substitute** (2) and whisk for ⏲️ 2 min.
> *Rest the batter before cooking*
3. Let rest at 🌡️ fridge for ⏲️ 30 min.
### Cooking
**Ingredients**:
- 👉*batter*
1. Heat a *pan* on 🌡️ medium heat.
2. Pour 👉*batter* and cook for active ⏲️ 1 min.
"
`;
exports[`renderer output snapshots toPrintHTML output is stable 1`] = `
"<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Crêpes</title>
<style>/*
* The base of every printed view: the page, the type, the headings and the
* elements of a step (actions, ingredients, timers...), which the recipe and
* the run sheet both write. Each view adds its own stylesheet after it.
*/
@import url("https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400;1,700&family=Inter:wght@400;500;600;700&display=swap");
:root {
/* The fonts of the screen, exactly (\`tokens.css\`): a view printed like its
screen version takes them. \`print-tokens.test.ts\` keeps them equal. */
--gram-font-sans: system-ui, -apple-system, sans-serif;
--gram-font-mono:
ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
--black: #000000;
--dark-grey: #333333;
--grey: #666666;
--light-grey: #cccccc;
--very-light-grey: #e5e5e5;
}
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
@page {
size: A4;
margin: 25mm 20mm;
}
body {
font-family: "Courier Prime", "Courier New", Courier, monospace;
font-size: 10pt;
line-height: 1.5;
color: var(--black);
background: #fff;
-webkit-font-smoothing: antialiased;
}
svg.gicon,
.gicon {
width: 1em;
height: 1em;
vertical-align: -0.125em;
display: inline-block;
}
/* A step element and what touches it, never split by a line break
(\`nobr()\` of \`shared/utils.ts\`, as in \`base.css\`). */
.gram-nobr {
white-space: nowrap;
}
:where(.gram-nobr > *) {
white-space: normal;
}
/* ── Title ── */
h1 {
font-family: "Courier Prime", monospace;
font-size: 20pt;
font-weight: 700;
line-height: 1.1;
margin-bottom: 12pt;
padding-bottom: 8pt;
border-bottom: 2pt solid var(--black);
page-break-after: avoid;
}
/* ── Section labels (Shopping, Equipment, Instructions…) ── */
h2 {
font-family: "Inter", system-ui, sans-serif;
font-size: 7.5pt;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.25em;
border-bottom: 1px solid var(--black);
padding-bottom: 6pt;
margin-top: 24pt;
margin-bottom: 12pt;
page-break-after: avoid;
}
/* ── Sub-section headers (recipe sections) ── */
h3 {
font-size: 11.5pt;
font-weight: 700;
margin-top: 20pt;
margin-bottom: 10pt;
page-break-after: avoid;
display: inline-block;
border-bottom: 1px dashed var(--black);
}
/* ── Action tag ── */
.action {
display: inline-block;
font-family: "Inter", system-ui, sans-serif;
font-weight: 700;
font-size: 7.5pt;
text-transform: uppercase;
letter-spacing: 0.15em;
border: 1px solid var(--black);
border-radius: 2px;
padding: 2pt 5pt;
margin-right: 8pt;
vertical-align: text-bottom;
white-space: nowrap;
}
/* ── Inline semantic tokens ── */
.ingredient {
font-weight: 700;
}
.reference {
font-weight: 700;
text-decoration: underline;
text-decoration-style: solid;
text-underline-offset: 2.5pt;
text-decoration-thickness: 1px;
}
.cookware {
font-weight: 700;
}
.timer {
font-weight: 700;
border-bottom: 2px solid var(--black);
white-space: nowrap;
padding-bottom: 1px;
}
.timer.passive {
border-bottom: 2px dotted var(--black);
}
.temp {
font-weight: 700;
white-space: nowrap;
font-family: "Inter", system-ui, sans-serif;
font-size: 0.9em;
letter-spacing: 0.05em;
}
.checkpoint {
font-weight: 500;
}
.quantity {
font-weight: normal;
}
.step-quantity {
white-space: nowrap;
}
.opt {
color: var(--grey);
font-style: italic;
}
/* strategies.alternative's non-inline "or" separator — used when an
alternative group now shows up in a section ingredient list. */
.keyword {
font-style: italic;
}
.declaration {
font-size: 9pt;
font-style: italic;
color: var(--black);
}
/* Screen preview */
@media screen {
body {
max-width: 210mm;
margin: 40px auto;
padding: 25mm 20mm;
box-shadow: 0 4px 40px rgba(0, 0, 0, 0.08);
border: 1px solid var(--very-light-grey);
min-height: 297mm;
}
}
/*
* The recipe on paper (\`toPrintHTML\`, the \`print\` format of the recipe view).
*
* The markup is the one of the screen (\`html.ts\`), as for the run sheet: this
* sheet sets it for a page, after the base of every printed view
* (\`shared/print.css\`). It follows \`screen.css\` block by block, in ink only:
* no color, no hover, nothing to click; what only a screen can do (tooltips,
* the copy button, the accordion's caret) is hidden. Every rule is scoped to
* the view's root, \`<article class="gram-recipe">\`.
*/
.gram-recipe {
font-family: var(--gram-font-sans);
font-size: 9.5pt;
line-height: 1.45;
}
.gram-recipe ul,
.gram-recipe ol {
list-style: none;
}
/* What only a screen can do (the tooltips and the copy button are not even
written on paper). */
.gram-recipe .note-return,
.gram-recipe details > summary::after {
display: none !important;
}
.gram-recipe svg.gicon {
flex-shrink: 0;
}
/* ─── Header: title, description, byline, tags ─────────────────────────── */
.gram-recipe .recipe-title {
font-family: inherit;
font-size: 20pt;
font-weight: 800;
line-height: 1.15;
margin: 0 0 3pt;
padding: 0;
border: none;
}
.gram-recipe .recipe-description {
font-size: 9.5pt;
color: var(--dark-grey);
margin: 0 0 6pt;
}
.gram-recipe .recipe-byline {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 3pt 6pt;
font-size: 8pt;
color: var(--grey);
margin-bottom: 8pt;
}
.gram-recipe .byline-sep {
opacity: 0.5;
}
.gram-recipe .byline-source {
color: var(--black);
text-decoration: underline dotted;
}
.gram-recipe .byline-custom .label {
font-weight: 600;
text-transform: capitalize;
}
/* ─── Timings bar: total, idle, active, prep ───────────────────────────── */
.gram-recipe .recipe-timings-bar {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 4pt 5pt;
margin-bottom: 8pt;
}
.gram-recipe .timing-pill {
display: inline-flex;
align-items: center;
gap: 3pt;
border: 0.75pt solid var(--light-grey);
border-radius: 2pt;
padding: 1pt 5pt;
font-family: var(--gram-font-mono);
font-size: 8pt;
white-space: nowrap;
}
.gram-recipe .timing-pill.total {
border-color: var(--black);
font-weight: 700;
}
/* ─── Hero bar: portions, yield, mass, energy ──────────────────────────── */
.gram-recipe .recipe-hero-bar {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 4pt 10pt;
padding: 5pt 9pt;
border: 0.75pt solid var(--light-grey);
border-radius: 2pt;
margin-bottom: 10pt;
font-size: 8.5pt;
page-break-inside: avoid;
}
.gram-recipe .hero-facts {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 4pt 10pt;
}
/* A page is wide enough: the facts follow the portions behind a hairline. */
.gram-recipe .hero-portions + .hero-facts {
padding-left: 10pt;
border-left: 0.75pt solid var(--light-grey);
}
.gram-recipe .hero-item {
display: inline-flex;
align-items: center;
gap: 4pt;
}
.gram-recipe .hero-item svg {
color: var(--grey);
}
.gram-recipe .scale-val,
.gram-recipe .portions-unit {
font-family: var(--gram-font-mono);
color: var(--grey);
}
.gram-recipe .scale-val strong {
color: var(--black);
}
.gram-recipe .scale-factor-badge {
font-family: var(--gram-font-mono);
font-size: 7.5pt;
font-weight: 600;
padding: 0 3pt;
border: 0.75pt dashed var(--grey);
border-radius: 2pt;
}
.gram-recipe .hero-yield,
.gram-recipe .hero-mass,
.gram-recipe .hero-nutrition {
font-family: var(--gram-font-mono);
font-size: 8pt;
}
.gram-recipe .hero-mass,
.gram-recipe .hero-nutrition {
color: var(--grey);
text-decoration: none;
}
.gram-recipe .hero-nutrition .nut-pill-value {
color: var(--black);
font-weight: 600;
}
/* ─── Note of the recipe (\`notes:\` of the front matter) ────────────────── */
.gram-recipe .recipe-note {
display: flex;
align-items: flex-start;
gap: 6pt;
border-left: 2pt solid var(--black);
padding: 3pt 8pt;
font-size: 8.5pt;
margin-bottom: 10pt;
page-break-inside: avoid;
}
.gram-recipe .recipe-note svg {
color: var(--grey);
margin-top: 2pt;
}
/* ─── Shopping list and cookware (the prep accordion, always open) ────── */
.gram-recipe details.prep-accordion {
border: 0.75pt solid var(--black);
border-radius: 2pt;
margin-bottom: 14pt;
}
.gram-recipe details > summary {
display: block;
list-style: none;
}
.gram-recipe details > summary::-webkit-details-marker,
.gram-recipe .prep-summary::marker {
display: none;
}
.gram-recipe .prep-summary {
padding: 4pt 9pt;
border-bottom: 0.75pt solid var(--black);
page-break-after: avoid;
}
.gram-recipe .prep-summary-title {
font-size: 10.5pt;
font-weight: 800;
}
.gram-recipe .prep-body {
padding: 6pt 9pt;
}
.gram-recipe .mep-group + .mep-group {
margin-top: 6pt;
padding-top: 6pt;
border-top: 0.5pt dotted var(--black);
}
.gram-recipe .mep-group-title {
margin: 0 0 3pt;
font-family: var(--gram-font-mono);
font-size: 7.5pt;
font-weight: 700;
text-transform: uppercase;
color: var(--grey);
}
/* ─── Kit list: the items of the shopping list and of a section ────────── */
.gram-recipe .kit-list {
columns: 2;
column-gap: 18pt;
}
.gram-recipe .kit-list li {
display: inline-block;
width: 100%;
vertical-align: top;
break-inside: avoid;
page-break-inside: avoid;
margin-bottom: 2.5pt;
font-size: 9pt;
}
.gram-recipe .kit-list .sub-kit-list {
columns: auto;
margin-top: 2pt;
padding-left: 12pt;
}
.gram-recipe .kit-list label {
display: flex;
align-items: flex-start;
gap: 6pt;
}
/* A box to tick with a pen. */
.gram-recipe .kit-list input[type="checkbox"] {
appearance: none;
-webkit-appearance: none;
flex-shrink: 0;
width: 8pt;
height: 8pt;
margin: 2pt 0 0;
border: 1pt solid var(--black);
border-radius: 1.5pt;
}
.gram-recipe .kit-list label > span {
display: grid;
grid-template-columns: auto 1fr auto;
align-items: baseline;
column-gap: 4pt;
flex: 1;
min-width: 0;
}
.gram-recipe .kit-list li:not(.list-item-group) .kit-name-col {
display: contents;
}
.gram-recipe .kit-list li.list-item-group > label > span > .kit-name-col {
grid-column: 1;
grid-row: 1;
display: inline-flex;
align-items: baseline;
gap: 3pt;
}
.gram-recipe .kit-name,
.gram-recipe .alt-group {
grid-column: 1;
grid-row: 1;
font-weight: 500;
overflow-wrap: break-word;
}
.gram-recipe .kit-name::first-letter,
.gram-recipe .alt-group::first-letter,
.gram-recipe .kit-usage-name::first-letter {
text-transform: uppercase;
}
.gram-recipe .kit-prep {
grid-column: 1 / -1;
grid-row: 2;
font-size: 7.5pt;
font-style: italic;
color: var(--grey);
}
/* The quantity, pushed to the right edge by a dot leader. */
.gram-recipe .kit-qty {
grid-column: 2 / -1;
grid-row: 1;
display: flex;
align-items: baseline;
justify-content: flex-end;
gap: 4pt;
white-space: nowrap;
font-family: var(--gram-font-mono);
font-size: 8.5pt;
color: var(--grey);
}
.gram-recipe .kit-qty::before {
content: "";
flex: 1;
align-self: flex-end;
min-width: 8pt;
margin-bottom: 2pt;
border-bottom: 1pt dotted #aaa;
}
.gram-recipe .kit-mass {
font-weight: 700;
color: var(--black);
}
.gram-recipe .kit-orig {
font-size: 7pt;
font-weight: 400;
}
.gram-recipe .mixed-units-badge {
font-size: 6.5pt;
text-transform: uppercase;
color: var(--grey);
border: 0.75pt solid var(--light-grey);
border-radius: 2pt;
padding: 0 3pt;
}
/* A composite: the parts used, under the item you buy. */
.gram-recipe .kit-usage-list {
margin: 1pt 0 0;
padding-left: 14pt;
}
.gram-recipe .kit-list li.kit-usage {
display: flex;
align-items: baseline;
gap: 3pt;
margin-bottom: 1pt;
font-size: 8pt;
color: var(--grey);
}
.gram-recipe .kit-usage-qty {
display: flex;
gap: 3pt;
margin-left: auto;
white-space: nowrap;
font-family: var(--gram-font-mono);
font-size: 7.5pt;
}
/* The ingredients of one section, above its steps. */
.gram-recipe .section-ingredients {
border: 0.75pt solid var(--light-grey);
border-radius: 2pt;
padding: 5pt 9pt 3pt;
margin: 6pt 0 10pt;
}
/* ─── Sections: header, badges ─────────────────────────────────────────── */
.gram-recipe .instructions section {
margin-bottom: 12pt;
}
.gram-recipe h3.section-header {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 5pt;
font-family: inherit;
font-size: 12pt;
font-weight: 800;
margin: 14pt 0 6pt;
padding-bottom: 2pt;
border-bottom: 1.5pt solid var(--black);
page-break-after: avoid;
}
.gram-recipe .section-meta-badge,
.gram-recipe .section-declaration-badge {
display: inline-flex;
align-items: center;
gap: 3pt;
font-size: 7pt;
font-weight: 500;
line-height: 1.5;
padding: 0 4pt;
border: 0.75pt solid var(--light-grey);
border-radius: 2pt;
color: var(--grey);
}
/* On screen, the meta badges are in mono, what a section declares in the
text's sans. */
.gram-recipe .section-meta-badge {
font-family: var(--gram-font-mono);
}
.gram-recipe .section-meta-retroplanning {
border-color: var(--black);
color: var(--black);
}
.gram-recipe .section-meta-module,
.gram-recipe .section-declaration-badge {
margin-left: auto;
}
.gram-recipe .section-declaration-badge {
font-weight: 700;
border-color: var(--black);
color: var(--black);
}
.gram-recipe .section-declaration-badge.has-module {
padding: 0;
gap: 0;
}
.gram-recipe .section-module-source,
.gram-recipe .section-decl-target {
display: inline-flex;
align-items: center;
gap: 3pt;
padding: 0 4pt;
}
.gram-recipe .section-module-source {
font-weight: 500;
color: var(--grey);
border-right: 0.75pt solid var(--light-grey);
}
/* ─── Steps ────────────────────────────────────────────────────────────── */
.gram-recipe ol.steps {
counter-reset: gram-step;
margin: 8pt 0 0;
padding: 0;
}
.gram-recipe .steps li {
position: relative;
counter-increment: gram-step;
padding: 0 0 0 20pt;
margin-bottom: 7pt;
line-height: 1.7;
break-inside: avoid;
page-break-inside: avoid;
}
/* The number, in a black circle. */
.gram-recipe .steps li::before {
content: counter(gram-step);
position: absolute;
left: 0;
top: 1.5pt;
width: 13pt;
height: 13pt;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
background: var(--black);
color: #fff;
font-family: var(--gram-font-mono);
font-size: 7pt;
font-weight: 700;
line-height: 1;
-webkit-print-color-adjust: exact;
print-color-adjust: exact;
}
/* A comment alone on its line: an aside, not a step, with no number. */
.gram-recipe .steps li.step-comment {
counter-increment: none;
display: flex;
align-items: flex-start;
gap: 5pt;
margin: 6pt 0 9pt;
padding: 3pt 7pt;
border: 0.75pt solid var(--light-grey);
border-radius: 3pt;
font-size: 8.5pt;
line-height: 1.45;
}
.gram-recipe .steps li.step-comment::before {
display: none;
}
.gram-recipe .step-comment .comment-icon {
color: var(--grey);
}
/* What a step makes, on its own line under the step's text: "↳ dough". */
.gram-recipe .step-result {
display: block;
width: fit-content;
margin-top: 3pt;
padding-top: 1pt;
border-top: 0.75pt dashed var(--light-grey);
font-size: 8pt;
font-weight: 600;
line-height: 1.5;
color: var(--grey);
}
.gram-recipe .step-result-item {
color: var(--black);
}
/* ─── The elements of a step ───────────────────────────────────────────── */
/* In ink, like a cookbook: what goes in is bold, the tool a little lighter,
a temperature outlined, a timer filled. */
.gram-recipe .action {
display: inline-block;
margin-right: 3pt;
padding: 0 3pt;
border: 0.75pt solid var(--black);
border-radius: 2pt;
background: #f2f2f2;
-webkit-print-color-adjust: exact;
print-color-adjust: exact;
font-family: var(--gram-font-mono);
font-size: 7pt;
font-weight: 700;
letter-spacing: 0;
text-transform: uppercase;
line-height: 1.5;
vertical-align: 1pt;
}
.gram-recipe .steps .ingredient {
font-weight: 700;
}
.gram-recipe .steps .cookware {
font-weight: 600;
}
.gram-recipe .reference,
.gram-recipe .declaration {
font-weight: 600;
font-style: normal;
font-size: inherit;
text-decoration: none;
}
.gram-recipe .steps .reference[data-ref-id] {
border-bottom: 0.75pt dotted var(--grey);
}
.gram-recipe .timer,
.gram-recipe .temp {
display: inline-flex;
align-items: center;
gap: 2pt;
margin: 0 1pt;
padding: 0 2.5pt;
border: 1.25pt solid var(--black);
border-radius: 2pt;
font-family: var(--gram-font-mono);
font-size: 8pt;
font-weight: 700;
letter-spacing: 0;
line-height: 1.5;
white-space: nowrap;
}
.gram-recipe .temp {
background: #fff;
color: var(--black);
}
.gram-recipe .timer {
background: var(--black);
color: #fff;
-webkit-print-color-adjust: exact;
print-color-adjust: exact;
}
.gram-recipe .quantity {
font-family: var(--gram-font-mono);
font-size: 0.85em;
font-weight: 600;
padding: 0 4pt;
border: 0.75pt solid var(--light-grey);
border-radius: 10pt;
}
.gram-recipe .step-quantity {
color: var(--grey);
white-space: nowrap;
font-size: 8pt;
font-weight: 500;
}
.gram-recipe .ingredient-alt-badge {
color: var(--grey);
font-size: 0.85em;
}
.gram-recipe .mass-badge {
font-family: var(--gram-font-mono);
font-size: 0.85em;
padding: 0 3pt;
border: 0.75pt solid var(--light-grey);
border-radius: 2pt;
color: var(--grey);
}
/* Plain grey figures: on paper there is no tooltip to point at. */
.gram-recipe .bakers-badge {
font-family: var(--gram-font-mono);
font-size: 0.85em;
color: var(--grey);
}
.gram-recipe .gross-mass,
.gram-recipe .prep,
.gram-recipe .composite-parent,
.gram-recipe .optional {
color: var(--grey);
font-style: italic;
}
.gram-recipe .optional {
font-size: 0.85em;
margin-left: 0.25em;
}
/* ─── Footnotes: the comments at the end of a line, and their notes ────── */
.gram-recipe .footnote-ref {
font-size: 0.75em;
line-height: 0;
vertical-align: super;
margin-left: 1pt;
}
.gram-recipe .footnote-ref a {
color: var(--grey);
text-decoration: none;
font-weight: 600;
}
.gram-recipe .recipe-notes {
margin-top: 18pt;
padding-top: 8pt;
border-top: 0.75pt solid var(--light-grey);
page-break-inside: avoid;
}
.gram-recipe .recipe-notes h3 {
display: block;
font-family: inherit;
font-size: 10.5pt;
font-weight: 700;
margin: 0 0 6pt;
border: none;
}
.gram-recipe .recipe-notes ol {
list-style: decimal;
padding-left: 16pt;
font-size: 8.5pt;
color: var(--dark-grey);
}
.gram-recipe .recipe-notes li {
margin-bottom: 3pt;
}
/* ─── Nutrition table ──────────────────────────────────────────────────── */
/* A European label set like an American one: heavy rules between header,
energy and nutrients, the energy in large type. Always shown on paper. */
.gram-recipe .nutrition-panel {
margin-top: 20pt;
max-width: 340pt;
padding: 6pt 9pt;
border: 0.75pt solid var(--black);
border-radius: 1.5pt;
page-break-inside: avoid;
}
.gram-recipe .nut-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 6pt;
}
.gram-recipe .nut-title {
display: block;
font-family: inherit;
font-size: 13pt;
font-weight: 800;
line-height: 1.15;
margin: 0;
border: none;
}
.gram-recipe .est-badge {
font-size: 6.5pt;
letter-spacing: 0.04em;
text-transform: uppercase;
font-weight: 700;
padding: 0.5pt 4pt;
border: 0.75pt solid var(--light-grey);
border-radius: 2pt;
color: var(--grey);
}
.gram-recipe .nut-subtitle {
margin: 1pt 0 0;
font-size: 7.5pt;
color: var(--grey);
}
.gram-recipe .nut-warnings {
margin: 5pt 0 0;
padding-left: 6pt;
border-left: 2pt solid var(--black);
font-size: 8pt;
color: var(--dark-grey);
}
.gram-recipe .nut-table-scroll {
margin-top: 4pt;
}
.gram-recipe .nut-table {
width: 100%;
border-collapse: collapse;
border-top: 6pt solid var(--black);
border-bottom: 6pt solid var(--black);
font-size: 8.5pt;
font-variant-numeric: tabular-nums;
}
.gram-recipe .nut-table th,
.gram-recipe .nut-table td {
padding: 2pt 0 2pt 9pt;
border-bottom: 0.5pt solid #bbb;
text-align: right;
white-space: nowrap;
vertical-align: top;
}
.gram-recipe .nut-table th:first-child {
padding-left: 0;
text-align: left;
white-space: normal;
}
.gram-recipe .nut-table thead th {
border-bottom: 1.5pt solid var(--black);
font-size: 7.5pt;
font-weight: 700;
vertical-align: bottom;
}
.gram-recipe .nut-table tbody th {
font-weight: 700;
}
.gram-recipe .nut-table tr.nut-energy > * {
padding-top: 3pt;
padding-bottom: 3pt;
border-bottom: 3.5pt solid var(--black);
}
.gram-recipe .nut-table tr.nut-energy th {
font-size: 1.05em;
font-weight: 800;
}
.gram-recipe .nut-kcal {
display: block;
font-size: 1.3em;
font-weight: 800;
line-height: 1.1;
}
.gram-recipe .nut-kj {
display: block;
font-size: 0.8em;
color: var(--grey);
}
.gram-recipe .nut-table tr.nut-energy .nut-ri {
font-size: 1.1em;
font-weight: 800;
}
.gram-recipe .nut-table tr.is-nested th {
padding-left: 12pt;
font-weight: 400;
}
.gram-recipe .nut-table tbody tr:last-child > * {
border-bottom: none;
}
.gram-recipe .nut-table .nut-col-ri,
.gram-recipe .nut-table .nut-ri {
width: 4em;
font-weight: 700;
}
.gram-recipe .nut-sr {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
}
.gram-recipe .nut-footer {
margin-top: 4pt;
font-size: 7pt;
color: var(--grey);
}
.gram-recipe .nut-total {
font-weight: 700;
color: var(--black);
}
</style>
</head>
<body>
<article class="gram-recipe">
<h1 class="recipe-title">Crêpes</h1>
<div class="recipe-timings-bar">
<span class="timing-pill total">
<svg class="gicon gicon-clock" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z"/></svg> <span class="timing-text">45 min</span>
</span>
<span class="timing-pill">
<svg class="gicon gicon-fire" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M183.89,153.34a57.6,57.6,0,0,1-46.56,46.55A8.75,8.75,0,0,1,136,200a8,8,0,0,1-1.32-15.89c16.57-2.79,30.63-16.85,33.44-33.45a8,8,0,0,1,15.78,2.68ZM216,144a88,88,0,0,1-176,0c0-27.92,11-56.47,32.66-84.85a8,8,0,0,1,11.93-.89l24.12,23.41,22-60.41a8,8,0,0,1,12.63-3.41C165.21,36,216,84.55,216,144Zm-16,0c0-46.09-35.79-85.92-58.21-106.33L119.52,98.74a8,8,0,0,1-13.09,3L80.06,76.16C64.09,99.21,56,122,56,144a72,72,0,0,0,144,0Z"/></svg> <span class="timing-text">37 min active time</span>
</span>
<span class="timing-pill">
<svg class="gicon gicon-knife" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M231.87,32.13a27.84,27.84,0,0,0-39.32,0L18.34,206.4a8,8,0,0,0,3.86,13.45A160.67,160.67,0,0,0,58.4,224c32.95,0,65.92-10.2,96.95-30.23,31.76-20.5,50.19-43.82,51-44.81a8,8,0,0,0-.64-10.59L185.32,118l46.55-46.56A27.85,27.85,0,0,0,231.87,32.13ZM189.1,144.44a220.41,220.41,0,0,1-42.86,36.16c-34.43,22.1-69.94,30.92-105.77,26.3L146,101.33Zm31.46-84.3L174,106.7,157.32,90l46.55-46.56a11.8,11.8,0,0,1,16.69,16.69Z"/></svg> <span class="timing-text"><span class="est">~</span>8 min prep time</span>
</span>
</div>
<div class="recipe-hero-bar">
<div class="hero-item hero-portions">
<svg class="gicon gicon-users" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M117.25,157.92a60,60,0,1,0-66.5,0A95.83,95.83,0,0,0,3.53,195.63a8,8,0,1,0,13.4,8.74,80,80,0,0,1,134.14,0,8,8,0,0,0,13.4-8.74A95.83,95.83,0,0,0,117.25,157.92ZM40,108a44,44,0,1,1,44,44A44.05,44.05,0,0,1,40,108Zm210.14,98.7a8,8,0,0,1-11.07-2.33A79.83,79.83,0,0,0,172,168a8,8,0,0,1,0-16,44,44,0,1,0-16.34-84.87,8,8,0,1,1-5.94-14.85,60,60,0,0,1,55.53,105.64,95.83,95.83,0,0,1,47.22,37.71A8,8,0,0,1,250.14,206.7Z"/></svg>
<span class="scale-val"><strong>4</strong> portions</span>
</div>
</div>
<details class="prep-accordion shopping-list" open>
<summary class="prep-summary">
<span class="prep-summary-title">Shopping List &amp; Cookware</span>
</summary>
<div class="prep-body">
<div class="mep-group">
<div class="mep-group-header">
<h5 class="mep-group-title">Shopping List</h5>
</div>
<ul class="kit-list">
<li class="kit-ingredient"><label><input type="checkbox"><span><span class="kit-name-col"><span class="kit-name ingredient" data-name="flour">flour</span></span><span class="kit-qty"><span class="kit-mass">200 g</span></span></span></label></li>
<li class="kit-ingredient"><label><input type="checkbox"><span><span class="kit-name-col"><span class="kit-name ingredient" data-name="sugar">sugar</span></span><span class="kit-qty"><span class="kit-mass">1 tbsp</span></span></span></label></li>
<li class="kit-ingredient"><label><input type="checkbox"><span><span class="kit-name-col"><span class="kit-name ingredient" data-name="salt">salt</span></span></span></label></li>
<li class="kit-ingredient"><label><input type="checkbox"><span><span class="kit-name-col"><span class="alt-group"><span class="ingredient" data-name="egg">egg <span class="quantity">2</span></span> <span class="keyword">or</span> <span class="ingredient" data-name="egg substitute">egg substitute <span class="quantity">2</span></span></span></span></span></label></li>
</ul>
</div>
<div class="mep-group">
<h5 class="mep-group-title">Cookware</h5>
<ul class="kit-list">
<li class="kit-cookware"><label><input type="checkbox"><span><span class="kit-name-col"><span class="kit-name cookware" data-name="large-bowl">large bowl</span></span></span></label></li>
<li class="kit-cookware"><label><input type="checkbox"><span><span class="kit-name-col"><span class="kit-name cookware" data-name="pan">pan</span></span></span></label></li>
</ul>
</div>
</div>
</details>
<div class="instructions">
<section>
<h3 class="section-header" data-declares="batter">Batter <span class="section-declaration-badge" data-declares="batter"><svg class="gicon gicon-arrow-right" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z"/></svg> batter</span></h3>
<div class="section-ingredients">
<ul class="kit-list">
<li class="kit-ingredient"><label><input type="checkbox"><span><span class="kit-name-col"><span class="kit-name ingredient" data-name="flour">flour</span></span><span class="kit-qty"><span class="kit-mass">200 g</span></span></span></label></li>
<li class="kit-ingredient"><label><input type="checkbox"><span><span class="kit-name-col"><span class="kit-name ingredient" data-name="sugar">sugar</span></span><span class="kit-qty"><span class="kit-mass">1 tbsp</span></span></span></label></li>
<li class="kit-ingredient"><label><input type="checkbox"><span><span class="kit-name-col"><span class="kit-name ingredient" data-name="salt">salt</span></span></span></label></li>
<li class="kit-ingredient"><label><input type="checkbox"><span><span class="kit-name-col"><span class="alt-group"><span class="ingredient" data-name="egg">egg <span class="quantity">2</span></span> <span class="keyword">or</span> <span class="ingredient" data-name="egg substitute">egg substitute <span class="quantity">2</span></span></span></span></span></label></li>
</ul>
</div>
<ol class="steps">
<li value="1">
In a <span class="gram-nobr"><span class="cookware" data-name="large bowl">large bowl</span>,</span> mix <span class="gram-nobr"><span class="ingredient" data-name="flour">flour <span class="step-quantity">(200 g)</span></span>,</span> <span class="ingredient" data-name="sugar">sugar <span class="step-quantity">(1 tbsp)</span></span> and a pinch of <span class="gram-nobr"><span class="ingredient" data-name="salt">salt</span>.</span>
</li>
<li value="2">
Add <span class="ingredient" data-name="egg">egg <span class="step-quantity">(2)</span></span> <span class="ingredient-alt-badge">(alt)</span> and whisk for <span class="gram-nobr"><span class="timer" data-value="2" data-unit="min" data-minutes="2"><svg class="gicon gicon-timer" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M128,40a96,96,0,1,0,96,96A96.11,96.11,0,0,0,128,40Zm0,176a80,80,0,1,1,80-80A80.09,80.09,0,0,1,128,216ZM173.66,90.34a8,8,0,0,1,0,11.32l-40,40a8,8,0,0,1-11.32-11.32l40-40A8,8,0,0,1,173.66,90.34ZM96,16a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H104A8,8,0,0,1,96,16Z"/></svg> <span class="timer-text">2 min</span></span>.</span>
</li>
<li class="step-comment">
<span class="comment-icon"><svg class="gicon gicon-info" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z"/></svg></span>
<span class="comment-text">Rest the batter before cooking</span>
</li>
<li value="3">
Let rest at <span class="temp" data-semantic="fridge"><svg class="gicon gicon-thermometer" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M212,56a28,28,0,1,0,28,28A28,28,0,0,0,212,56Zm0,40a12,12,0,1,1,12-12A12,12,0,0,1,212,96Zm-84,57V88a8,8,0,0,0-16,0v65a32,32,0,1,0,16,0Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,120,200Zm40-66V48a40,40,0,0,0-80,0v86a64,64,0,1,0,80,0Zm-40,98a48,48,0,0,1-27.42-87.4A8,8,0,0,0,96,138V48a24,24,0,0,1,48,0v90a8,8,0,0,0,3.42,6.56A48,48,0,0,1,120,232Z"/></svg> fridge</span> for <span class="gram-nobr"><span class="timer" data-value="30" data-unit="min" data-minutes="30"><svg class="gicon gicon-timer" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M128,40a96,96,0,1,0,96,96A96.11,96.11,0,0,0,128,40Zm0,176a80,80,0,1,1,80-80A80.09,80.09,0,0,1,128,216ZM173.66,90.34a8,8,0,0,1,0,11.32l-40,40a8,8,0,0,1-11.32-11.32l40-40A8,8,0,0,1,173.66,90.34ZM96,16a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H104A8,8,0,0,1,96,16Z"/></svg> <span class="timer-text">30 min</span></span>.</span>
</li>
</ol>
</section>
<section>
<h3 class="section-header">Cooking</h3>
<div class="section-ingredients">
<ul class="kit-list">
<li class="kit-reference"><label><input type="checkbox"><span><span class="kit-name-col"><span class="kit-name reference" data-name="batter" data-ref-id="batter">batter</span></span></span></label></li>
</ul>
</div>
<ol class="steps">
<li value="1">
Heat a <span class="cookware" data-name="pan">pan</span> on <span class="gram-nobr"><span class="temp" data-semantic="medium heat"><svg class="gicon gicon-thermometer" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M212,56a28,28,0,1,0,28,28A28,28,0,0,0,212,56Zm0,40a12,12,0,1,1,12-12A12,12,0,0,1,212,96Zm-84,57V88a8,8,0,0,0-16,0v65a32,32,0,1,0,16,0Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,120,200Zm40-66V48a40,40,0,0,0-80,0v86a64,64,0,1,0,80,0Zm-40,98a48,48,0,0,1-27.42-87.4A8,8,0,0,0,96,138V48a24,24,0,0,1,48,0v90a8,8,0,0,0,3.42,6.56A48,48,0,0,1,120,232Z"/></svg> medium heat</span>.</span>
</li>
<li value="2">
Pour <span class="reference" data-ref-id="batter"><svg class="gicon gicon-caret-circle-right" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm29.66-93.66a8,8,0,0,1,0,11.32l-40,40a8,8,0,0,1-11.32-11.32L140.69,128,106.34,93.66a8,8,0,0,1,11.32-11.32Z"/></svg> batter</span> and cook for active <span class="gram-nobr"><span class="timer" data-value="1" data-unit="min" data-minutes="1"><svg class="gicon gicon-timer" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M128,40a96,96,0,1,0,96,96A96.11,96.11,0,0,0,128,40Zm0,176a80,80,0,1,1,80-80A80.09,80.09,0,0,1,128,216ZM173.66,90.34a8,8,0,0,1,0,11.32l-40,40a8,8,0,0,1-11.32-11.32l40-40A8,8,0,0,1,173.66,90.34ZM96,16a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H104A8,8,0,0,1,96,16Z"/></svg> <span class="timer-text">1 min</span></span>.</span>
</li>
</ol>
</section>
</div>
</article>
</body>
</html>"
`;