aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaroslav <contact@yaroslavps.com>2020-03-17 16:10:26 +0300
committerYaroslav <contact@yaroslavps.com>2020-03-17 16:10:26 +0300
commitd66d38aa50df44533ea8ba8347a9f4a8713eebf0 (patch)
tree4276acf7701619a1fdf6365a1a066563b73759a6
parenta9e50293dceb237d665ba56903d414f5302ca4ff (diff)
downloadyaroslavps.com-d66d38aa50df44533ea8ba8347a9f4a8713eebf0.tar.gz
yaroslavps.com-d66d38aa50df44533ea8ba8347a9f4a8713eebf0.zip
image sizes correction; paginator style
-rw-r--r--sass/css/yaroslavps.scss28
-rw-r--r--templates/weblog.html8
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 %}
<div class="paginator">
{% if paginator.previous %}
- <a href="{{ paginator.first }}">First</a>
- <a href="{{ paginator.previous }}">Previous page: {{ paginator.current_index - 1 }}</a>
+ <a href="{{ paginator.first }}"><span class="icon"></span> First</a>
+ <a href="{{ paginator.previous }}"><span class="icon"></span> Page {{ paginator.current_index - 1 }}</a>
{% endif %}
{% if paginator.next %}
- <a href="{{ paginator.next }}">Next page: {{ paginator.current_index + 1 }}</a>
- <a href="{{ paginator.last }}">Last</a>
+ <a href="{{ paginator.next }}">Page {{ paginator.current_index + 1 }} <span class="icon"></span></a>
+ <a href="{{ paginator.last }}">Last <span class="icon"></span></a>
{% endif %}
</div>
{% endif %}