Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add menu on mobile #72

Merged
merged 1 commit into from
Oct 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion app/views/layouts/decidim/_wrapper.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,27 @@ end
<span aria-hidden="true">&times;</span>
</button>
<!-- Menu -->
<div class="hide-for-medium" data-set="nav-holder"></div>
<div class="hide-for-medium" data-set="nav-holder">

<div class="navbar js-append">
<div class="row column">
<nav class="main-nav">
<ul>
<li class="main-nav__link">
<a class="main-nav" href="/processes/Citywidepb2023">About</a>
</li>
<li class="main-nav__link">
<a class="main-nav" href="/processes/vote">Election Center</a>
</li>
<li class="main-nav__link">
<%= render partial: "layouts/decidim/language_chooser" %>
</li>
</ul>
</nav>
</div>
</div>

</div>
<div class="hide-for-medium usermenu-off-canvas-holder"
data-set="nav-login-holder"></div>
<div class="hide-for-medium mt-s ml-s mr-s search-off-canvas-holder"
Expand Down Expand Up @@ -87,6 +107,7 @@ end
<!-- Repeated due to dropdown limitations -->
<ul class="menu is-dropdown-submenu js-append usermenu-off-canvas">
<%= render partial: "layouts/decidim/user_menu" %>

</ul>
</div>
</li>
Expand Down
Loading