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

Repositioning mobile nav close button #273

Merged
merged 1 commit into from
Jun 15, 2015
Merged
Show file tree
Hide file tree
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
1 change: 0 additions & 1 deletion static/styles/_base/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
outline: 3px solid $focus;
color: $textcolor;
background: $bgcolor;
position: relative;
z-index: 10;
}

Expand Down
21 changes: 16 additions & 5 deletions static/styles/_components/_modals.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
}

.modal__row {
@include clearfix();
border-bottom: 1px solid $modal-border;
padding: 1.5rem 1rem;

Expand All @@ -28,6 +29,11 @@
}
}

.modal__header {
width: 100%;
float: left;
}

.modal__overlay {
position: fixed;
background-color: rgba($licorice-2, .9);
Expand All @@ -44,14 +50,19 @@

.modal__close {
position: absolute;
width: 50%;
bottom: 1.5rem;
left: 25%;
top: 0;
right: 0;
padding: 1rem;
// float: right;
background: none;
color: #fff;
border: none;

&:focus {
position: absolute;
&:hover,
&:active {
background: none;
border: none;
color: #fff;
}
}

Expand Down
4 changes: 2 additions & 2 deletions templates/layouts/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,11 @@
<div class="modal__row">
<p class="text--small">An official website of the United States Government <img src="/static/img/us_flag_small.png" alt="US flag signifying that this is a United States Federal Government website"></p>
<p class="text--small">Looking for fec.gov? <a title="Visit fec.gov" href="http://www.fec.gov">Click here.</a></p>
<button title="Close menu" class="js-hide modal__close" data-hides="site-menu"><i class="ti-close"></i></button>
</div>
<div class="modal__row">
<h3>Search the Data</h3>
<form id="modal-search" action="/" autocomplete="off">
<form id="modal-search" action="/" autocomplete="off" class="js-search">
{% include 'partials/search-bar.html' %}
</form>
</div>
Expand All @@ -63,7 +64,6 @@ <h3>Additional Information</h3>
<li><a href="mailto:{{ contact_email }}"><i class="ti-email"></i> Contact us</a></li>
</ul>
</nav>
<button title="Close menu" class="js-hide modal__close" data-hides="site-menu"><i class="ti-close"></i> Close menu</button>
</div>
</div>
</div>
Expand Down