From c5a7ad38fe21aec38c4bae192467e8b07e3ada03 Mon Sep 17 00:00:00 2001 From: Aadil Ayub Date: Wed, 13 Apr 2022 11:17:02 +0500 Subject: [PATCH] remove box around previous arrow in bottom navigation --- themes/lumbung-theme/layouts/_default/baseof.html | 1 + themes/lumbung-theme/static/css/main.css | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/themes/lumbung-theme/layouts/_default/baseof.html b/themes/lumbung-theme/layouts/_default/baseof.html index a1debd4..ecc2605 100644 --- a/themes/lumbung-theme/layouts/_default/baseof.html +++ b/themes/lumbung-theme/layouts/_default/baseof.html @@ -27,6 +27,7 @@ media.appendChild(iframe); document.querySelector('#thumb-'+ id).remove(); } + document.querySelector('[aria-label="Previous"]').parentElement.classList.add('previous-page-link') diff --git a/themes/lumbung-theme/static/css/main.css b/themes/lumbung-theme/static/css/main.css index 1e38547..8ab2314 100644 --- a/themes/lumbung-theme/static/css/main.css +++ b/themes/lumbung-theme/static/css/main.css @@ -737,7 +737,8 @@ li.page-item.disabled { li.page-item:first-child, li.page-item:last-child, -li.page-item:nth-last-child(2) { +li.page-item:nth-last-child(2), +.previous-page-link { border: none; text-decoration: none; } @@ -747,7 +748,9 @@ li.page-item:first-child::after, li.page-item:last-child::before, li.page-item:last-child::after, li.page-item:nth-last-child(2)::before, -li.page-item:nth-last-child(2)::after { +li.page-item:nth-last-child(2)::after, +.previous-page-link::before, +.previous-page-link::after { display: none; }