From 24f9c5e25fb1e2fff9787eaf077a2eb9ecee5bba Mon Sep 17 00:00:00 2001 From: jschnapper Date: Wed, 28 Nov 2018 02:32:52 -0800 Subject: [PATCH] mobile compatible --- app/views/layouts/_newestheader.html.haml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/app/views/layouts/_newestheader.html.haml b/app/views/layouts/_newestheader.html.haml index e015366..ad9b25e 100644 --- a/app/views/layouts/_newestheader.html.haml +++ b/app/views/layouts/_newestheader.html.haml @@ -242,6 +242,23 @@ #sign-in-btn { display: none; } + + + /* for the dropdown */ + .navbar-nav .open .dropdown-menu.tdx { + position: static; + float: none; + width: auto; + margin-top: 0; + background-color: transparent; + border: 0; + box-shadow: none; + } + + .navbar-nav .open .dropdown-menu.tdx li a { + line-height: 20px; + padding: 5px 15px 5px 25px; + } } @@ -280,7 +297,7 @@ %a.dropdown-toggle{"data-toggle" => "dropdown", :href => "#"} = current_user.email %b.caret - %ul.dropdown-menu + %ul.dropdown-menu.tdx - if current_user.admin? %li= link_to "Admin", administrator_path %li= link_to "Profile", user_path(current_user.id)