From 51f5c9562d523c542a44974a478f147c6000cfe4 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Fri, 8 Apr 2022 13:11:41 -0700 Subject: [PATCH] Uses details for user menu in main navbar --- .../css/bookwyrm/components/_details.scss | 14 ++++ bookwyrm/templates/layout.html | 60 +-------------- bookwyrm/templates/user_menu.html | 73 +++++++++++++++++++ 3 files changed, 89 insertions(+), 58 deletions(-) create mode 100644 bookwyrm/templates/user_menu.html diff --git a/bookwyrm/static/css/bookwyrm/components/_details.scss b/bookwyrm/static/css/bookwyrm/components/_details.scss index 5708c9461..c9a0b33b8 100644 --- a/bookwyrm/static/css/bookwyrm/components/_details.scss +++ b/bookwyrm/static/css/bookwyrm/components/_details.scss @@ -114,3 +114,17 @@ details[open] summary .details-close { padding-bottom: 0.25rem; } } + +/** Navbar details + ******************************************************************************/ + +#navbar-dropdown .navbar-item { + color: $text; + font-size: 0.875rem; + padding: 0.375rem 3rem 0.375rem 1rem; + white-space: nowrap; +} + +#navbar-dropdown .navbar-item:hover { + background-color: $background-secondary; +} diff --git a/bookwyrm/templates/layout.html b/bookwyrm/templates/layout.html index dadf42ab5..6b9e4daa1 100644 --- a/bookwyrm/templates/layout.html +++ b/bookwyrm/templates/layout.html @@ -90,64 +90,8 @@