1
4
Fork 1

Velikost nadpisu a datumu v bloku s receptem

master
Emil Miler 3 years ago
parent d7c577493c
commit fe1b9afca1

@ -37,7 +37,7 @@ main {
margin:0 auto 3em auto; margin:0 auto 3em auto;
h2 { h2 {
font-size:3em; font-size: 2.5em;
text-align:center; text-align:center;
} }
@ -110,8 +110,6 @@ main {
article { article {
position: relative; position: relative;
display:flex;
flex-direction:column;
background:$article-background; background:$article-background;
border:1px solid $border; border:1px solid $border;
border-radius:$article-border-radius; border-radius:$article-border-radius;
@ -124,19 +122,23 @@ main {
} }
a { a {
color:$article-color; height: 100%;
display: flex;
flex-direction: column;
color: $article-color;
} }
h3 { h3 {
margin:.5em .8em; margin: 1em .8em .5em .8em;
text-align:center; text-align: center;
} }
.date { .date {
align-self:flex-end; align-self: flex-end;
margin:.5em; margin: .8rem;
margin-top: auto; margin-top: auto;
color:$article-date-color; color: $article-date-color;
font-size: .8em;
} }
&.chilli a::after { &.chilli a::after {

@ -23,8 +23,8 @@
{% endif %} {% endif %}
{% set_global image_found = 0 %} {% set_global image_found = 0 %}
{% if recipe.title %}<h3>{{ recipe.title }}</h3>{% endif %} {% if recipe.title %}<h3>{{ recipe.title }}</h3>{% endif %}
{% if recipe.date %}<span class="date">{{ recipe.date | date(format="%d.%m.%Y") }}</span>{% endif %}
</a> </a>
{% if recipe.date %}<span class="date">{{ recipe.date | date(format="%d.%m.%Y") }}</span>{% endif %}
</article> </article>
{% endmacro print_recipe %} {% endmacro print_recipe %}

Loading…
Cancel
Save