From 5b27952b34fa47652a6cf51e2272d8ee18b5c151 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Sat, 4 Dec 2021 09:48:55 -0800 Subject: [PATCH 1/6] Use html details instead of javascript menus --- bookwyrm/static/css/bookwyrm.css | 4 ++++ bookwyrm/templates/components/dropdown.html | 17 ++++++----------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/bookwyrm/static/css/bookwyrm.css b/bookwyrm/static/css/bookwyrm.css index 0d280fd5..3d9db301 100644 --- a/bookwyrm/static/css/bookwyrm.css +++ b/bookwyrm/static/css/bookwyrm.css @@ -115,6 +115,10 @@ input[type=file]::file-selector-button:hover { color: #363636; } +details[open] .dropdown-menu { + display: block !important; +} + /** Shelving ******************************************************************************/ diff --git a/bookwyrm/templates/components/dropdown.html b/bookwyrm/templates/components/dropdown.html index 98291bc9..b3710271 100644 --- a/bookwyrm/templates/components/dropdown.html +++ b/bookwyrm/templates/components/dropdown.html @@ -2,25 +2,20 @@ {% load utilities %} {% with 0|uuid as uuid %} -