From d66d38aa50df44533ea8ba8347a9f4a8713eebf0 Mon Sep 17 00:00:00 2001 From: Yaroslav Date: Tue, 17 Mar 2020 16:10:26 +0300 Subject: image sizes correction; paginator style --- sass/css/yaroslavps.scss | 28 ++++++++++++++++++++++++++-- templates/weblog.html | 8 ++++---- 2 files changed, 30 insertions(+), 6 deletions(-) diff --git a/sass/css/yaroslavps.scss b/sass/css/yaroslavps.scss index bd231e5..c0b903a 100644 --- a/sass/css/yaroslavps.scss +++ b/sass/css/yaroslavps.scss @@ -78,8 +78,6 @@ code { span.icon { font-family: $font_mono; - font-size: 2em; - margin: auto 0.5em; } .publish-date { @@ -120,6 +118,11 @@ h2 > span.publish-date { padding: 1em; } +.sidebar-container span.icon { + font-size: 2em; + margin: auto 0.5em; +} + .sticky-wrapper { position: sticky; top: 1em; @@ -132,3 +135,24 @@ h2 > span.publish-date { .post-container { padding: 2em; } + +.post-container img { + max-width: 100%; +} + +.paginator { + padding: 2em; + text-align: center; +} + +.paginator a { + display: inline-block; + padding: 0.5em; + background-color: $cyan; + color: $bg; +} + +.paginator a:hover { + background-color: $dark_cyan; + color: $white; +} diff --git a/templates/weblog.html b/templates/weblog.html index 88abf61..7a6038b 100644 --- a/templates/weblog.html +++ b/templates/weblog.html @@ -17,12 +17,12 @@ {% if paginator.number_pagers > 1 %}
{% if paginator.previous %} - First - Previous page: {{ paginator.current_index - 1 }} + First + Page {{ paginator.current_index - 1 }} {% endif %} {% if paginator.next %} - Next page: {{ paginator.current_index + 1 }} - Last + Page {{ paginator.current_index + 1 }} + Last {% endif %}
{% endif %} -- cgit v1.2.3