Commit a1a0a035 authored by Annabel Dunstone Gray's avatar Annabel Dunstone Gray

Remove sidebar toggle button; replace with dropdown

parent 572bc7bc
...@@ -101,9 +101,12 @@ header { ...@@ -101,9 +101,12 @@ header {
} }
} }
.global-dropdown-toggle { .global-dropdown {
position: absolute; position: absolute;
left: -10px; left: -10px;
}
.global-dropdown-toggle {
margin: 7px 0; margin: 7px 0;
font-size: 18px; font-size: 18px;
padding: 6px 10px; padding: 6px 10px;
......
...@@ -2,9 +2,16 @@ ...@@ -2,9 +2,16 @@
%a.sr-only.gl-accessibility{ href: "#content-body", tabindex: "1" } Skip to content %a.sr-only.gl-accessibility{ href: "#content-body", tabindex: "1" } Skip to content
.container-fluid .container-fluid
.header-content .header-content
%button.side-nav-toggle{ type: 'button', "aria-label" => "Toggle global navigation" } .dropdown.global-dropdown
%span.sr-only Toggle navigation %button.global-dropdown-toggle{ type: 'button', 'data-toggle' => 'dropdown' }
= icon('bars') %span.sr-only Toggle navigation
= icon('bars')
.dropdown-menu-nav
%ul
- if current_user
= render 'layouts/nav/dashboard'
- else
= render 'layouts/nav/explore'
%button.navbar-toggle{ type: 'button' } %button.navbar-toggle{ type: 'button' }
%span.sr-only Toggle navigation %span.sr-only Toggle navigation
= icon('ellipsis-v') = icon('ellipsis-v')
...@@ -55,20 +62,8 @@ ...@@ -55,20 +62,8 @@
%div %div
= link_to "Sign in", new_session_path(:user, redirect_to_referer: 'yes'), class: 'btn btn-sign-in btn-success' = link_to "Sign in", new_session_path(:user, redirect_to_referer: 'yes'), class: 'btn btn-sign-in btn-success'
%h1.title= title %h1.title= title
.dropdown
%button.global-dropdown-toggle{ href: '#', 'data-toggle' => 'dropdown' }
%span.sr-only Toggle navigation
= icon('bars')
.dropdown-menu-nav
%ul
- if current_user
= render 'layouts/nav/dashboard'
- else
= render 'layouts/nav/explore'
.header-logo .header-logo
= link_to root_path, class: 'home', title: 'Dashboard', id: 'logo' do = link_to root_path, class: 'home', title: 'Dashboard', id: 'logo' do
= brand_header_logo = brand_header_logo
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment