Skip to content

Commit

Permalink
Move search bar to top on homepage, reduce vertical margins
Browse files Browse the repository at this point in the history
  • Loading branch information
benjwadams committed Feb 8, 2021
1 parent 593dafe commit 62d4778
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
6 changes: 1 addition & 5 deletions ckanext/ioos_theme/public/ioos_theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -297,10 +297,6 @@ section.browse-graphic img.browse-graphic-img {
background-color: #27c97b;
}

.below-search {
padding-top: 50px;
}

.homepage .below-search .row{
margin-left: -10px;
margin-right: -10px;
Expand Down Expand Up @@ -445,7 +441,7 @@ html, body {
}

.module:last-child {
margin-bottom: 75px !important;
margin-bottom: 2em;
}

.account-masthead .account .notifications a span {
Expand Down
14 changes: 7 additions & 7 deletions ckanext/ioos_theme/templates/home/layout-ioos.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<div role="main" class="hero">
<div class="container">
<div class="row">
{% block search %}
{% snippet 'home/snippets/search.html' %}
{% endblock %}
</div>
</div>
<div class="container below-search">
<div class="row row2">
<div class="col-md-6 column">
Expand Down Expand Up @@ -42,11 +49,4 @@ <h3>Resources</h3>
</div>
</div>
</div>
<div class="container">
<div class="row">
{% block search %}
{% snippet 'home/snippets/search.html' %}
{% endblock %}
</div>
</div>
</div>

0 comments on commit 62d4778

Please sign in to comment.