From 22937ea02bc4392dcfedce992728bc713a3cab6c Mon Sep 17 00:00:00 2001 From: Nicholas Jitkoff Date: Thu, 11 Aug 2022 08:41:45 -0700 Subject: [PATCH] Update styles --- docs/render/recipe.css | 6 ++++++ docs/render/recipe.js | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/render/recipe.css b/docs/render/recipe.css index 7a6bba1..dd93a43 100644 --- a/docs/render/recipe.css +++ b/docs/render/recipe.css @@ -321,6 +321,12 @@ li:hover .noun { /* margin-top: -0.7em; */ } +.instructions h3 { + font-weight: 500; + margin-top: 1em; + margin-bottom: 0.5em; +} + .instructions.numbered li { padding-left: 3rem; margin-left: 0; diff --git a/docs/render/recipe.js b/docs/render/recipe.js index 193c642..f73aa24 100644 --- a/docs/render/recipe.js +++ b/docs/render/recipe.js @@ -24,7 +24,7 @@ let FRACTION_MAP = { } let ignoredTerms = [ - "not", "sprig", "sprigs", "room", "temperature", "still", "see", "notes", "with", "beat", "together", "crust", "very", "cold", "hot", "top", "warm", "one", "note", "teaspoon", "teaspoons", "tablespoon", "tablespoons", "cup", "cups", "taste", "more", "melted", "into", "wide", "pound", "pounds", "gram", "grams", "you", "ounce", "ounces", "thinly", "sliced", + "fresh", "out", "not", "sprig", "sprigs", "room", "temperature", "still", "see", "notes", "with", "beat", "together", "crust", "very", "cold", "hot", "top", "warm", "one", "note", "teaspoon", "teaspoons", "tablespoon", "tablespoons", "cup", "cups", "taste", "more", "melted", "into", "wide", "pound", "pounds", "gram", "grams", "you", "ounce", "ounces", "thinly", "sliced", "pan", "cube", "cubes", "finely", "ground", "garnish", "about", "cut", "and", "smashed", "each", "the", "medium", "large", "small", "for", "chopped", "minced", "grated", "box", "softened", "directed", "shredded", "cooked", "from", "frozen", "thawed" ] let emojiMap = { @@ -446,7 +446,6 @@ function render() { if (Array.isArray(instruction)) { let instructions = instruction.map(i => renderInstructions(i, terms)); let className = "step"; - console.log(instructions[0].tagName, instructions[0].tagName=="H3") if (instructions[0].tagName=="H3") className = "step header" return m("ul", {className}, instructions); }