From 11869dbf93232be8cc6088911050134cd84de5c0 Mon Sep 17 00:00:00 2001 From: Emil Miler Date: Tue, 11 Jan 2022 14:34:08 +0100 Subject: [PATCH] =?UTF-8?q?Vyu=C5=BEit=C3=AD=20ikon=20v=20metadatech=20a?= =?UTF-8?q?=20u=20str=C3=A1nkov=C3=A1n=C3=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sass/_tags.scss | 2 +- sass/style.scss | 27 ++++++++++++++++++++++++--- static/fonts/icons.eot | Bin 1944 -> 2692 bytes static/fonts/icons.svg | 5 +++++ static/fonts/icons.ttf | Bin 1788 -> 2536 bytes static/fonts/icons.woff | Bin 1864 -> 2612 bytes static/{fonts => }/icons.css | 25 ++++++++++++++++++++----- templates/index.html | 2 +- templates/macros.html | 10 +++++----- 9 files changed, 56 insertions(+), 15 deletions(-) rename static/{fonts => }/icons.css (57%) diff --git a/sass/_tags.scss b/sass/_tags.scss index ad40ede..e664672 100644 --- a/sass/_tags.scss +++ b/sass/_tags.scss @@ -1,4 +1,4 @@ -span.tag { +.taglist .tag { margin-right:$tag-margin-right; padding:$tag-padding; background:$tag-background; diff --git a/sass/style.scss b/sass/style.scss index c9fa821..260dbc2 100644 --- a/sass/style.scss +++ b/sass/style.scss @@ -79,14 +79,29 @@ main { .meta { display: flex; - align-items: center; + align-items: flex-end; flex-wrap: wrap; margin-bottom: 3em; - &>.edit { + .edit { margin-left: auto; font-size: 1.2em; } + + .item { + display: flex; + align-items: baseline; + margin-right: 1.5em; + font-size: .9rem; + font-weight: bold; + color: #333; + cursor: default; + + .icon { + margin-right: .3em; + font-size: 1.2em; + } + } } .taglist { @@ -96,7 +111,13 @@ main { } .pagination { - text-align:center; + display: flex; + align-items: center; + justify-content: center; + + .icon { + margin: 0 1em; + } } section { diff --git a/static/fonts/icons.eot b/static/fonts/icons.eot index 85fc640ebbab52e0d7bccb4b2fac45a55db5f269..0d746439167ac87d8724dad08a7197d08099b73d 100644 GIT binary patch delta 1080 zcmah{O=uHA6n-<)Y?|0LCY#-qY;FF!$yTt?G`o#xWe?U%#THUf&}xH5YiVr39#Rw% zi|9cQ%8I`iLGd6cf)@`8K|};mu<@WEA{Mm?=t(c)Hoi@(6hxe1c<+1Py!qannM`xAIu(^Lc0d>U9`;yCuR=x zzU^;Cd>_E^YAl!CA5yLa0Gwx#*T*p6e8gTLevG(dEI(aX2ZTesfH*ZVxi8CIXpZ7h z_W5o3Y+(v~T`-J+GzP+lv-#Z1+5Bb1J5l8D)Z~$AV90>$sm%jp&&}QB=#B!SAQr~J z4FtkfM>SO4UOid8UTdjssu{JWg(WsXhPVhq+aV@3yM9|?xuU|rsbf-x-A_Qr&fkdEcKBP_Nw@s2itQWkDbZ625|27L ze~8#mXulw~VK*TqX`UE@uvqr#K0%nXuF8rc)7+ff<#PM<3^6cnZ$MK~WLc@WT3cFL zT>}0K$e>2~w?;hGOY~$w@_R@mDfNqfE*1&2qX_5ZqQqP*3qs>C6rnj=#Jc)l5%W~j zo3{CartI}>`VOm_8sGXITld^{Y-=8K^zPu7;tkS%La;F|W7*n%cttFOKGu)JjX%5{ bw!tiXAlt}I+D?b)EUjT{0Q|kLj$7mx6@vOR delta 377 zcmZn>ox#sGgPnol58FgGGnRu@+PV`R^6OVKFfi-^;)LYf#DXhZFW+ZiV3Yy!bJ7!w z3xKo$klz8MInr|~)5N}By9DG7^eaGj6lq>`4-12MgW7N BT>t<8 diff --git a/static/fonts/icons.svg b/static/fonts/icons.svg index 516582d..f952856 100644 --- a/static/fonts/icons.svg +++ b/static/fonts/icons.svg @@ -8,7 +8,12 @@ + + + + + \ No newline at end of file diff --git a/static/fonts/icons.ttf b/static/fonts/icons.ttf index fcd9b74e1442396b57ecc1c0719d2c5caa29b33d..9b08dd38f7b5064c150edc6575437b0ef1627f0f 100644 GIT binary patch delta 1094 zcmah|O=uHQ5T5s5yJ_04G5eBD$=2qtNwx*6O|xl4D=Szp6 zu?IoagRBVZMHIYM1TP*G77-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z^VZK$gqDPeee<^>=3v{auBACWdBD5#3v6m@J?l4Y>r-Kf-Q4CF+$*o~t)RF<5I(|K q--R9Bz!lKO{&9Kmg?Ga^EWkT5PVUfdI!PC314jdp|NGl+uTIWQEMQ<@%m9k!fbf;Am+z-1 z7K6mD0QnqHERdd4nFbWQ!@$6-1HxiouU*PWO-x~6ULr7j? zZYof02hj375Wd)yJF_6axCH1M4Y)dHAd8uK)?^;WYTE!HTL1__VvGz5FIiu {% block title %}{{ config.title }}{% endblock title %} - + diff --git a/templates/macros.html b/templates/macros.html index 6b5e729..0ba4667 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -26,9 +26,9 @@ {% endmacro print_recipe %} {% macro pagination() %} - {% if paginator.previous %}« Předchozí stránka |{% endif %} + {% if paginator.previous %}{% endif %} {{ paginator.current_index }} / {{ paginator.number_pagers }} - {% if paginator.next %}| Další stránka »{% endif %} + {% if paginator.next %}{% endif %} {% endmacro pagination %} {% macro subnav() %} @@ -50,9 +50,9 @@ {% endmacro recipe_image %} {% macro recipe_meta() %} - {% if page.extra.portions %}Porce: {{ page.extra.portions }}{% endif %} - {% if page.extra.time %}Doba přípravy: {{ page.extra.time }} min{% endif %} - {% if page.extra.source %}Zdroj: {{ page.extra.source }}{% endif %} + {% if page.extra.portions %}{{ page.extra.portions }}{% endif %} + {% if page.extra.time %}{{ page.extra.time }} min{% endif %} + {% if page.extra.source %}{{ page.extra.source }}{% endif %} {% endmacro recipe_meta %}