logo

Grimgrains

[mirror] Plant-based cooking website <https://grimgrains.com/>
commit: 257301378fe4d8a59d56b66a845af2d9d2444623
parent 666fd298a8248d6c7f6b2580643189419be666d3
Author: Devine Lu Linvega <aliceffekt@gmail.com>
Date:   Wed, 14 Mar 2018 20:15:24 +1300

Added coffee

Diffstat:

Mlinks/main.css2+-
Mscripts/database/ingredients.js1+
Mscripts/templates/home.js3+++
3 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/links/main.css b/links/main.css @@ -47,7 +47,7 @@ h1,h2,h3,h4 { font-weight: normal; font-family: 'alte_haas_grotesk_bold'; margin #view #core #content list.ingredients ln.ingredient { width: 100px;margin-left:-20px;min-height: 210px;display: inline-block;text-align: center;vertical-align: top;border: 2px dashed transparent;border-radius: 10px; } #view #core #content list.ingredients ln.ingredient:hover { border-color: black; cursor: pointer; background:white; z-index:900; position: relative; } #view #core #content list.ingredients ln.ingredient:hover t.name { text-decoration: underline; } -#view #core #content list.ingredients ln.ingredient.missing t.name { color:red; } +#view #core #content list.ingredients ln.ingredient.missing t.name { font-style: italic } #view #core #content list.ingredients ln.ingredient img { max-width: 100% } #view #core #content list.ingredients ln.ingredient t.name { display: block; font-family: 'alte_haas_grotesk_bold'; font-size:14px; margin-bottom: 5px;padding:0px 10px } #view #core #content list.ingredients ln.ingredient t.quantity { display: block; font-size:12px; } diff --git a/scripts/database/ingredients.js b/scripts/database/ingredients.js @@ -507,6 +507,7 @@ Fenugreek ~ WHOLEGRAINS +Whole wheat flour Buckwheat Details : [#875A2C noodles flour cookies pancakes] Missing. Buckwheat noodles diff --git a/scripts/templates/home.js b/scripts/templates/home.js @@ -7,6 +7,9 @@ function HomeTemplate(id,rect) this.answer = function(q) { var ingredients = find_ingredients(q.tables.recipes) + + ingredients['coffee'] = 1 + var sorted_ingredients = sort_ingredients(ingredients); return {