Skip to content
Snippets Groups Projects
Unverified Commit 0d615aa1 authored by Todd Dembrey's avatar Todd Dembrey Committed by GitHub
Browse files

Merge pull request #450 from OpenTechFund/bugfix/278-make-news-filter-work

Add the button to filter the news articles and look at styling
parents d2af99e5 ac2417db
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<div class="wrapper wrapper--small wrapper--inner-space-medium"> <div class="wrapper wrapper--small wrapper--inner-space-medium">
<form class="form" method="GET"> <form class="form" method="GET">
<div class="form__select form__select--narrow"> <div class="form__select form__select--narrow form__select--inline">
<select name="news_type"> <select name="news_type">
<option value="">All</option> <option value="">All</option>
{% for news_type in news_types %} {% for news_type in news_types %}
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
{% endfor %} {% endfor %}
</select> </select>
</div> </div>
<input class="link link--button link--button__stretch" type="submit" value="Filter">
</form> </form>
{% if news %} {% if news %}
......
...@@ -146,7 +146,15 @@ ...@@ -146,7 +146,15 @@
} }
&--narrow { &--narrow {
max-width: 280px; @include media-query(mob-landscape) {
max-width: 280px;
}
width: 100%;
max-width: none;
}
&--inline {
display: inline-block;
} }
} }
......
...@@ -2,6 +2,15 @@ ...@@ -2,6 +2,15 @@
&--button { &--button {
@include button($color--light-blue, $color--dark-blue); @include button($color--light-blue, $color--dark-blue);
display: inline-block; display: inline-block;
&__stretch {
width: 100%;
@include media-query(mob-landscape) {
width: inherit;
}
}
} }
&--button-secondary { &--button-secondary {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment