From 97e752cc12856e3c625a895b663f8137d532880a Mon Sep 17 00:00:00 2001 From: Adam Kelly Date: Thu, 9 Apr 2020 11:23:08 +0100 Subject: [PATCH] Disable button for current shelf. --- fedireads/static/format.css | 8 ++++++++ fedireads/templates/snippets/shelve_button.html | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/fedireads/static/format.css b/fedireads/static/format.css index 0db8d49f0..b57f6f6a2 100644 --- a/fedireads/static/format.css +++ b/fedireads/static/format.css @@ -754,6 +754,14 @@ button.dropdown-button { border: none; } +.dropdown-content button[disabled] { + color: #aaa; +} + +.dropdown-content button[disabled]:hover { + background-color: #eee; +} + .dropdown-content button:hover { background-color: #ddd; } diff --git a/fedireads/templates/snippets/shelve_button.html b/fedireads/templates/snippets/shelve_button.html index 80d76e9f4..db40abc50 100644 --- a/fedireads/templates/snippets/shelve_button.html +++ b/fedireads/templates/snippets/shelve_button.html @@ -13,7 +13,7 @@ {% csrf_token %} {% for shelf in request.user.shelf_set.all %} - + {% endfor %}