parent
06954fcb8d
commit
88fc381fb2
@ -0,0 +1,31 @@ |
||||
# Simple filters |
||||
|
||||
``` |
||||
@full-width |
||||
|
||||
<fieldset class="simple-filters--container"> |
||||
<legend>Simple Filters</legend> |
||||
<ul class="simple-filters--filters"> |
||||
<li class="simple-filters--filter"> |
||||
<label for="filter-1" class="simple-filters--filter-name">Project</label> |
||||
<div class="simple-filters--filter-value"> |
||||
<input id="filter-1" type="text" placeholder="select"> |
||||
</div> |
||||
</li> |
||||
<li class="simple-filters--filter"> |
||||
<label for="filter-2" class="simple-filters--filter-name">Status</label> |
||||
<div class="simple-filters--filter-value"> |
||||
<select id="filter-2" class="simple-filters--select"> |
||||
<option value="=" label="Active" selected="selected">Active</option> |
||||
<option value="!" label="Archived">Archived</option> |
||||
<option value="!*" label="All">all</option> |
||||
</select> |
||||
</div> |
||||
</li> |
||||
<li class="simple-filters--controls"> |
||||
<a class="button -highlight -small" href="#">Apply</a> |
||||
<a class="button -small icon icon-undo" href="#">Clear</a> |
||||
</li> |
||||
</ul> |
||||
</fieldset> |
||||
``` |
@ -0,0 +1,34 @@ |
||||
.simple-filters--container |
||||
border: 1px solid $advanced-filters--border-color |
||||
padding: 10px |
||||
margin: 0 1.2em 1rem 0.6em |
||||
|
||||
.simple-filters--filters |
||||
@extend .advanced-filters--filters |
||||
@include grid-block |
||||
@include grid-layout(1) |
||||
|
||||
@include breakpoint(large) |
||||
@include grid-layout(2) |
||||
|
||||
// Cancel out foundations padding which breaks in IE. IE seems to calculate |
||||
// the padding on top of the flex-basis size. That means when the flex-basis |
||||
// is 50% and two elements should be within a row and padding is anything but |
||||
// 0. The elements will in sum take up more than 100% and thus the second |
||||
// element will move to the next row. |
||||
.simple-filters--filter, |
||||
@include breakpoint(large) |
||||
flex-basis: 47% |
||||
|
||||
@mixin simple-filters--sizing() |
||||
@include grid-content |
||||
|
||||
.simple-filters--filter |
||||
@include simple-filters--sizing |
||||
flex-basis: 48% |
||||
|
||||
.simple-filters--filter-value |
||||
margin-right: 1rem |
||||
|
||||
.simple-filters--controls |
||||
margin: 0 1rem |
Loading…
Reference in new issue