Skip to content
This repository has been archived by the owner on Dec 8, 2017. It is now read-only.

Commit

Permalink
Merge pull request #375 from xtine/homepage-mobile-nav-trigger
Browse files Browse the repository at this point in the history
Mobile Nav Update
  • Loading branch information
cmc333333 authored Jun 10, 2016
2 parents 9af0ac7 + 46896d7 commit 1f5ebbd
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,21 @@ Site Title
}
}

// mobile nav list items
.app-nav-list {
display: none;

li {
margin: 0 10px;
padding: 10px 0;

&:last-child {
margin: 0;
padding: 10px;
}
}
}

.app-nav-list-text {
font-size: 0.8em;
}
Expand All @@ -55,6 +70,11 @@ Site Title
Big Screens
*/
@media only screen and ( min-width: 880px ) {

.app-nav-list.open {
display: block;
}

.app-nav-list-item {
.logo {
margin: 8px 0 0 8px;
Expand All @@ -78,7 +98,16 @@ Smaller Screens
top: 56px;
}

.app-nav-list-text {
display: none;
.app-nav-list-item {
padding: 20px 15px;

a {
color: @dark_field;
padding: 0;
}

&:last-child {
border-bottom: 2px solid @dark_gray;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
*/

.nc-homepage-header {
height: auto;
position: relative;

.main-head {
.font-regular;
position: relative;
Expand Down
7 changes: 4 additions & 3 deletions notice_and_comment/templates/regulations/main-header.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ <h2 class="reg-title">
<span class="icon-text">Mobile navigation</span>
</a>
<ul class="app-nav-list">
<li class="app-nav-list-item"><span class="app-nav-list-text">Partnership between</span></li>
<li class="app-nav-list-item org-title">{% include "regulations/org-title.html" %}</li>
<li class="app-nav-list-item logo-list-item">{% include "regulations/logo.html" %}</li>
<li class="app-nav-list-item"><span class="app-nav-list-text">Partnership between:</span></li>
<li class="app-nav-list-item"><span class="app-nav-list-text"><a href="http://www.epa.gov">epa.gov <span class="cf-icon cf-icon-external-link"></span></a></span></li>
<li class="app-nav-list-item"><span class="app-nav-list-text"><a href="http://18f.gsa.gov">18f.gsa.gov <span class="cf-icon cf-icon-external-link"></span></a></span></li>
<li class="app-nav-list-item"><span class="app-nav-list-text"><a href="http://www.gsa.gov">gsa.gov <span class="cf-icon cf-icon-external-link"></span></a></span></li>
</ul>
</nav>
</div>
4 changes: 2 additions & 2 deletions notice_and_comment/templates/regulations/nc-homepage.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<div id="content-body">

<header id="site-header" class="nc-homepage-header" role="banner">
<header id="site-header" class="reg-header nc-homepage-header" role="banner">
{% include "regulations/main-header.html" %}
</header>

Expand Down Expand Up @@ -210,7 +210,7 @@ <h2>About this tool</h2>
</div>

<div class="feedback">
<h4>We want to hear from you!</h4>
<h3>We want to hear from you!</h3>
<p>To give feedback on this tool, <a href="https://github.com/eregs/notice-and-comment/issues/new" target="_blank">open a new issue in this repository <span class="cf-icon cf-icon-external-link"></span></a> (requires a free login).
</div>

Expand Down
1 change: 0 additions & 1 deletion notice_and_comment/templates/regulations/org-title.html

This file was deleted.

0 comments on commit 1f5ebbd

Please sign in to comment.