Skip to content
Snippets Groups Projects
Commit 4754b993 authored by Chris Lawton's avatar Chris Lawton
Browse files

styling form filters container and filter button

parent c07edee4
No related branches found
No related tags found
No related merge requests found
...@@ -14,9 +14,11 @@ ...@@ -14,9 +14,11 @@
<div class="wrapper wrapper--large wrapper--top-bottom-inner-space"> <div class="wrapper wrapper--large wrapper--top-bottom-inner-space">
{% if filter %} {% if filter %}
<form action="" method="get" class="form form-inline"> <form action="" method="get" class="form form--filters">
{{ filter.form.as_p }} <ul class="form__filters select2">
<button type="submit" value="Filter">Filter</button> {{ filter.form.as_ul }}
<button class="button button--primary" type="submit" value="Filter">Filter</button>
</ul>
</form> </form>
{% endif %} {% endif %}
{% render_table table %} {% render_table table %}
......
...@@ -5,6 +5,16 @@ ...@@ -5,6 +5,16 @@
border: 0; border: 0;
box-shadow: none; box-shadow: none;
&--primary {
@include button($color--light-blue, $color--dark-blue);
display: inline-block;
.form--filters & {
flex-basis: 125px;
margin-right: 0;
}
}
&:hover { &:hover {
cursor: pointer; cursor: pointer;
} }
......
.form {
&__filters {
@extend %h6;
display: flex;
padding: 10px 0 30px;
label {
display: none;
}
// so the form can be output in any tag
> * {
flex-basis: 215px;
margin-right: 10px;
}
}
}
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
// Components // Components
@import 'components/button'; @import 'components/button';
@import 'components/form';
@import 'components/icon'; @import 'components/icon';
@import 'components/pagination'; @import 'components/pagination';
@import 'components/table'; @import 'components/table';
......
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