mirror of
https://github.com/koalyptus/TableFilter.git
synced 2024-05-05 08:03:17 +02:00
Initial commit
This commit is contained in:
parent
b15e1440c4
commit
d3b85cbdb0
|
@ -47,9 +47,9 @@ module.exports = function (grunt) {
|
|||
dist: {
|
||||
src: [
|
||||
'**',
|
||||
'!*.styl',
|
||||
'!**/*.styl',
|
||||
'!**/extensions/**',
|
||||
'!**/*.styl'
|
||||
'!**/mixins/**'
|
||||
],
|
||||
cwd: 'static/style',
|
||||
dest: 'dist/tablefilter/style',
|
||||
|
|
15
dist/starter.html
vendored
15
dist/starter.html
vendored
|
@ -450,14 +450,21 @@
|
|||
<script data-config>
|
||||
var filtersConfig = {
|
||||
base_path: 'tablefilter/',
|
||||
// col_0: 'checklist',
|
||||
col_1: 'select',
|
||||
col_2: 'select',
|
||||
col_3: 'select',
|
||||
// col_3: 'multiple',
|
||||
alternate_rows: true,
|
||||
rows_counter: true,
|
||||
btn_reset: true,
|
||||
loader: true,
|
||||
status_bar: true,
|
||||
status_bar: true/*,
|
||||
popup_filters: true,
|
||||
single_search_filter: true,
|
||||
enable_icons: false,
|
||||
btn: true,
|
||||
btn_text: 'Go',
|
||||
|
||||
|
||||
mark_active_columns: true,
|
||||
col_number_format: [
|
||||
null, null, 'US',
|
||||
|
@ -481,7 +488,7 @@
|
|||
'70px', '70px', '70px',
|
||||
'70px', '60px', '60px'
|
||||
],
|
||||
extensions:[{ name: 'sort' }]
|
||||
extensions:[{ name: 'sort' }]*/
|
||||
};
|
||||
|
||||
var tf = new TableFilter('demo', filtersConfig);
|
||||
|
|
33
dist/tablefilter/style/colsVisibility.css
vendored
33
dist/tablefilter/style/colsVisibility.css
vendored
|
@ -1,6 +1,6 @@
|
|||
/**
|
||||
* TableFilter v0.0.0 by Max Guglielmi
|
||||
* build date: 2015-08-06T05:20:40.430Z
|
||||
* build date: 2015-08-07T07:26:43.498Z
|
||||
* MIT License
|
||||
*/
|
||||
/**
|
||||
|
@ -13,18 +13,45 @@ span.colVisSpan a.colVis {
|
|||
margin: 0 5px 0 5px;
|
||||
}
|
||||
div.colVisCont {
|
||||
position: relative;
|
||||
background: #fff;
|
||||
-webkit-box-shadow: 3px 3px 2px #888;
|
||||
-moz-box-shadow: 3px 3px 2px #888;
|
||||
box-shadow: 3px 3px 2px #888;
|
||||
position: absolute;
|
||||
display: none;
|
||||
border: 1px solid #ccc;
|
||||
height: auto;
|
||||
width: 250px;
|
||||
background-color: #fff;
|
||||
margin: 18px 0 0 0;
|
||||
margin: 28px 0 0 -100px;
|
||||
z-index: 10000;
|
||||
padding: 10px 10px 10px 10px;
|
||||
text-align: left;
|
||||
font-size: 12px;
|
||||
box-shadow: 3px 3px 2px #888;
|
||||
}
|
||||
div.colVisCont:after,
|
||||
div.colVisCont:before {
|
||||
bottom: 100%;
|
||||
left: 50%;
|
||||
border: solid transparent;
|
||||
content: " ";
|
||||
height: 0;
|
||||
width: 0;
|
||||
position: absolute;
|
||||
pointer-events: none;
|
||||
}
|
||||
div.colVisCont:after {
|
||||
border-color: rgba(255,255,255,0);
|
||||
border-bottom-color: #fff;
|
||||
border-width: 10px;
|
||||
margin-left: -10px;
|
||||
}
|
||||
div.colVisCont:before {
|
||||
border-color: rgba(255,255,255,0);
|
||||
border-bottom-color: #ccc;
|
||||
border-width: 12px;
|
||||
margin-left: -12px;
|
||||
}
|
||||
div.colVisCont p {
|
||||
margin: 6px auto 6px auto;
|
||||
|
|
2
dist/tablefilter/style/filtersVisibility.css
vendored
2
dist/tablefilter/style/filtersVisibility.css
vendored
|
@ -1,6 +1,6 @@
|
|||
/**
|
||||
* TableFilter v0.0.0 by Max Guglielmi
|
||||
* build date: 2015-08-06T05:20:40.430Z
|
||||
* build date: 2015-08-07T07:26:43.498Z
|
||||
* MIT License
|
||||
*/
|
||||
/**
|
||||
|
|
223
dist/tablefilter/style/tablefilter.css
vendored
223
dist/tablefilter/style/tablefilter.css
vendored
|
@ -1,6 +1,6 @@
|
|||
/**
|
||||
* TableFilter v0.0.0 by Max Guglielmi
|
||||
* build date: 2015-08-06T05:20:40.430Z
|
||||
* build date: 2015-08-07T07:26:43.498Z
|
||||
* MIT License
|
||||
*/
|
||||
/**
|
||||
|
@ -18,7 +18,7 @@
|
|||
background-color: #fff;
|
||||
}
|
||||
.odd {
|
||||
background-color: #e5e5e5;
|
||||
background-color: #f9f9f9;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -117,12 +117,12 @@ select[multiple="multiple"].ezSelectEditor {
|
|||
*/
|
||||
.div_checklist {
|
||||
width: 100%;
|
||||
height: 100px;
|
||||
border: 1px solid #ccc;
|
||||
height: 90px;
|
||||
border: 1px solid #f4f4f4;
|
||||
overflow: auto;
|
||||
text-align: left;
|
||||
background-color: #fff;
|
||||
color: #333 !important;
|
||||
color: #444;
|
||||
}
|
||||
.div_checklist ul.flt_checklist {
|
||||
padding: 0 !important;
|
||||
|
@ -133,7 +133,7 @@ select[multiple="multiple"].ezSelectEditor {
|
|||
padding: 1px !important;
|
||||
margin: 0 !important;
|
||||
font-size: 10px !important;
|
||||
border-bottom: 1px solid #ccc !important;
|
||||
border-bottom: 1px solid #f4f4f4 !important;
|
||||
}
|
||||
.div_checklist li.flt_checklist_item:hover {
|
||||
background-color: #335ea8 !important;
|
||||
|
@ -158,74 +158,116 @@ select[multiple="multiple"].ezSelectEditor {
|
|||
* Filters' default style
|
||||
*/
|
||||
.fltrow {
|
||||
height: 20px;
|
||||
background-color: #f4f4f4;
|
||||
height: 1em;
|
||||
background-color: #eaeaea;
|
||||
}
|
||||
.fltrow td,
|
||||
.fltrow th {
|
||||
padding: 2px !important;
|
||||
.fltrow td {
|
||||
border-bottom: 1px solid #ccc !important;
|
||||
border-top: 1px solid #ccc;
|
||||
border-left: 1px solid #ccc;
|
||||
border-right: 1px solid #f4f4f4;
|
||||
}
|
||||
.btnflt {
|
||||
font-size: 11px;
|
||||
height: 35px;
|
||||
font-family: inherit;
|
||||
font-size: inherit;
|
||||
vertical-align: middle;
|
||||
margin: 0 2px 0 2px;
|
||||
padding: 0 1px 0 1px;
|
||||
}
|
||||
.btnflt_icon {
|
||||
width: 19px;
|
||||
height: 19px;
|
||||
font-family: inherit;
|
||||
font-size: inherit;
|
||||
width: 35px;
|
||||
height: 35px;
|
||||
cursor: pointer !important;
|
||||
border: 0 !important;
|
||||
vertical-align: middle;
|
||||
background: transparent url("themes/btn_filter.png") center center no-repeat !important;
|
||||
}
|
||||
.flt {
|
||||
.flt,
|
||||
.flt_s,
|
||||
.single_flt {
|
||||
font-family: inherit;
|
||||
display: block;
|
||||
color: #444;
|
||||
background-color: #fff;
|
||||
border: 1px solid #ccc;
|
||||
border: 1px solid #f4f4f4;
|
||||
margin: 0;
|
||||
width: 97%;
|
||||
padding: 0 0 0 0.2em;
|
||||
width: 100%;
|
||||
height: 35px;
|
||||
vertical-align: middle;
|
||||
border-radius: 2px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
select.flt {
|
||||
background-color: #fff;
|
||||
border: 1px solid #ccc;
|
||||
margin: 0 1px 1px 0;
|
||||
width: 99%;
|
||||
vertical-align: middle;
|
||||
.flt:focus,
|
||||
.flt_s:focus,
|
||||
.single_flt:focus {
|
||||
border-color: #66afe9;
|
||||
outline: 0 none;
|
||||
-webkit-box-shadow: 0px 1px 1px rgba(0,0,0,0.075) inset, 0px 0px 8px rgba(102,175,233,0.6);
|
||||
-moz-box-shadow: 0px 1px 1px rgba(0,0,0,0.075) inset, 0px 0px 8px rgba(102,175,233,0.6);
|
||||
box-shadow: 0px 1px 1px rgba(0,0,0,0.075) inset, 0px 0px 8px rgba(102,175,233,0.6);
|
||||
}
|
||||
select.flt_multi {
|
||||
font-family: inherit;
|
||||
color: #444;
|
||||
background-color: #fff;
|
||||
border: 1px solid #ccc;
|
||||
margin: 0 1px 1px 0;
|
||||
width: 99%;
|
||||
height: 100px;
|
||||
border: 1px solid #f4f4f4;
|
||||
margin: 0;
|
||||
padding: 0.2em;
|
||||
width: 100%;
|
||||
height: 90px;
|
||||
vertical-align: middle;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.flt_s {
|
||||
background-color: #fff;
|
||||
border: 1px solid #ccc;
|
||||
margin: 0;
|
||||
width: 80%;
|
||||
vertical-align: middle;
|
||||
width: 60%;
|
||||
box-sizing: initial;
|
||||
display: initial;
|
||||
}
|
||||
.single_flt {
|
||||
background-color: #fff;
|
||||
border-left: 1px solid #999;
|
||||
border-right: 1px solid #ccc;
|
||||
border-top: 1px solid #ccc;
|
||||
border-bottom: 1px solid #999;
|
||||
margin: 0;
|
||||
width: 120px;
|
||||
vertical-align: middle;
|
||||
width: 70%;
|
||||
box-sizing: initial;
|
||||
display: initial;
|
||||
}
|
||||
div.popUpFilter {
|
||||
position: relative;
|
||||
background: #fff;
|
||||
-webkit-box-shadow: 3px 3px 2px #888;
|
||||
-moz-box-shadow: 3px 3px 2px #888;
|
||||
box-shadow: 3px 3px 2px #888;
|
||||
margin: 30px auto 0 0;
|
||||
position: absolute;
|
||||
display: none;
|
||||
width: 100px;
|
||||
background-color: #c8e0fb;
|
||||
border: 1px solid #e4e4e4;
|
||||
padding: 1px 3px 1px 1px;
|
||||
margin: 20px auto 0 0px;
|
||||
background-color: #eaeaea;
|
||||
border: 1px solid #eaeaea;
|
||||
padding: 0;
|
||||
}
|
||||
div.popUpFilter:after,
|
||||
div.popUpFilter:before {
|
||||
bottom: 100%;
|
||||
left: 50%;
|
||||
border: solid transparent;
|
||||
content: " ";
|
||||
height: 0;
|
||||
width: 0;
|
||||
position: absolute;
|
||||
pointer-events: none;
|
||||
}
|
||||
div.popUpFilter:after {
|
||||
border-color: rgba(255,255,255,0);
|
||||
border-bottom-color: #fff;
|
||||
border-width: 10px;
|
||||
margin-left: -10px;
|
||||
}
|
||||
div.popUpFilter:before {
|
||||
border-color: rgba(255,255,255,0);
|
||||
border-bottom-color: #eaeaea;
|
||||
border-width: 12px;
|
||||
margin-left: -12px;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -309,25 +351,58 @@ div.grd_tblCont table td {
|
|||
* Help box default style
|
||||
*/
|
||||
.helpBtn {
|
||||
margin: 0 5px 0 5px;
|
||||
padding: 2px 4px 2px 4px;
|
||||
display: inline-block;
|
||||
margin: 0;
|
||||
padding: 10px 15px 10px 15px;
|
||||
border-left: 1px solid #ccc;
|
||||
border-right: 1px solid #ccc;
|
||||
}
|
||||
.helpBtn:hover {
|
||||
background-color: #f4f4f4;
|
||||
border-radius: 3px;
|
||||
}
|
||||
div.helpCont {
|
||||
position: relative;
|
||||
background: #fff;
|
||||
-webkit-box-shadow: 3px 3px 2px #888;
|
||||
-moz-box-shadow: 3px 3px 2px #888;
|
||||
box-shadow: 3px 3px 2px #888;
|
||||
position: absolute;
|
||||
display: none;
|
||||
width: 250px;
|
||||
max-width: 300px;
|
||||
overflow: auto;
|
||||
padding: 10px;
|
||||
margin: 15px 0;
|
||||
margin: 35px 0 0 -100px;
|
||||
border: 1px solid #ccc;
|
||||
line-height: 20px;
|
||||
font-size: 12px;
|
||||
color: #333;
|
||||
background: #fff;
|
||||
text-align: left;
|
||||
box-shadow: 3px 3px 2px #888;
|
||||
}
|
||||
div.helpCont:after,
|
||||
div.helpCont:before {
|
||||
bottom: 100%;
|
||||
left: 50%;
|
||||
border: solid transparent;
|
||||
content: " ";
|
||||
height: 0;
|
||||
width: 0;
|
||||
position: absolute;
|
||||
pointer-events: none;
|
||||
}
|
||||
div.helpCont:after {
|
||||
border-color: rgba(255,255,255,0);
|
||||
border-bottom-color: #fff;
|
||||
border-width: 10px;
|
||||
margin-left: -10px;
|
||||
}
|
||||
div.helpCont:before {
|
||||
border-color: rgba(255,255,255,0);
|
||||
border-bottom-color: #ccc;
|
||||
border-width: 12px;
|
||||
margin-left: -12px;
|
||||
}
|
||||
div.helpCont a {
|
||||
color: #c00;
|
||||
|
@ -442,15 +517,16 @@ span.rspgSpan {
|
|||
* Reset button default style
|
||||
*/
|
||||
input.reset {
|
||||
width: 19px;
|
||||
height: 19px;
|
||||
width: 35px;
|
||||
height: 100%;
|
||||
cursor: pointer !important;
|
||||
border: 0 !important;
|
||||
border: 0;
|
||||
vertical-align: middle;
|
||||
background: transparent url("themes/btn_clear_filters.png") center center no-repeat !important;
|
||||
}
|
||||
input.reset:hover {
|
||||
background: #cad1d6 url("themes/btn_clear_filters.png") center center no-repeat !important;
|
||||
background: #f4f4f4 url("themes/btn_clear_filters.png") center center no-repeat !important;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -507,27 +583,25 @@ div.status span {
|
|||
* Table's default style
|
||||
*/
|
||||
table.TF {
|
||||
font-family: inherit;
|
||||
border-spacing: 0;
|
||||
border-top: 1px solid #d0d0d0;
|
||||
border-left: 1px solid #d0d0d0;
|
||||
border-bottom: 1px solid #ccc;
|
||||
border-right: 1px solid #ccc;
|
||||
border: 0;
|
||||
}
|
||||
table.TF th {
|
||||
height: 35px;
|
||||
margin: 0;
|
||||
background-color: #ebecee;
|
||||
border-bottom: 1px solid #d0d0d0;
|
||||
border-right: 1px solid #d0d0d0;
|
||||
border-left: 1px solid #fff;
|
||||
border-top: 1px solid #fff;
|
||||
padding: 5px;
|
||||
background-color: #eaeaea;
|
||||
border-bottom: 1px solid #ddd;
|
||||
border-top: 1px solid #f4f4f4;
|
||||
border-left: 1px solid #ccc;
|
||||
border-right: 1px solid #f4f4f4;
|
||||
padding: 0.1em 0.7em;
|
||||
color: #333;
|
||||
}
|
||||
table.TF td {
|
||||
margin: 0;
|
||||
padding: 5px;
|
||||
border-bottom: 1px solid #d0d0d0;
|
||||
border-right: 1px solid #d0d0d0;
|
||||
padding: 0.5em 0.7em;
|
||||
border-bottom: 1px solid #c6c6c6;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -536,13 +610,17 @@ table.TF td {
|
|||
.inf {
|
||||
clear: both;
|
||||
width: auto;
|
||||
height: 25px;
|
||||
background-color: #f4f4f4;
|
||||
height: 35px;
|
||||
background-color: transparent;
|
||||
font-size: 12px;
|
||||
margin: 0;
|
||||
padding: 1px 3px 1px 3px;
|
||||
border: 1px solid #ccc;
|
||||
padding: 0;
|
||||
border-top: 1px solid #ccc;
|
||||
border-left: 1px solid #ccc;
|
||||
border-right: 1px solid #ccc;
|
||||
overflow: hidden;
|
||||
border-top-left-radius: 3px;
|
||||
border-top-right-radius: 3px;
|
||||
}
|
||||
.inf a {
|
||||
color: #333;
|
||||
|
@ -552,15 +630,21 @@ table.TF td {
|
|||
.inf a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
.inf span {
|
||||
width: 35px;
|
||||
height: 35px;
|
||||
}
|
||||
.ldiv {
|
||||
float: left;
|
||||
width: 30%;
|
||||
height: 100%;
|
||||
position: inherit;
|
||||
text-align: left;
|
||||
}
|
||||
.mdiv {
|
||||
float: left;
|
||||
width: 38%;
|
||||
height: 100%;
|
||||
position: inherit;
|
||||
text-align: center;
|
||||
padding: 1px 0;
|
||||
|
@ -568,6 +652,7 @@ table.TF td {
|
|||
.rdiv {
|
||||
float: right;
|
||||
width: 30%;
|
||||
height: 100%;
|
||||
position: inherit;
|
||||
text-align: right;
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/**
|
||||
* TableFilter v0.0.0 by Max Guglielmi
|
||||
* build date: 2015-08-06T05:20:40.430Z
|
||||
* build date: 2015-08-07T07:26:43.498Z
|
||||
* MIT License
|
||||
*/
|
||||
/**
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/**
|
||||
* TableFilter v0.0.0 by Max Guglielmi
|
||||
* build date: 2015-08-06T05:20:40.430Z
|
||||
* build date: 2015-08-07T07:26:43.498Z
|
||||
* MIT License
|
||||
*/
|
||||
/**
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/**
|
||||
* TableFilter v0.0.0 by Max Guglielmi
|
||||
* build date: 2015-08-06T05:20:40.430Z
|
||||
* build date: 2015-08-07T07:26:43.498Z
|
||||
* MIT License
|
||||
*/
|
||||
/**
|
||||
|
|
7029
dist/tablefilter/tablefilter.js
vendored
7029
dist/tablefilter/tablefilter.js
vendored
File diff suppressed because one or more lines are too long
2228
dist/tablefilter/tf-1.js
vendored
2228
dist/tablefilter/tf-1.js
vendored
File diff suppressed because one or more lines are too long
|
@ -3,6 +3,6 @@
|
|||
*/
|
||||
|
||||
.even
|
||||
background-color #fff
|
||||
background-color #FFF
|
||||
.odd
|
||||
background-color #E5E5E5
|
||||
background-color #F9F9F9
|
||||
|
|
|
@ -3,24 +3,34 @@
|
|||
*/
|
||||
|
||||
// table
|
||||
$border-color-0 = #FFF
|
||||
$border-color-1 = #CCC
|
||||
$border-color-2 = #D0D0D0
|
||||
$padding = 5px
|
||||
$font-family = inherit
|
||||
$padding = 0.5em 0.7em
|
||||
|
||||
// header cell
|
||||
$th-bg-color = #EBECEE
|
||||
// $th-bg-color = #EBECEE
|
||||
$th-height = 35px
|
||||
$th-bg-color = #EAEAEA
|
||||
$th-padding = 5px
|
||||
$th-font-color = #333
|
||||
$th-bottom-border-color = #DDD
|
||||
$th-top-border-color = #F4F4F4
|
||||
$th-left-border-color = #CCC
|
||||
$th-right-border-color = #F4F4F4
|
||||
|
||||
// filter
|
||||
$filter-bg-color = #fff
|
||||
$filter-border-color = #ccc
|
||||
// cell
|
||||
$td-border-color = #C6C6C6
|
||||
|
||||
// filters
|
||||
$filter-font-color = #444
|
||||
$filter-row-bg-color = #EAEAEA
|
||||
$filter-bg-color = #FFF
|
||||
$filter-border-color = #F4F4F4
|
||||
$filter-height = 35px
|
||||
|
||||
// toolbar container (.inf)
|
||||
$toolbar-bg-color = #f4f4f4
|
||||
$toolbar-bg-color = transparent
|
||||
$toolbar-font-size = 12px
|
||||
$toolbar-border-color = #ccc
|
||||
$toolbar-border-color = #CCC
|
||||
|
||||
// paging
|
||||
$paging-nav-button-bg-color-hover = #CAD1D6
|
||||
|
@ -28,3 +38,7 @@ $paging-nav-button-bg-color-hover = #CAD1D6
|
|||
// grid layout
|
||||
$grid-layout-bg-color = #C8E0FB
|
||||
$grid-layout-border-color = #99BBE8
|
||||
|
||||
// elements
|
||||
$min-width = 35px
|
||||
$min-height = 35px
|
||||
|
|
|
@ -2,6 +2,9 @@
|
|||
* ColsVisibility extension default style
|
||||
*/
|
||||
|
||||
@import '../mixins/arrow'
|
||||
@import '../mixins/box-shadow'
|
||||
|
||||
$item-bg-color = #335EA8
|
||||
$item-font-color = #fff
|
||||
|
||||
|
@ -14,18 +17,19 @@ span.colVisSpan
|
|||
|
||||
// container element
|
||||
div.colVisCont
|
||||
arrow(top, 10px white, 2px #ccc)
|
||||
box-shadow(3px 3px 2px #888)
|
||||
position absolute
|
||||
display none
|
||||
border 1px solid #ccc
|
||||
height auto
|
||||
width 250px
|
||||
background-color #fff
|
||||
margin 18px 0 0 0
|
||||
margin 28px 0 0 -100px
|
||||
z-index 10000
|
||||
padding 10px 10px 10px 10px
|
||||
text-align left
|
||||
font-size 12px
|
||||
box-shadow 3px 3px 2px #888
|
||||
|
||||
p
|
||||
margin 6px auto 6px auto
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* Checklist filters default style
|
||||
*/
|
||||
|
||||
@import 'config'
|
||||
@import 'config'
|
||||
|
||||
$item-bg-color = #335EA8
|
||||
$item-font-color = #fff
|
||||
|
@ -10,12 +10,12 @@ $item-font-color = #fff
|
|||
// div containing checklist
|
||||
.div_checklist
|
||||
width 100%
|
||||
height 100px
|
||||
height 90px
|
||||
border 1px solid $filter-border-color
|
||||
overflow auto
|
||||
text-align left
|
||||
background-color $filter-bg-color
|
||||
color: #333 !important
|
||||
color: $filter-font-color
|
||||
|
||||
ul.flt_checklist
|
||||
padding 0 !important
|
||||
|
|
|
@ -2,83 +2,97 @@
|
|||
* Filters' default style
|
||||
*/
|
||||
|
||||
@import 'config'
|
||||
@import 'config'
|
||||
@import 'mixins/arrow'
|
||||
@import 'mixins/box-shadow'
|
||||
|
||||
// Filters row style
|
||||
.fltrow
|
||||
height 20px
|
||||
background-color #f4f4f4
|
||||
height 1em
|
||||
background-color $filter-row-bg-color
|
||||
|
||||
td
|
||||
th
|
||||
padding 2px !important
|
||||
border-bottom: 1px solid #CCC !important
|
||||
border-top: 1px solid #CCC
|
||||
border-left 1px solid #CCC
|
||||
border-right 1px solid #f4f4f4
|
||||
|
||||
// button appearance
|
||||
.btnflt
|
||||
font-size 11px
|
||||
vertical-align middle
|
||||
margin 0 2px 0 2px
|
||||
padding 0 1px 0 1px
|
||||
height $filter-height
|
||||
font-family inherit
|
||||
font-size inherit
|
||||
vertical-align middle
|
||||
margin 0 2px 0 2px
|
||||
padding 0 1px 0 1px
|
||||
|
||||
// button appearance when displayIcons is true
|
||||
.btnflt_icon
|
||||
width 19px
|
||||
height 19px
|
||||
cursor pointer !important
|
||||
border 0 !important
|
||||
vertical-align middle
|
||||
background transparent url(themes/btn_filter.png) center center no-repeat !important
|
||||
font-family inherit
|
||||
font-size inherit
|
||||
width $min-width
|
||||
height $filter-height
|
||||
cursor pointer !important
|
||||
border 0 !important
|
||||
vertical-align middle
|
||||
background transparent url(themes/btn_filter.png) center center no-repeat !important
|
||||
|
||||
// input type filter
|
||||
// input and select filter type
|
||||
.flt
|
||||
background-color $filter-bg-color
|
||||
border 1px solid $filter-border-color
|
||||
margin 0
|
||||
width 97%
|
||||
vertical-align middle
|
||||
font-family inherit
|
||||
display block
|
||||
color $filter-font-color
|
||||
background-color $filter-bg-color
|
||||
border 1px solid $filter-border-color
|
||||
margin 0
|
||||
padding 0 0 0 0.2em
|
||||
width 100%
|
||||
height $filter-height
|
||||
vertical-align middle
|
||||
border-radius 2px
|
||||
box-sizing border-box
|
||||
|
||||
// select type filter
|
||||
select.flt
|
||||
background-color $filter-bg-color
|
||||
border 1px solid $filter-border-color
|
||||
margin 0 1px 1px 0
|
||||
width 99%
|
||||
vertical-align middle
|
||||
&:focus
|
||||
border-color #66AFE9
|
||||
outline 0 none
|
||||
box-shadow 0px 1px 1px rgba(0, 0, 0, 0.075) inset,
|
||||
0px 0px 8px rgba(102, 175, 233, 0.6)
|
||||
|
||||
// multiple select type filter
|
||||
select.flt_multi
|
||||
background-color $filter-bg-color
|
||||
border 1px solid $filter-border-color
|
||||
margin 0 1px 1px 0
|
||||
width 99%
|
||||
height 100px
|
||||
vertical-align middle
|
||||
font-family inherit
|
||||
color $filter-font-color
|
||||
background-color $filter-bg-color
|
||||
border 1px solid $filter-border-color
|
||||
margin 0
|
||||
padding 0.2em
|
||||
width 100%
|
||||
height 90px
|
||||
vertical-align middle
|
||||
box-sizing border-box
|
||||
|
||||
// tiny input type filter
|
||||
.flt_s
|
||||
background-color $filter-bg-color
|
||||
border 1px solid $filter-border-color
|
||||
margin 0
|
||||
width 80%
|
||||
vertical-align middle
|
||||
@extend .flt
|
||||
width 60%
|
||||
box-sizing initial
|
||||
display initial
|
||||
|
||||
// single filter type
|
||||
.single_flt
|
||||
background-color $filter-bg-color
|
||||
border-left 1px solid #999
|
||||
border-right 1px solid $filter-border-color
|
||||
border-top 1px solid $filter-border-color
|
||||
border-bottom 1px solid #999
|
||||
margin 0
|
||||
width 120px
|
||||
vertical-align middle
|
||||
@extend .flt
|
||||
width 70%
|
||||
box-sizing initial
|
||||
display initial
|
||||
|
||||
// Pop-up filters elements
|
||||
div.popUpFilter
|
||||
position absolute
|
||||
display none
|
||||
width 100px
|
||||
background-color #C8E0FB
|
||||
border 1px solid #e4e4e4
|
||||
padding 1px 3px 1px 1px
|
||||
margin 20px auto 0 0px
|
||||
arrow(top, 10px white, 2px $th-bg-color)
|
||||
box-shadow(3px 3px 2px #888)
|
||||
margin 30px auto 0 0
|
||||
position absolute
|
||||
display none
|
||||
width 100px
|
||||
background-color $th-bg-color
|
||||
border 1px solid $filter-row-bg-color
|
||||
padding 0
|
||||
|
|
|
@ -2,28 +2,39 @@
|
|||
* Help box default style
|
||||
*/
|
||||
|
||||
@import 'config'
|
||||
@import 'mixins/arrow'
|
||||
@import 'mixins/box-shadow'
|
||||
|
||||
// help button
|
||||
.helpBtn
|
||||
margin 0 5px 0 5px
|
||||
padding 2px 4px 2px 4px
|
||||
border-left 1px solid #ccc
|
||||
border-right 1px solid #ccc
|
||||
display inline-block
|
||||
margin 0
|
||||
padding 10px 15px 10px 15px
|
||||
border-left 1px solid #ccc
|
||||
border-right 1px solid #ccc
|
||||
|
||||
&:hover
|
||||
background-color #F4F4F4
|
||||
border-radius 3px
|
||||
|
||||
// help container
|
||||
div.helpCont
|
||||
arrow(top, 10px white, 2px #ccc)
|
||||
box-shadow(3px 3px 2px #888)
|
||||
position absolute
|
||||
display none
|
||||
width 250px
|
||||
max-width 300px
|
||||
overflow auto
|
||||
padding 10px
|
||||
margin 15px 0
|
||||
margin 35px 0 0 -100px
|
||||
border 1px solid #CCC
|
||||
line-height 20px
|
||||
font-size 12px
|
||||
color #333
|
||||
background #fff
|
||||
text-align left
|
||||
box-shadow 3px 3px 2px #888
|
||||
|
||||
a
|
||||
color #cc0000
|
||||
|
|
63
static/style/mixins/arrow.styl
Normal file
63
static/style/mixins/arrow.styl
Normal file
|
@ -0,0 +1,63 @@
|
|||
/**
|
||||
* An arrow mixin for Stylus, based on @shojberg's "cssarrowplease.com"
|
||||
* @param {Position} position
|
||||
* @param {size, color} arrow
|
||||
* @param {size, color} border (optional)
|
||||
*/
|
||||
arrow(position, arrow, border = 0 white)
|
||||
// Resolve arguments
|
||||
$arrowSize = arrow[0]
|
||||
$arrowColor = arrow[1]
|
||||
$borderWidth = border[0]
|
||||
$borderColor = border[1]
|
||||
|
||||
$oppositePosition = opposite-position(position)
|
||||
|
||||
// Base CSS
|
||||
position: relative
|
||||
background: $arrowColor
|
||||
|
||||
// Selector generation
|
||||
$selectors = "&:after"
|
||||
if $borderWidth > 0
|
||||
$selectors = $selectors + ", &:before"
|
||||
|
||||
// Arrow position
|
||||
{$selectors}
|
||||
{$oppositePosition}: 100%
|
||||
|
||||
// Offset
|
||||
if position in (top bottom)
|
||||
left: 50%
|
||||
else
|
||||
top: 50%
|
||||
|
||||
border: solid transparent
|
||||
content: " "
|
||||
height: 0
|
||||
width: 0
|
||||
position: absolute
|
||||
pointer-events: none
|
||||
|
||||
// The arrow itself
|
||||
&:after
|
||||
border-color: rgba(white, 0) // transparent
|
||||
border-{$oppositePosition}-color: $arrowColor
|
||||
border-width: $arrowSize
|
||||
|
||||
if position in (top bottom)
|
||||
margin-left: (- @border-width)
|
||||
else
|
||||
margin-top: (- @border-width)
|
||||
|
||||
// The border
|
||||
if $borderWidth > 0
|
||||
&:before
|
||||
border-color: rgba(white, 0) // transparent
|
||||
border-{$oppositePosition}-color: $borderColor
|
||||
border-width: $arrowSize + $borderWidth
|
||||
|
||||
if position in (top bottom)
|
||||
margin-left: (- @border-width)
|
||||
else
|
||||
margin-top: (- @border-width)
|
8
static/style/mixins/box-shadow.styl
Normal file
8
static/style/mixins/box-shadow.styl
Normal file
|
@ -0,0 +1,8 @@
|
|||
/**
|
||||
* Box shadow mixin
|
||||
*/
|
||||
|
||||
box-shadow()
|
||||
-webkit-box-shadow arguments
|
||||
-moz-box-shadow arguments
|
||||
box-shadow arguments
|
|
@ -2,13 +2,16 @@
|
|||
* Reset button default style
|
||||
*/
|
||||
|
||||
@import 'config'
|
||||
|
||||
input.reset
|
||||
width 19px
|
||||
height 19px
|
||||
cursor pointer !important
|
||||
border 0 !important
|
||||
vertical-align: middle
|
||||
background: transparent url(themes/btn_clear_filters.png) center center no-repeat !important
|
||||
width $min-width
|
||||
height 100%
|
||||
cursor pointer !important
|
||||
border 0
|
||||
vertical-align middle
|
||||
background: transparent url(themes/btn_clear_filters.png) center center no-repeat !important
|
||||
|
||||
&:hover
|
||||
background #CAD1D6 url(themes/btn_clear_filters.png) center center no-repeat !important
|
||||
background #F4F4F4 url(themes/btn_clear_filters.png) center center no-repeat !important
|
||||
border-radius 3px
|
||||
|
|
|
@ -2,27 +2,25 @@
|
|||
* Table's default style
|
||||
*/
|
||||
|
||||
@import 'config'
|
||||
@import 'config'
|
||||
|
||||
table.TF
|
||||
border-spacing 0
|
||||
border-top 1px solid $border-color-2
|
||||
border-left 1px solid $border-color-2
|
||||
border-bottom 1px solid $border-color-1
|
||||
border-right 1px solid $border-color-1
|
||||
font-family $font-family
|
||||
border-spacing 0
|
||||
border 0
|
||||
|
||||
th
|
||||
height $th-height
|
||||
margin 0
|
||||
background-color $th-bg-color
|
||||
border-bottom 1px solid $border-color-2
|
||||
border-right 1px solid $border-color-2
|
||||
border-left 1px solid $border-color-0
|
||||
border-top 1px solid $border-color-0
|
||||
padding $padding
|
||||
border-bottom 1px solid $th-bottom-border-color
|
||||
border-top 1px solid $th-top-border-color
|
||||
border-left 1px solid $th-left-border-color
|
||||
border-right 1px solid $th-right-border-color
|
||||
padding 0.1em 0.7em
|
||||
color $th-font-color
|
||||
|
||||
td
|
||||
margin 0
|
||||
padding $padding
|
||||
border-bottom 1px solid $border-color-2
|
||||
border-right 1px solid $border-color-2
|
||||
margin 0
|
||||
padding $padding
|
||||
border-bottom 1px solid $td-border-color
|
||||
|
|
|
@ -6,15 +6,19 @@
|
|||
|
||||
// left, middle and right divs container (toolbar)
|
||||
.inf
|
||||
clear both
|
||||
width auto
|
||||
height 25px
|
||||
background-color $toolbar-bg-color
|
||||
font-size $toolbar-font-size
|
||||
margin 0
|
||||
padding 1px 3px 1px 3px
|
||||
border 1px solid #ccc
|
||||
overflow hidden
|
||||
clear both
|
||||
width auto
|
||||
height 35px
|
||||
background-color $toolbar-bg-color
|
||||
font-size $toolbar-font-size
|
||||
margin 0
|
||||
padding 0
|
||||
border-top 1px solid $toolbar-border-color
|
||||
border-left 1px solid $toolbar-border-color
|
||||
border-right 1px solid $toolbar-border-color
|
||||
overflow hidden
|
||||
border-top-left-radius 3px
|
||||
border-top-right-radius 3px
|
||||
|
||||
// link appearence
|
||||
a
|
||||
|
@ -24,24 +28,31 @@
|
|||
&:hover
|
||||
text-decoration underline
|
||||
|
||||
span
|
||||
width $min-width
|
||||
height $min-height
|
||||
|
||||
// left div
|
||||
.ldiv
|
||||
float left
|
||||
width 30%
|
||||
position inherit
|
||||
text-align left
|
||||
float left
|
||||
width 30%
|
||||
height 100%
|
||||
position inherit
|
||||
text-align left
|
||||
|
||||
// middle div
|
||||
.mdiv
|
||||
float left
|
||||
width: 38%
|
||||
position inherit
|
||||
text-align center
|
||||
padding 1px 0
|
||||
float left
|
||||
width 38%
|
||||
height 100%
|
||||
position inherit
|
||||
text-align center
|
||||
padding 1px 0
|
||||
|
||||
// right div
|
||||
.rdiv
|
||||
float right
|
||||
width 30%
|
||||
position inherit
|
||||
text-align right
|
||||
float right
|
||||
width 30%
|
||||
height 100%
|
||||
position inherit
|
||||
text-align right
|
||||
|
|
|
@ -14,14 +14,21 @@
|
|||
<script data-config>
|
||||
var filtersConfig = {
|
||||
base_path: 'tablefilter/',
|
||||
// col_0: 'checklist',
|
||||
col_1: 'select',
|
||||
col_2: 'select',
|
||||
col_3: 'select',
|
||||
// col_3: 'multiple',
|
||||
alternate_rows: true,
|
||||
rows_counter: true,
|
||||
btn_reset: true,
|
||||
loader: true,
|
||||
status_bar: true,
|
||||
status_bar: true/*,
|
||||
popup_filters: true,
|
||||
single_search_filter: true,
|
||||
enable_icons: false,
|
||||
btn: true,
|
||||
btn_text: 'Go',
|
||||
|
||||
|
||||
mark_active_columns: true,
|
||||
col_number_format: [
|
||||
null, null, 'US',
|
||||
|
@ -45,7 +52,7 @@
|
|||
'70px', '70px', '70px',
|
||||
'70px', '60px', '60px'
|
||||
],
|
||||
extensions:[{ name: 'sort' }]
|
||||
extensions:[{ name: 'sort' }]*/
|
||||
};
|
||||
|
||||
var tf = new TableFilter('demo', filtersConfig);
|
||||
|
|
Loading…
Reference in a new issue