Change styling filters to bootstrap
This commit is contained in:
parent
bd5f444869
commit
5db705d8d4
2 changed files with 37 additions and 54 deletions
|
@ -31,7 +31,7 @@ table.pure-table-striped {
|
||||||
}
|
}
|
||||||
|
|
||||||
.data-table-filters {
|
.data-table-filters {
|
||||||
.pure-g {
|
.row {
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
padding-top: 20px;
|
padding-top: 20px;
|
||||||
&:first-child {
|
&:first-child {
|
||||||
|
@ -40,28 +40,5 @@ table.pure-table-striped {
|
||||||
&:last-child {
|
&:last-child {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
.pure-u-md-1-4, .pure-u-md-1-2 {
|
|
||||||
input {
|
|
||||||
width: 90%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
input {
|
|
||||||
padding: .5em .6em;
|
|
||||||
border: 1px solid #ccc;
|
|
||||||
box-shadow: inset 0 1px 3px #ddd;
|
|
||||||
border-radius: 4px;
|
|
||||||
vertical-align: middle;
|
|
||||||
&[type="date"] {
|
|
||||||
height: 34px;
|
|
||||||
vertical-align: bottom;
|
|
||||||
-webkit-box-sizing: border-box;
|
|
||||||
-moz-box-sizing: border-box;
|
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel-body .form-inline > .input-group > .filter-align {
|
|
||||||
width: 200px;
|
|
||||||
}
|
|
||||||
|
|
|
@ -6,36 +6,42 @@
|
||||||
.panel-heading
|
.panel-heading
|
||||||
%h3.panel-title Filters
|
%h3.panel-title Filters
|
||||||
.panel-body
|
.panel-body
|
||||||
.pure-g
|
.row
|
||||||
.bound.input-listen.pure-u-1{ 'data-input-type': 'date-range', 'data-filter-name': 'Time' }
|
.col-md-8.col-md-offset-2
|
||||||
%form.form-inline
|
.bound.input-listen{ 'data-input-type': 'date-range', 'data-filter-name': 'Time' }
|
||||||
|
.row
|
||||||
|
.col-md-6
|
||||||
.input-group
|
.input-group
|
||||||
%span.input-group-addon
|
%span.input-group-addon
|
||||||
%span.glyphicon.glyphicon-calendar
|
%span.glyphicon.glyphicon-calendar
|
||||||
%input.lower-bound.form-control.filter-align{type: 'date', placeholder: 'after', class: 'pure-group-addon'}
|
%input.lower-bound.form-control.filter-align{type: 'date', placeholder: 'after', class: 'pure-group-addon'}
|
||||||
|
.col-md-6
|
||||||
.input-group
|
.input-group
|
||||||
%span.input-group-addon
|
%span.input-group-addon
|
||||||
%span.glyphicon.glyphicon-calendar
|
%span.glyphicon.glyphicon-calendar
|
||||||
%input.upper-bound.form-control.filter-align{type: 'date', placeholder: 'after', class: 'pure-group-addon'}
|
%input.upper-bound.form-control.filter-align{type: 'date', placeholder: 'after', class: 'pure-group-addon'}
|
||||||
.pure-g
|
|
||||||
.bound.input-listen.pure-u-1{ 'data-input-type': 'number-range', 'data-filter-name': 'Amount' }
|
.bound.input-listen.pure-u-1{ 'data-input-type': 'number-range', 'data-filter-name': 'Amount' }
|
||||||
%form.form-inline
|
.row
|
||||||
|
.col-md-6
|
||||||
.input-group
|
.input-group
|
||||||
%span.input-group-addon
|
%span.input-group-addon
|
||||||
%span.glyphicon.glyphicon-euro
|
%span.glyphicon.glyphicon-euro
|
||||||
%input.lower-bound.form-control.filter-align{type: 'number', placeholder: 'Minimum'}
|
%input.lower-bound.form-control.filter-align{type: 'number', placeholder: 'Minimum'}
|
||||||
|
.col-md-6
|
||||||
.input-group
|
.input-group
|
||||||
%span.input-group-addon
|
%span.input-group-addon
|
||||||
%span.glyphicon.glyphicon-euro
|
%span.glyphicon.glyphicon-euro
|
||||||
%input.upper-bound.form-control.filter-align{type: 'number', placeholder: 'Maximum'}
|
%input.upper-bound.form-control.filter-align{type: 'number', placeholder: 'Maximum'}
|
||||||
.pure-g
|
.row
|
||||||
.input-listen.pure-u-md-1-4{ 'data-input-type': 'text', 'data-filter-name': 'Issuer' }
|
.col-md-4
|
||||||
%input{type: 'text', placeholder: 'Filter on Issuer'}
|
.input-listen{ 'data-input-type': 'text', 'data-filter-name': 'Issuer' }
|
||||||
.input-listen.pure-u-md-1-4{ 'data-input-type': 'text', 'data-filter-name': 'Peer' }
|
%input{type: 'text', placeholder: 'Filter on Issuer', class: "form-control" }
|
||||||
%input{type: 'text', placeholder: 'Filter on Peer'}
|
.col-md-4
|
||||||
.input-listen.pure-u-md-1-2{ 'data-input-type': 'text', 'data-filter-name': 'Message' }
|
.input-listen{ 'data-input-type': 'text', 'data-filter-name': 'Peer' }
|
||||||
%input{type: 'text', placeholder: 'Filter on Message'}
|
%input{type: 'text', placeholder: 'Filter on Peer', class: "form-control" }
|
||||||
|
.col-md-4
|
||||||
|
.input-listen{ 'data-input-type': 'text', 'data-filter-name': 'Message' }
|
||||||
|
%input{type: 'text', placeholder: 'Filter on Message', class: "form-control" }
|
||||||
|
|
||||||
%table#transactions.pure-table.pure-table-striped{data: { source: user_path(@user) }}
|
%table#transactions.pure-table.pure-table-striped{data: { source: user_path(@user) }}
|
||||||
%thead
|
%thead
|
||||||
|
|
Loading…
Reference in a new issue