Update styles

This commit is contained in:
Nicholas Jitkoff 2022-08-11 08:41:45 -07:00
parent 7f3dc06176
commit 22937ea02b
2 changed files with 7 additions and 2 deletions

View file

@ -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;

View file

@ -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);
}