diff --git a/fedireads/static/format.css b/fedireads/static/format.css index 9144f5ef9..d8b2511b6 100644 --- a/fedireads/static/format.css +++ b/fedireads/static/format.css @@ -139,7 +139,9 @@ body { .pulldown-container { position: relative; + display: inline; } + .pulldown { display: none; position: absolute; @@ -149,14 +151,62 @@ body { right: 0; box-shadow: 0 5px 10px rgba(0,0,0,0.15); width: max-content; + border: 2px solid #247BA0; + align: left; } + .pulldown-container:hover .pulldown { display: block; } -.pulldown li { + +.pulldown a { + display: block; margin-bottom: 0.5em; } +div.pulldown-button { + background-color: #eee; + border: 2px solid #247BA0; + border-radius: 0.3em; + color: #247BA0; + width: max-content; + white-space: nowrap; +} + +.pulldown-button form { + display: inline; +} + +div.pulldown-button button { + display: inline; + border: none; + border-radius: 0; + background-color: inherit; + color: #247BA0; +} + +ul.pulldown button { + display: block; + text-align: left; + width: 100%; + border: none; + border-radius: 0; + background-color: white; + color: #247BA0; +} + +.pulldown button[disabled] { + color: #aaa; +} + +.pulldown button[disabled]:hover { + background-color: white; +} + +.pulldown button:hover { + background-color: #ddd; +} + /* content area */ .content-container { margin: 1rem; diff --git a/fedireads/templates/snippets/shelve_button.html b/fedireads/templates/snippets/shelve_button.html index 96e410dbe..222dc486a 100644 --- a/fedireads/templates/snippets/shelve_button.html +++ b/fedireads/templates/snippets/shelve_button.html @@ -1,29 +1,24 @@ {% load fr_display %} {% if request.user.is_authenticated %} -{% if not pulldown %} +
{% csrf_token %} - -
- -{% else %} - -
- {% csrf_token %} - - - {% for shelf in request.user.shelf_set.all %} - +
  • + +
  • {% endfor %} - - -
    + + +
    + {% endif %} -{% endif %}