foo_table-rails 0.5.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/foo_table-rails/version.rb +1 -1
- data/vendor/assets/javascripts/footable.core.js +353 -159
- data/vendor/assets/javascripts/footable.core.min.js +14 -0
- data/vendor/assets/javascripts/footable.filter.js +145 -92
- data/vendor/assets/javascripts/footable.filter.min.js +14 -0
- data/vendor/assets/javascripts/footable.paginate.js +90 -35
- data/vendor/assets/javascripts/footable.paginate.min.js +1 -0
- data/vendor/assets/javascripts/footable.sort.js +171 -146
- data/vendor/assets/javascripts/footable.sort.min.js +1 -0
- data/vendor/assets/stylesheets/fonts/footable.eot +0 -0
- data/vendor/assets/stylesheets/fonts/footable.svg +78 -0
- data/vendor/assets/stylesheets/fonts/footable.ttf +0 -0
- data/vendor/assets/stylesheets/fonts/footable.woff +0 -0
- data/vendor/assets/stylesheets/footable.all.css +407 -0
- data/vendor/assets/stylesheets/footable.all.min.css +3 -0
- data/vendor/assets/stylesheets/footable.core.css +147 -96
- data/vendor/assets/stylesheets/footable.core.min.css +1 -0
- data/vendor/assets/stylesheets/footable.metro.css +132 -0
- data/vendor/assets/stylesheets/footable.metro.min.css +1 -0
- data/vendor/assets/stylesheets/footable.standalone.css +106 -0
- data/vendor/assets/stylesheets/footable.standalone.min.css +1 -0
- metadata +16 -7
- data/vendor/assets/javascripts/footable.template.js +0 -44
- data/vendor/assets/stylesheets/footable.paginate.css +0 -31
- data/vendor/assets/stylesheets/footable.sort.css +0 -24
- data/vendor/assets/stylesheets/footable.theme.bootstrap-responsive.css +0 -1109
- data/vendor/assets/stylesheets/footable.theme.bootstrap-tab.js +0 -144
- data/vendor/assets/stylesheets/footable.theme.bootstrap.css +0 -6158
@@ -1,116 +1,167 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
@font-face {
|
2
|
+
font-family: 'footable';
|
3
|
+
src: url('fonts/footable.eot');
|
4
|
+
src: url('fonts/footable.eot?#iefix') format('embedded-opentype'), url('fonts/footable.woff') format('woff'), url('fonts/footable.ttf') format('truetype'), url('fonts/footable.svg#footable') format('svg');
|
5
|
+
font-weight: normal;
|
6
|
+
font-style: normal;
|
7
|
+
}
|
8
|
+
@media screen and (-webkit-min-device-pixel-ratio: 0) {
|
9
|
+
@font-face {
|
10
|
+
font-family: 'footable';
|
11
|
+
src: url('fonts/footable.svg#footable') format('svg');
|
12
|
+
font-weight: normal;
|
13
|
+
font-style: normal;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
.footable {
|
4
17
|
width: 100%;
|
5
|
-
|
6
|
-
-moz-border-radius: 6px;
|
7
|
-
-webkit-border-radius: 6px;
|
8
|
-
border-radius: 6px;
|
9
|
-
font-family: 'trebuchet MS' , 'Lucida sans' , Arial;
|
10
|
-
font-size: 14px;
|
11
|
-
color: #444;
|
12
|
-
}
|
18
|
+
/** SORTING **/
|
13
19
|
|
14
|
-
|
15
|
-
background: url('img/plus.png') no-repeat 5px center;
|
16
|
-
padding-left: 40px;
|
17
|
-
}
|
20
|
+
/** PAGINATION **/
|
18
21
|
|
19
|
-
.footable.breakpoint > tbody > tr.footable-detail-show > td.expand {
|
20
|
-
background: url('img/minus.png') no-repeat 5px center;
|
21
22
|
}
|
22
|
-
|
23
|
-
|
24
|
-
background: #eee;
|
23
|
+
.footable.breakpoint > tbody > tr.footable-detail-show > td {
|
24
|
+
border-bottom: none;
|
25
25
|
}
|
26
|
-
|
27
|
-
|
28
|
-
background: #fbf8e9;
|
26
|
+
.footable.breakpoint > tbody > tr.footable-detail-show > td > span.footable-toggle:before {
|
27
|
+
content: "\e001";
|
29
28
|
}
|
30
|
-
|
31
29
|
.footable.breakpoint > tbody > tr:hover:not(.footable-row-detail) {
|
32
30
|
cursor: pointer;
|
33
31
|
}
|
34
|
-
|
35
|
-
|
36
|
-
border-left: 1px solid #ccc;
|
37
|
-
border-top: 1px solid #ccc;
|
38
|
-
padding: 10px;
|
39
|
-
text-align: left;
|
40
|
-
}
|
41
|
-
|
42
|
-
.footable > thead > tr > th, .footable > thead > tr > td {
|
43
|
-
background-color: #dce9f9;
|
44
|
-
background-image: -webkit-gradient(linear, left top, left bottom, from(#ebf3fc), to(#dce9f9));
|
45
|
-
background-image: -webkit-linear-gradient(top, #ebf3fc, #dce9f9);
|
46
|
-
background-image: -moz-linear-gradient(top, #ebf3fc, #dce9f9);
|
47
|
-
background-image: -ms-linear-gradient(top, #ebf3fc, #dce9f9);
|
48
|
-
background-image: -o-linear-gradient(top, #ebf3fc, #dce9f9);
|
49
|
-
background-image: linear-gradient(to bottom, #ebf3fc, #dce9f9);
|
50
|
-
-webkit-box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
|
51
|
-
-moz-box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
|
52
|
-
box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
|
32
|
+
.footable.breakpoint > tbody > tr > td.footable-cell-detail {
|
33
|
+
background: #eee;
|
53
34
|
border-top: none;
|
54
|
-
text-shadow: 0 1px 0 rgba(255,255,255,.5);
|
55
35
|
}
|
56
|
-
|
57
|
-
|
58
|
-
-
|
59
|
-
|
60
|
-
|
36
|
+
.footable.breakpoint > tbody > tr > td > span.footable-toggle {
|
37
|
+
display: inline-block;
|
38
|
+
font-family: 'footable';
|
39
|
+
speak: none;
|
40
|
+
font-style: normal;
|
41
|
+
font-weight: normal;
|
42
|
+
font-variant: normal;
|
43
|
+
text-transform: none;
|
44
|
+
-webkit-font-smoothing: antialiased;
|
45
|
+
padding-right: 5px;
|
46
|
+
font-size: 14px;
|
47
|
+
color: #888888;
|
61
48
|
}
|
62
|
-
|
63
|
-
|
64
|
-
-moz-border-radius: 0 6px 0 0;
|
65
|
-
-webkit-border-radius: 0 6px 0 0;
|
66
|
-
border-radius: 0 6px 0 0;
|
49
|
+
.footable.breakpoint > tbody > tr > td > span.footable-toggle:before {
|
50
|
+
content: "\e000";
|
67
51
|
}
|
68
|
-
|
69
|
-
|
70
|
-
-moz-border-radius: 6px 6px 0 0;
|
71
|
-
-webkit-border-radius: 6px 6px 0 0;
|
72
|
-
border-radius: 6px 6px 0 0;
|
52
|
+
.footable.breakpoint.toggle-circle > tbody > tr.footable-detail-show > td > span.footable-toggle:before {
|
53
|
+
content: "\e005";
|
73
54
|
}
|
74
|
-
|
75
|
-
|
76
|
-
-moz-border-radius: 0 0 0 6px;
|
77
|
-
-webkit-border-radius: 0 0 0 6px;
|
78
|
-
border-radius: 0 0 0 6px;
|
55
|
+
.footable.breakpoint.toggle-circle > tbody > tr > td > span.footable-toggle:before {
|
56
|
+
content: "\e004";
|
79
57
|
}
|
80
|
-
|
81
|
-
|
82
|
-
-moz-border-radius: 0 0 6px 0;
|
83
|
-
-webkit-border-radius: 0 0 6px 0;
|
84
|
-
border-radius: 0 0 6px 0;
|
58
|
+
.footable.breakpoint.toggle-circle-filled > tbody > tr.footable-detail-show > td > span.footable-toggle:before {
|
59
|
+
content: "\e003";
|
85
60
|
}
|
86
|
-
|
87
|
-
|
88
|
-
-moz-border-radius: 0 0 6px 6px;
|
89
|
-
-webkit-border-radius: 0 0 6px 6px;
|
90
|
-
border-radius: 0 0 6px 6px;
|
61
|
+
.footable.breakpoint.toggle-circle-filled > tbody > tr > td > span.footable-toggle:before {
|
62
|
+
content: "\e002";
|
91
63
|
}
|
92
|
-
|
93
|
-
|
94
|
-
.footable > tbody > tr > td.footable-first-column {
|
95
|
-
border-left: none;
|
64
|
+
.footable.breakpoint.toggle-square > tbody > tr.footable-detail-show > td > span.footable-toggle:before {
|
65
|
+
content: "\e007";
|
96
66
|
}
|
97
|
-
|
98
|
-
|
99
|
-
vertical-align:middle;
|
67
|
+
.footable.breakpoint.toggle-square > tbody > tr > td > span.footable-toggle:before {
|
68
|
+
content: "\e006";
|
100
69
|
}
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
70
|
+
.footable.breakpoint.toggle-square-filled > tbody > tr.footable-detail-show > td > span.footable-toggle:before {
|
71
|
+
content: "\e009";
|
72
|
+
}
|
73
|
+
.footable.breakpoint.toggle-square-filled > tbody > tr > td > span.footable-toggle:before {
|
74
|
+
content: "\e008";
|
75
|
+
}
|
76
|
+
.footable.breakpoint.toggle-arrow > tbody > tr.footable-detail-show > td > span.footable-toggle:before {
|
77
|
+
content: "\e00f";
|
78
|
+
}
|
79
|
+
.footable.breakpoint.toggle-arrow > tbody > tr > td > span.footable-toggle:before {
|
80
|
+
content: "\e011";
|
81
|
+
}
|
82
|
+
.footable.breakpoint.toggle-arrow-small > tbody > tr.footable-detail-show > td > span.footable-toggle:before {
|
83
|
+
content: "\e013";
|
84
|
+
}
|
85
|
+
.footable.breakpoint.toggle-arrow-small > tbody > tr > td > span.footable-toggle:before {
|
86
|
+
content: "\e015";
|
87
|
+
}
|
88
|
+
.footable.breakpoint.toggle-arrow-circle > tbody > tr.footable-detail-show > td > span.footable-toggle:before {
|
89
|
+
content: "\e01b";
|
90
|
+
}
|
91
|
+
.footable.breakpoint.toggle-arrow-circle > tbody > tr > td > span.footable-toggle:before {
|
92
|
+
content: "\e01d";
|
93
|
+
}
|
94
|
+
.footable.breakpoint.toggle-arrow-circle-filled > tbody > tr.footable-detail-show > td > span.footable-toggle:before {
|
95
|
+
content: "\e00b";
|
96
|
+
}
|
97
|
+
.footable.breakpoint.toggle-arrow-circle-filled > tbody > tr > td > span.footable-toggle:before {
|
98
|
+
content: "\e00d";
|
99
|
+
}
|
100
|
+
.footable.breakpoint.toggle-arrow-tiny > tbody > tr.footable-detail-show > td > span.footable-toggle:before {
|
101
|
+
content: "\e01f";
|
102
|
+
}
|
103
|
+
.footable.breakpoint.toggle-arrow-tiny > tbody > tr > td > span.footable-toggle:before {
|
104
|
+
content: "\e021";
|
105
|
+
}
|
106
|
+
.footable.breakpoint.toggle-arrow-alt > tbody > tr.footable-detail-show > td > span.footable-toggle:before {
|
107
|
+
content: "\e017";
|
108
|
+
}
|
109
|
+
.footable.breakpoint.toggle-arrow-alt > tbody > tr > td > span.footable-toggle:before {
|
110
|
+
content: "\e019";
|
111
|
+
}
|
112
|
+
.footable.breakpoint.toggle-medium > tbody > tr > td > span.footable-toggle {
|
113
|
+
font-size: 18px;
|
114
|
+
}
|
115
|
+
.footable.breakpoint.toggle-large > tbody > tr > td > span.footable-toggle {
|
116
|
+
font-size: 24px;
|
117
|
+
}
|
118
|
+
.footable > thead > tr > th.footable-sortable:hover {
|
119
|
+
cursor: pointer;
|
120
|
+
}
|
121
|
+
.footable > thead > tr > th.footable-sorted > span.footable-sort-indicator:before {
|
122
|
+
content: "\e013";
|
123
|
+
}
|
124
|
+
.footable > thead > tr > th.footable-sorted-desc > span.footable-sort-indicator:before {
|
125
|
+
content: "\e012";
|
126
|
+
}
|
127
|
+
.footable > thead > tr > th > span.footable-sort-indicator {
|
128
|
+
display: inline-block;
|
129
|
+
font-family: 'footable';
|
130
|
+
speak: none;
|
131
|
+
font-style: normal;
|
132
|
+
font-weight: normal;
|
133
|
+
font-variant: normal;
|
134
|
+
text-transform: none;
|
135
|
+
-webkit-font-smoothing: antialiased;
|
136
|
+
padding-left: 5px;
|
137
|
+
}
|
138
|
+
.footable > thead > tr > th > span.footable-sort-indicator:before {
|
139
|
+
content: "\e022";
|
140
|
+
}
|
141
|
+
.footable > tfoot .pagination {
|
142
|
+
margin: 0;
|
143
|
+
}
|
144
|
+
.footable.no-paging .hide-if-no-paging {
|
145
|
+
display: none;
|
146
|
+
}
|
147
|
+
.footable-row-detail-inner {
|
148
|
+
display: table;
|
149
|
+
}
|
150
|
+
.footable-row-detail-row {
|
151
|
+
display: table-row;
|
152
|
+
line-height: 1.5em;
|
153
|
+
}
|
154
|
+
.footable-row-detail-group {
|
155
|
+
display: block;
|
156
|
+
line-height: 2em;
|
157
|
+
font-size: 1.2em;
|
158
|
+
font-weight: bold;
|
159
|
+
}
|
160
|
+
.footable-row-detail-name {
|
161
|
+
display: table-cell;
|
162
|
+
font-weight: bold;
|
163
|
+
padding-right: 0.5em;
|
164
|
+
}
|
165
|
+
.footable-row-detail-value {
|
166
|
+
display: table-cell;
|
116
167
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
@font-face{font-family:'footable';src:url('fonts/footable.eot');src:url('fonts/footable.eot?#iefix') format('embedded-opentype'),url('fonts/footable.woff') format('woff'),url('fonts/footable.ttf') format('truetype'),url('fonts/footable.svg#footable') format('svg');font-weight:normal;font-style:normal}@media screen and (-webkit-min-device-pixel-ratio:0){@font-face{font-family:'footable';src:url('fonts/footable.svg#footable') format('svg');font-weight:normal;font-style:normal}}.footable{width:100%}.footable.breakpoint>tbody>tr.footable-detail-show>td{border-bottom:0}.footable.breakpoint>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e001"}.footable.breakpoint>tbody>tr:hover:not(.footable-row-detail){cursor:pointer}.footable.breakpoint>tbody>tr>td.footable-cell-detail{background:#eee;border-top:0}.footable.breakpoint>tbody>tr>td>span.footable-toggle{display:inline-block;font-family:'footable';speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;padding-right:5px;font-size:14px;color:#888}.footable.breakpoint>tbody>tr>td>span.footable-toggle:before{content:"\e000"}.footable.breakpoint.toggle-circle>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e005"}.footable.breakpoint.toggle-circle>tbody>tr>td>span.footable-toggle:before{content:"\e004"}.footable.breakpoint.toggle-circle-filled>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e003"}.footable.breakpoint.toggle-circle-filled>tbody>tr>td>span.footable-toggle:before{content:"\e002"}.footable.breakpoint.toggle-square>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e007"}.footable.breakpoint.toggle-square>tbody>tr>td>span.footable-toggle:before{content:"\e006"}.footable.breakpoint.toggle-square-filled>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e009"}.footable.breakpoint.toggle-square-filled>tbody>tr>td>span.footable-toggle:before{content:"\e008"}.footable.breakpoint.toggle-arrow>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e00f"}.footable.breakpoint.toggle-arrow>tbody>tr>td>span.footable-toggle:before{content:"\e011"}.footable.breakpoint.toggle-arrow-small>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e013"}.footable.breakpoint.toggle-arrow-small>tbody>tr>td>span.footable-toggle:before{content:"\e015"}.footable.breakpoint.toggle-arrow-circle>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e01b"}.footable.breakpoint.toggle-arrow-circle>tbody>tr>td>span.footable-toggle:before{content:"\e01d"}.footable.breakpoint.toggle-arrow-circle-filled>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e00b"}.footable.breakpoint.toggle-arrow-circle-filled>tbody>tr>td>span.footable-toggle:before{content:"\e00d"}.footable.breakpoint.toggle-arrow-tiny>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e01f"}.footable.breakpoint.toggle-arrow-tiny>tbody>tr>td>span.footable-toggle:before{content:"\e021"}.footable.breakpoint.toggle-arrow-alt>tbody>tr.footable-detail-show>td>span.footable-toggle:before{content:"\e017"}.footable.breakpoint.toggle-arrow-alt>tbody>tr>td>span.footable-toggle:before{content:"\e019"}.footable.breakpoint.toggle-medium>tbody>tr>td>span.footable-toggle{font-size:18px}.footable.breakpoint.toggle-large>tbody>tr>td>span.footable-toggle{font-size:24px}.footable>thead>tr>th.footable-sortable:hover{cursor:pointer}.footable>thead>tr>th.footable-sorted>span.footable-sort-indicator:before{content:"\e013"}.footable>thead>tr>th.footable-sorted-desc>span.footable-sort-indicator:before{content:"\e012"}.footable>thead>tr>th>span.footable-sort-indicator{display:inline-block;font-family:'footable';speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;padding-left:5px}.footable>thead>tr>th>span.footable-sort-indicator:before{content:"\e022"}.footable>tfoot .pagination{margin:0}.footable.no-paging .hide-if-no-paging{display:none}.footable-row-detail-inner{display:table}.footable-row-detail-row{display:table-row;line-height:1.5em}.footable-row-detail-group{display:block;line-height:2em;font-size:1.2em;font-weight:bold}.footable-row-detail-name{display:table-cell;font-weight:bold;padding-right:.5em}.footable-row-detail-value{display:table-cell}
|
@@ -0,0 +1,132 @@
|
|
1
|
+
.footable {
|
2
|
+
border-collapse: separate;
|
3
|
+
border-spacing: 0;
|
4
|
+
width: 100%;
|
5
|
+
border: 3px solid #52b9e9;
|
6
|
+
font-family: "Open Sans", Arial, Helvetica, sans-serif;
|
7
|
+
color: #444444;
|
8
|
+
background: #efefef;
|
9
|
+
}
|
10
|
+
.footable.breakpoint > tbody > tr.footable-row-detail {
|
11
|
+
background: #eeeeee;
|
12
|
+
}
|
13
|
+
.footable.breakpoint > tbody > tr:hover:not(.footable-row-detail) {
|
14
|
+
cursor: pointer;
|
15
|
+
}
|
16
|
+
.footable.breakpoint > tbody > tr > td.footable-row-detail-cell {
|
17
|
+
background: #fff;
|
18
|
+
}
|
19
|
+
.footable > tbody img {
|
20
|
+
vertical-align: middle;
|
21
|
+
}
|
22
|
+
.footable > tbody > tr:hover:not(.footable-row-detail) {
|
23
|
+
background: #dddddd;
|
24
|
+
}
|
25
|
+
.footable > tbody > tr:hover:not(.footable-row-detail) > td {
|
26
|
+
color: #000000;
|
27
|
+
}
|
28
|
+
.footable > tbody > tr:last-child > td {
|
29
|
+
border-bottom: none;
|
30
|
+
}
|
31
|
+
.footable > tbody > tr > td {
|
32
|
+
border-bottom: 1px solid #dddddd;
|
33
|
+
padding: 10px;
|
34
|
+
text-align: left;
|
35
|
+
}
|
36
|
+
.footable > tbody > tr > td.footable-row-detail-cell,
|
37
|
+
.footable > tbody > tr > td.footable-first-column {
|
38
|
+
border-left: none;
|
39
|
+
}
|
40
|
+
.footable > thead > tr > th {
|
41
|
+
border-bottom: 1px solid #dddddd;
|
42
|
+
padding: 10px;
|
43
|
+
text-align: left;
|
44
|
+
}
|
45
|
+
.footable > thead > tr > th,
|
46
|
+
.footable > thead > tr > td {
|
47
|
+
background-color: #52b9e9;
|
48
|
+
border: 1px solid #52b9e9;
|
49
|
+
color: #ffffff;
|
50
|
+
border-top: none;
|
51
|
+
font-weight: normal;
|
52
|
+
}
|
53
|
+
.footable > thead > tr > th.footable-first-column,
|
54
|
+
.footable > thead > tr > td.footable-first-column {
|
55
|
+
border-left: none;
|
56
|
+
}
|
57
|
+
.footable > tfoot > tr > th,
|
58
|
+
.footable > tfoot > tr > td {
|
59
|
+
background-color: #52b9e9;
|
60
|
+
border: 1px solid #52b9e9;
|
61
|
+
color: #ffffff;
|
62
|
+
border-top: none;
|
63
|
+
padding: 5px;
|
64
|
+
}
|
65
|
+
.footable tfoot .pagination ul {
|
66
|
+
-webkit-box-shadow: none;
|
67
|
+
-moz-box-shadow: none;
|
68
|
+
box-shadow: none;
|
69
|
+
vertical-align: middle;
|
70
|
+
}
|
71
|
+
.footable tfoot .pagination ul > li > a,
|
72
|
+
.footable tfoot .pagination ul > li > span {
|
73
|
+
border: 2px solid transparent;
|
74
|
+
margin: 0 3px;
|
75
|
+
color: #ffffff;
|
76
|
+
background: transparent;
|
77
|
+
padding: 1px 5px;
|
78
|
+
}
|
79
|
+
.footable tfoot .pagination ul > li.disable > a {
|
80
|
+
color: #888;
|
81
|
+
}
|
82
|
+
.footable tfoot .pagination ul > li.active > a {
|
83
|
+
border-color: #ffffff;
|
84
|
+
}
|
85
|
+
.footable tfoot .pagination ul > li:first-child > a,
|
86
|
+
.footable tfoot .pagination ul > li:last-child > a,
|
87
|
+
.footable tfoot .pagination ul > li:first-child > span,
|
88
|
+
.footable tfoot .pagination ul > li:last-child > span {
|
89
|
+
-moz-border-radius: 0;
|
90
|
+
-webkit-border-radius: 0;
|
91
|
+
border-radius: 0;
|
92
|
+
}
|
93
|
+
.footable.metro-red {
|
94
|
+
border-color: #fa3031;
|
95
|
+
}
|
96
|
+
.footable.metro-red > tfoot > tr > th,
|
97
|
+
.footable.metro-red > thead > tr > th,
|
98
|
+
.footable.metro-red > tfoot > tr > td,
|
99
|
+
.footable.metro-red > thead > tr > td {
|
100
|
+
background-color: #fa3031;
|
101
|
+
border-color: #fa3031;
|
102
|
+
}
|
103
|
+
.footable.metro-purple {
|
104
|
+
border-color: #932ab6;
|
105
|
+
}
|
106
|
+
.footable.metro-purple > tfoot > tr > th,
|
107
|
+
.footable.metro-purple > thead > tr > th,
|
108
|
+
.footable.metro-purple > tfoot > tr > td,
|
109
|
+
.footable.metro-purple > thead > tr > td {
|
110
|
+
background-color: #932ab6;
|
111
|
+
border-color: #932ab6;
|
112
|
+
}
|
113
|
+
.footable.metro-green {
|
114
|
+
border-color: #43c83c;
|
115
|
+
}
|
116
|
+
.footable.metro-green > tfoot > tr > th,
|
117
|
+
.footable.metro-green > thead > tr > th,
|
118
|
+
.footable.metro-green > tfoot > tr > td,
|
119
|
+
.footable.metro-green > thead > tr > td {
|
120
|
+
background-color: #43c83c;
|
121
|
+
border-color: #43c83c;
|
122
|
+
}
|
123
|
+
.footable.metro-blue {
|
124
|
+
border-color: #1171a3;
|
125
|
+
}
|
126
|
+
.footable.metro-blue > tfoot > tr > th,
|
127
|
+
.footable.metro-blue > thead > tr > th,
|
128
|
+
.footable.metro-blue > tfoot > tr > td,
|
129
|
+
.footable.metro-blue > thead > tr > td {
|
130
|
+
background-color: #1171a3;
|
131
|
+
border-color: #1171a3;
|
132
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
.footable{border-collapse:separate;border-spacing:0;width:100%;border:3px solid #52b9e9;font-family:"Open Sans",Arial,Helvetica,sans-serif;color:#444;background:#efefef}.footable.breakpoint>tbody>tr.footable-row-detail{background:#eee}.footable.breakpoint>tbody>tr:hover:not(.footable-row-detail){cursor:pointer}.footable.breakpoint>tbody>tr>td.footable-row-detail-cell{background:#fff}.footable>tbody img{vertical-align:middle}.footable>tbody>tr:hover:not(.footable-row-detail){background:#ddd}.footable>tbody>tr:hover:not(.footable-row-detail)>td{color:#000}.footable>tbody>tr:last-child>td{border-bottom:0}.footable>tbody>tr>td{border-bottom:1px solid #ddd;padding:10px;text-align:left}.footable>tbody>tr>td.footable-row-detail-cell,.footable>tbody>tr>td.footable-first-column{border-left:none}.footable>thead>tr>th{border-bottom:1px solid #ddd;padding:10px;text-align:left}.footable>thead>tr>th,.footable>thead>tr>td{background-color:#52b9e9;border:1px solid #52b9e9;color:#fff;border-top:0;font-weight:normal}.footable>thead>tr>th.footable-first-column,.footable>thead>tr>td.footable-first-column{border-left:none}.footable>tfoot>tr>th,.footable>tfoot>tr>td{background-color:#52b9e9;border:1px solid #52b9e9;color:#fff;border-top:0;padding:5px}.footable tfoot .pagination ul{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;vertical-align:middle}.footable tfoot .pagination ul>li>a,.footable tfoot .pagination ul>li>span{border:2px solid transparent;margin:0 3px;color:#fff;background:transparent;padding:1px 5px}.footable tfoot .pagination ul>li.disable>a{color:#888}.footable tfoot .pagination ul>li.active>a{border-color:#fff}.footable tfoot .pagination ul>li:first-child>a,.footable tfoot .pagination ul>li:last-child>a,.footable tfoot .pagination ul>li:first-child>span,.footable tfoot .pagination ul>li:last-child>span{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0}.footable.metro-red{border-color:#fa3031}.footable.metro-red>tfoot>tr>th,.footable.metro-red>thead>tr>th,.footable.metro-red>tfoot>tr>td,.footable.metro-red>thead>tr>td{background-color:#fa3031;border-color:#fa3031}.footable.metro-purple{border-color:#932ab6}.footable.metro-purple>tfoot>tr>th,.footable.metro-purple>thead>tr>th,.footable.metro-purple>tfoot>tr>td,.footable.metro-purple>thead>tr>td{background-color:#932ab6;border-color:#932ab6}.footable.metro-green{border-color:#43c83c}.footable.metro-green>tfoot>tr>th,.footable.metro-green>thead>tr>th,.footable.metro-green>tfoot>tr>td,.footable.metro-green>thead>tr>td{background-color:#43c83c;border-color:#43c83c}.footable.metro-blue{border-color:#1171a3}.footable.metro-blue>tfoot>tr>th,.footable.metro-blue>thead>tr>th,.footable.metro-blue>tfoot>tr>td,.footable.metro-blue>thead>tr>td{background-color:#1171a3;border-color:#1171a3}
|
@@ -0,0 +1,106 @@
|
|
1
|
+
.footable {
|
2
|
+
border-collapse: separate;
|
3
|
+
border-spacing: 0;
|
4
|
+
border: 1px solid #cccccc;
|
5
|
+
-moz-border-radius: 6px;
|
6
|
+
-webkit-border-radius: 6px;
|
7
|
+
border-radius: 6px;
|
8
|
+
font-family: 'trebuchet MS', 'Lucida sans', Arial;
|
9
|
+
font-size: 14px;
|
10
|
+
color: #444444;
|
11
|
+
}
|
12
|
+
.footable > thead > tr:first-child > th.footable-first-column,
|
13
|
+
.footable > thead > tr:first-child > td.footable-first-column {
|
14
|
+
-moz-border-radius: 6px 0 0 0;
|
15
|
+
-webkit-border-radius: 6px 0 0 0;
|
16
|
+
border-radius: 6px 0 0 0;
|
17
|
+
}
|
18
|
+
.footable > thead > tr:first-child > th.footable-last-column,
|
19
|
+
.footable > thead > tr:first-child > td.footable-last-column {
|
20
|
+
-moz-border-radius: 0 6px 0 0;
|
21
|
+
-webkit-border-radius: 0 6px 0 0;
|
22
|
+
border-radius: 0 6px 0 0;
|
23
|
+
}
|
24
|
+
.footable > thead > tr:first-child > th.footable-first-column.footable-last-column,
|
25
|
+
.footable > thead > tr:first-child > td.footable-first-column.footable-last-column {
|
26
|
+
-moz-border-radius: 6px 6px 0 0;
|
27
|
+
-webkit-border-radius: 6px 6px 0 0;
|
28
|
+
border-radius: 6px 6px 0 0;
|
29
|
+
}
|
30
|
+
.footable > thead > tr > th {
|
31
|
+
border-left: 1px solid #cccccc;
|
32
|
+
border-top: 1px solid #cccccc;
|
33
|
+
padding: 10px;
|
34
|
+
text-align: left;
|
35
|
+
}
|
36
|
+
.footable > thead > tr > th,
|
37
|
+
.footable > thead > tr > td {
|
38
|
+
background-color: #dce9f9;
|
39
|
+
background-image: -webkit-gradient(linear, left top, left bottom, from(#ebf3fc), to(#dce9f9));
|
40
|
+
background-image: -webkit-linear-gradient(top, #ebf3fc, #dce9f9);
|
41
|
+
background-image: -moz-linear-gradient(top, #ebf3fc, #dce9f9);
|
42
|
+
background-image: -ms-linear-gradient(top, #ebf3fc, #dce9f9);
|
43
|
+
background-image: -o-linear-gradient(top, #ebf3fc, #dce9f9);
|
44
|
+
background-image: linear-gradient(to bottom, #ebf3fc, #dce9f9);
|
45
|
+
-webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
|
46
|
+
-moz-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
|
47
|
+
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
|
48
|
+
border-top: none;
|
49
|
+
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
|
50
|
+
}
|
51
|
+
.footable > thead > tr > th.footable-first-column,
|
52
|
+
.footable > thead > tr > td.footable-first-column {
|
53
|
+
border-left: none;
|
54
|
+
}
|
55
|
+
.footable.breakpoint > tbody > tr.footable-row-detail {
|
56
|
+
background: #eeeeee;
|
57
|
+
}
|
58
|
+
.footable.breakpoint > tbody > tr.footable-row-detail > .footable-row-detail-cell {
|
59
|
+
border-left: none;
|
60
|
+
}
|
61
|
+
.footable > tbody img {
|
62
|
+
vertical-align: middle;
|
63
|
+
}
|
64
|
+
.footable > tbody > tr:hover {
|
65
|
+
background: #fbf8e9;
|
66
|
+
}
|
67
|
+
.footable > tbody > tr:last-child > td.footable-first-column {
|
68
|
+
-moz-border-radius: 0 0 0 6px;
|
69
|
+
-webkit-border-radius: 0 0 0 6px;
|
70
|
+
border-radius: 0 0 0 6px;
|
71
|
+
}
|
72
|
+
.footable > tbody > tr:last-child > td.footable-last-column {
|
73
|
+
-moz-border-radius: 0 0 6px 0;
|
74
|
+
-webkit-border-radius: 0 0 6px 0;
|
75
|
+
border-radius: 0 0 6px 0;
|
76
|
+
}
|
77
|
+
.footable > tbody > tr:last-child > td.footable-first-column.footable-last-column {
|
78
|
+
-moz-border-radius: 0 0 6px 6px;
|
79
|
+
-webkit-border-radius: 0 0 6px 6px;
|
80
|
+
border-radius: 0 0 6px 6px;
|
81
|
+
}
|
82
|
+
.footable > tbody > tr > td {
|
83
|
+
border-top: 1px solid #cccccc;
|
84
|
+
border-left: 1px solid #cccccc;
|
85
|
+
padding: 10px;
|
86
|
+
text-align: left;
|
87
|
+
}
|
88
|
+
.footable > tbody > tr > td.footable-first-column {
|
89
|
+
border-left: none;
|
90
|
+
}
|
91
|
+
.footable > tfoot > tr > th,
|
92
|
+
.footable > tfoot > tr > td {
|
93
|
+
background-color: #dce9f9;
|
94
|
+
background-image: -webkit-gradient(linear, left top, left bottom, from(#ebf3fc), to(#dce9f9));
|
95
|
+
background-image: -webkit-linear-gradient(top, #ebf3fc, #dce9f9);
|
96
|
+
background-image: -moz-linear-gradient(top, #ebf3fc, #dce9f9);
|
97
|
+
background-image: -ms-linear-gradient(top, #ebf3fc, #dce9f9);
|
98
|
+
background-image: -o-linear-gradient(top, #ebf3fc, #dce9f9);
|
99
|
+
background-image: linear-gradient(to bottom, #ebf3fc, #dce9f9);
|
100
|
+
-webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
|
101
|
+
-moz-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
|
102
|
+
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
|
103
|
+
border-top: 1px solid #cccccc;
|
104
|
+
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
|
105
|
+
padding: 10px;
|
106
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
.footable{border-collapse:separate;border-spacing:0;border:1px solid #ccc;-moz-border-radius:6px;-webkit-border-radius:6px;border-radius:6px;font-family:'trebuchet MS','Lucida sans',Arial;font-size:14px;color:#444}.footable>thead>tr:first-child>th.footable-first-column,.footable>thead>tr:first-child>td.footable-first-column{-moz-border-radius:6px 0 0 0;-webkit-border-radius:6px 0 0 0;border-radius:6px 0 0 0}.footable>thead>tr:first-child>th.footable-last-column,.footable>thead>tr:first-child>td.footable-last-column{-moz-border-radius:0 6px 0 0;-webkit-border-radius:0 6px 0 0;border-radius:0 6px 0 0}.footable>thead>tr:first-child>th.footable-first-column.footable-last-column,.footable>thead>tr:first-child>td.footable-first-column.footable-last-column{-moz-border-radius:6px 6px 0 0;-webkit-border-radius:6px 6px 0 0;border-radius:6px 6px 0 0}.footable>thead>tr>th{border-left:1px solid #ccc;border-top:1px solid #ccc;padding:10px;text-align:left}.footable>thead>tr>th,.footable>thead>tr>td{background-color:#dce9f9;background-image:-webkit-gradient(linear,left top,left bottom,from(#ebf3fc),to(#dce9f9));background-image:-webkit-linear-gradient(top,#ebf3fc,#dce9f9);background-image:-moz-linear-gradient(top,#ebf3fc,#dce9f9);background-image:-ms-linear-gradient(top,#ebf3fc,#dce9f9);background-image:-o-linear-gradient(top,#ebf3fc,#dce9f9);background-image:linear-gradient(to bottom,#ebf3fc,#dce9f9);-webkit-box-shadow:0 1px 0 rgba(255,255,255,0.8) inset;-moz-box-shadow:0 1px 0 rgba(255,255,255,0.8) inset;box-shadow:0 1px 0 rgba(255,255,255,0.8) inset;border-top:0;text-shadow:0 1px 0 rgba(255,255,255,0.5)}.footable>thead>tr>th.footable-first-column,.footable>thead>tr>td.footable-first-column{border-left:none}.footable.breakpoint>tbody>tr.footable-row-detail{background:#eee}.footable.breakpoint>tbody>tr.footable-row-detail>.footable-row-detail-cell{border-left:none}.footable>tbody img{vertical-align:middle}.footable>tbody>tr:hover{background:#fbf8e9}.footable>tbody>tr:last-child>td.footable-first-column{-moz-border-radius:0 0 0 6px;-webkit-border-radius:0 0 0 6px;border-radius:0 0 0 6px}.footable>tbody>tr:last-child>td.footable-last-column{-moz-border-radius:0 0 6px 0;-webkit-border-radius:0 0 6px 0;border-radius:0 0 6px 0}.footable>tbody>tr:last-child>td.footable-first-column.footable-last-column{-moz-border-radius:0 0 6px 6px;-webkit-border-radius:0 0 6px 6px;border-radius:0 0 6px 6px}.footable>tbody>tr>td{border-top:1px solid #ccc;border-left:1px solid #ccc;padding:10px;text-align:left}.footable>tbody>tr>td.footable-first-column{border-left:none}.footable>tfoot>tr>th,.footable>tfoot>tr>td{background-color:#dce9f9;background-image:-webkit-gradient(linear,left top,left bottom,from(#ebf3fc),to(#dce9f9));background-image:-webkit-linear-gradient(top,#ebf3fc,#dce9f9);background-image:-moz-linear-gradient(top,#ebf3fc,#dce9f9);background-image:-ms-linear-gradient(top,#ebf3fc,#dce9f9);background-image:-o-linear-gradient(top,#ebf3fc,#dce9f9);background-image:linear-gradient(to bottom,#ebf3fc,#dce9f9);-webkit-box-shadow:0 1px 0 rgba(255,255,255,0.8) inset;-moz-box-shadow:0 1px 0 rgba(255,255,255,0.8) inset;box-shadow:0 1px 0 rgba(255,255,255,0.8) inset;border-top:1px solid #ccc;text-shadow:0 1px 0 rgba(255,255,255,0.5);padding:10px}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foo_table-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dale Stevens
|
@@ -72,16 +72,25 @@ files:
|
|
72
72
|
- vendor/assets/images/foo_table/sorting_sprite.png
|
73
73
|
- vendor/assets/images/foo_table/up.png
|
74
74
|
- vendor/assets/javascripts/footable.core.js
|
75
|
+
- vendor/assets/javascripts/footable.core.min.js
|
75
76
|
- vendor/assets/javascripts/footable.filter.js
|
77
|
+
- vendor/assets/javascripts/footable.filter.min.js
|
76
78
|
- vendor/assets/javascripts/footable.paginate.js
|
79
|
+
- vendor/assets/javascripts/footable.paginate.min.js
|
77
80
|
- vendor/assets/javascripts/footable.sort.js
|
78
|
-
- vendor/assets/javascripts/footable.
|
81
|
+
- vendor/assets/javascripts/footable.sort.min.js
|
82
|
+
- vendor/assets/stylesheets/fonts/footable.eot
|
83
|
+
- vendor/assets/stylesheets/fonts/footable.svg
|
84
|
+
- vendor/assets/stylesheets/fonts/footable.ttf
|
85
|
+
- vendor/assets/stylesheets/fonts/footable.woff
|
86
|
+
- vendor/assets/stylesheets/footable.all.css
|
87
|
+
- vendor/assets/stylesheets/footable.all.min.css
|
79
88
|
- vendor/assets/stylesheets/footable.core.css
|
80
|
-
- vendor/assets/stylesheets/footable.
|
81
|
-
- vendor/assets/stylesheets/footable.
|
82
|
-
- vendor/assets/stylesheets/footable.
|
83
|
-
- vendor/assets/stylesheets/footable.
|
84
|
-
- vendor/assets/stylesheets/footable.
|
89
|
+
- vendor/assets/stylesheets/footable.core.min.css
|
90
|
+
- vendor/assets/stylesheets/footable.metro.css
|
91
|
+
- vendor/assets/stylesheets/footable.metro.min.css
|
92
|
+
- vendor/assets/stylesheets/footable.standalone.css
|
93
|
+
- vendor/assets/stylesheets/footable.standalone.min.css
|
85
94
|
homepage: https://github.com/twilightcoders/foo_table-rails
|
86
95
|
licenses: []
|
87
96
|
metadata: {}
|
@@ -1,44 +0,0 @@
|
|
1
|
-
(function ($, w, undefined) {
|
2
|
-
if (w.footable == undefined || w.foobox == null)
|
3
|
-
throw new Error('Please check and make sure footable.js is included in the page and is loaded prior to this script.');
|
4
|
-
|
5
|
-
var defaults = {
|
6
|
-
/*
|
7
|
-
Plugin options here, example:
|
8
|
-
|
9
|
-
var defaults = {
|
10
|
-
myPlugin: {
|
11
|
-
enabled: true
|
12
|
-
}
|
13
|
-
};
|
14
|
-
|
15
|
-
This would allow you to access this option using ft.options.myPlugin.enabled
|
16
|
-
*/
|
17
|
-
};
|
18
|
-
|
19
|
-
function MyPlugin() {
|
20
|
-
var p = this;
|
21
|
-
p.name = 'Footable MyPlugin';
|
22
|
-
p.init = function(ft) {
|
23
|
-
$(ft.table).bind({
|
24
|
-
/*
|
25
|
-
Bind to relevant events here to modify/add functionality to Footable, example:
|
26
|
-
|
27
|
-
$(ft.table).bind({
|
28
|
-
'footable_initialized': function(e){
|
29
|
-
if (e.ft.options.myPlugin.enabled == true){
|
30
|
-
alert('Hello World');
|
31
|
-
}
|
32
|
-
}
|
33
|
-
});
|
34
|
-
|
35
|
-
This would listen for the 'footable_initialized' event and when called check if the plugin is enabled
|
36
|
-
and if it is alert 'Hello World' to the user.
|
37
|
-
*/
|
38
|
-
});
|
39
|
-
};
|
40
|
-
};
|
41
|
-
|
42
|
-
w.footable.plugins.register(new MyPlugin(), defaults);
|
43
|
-
|
44
|
-
})(jQuery, window);
|
@@ -1,31 +0,0 @@
|
|
1
|
-
tfoot.footable-pagination tr td {
|
2
|
-
text-align: center;
|
3
|
-
}
|
4
|
-
|
5
|
-
.footable-nav {
|
6
|
-
list-style: none;
|
7
|
-
padding: 0;
|
8
|
-
margin: 0;
|
9
|
-
display: inline-block;
|
10
|
-
}
|
11
|
-
|
12
|
-
.footable-nav li {
|
13
|
-
display: inline-block;
|
14
|
-
}
|
15
|
-
|
16
|
-
.footable-nav li a {
|
17
|
-
display: inline-block;
|
18
|
-
padding: 5px 10px;
|
19
|
-
text-decoration: none;
|
20
|
-
color: #0066cc;
|
21
|
-
font-weight: bold;
|
22
|
-
}
|
23
|
-
|
24
|
-
.footable-nav .footable-page-current {
|
25
|
-
background: #888;
|
26
|
-
border-radius: 50%;
|
27
|
-
}
|
28
|
-
|
29
|
-
.footable-nav .footable-page-current a{
|
30
|
-
color: #fff;
|
31
|
-
}
|
@@ -1,24 +0,0 @@
|
|
1
|
-
.footable > thead > tr > th > span.footable-sort-indicator {
|
2
|
-
width: 16px;
|
3
|
-
height: 16px;
|
4
|
-
display: block;
|
5
|
-
float:right;
|
6
|
-
background: url('img/sorting_sprite.png') no-repeat top left;
|
7
|
-
}
|
8
|
-
|
9
|
-
.footable > thead > tr > th.footable-sortable:hover {
|
10
|
-
cursor:pointer;
|
11
|
-
}
|
12
|
-
|
13
|
-
.footable > thead > tr > th.footable-sortable > span {
|
14
|
-
|
15
|
-
}
|
16
|
-
|
17
|
-
.footable > thead > tr > th.footable-sorted > span.footable-sort-indicator {
|
18
|
-
background-position: 0 -16px;
|
19
|
-
}
|
20
|
-
|
21
|
-
.footable > thead > tr > th.footable-sorted-desc > span.footable-sort-indicator {
|
22
|
-
background-position: 0 -32px;
|
23
|
-
}
|
24
|
-
|