From 817fef3314fa1fc4814822aaac0fd315db9225b0 Mon Sep 17 00:00:00 2001 From: JoBCB Date: Mon, 10 May 2021 11:52:26 +0100 Subject: [PATCH] pagination browse the archive --- static/css/style.css | 81 ++++++++++++++ templates/browsethearchive.html | 185 +++++++++++++++++++++++++++----- 2 files changed, 242 insertions(+), 24 deletions(-) diff --git a/static/css/style.css b/static/css/style.css index 3f7976f..9c1b05b 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -1361,6 +1361,87 @@ div#browsethearchive-pagination, div#zinesindex-pagination, div#selfpublishedind text-align: center; } +/*temptative pagination*/ + +ul.browsethearchive-pagination { + width: 100%; + background-color: #e9e9e9; + border-top: black solid 3px; + height: 139px; + display: flex; + flex-direction: row; + justify-content: center; /*space-around */ + align-content: baseline; + margin-left: auto; + margin-right: auto; + padding-top: 42px; + padding-bottom: 52px; + padding-left: 8vw; + padding-right: 8vw; +} + +ul.browsethearchive-pagination li { + display: flex; + justify-content: center; + width: 36px; + height: 36px; + border-radius: 6px; + list-style: none; + text-align: center; +} + +ul.browsethearchive-pagination li a, ul.browsethearchive-pagination li a:visited { + font-family: Roboto Condensed, sans-serif; + font-size: 14px; + line-height: 48px; + font-weight: bold; + font-stretch: condensed; + text-decoration: none; + color: #000; +} + +ul.browsethearchive-pagination li.prev, ul.browsethearchive-pagination li.next { + display: flex; + flex-direction: row; + font-size: 0; +} + +ul.browsethearchive-pagination li.prev::before { + display: inline-block; + content: ' '; + background-image: url('Icons/icn_arrow_left.svg'); + background-size: 16px 16px; + height: 16px; + width: 16px; + margin: 16px 16px 0px 0px; + cursor: pointer; +} + +ul.browsethearchive-pagination li.next::after { + display: inline-block; + content: ' '; + background-image: url('Icons/icn_arrow_right.svg'); + background-size: 16px 16px; + height: 16px; + width: 16px; + margin: 16px 0px 0px 16px; + cursor: pointer; +} + +ul.browsethearchive-pagination li a.current { + height: 36px; + width: 36px; + border-radius: 6px; + background-color: #1B42D8; + color: white; + display: flex; + align-content: baseline; + margin-top: 6px; + align-items: center; + justify-content: center; + cursor: pointer; +} + /************ BROWSE BY CATEGORY ************/ diff --git a/templates/browsethearchive.html b/templates/browsethearchive.html index d9971a1..07ea014 100644 --- a/templates/browsethearchive.html +++ b/templates/browsethearchive.html @@ -38,37 +38,174 @@ -
-
+ +