Add progressive enhancement to service switcher

- by default, the menu is open
- if Javascript is enabled/loaded, the links are hidden, and visual cues (▶) to
  show that it can be opened are added
- clicking it opens and closes it
This commit is contained in:
Chris Hill-Scott
2016-01-11 16:23:34 +00:00
parent 732efd25c7
commit 4cb535a2e1
6 changed files with 82 additions and 5 deletions

View File

@@ -51,9 +51,13 @@
<nav class="management-navigation">
<div class="grid-row">
<div class="column-half">
Service name
<a href="#">Switch to A N Other service</a>
<a href="#">Add a new service to Notify…</a>
<div class="dropdown" data-module="dropdown">
<div class="dropdown-toggle">
Service name
</div>
<a href="#">Switch to A N Other service</a>
<a href="#">Add a new service to Notify…</a>
</div>
</div>
<div class="column-half management-navigation-account">
<a href="{{ url_for('.userprofile') }}">{{ current_user.name }}</a>