diff options
author | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2021-03-27 18:02:21 +0300 |
---|---|---|
committer | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2021-03-27 18:02:21 +0300 |
commit | af988f1885fe1e6841e56460aabf5b7c87858d8f (patch) | |
tree | e40e7eb2577cab16a7b053635376b6bfdc545eb4 | |
parent | e8e80b9df7780e886d106f3e2747a5f64908fba0 (diff) | |
download | yaroslavps.com-af988f1885fe1e6841e56460aabf5b7c87858d8f.tar.gz yaroslavps.com-af988f1885fe1e6841e56460aabf5b7c87858d8f.zip |
Cookbook improvements
CSS improvements and image size optimization.
16 files changed, 26 insertions, 3 deletions
diff --git a/content/food/2020-06-03_country-breakfast-skillet/country-skillet.jpg b/content/food/2020-06-03_country-breakfast-skillet/country-skillet.jpg Binary files differindex b3f5b78..5207f35 100644 --- a/content/food/2020-06-03_country-breakfast-skillet/country-skillet.jpg +++ b/content/food/2020-06-03_country-breakfast-skillet/country-skillet.jpg diff --git a/content/food/2020-06-03_spaghetti-alla-carbonara/carbonara.jpg b/content/food/2020-06-03_spaghetti-alla-carbonara/carbonara.jpg Binary files differindex bc09f49..2a68b7e 100644 --- a/content/food/2020-06-03_spaghetti-alla-carbonara/carbonara.jpg +++ b/content/food/2020-06-03_spaghetti-alla-carbonara/carbonara.jpg diff --git a/content/food/2020-06-06_pan-seared-chicken-filet/chicken.jpg b/content/food/2020-06-06_pan-seared-chicken-filet/chicken.jpg Binary files differindex cecebab..4591c49 100644 --- a/content/food/2020-06-06_pan-seared-chicken-filet/chicken.jpg +++ b/content/food/2020-06-06_pan-seared-chicken-filet/chicken.jpg diff --git a/content/food/2020-06-06_parmesan-potatoes/potatoes.jpg b/content/food/2020-06-06_parmesan-potatoes/potatoes.jpg Binary files differindex 549384b..674afcd 100644 --- a/content/food/2020-06-06_parmesan-potatoes/potatoes.jpg +++ b/content/food/2020-06-06_parmesan-potatoes/potatoes.jpg diff --git a/content/food/2020-06-07_cheesy-meatballs/meatballs.jpg b/content/food/2020-06-07_cheesy-meatballs/meatballs.jpg Binary files differindex d31e24d..449d2ae 100644 --- a/content/food/2020-06-07_cheesy-meatballs/meatballs.jpg +++ b/content/food/2020-06-07_cheesy-meatballs/meatballs.jpg diff --git a/content/food/2020-06-13_creamy-mashed-potatoes/mashedpotatoes.jpg b/content/food/2020-06-13_creamy-mashed-potatoes/mashedpotatoes.jpg Binary files differindex b4c0fbb..0f2f18f 100644 --- a/content/food/2020-06-13_creamy-mashed-potatoes/mashedpotatoes.jpg +++ b/content/food/2020-06-13_creamy-mashed-potatoes/mashedpotatoes.jpg diff --git a/content/food/2020-06-14_merchants-buckwheat/buckwheat.jpg b/content/food/2020-06-14_merchants-buckwheat/buckwheat.jpg Binary files differindex 054fea9..1ec4b40 100644 --- a/content/food/2020-06-14_merchants-buckwheat/buckwheat.jpg +++ b/content/food/2020-06-14_merchants-buckwheat/buckwheat.jpg diff --git a/content/food/2020-06-22_beef-goulash/goulash.jpg b/content/food/2020-06-22_beef-goulash/goulash.jpg Binary files differindex 562b189..7c0a9dd 100644 --- a/content/food/2020-06-22_beef-goulash/goulash.jpg +++ b/content/food/2020-06-22_beef-goulash/goulash.jpg diff --git a/content/food/2020-08-01_fresh-guacamole/guacamole.jpg b/content/food/2020-08-01_fresh-guacamole/guacamole.jpg Binary files differindex 662c157..05780c0 100644 --- a/content/food/2020-08-01_fresh-guacamole/guacamole.jpg +++ b/content/food/2020-08-01_fresh-guacamole/guacamole.jpg diff --git a/content/food/2020-08-02_navy-style-pasta/pasta-navy-style.jpg b/content/food/2020-08-02_navy-style-pasta/pasta-navy-style.jpg Binary files differindex 0b17de7..ff92a14 100644 --- a/content/food/2020-08-02_navy-style-pasta/pasta-navy-style.jpg +++ b/content/food/2020-08-02_navy-style-pasta/pasta-navy-style.jpg diff --git a/content/food/2020-10-02_refried-beans/refried-beans.jpg b/content/food/2020-10-02_refried-beans/refried-beans.jpg Binary files differindex 969d0a4..94a2160 100644 --- a/content/food/2020-10-02_refried-beans/refried-beans.jpg +++ b/content/food/2020-10-02_refried-beans/refried-beans.jpg diff --git a/content/food/2020-11-03_spicy-chili-con-carne/chili-con-carne.jpg b/content/food/2020-11-03_spicy-chili-con-carne/chili-con-carne.jpg Binary files differindex 7b0fb41..74d7d32 100644 --- a/content/food/2020-11-03_spicy-chili-con-carne/chili-con-carne.jpg +++ b/content/food/2020-11-03_spicy-chili-con-carne/chili-con-carne.jpg diff --git a/content/food/2021-01-18_sunday-morning-milkshake/milkshake.jpg b/content/food/2021-01-18_sunday-morning-milkshake/milkshake.jpg Binary files differindex 05020e2..90de18a 100644 --- a/content/food/2021-01-18_sunday-morning-milkshake/milkshake.jpg +++ b/content/food/2021-01-18_sunday-morning-milkshake/milkshake.jpg diff --git a/sass/css/yaroslavps.scss b/sass/css/yaroslavps.scss index e10d200..723d3a5 100644 --- a/sass/css/yaroslavps.scss +++ b/sass/css/yaroslavps.scss @@ -1,9 +1,14 @@ -@import "normalize"; @import "colors"; @import "fonts"; @import "newyear"; +* { + box-sizing: border-box; +} + html, body { + margin: 0; + padding: 0; width: 100%; min-height: 100vh; background-color: $bg1; @@ -194,12 +199,30 @@ h2 > span.publish-date { .post-container { padding: 1em 2em; + overflow: auto; +} + +.post-container.partial img { + float: left; + max-width: 50%; + padding-right: 1em; +} + +.post-container.full img { + display: block; + margin: 0 auto; + max-width: 100%; + max-height: 40vh; } .post-container img { max-width: 100%; } +.post-container.full img:nth-of-type(1) { + max-height: 60vh; +} + .footnote-definition:first-of-type { border-top: 1px solid $gray; padding-top: 1em; diff --git a/templates/page.html b/templates/page.html index 4cf03c7..54b049f 100644 --- a/templates/page.html +++ b/templates/page.html @@ -48,7 +48,7 @@ {% endif %} {% endblock %} {% block content %} - <div class="post-container"> + <div class="post-container full"> {{ page.content | safe }} </div> {% endblock %} diff --git a/templates/weblog.html b/templates/weblog.html index f9889af..6638faf 100644 --- a/templates/weblog.html +++ b/templates/weblog.html @@ -48,7 +48,7 @@ {% block content %} <div class="posts-list"> {% for post in paginator.pages %} - <div class="post-container"> + <div class="post-container partial"> <h2> <a href="{{ post.permalink }}">{{ post.title }}</a> <span class="publish-date">{{ post.date | date }}</span> |