From fe1b9afca1bc5809d6cfd905b0d8706e8beabdc2 Mon Sep 17 00:00:00 2001 From: Emil Miler Date: Mon, 29 Mar 2021 10:51:36 +0200 Subject: [PATCH] Velikost nadpisu a datumu v bloku s receptem --- sass/style.scss | 20 +++++++++++--------- templates/macros.html | 2 +- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/sass/style.scss b/sass/style.scss index bef2d7d..165fc8c 100644 --- a/sass/style.scss +++ b/sass/style.scss @@ -37,7 +37,7 @@ main { margin:0 auto 3em auto; h2 { - font-size:3em; + font-size: 2.5em; text-align:center; } @@ -110,8 +110,6 @@ main { article { position: relative; - display:flex; - flex-direction:column; background:$article-background; border:1px solid $border; border-radius:$article-border-radius; @@ -124,19 +122,23 @@ main { } a { - color:$article-color; + height: 100%; + display: flex; + flex-direction: column; + color: $article-color; } h3 { - margin:.5em .8em; - text-align:center; + margin: 1em .8em .5em .8em; + text-align: center; } .date { - align-self:flex-end; - margin:.5em; + align-self: flex-end; + margin: .8rem; margin-top: auto; - color:$article-date-color; + color: $article-date-color; + font-size: .8em; } &.chilli a::after { diff --git a/templates/macros.html b/templates/macros.html index 2817668..54a41f6 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -23,8 +23,8 @@ {% endif %} {% set_global image_found = 0 %} {% if recipe.title %}

{{ recipe.title }}

{% endif %} + {% if recipe.date %}{{ recipe.date | date(format="%d.%m.%Y") }}{% endif %} - {% if recipe.date %}{{ recipe.date | date(format="%d.%m.%Y") }}{% endif %} {% endmacro print_recipe %}