diff --git a/_includes/recipes.html b/_includes/recipes.html index 048d715..054772a 100644 --- a/_includes/recipes.html +++ b/_includes/recipes.html @@ -1,5 +1,18 @@ - + diff --git a/index.html b/index.html index 649c795..3640508 100644 --- a/index.html +++ b/index.html @@ -2,4 +2,6 @@ title: Home layout: default --- +

Home

+

Currently tracking {{ site.recipes.size }} recipes and {{ site.subrecipes.size }} subrecipes.

{% include recipes.html %} diff --git a/style.css b/style.css index c241b5e..a669de0 100644 --- a/style.css +++ b/style.css @@ -78,7 +78,7 @@ a { color: turquoise; text-decoration: none; } -a:hover { +a:not(.recipe-listing):hover { text-decoration: underline; } @@ -90,6 +90,44 @@ ul, ol { padding-left: 10px; } +#recipes { + display: flex; + flex-flow: row wrap; +} + +.recipe-listing { + display: block; + margin: 10px; + padding: 5px; + border-radius: 10px; + background: linear-gradient(to right, turquoise 5px, #eee 5px 100%); + max-width: 600px; + flex: 1 0 300px; +} +a.recipe-listing { + color: black; +} + +.recipe-listing h2 { + background: none; +} + +.excerpt { + color: grey; + position: relative; + margin-bottom: 0; +} +.excerpt::after { + top: 0; + left: 0; + right: 0; + bottom: 0; + content: ""; + position: absolute; + font-size: 1em; + background: linear-gradient(to top, #eee 1em, transparent); +} + footer { text-align: center; background: #333;