From 3cb91098e6b9ceacbcb51f3f3588f00360524680 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Sat, 3 Apr 2021 11:54:15 -0700 Subject: [PATCH 1/3] Valid html solution to disabling pagination links --- bookwyrm/static/css/format.css | 11 +++++++++++ bookwyrm/templates/snippets/pagination.html | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/bookwyrm/static/css/format.css b/bookwyrm/static/css/format.css index e3ae1ce79..522c23f7d 100644 --- a/bookwyrm/static/css/format.css +++ b/bookwyrm/static/css/format.css @@ -25,6 +25,17 @@ html { min-width: 75% !important; } + +/* --- "disabled" for non-buttons --- */ +.is-disabled { + background-color: #dbdbdb; + border-color: #dbdbdb; + box-shadow: none; + color: #7a7a7a; + opacity: .5; + cursor: not-allowed; +} + /* --- SHELVING --- */ /** @todo Replace icons with SVG symbols. diff --git a/bookwyrm/templates/snippets/pagination.html b/bookwyrm/templates/snippets/pagination.html index 252be29e3..a11bbbb4f 100644 --- a/bookwyrm/templates/snippets/pagination.html +++ b/bookwyrm/templates/snippets/pagination.html @@ -1,11 +1,11 @@ {% load i18n %}