jquery-datatables 1.10.15 → 1.10.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (199) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +23 -16
  3. data/Rakefile +46 -27
  4. data/app/assets/javascripts/datatables/dataTables.bootstrap4.js +3 -3
  5. data/app/assets/javascripts/datatables/dataTables.jqueryui.js +6 -6
  6. data/app/assets/javascripts/datatables/extensions/AutoFill/dataTables.autoFill.js +5 -5
  7. data/app/assets/javascripts/datatables/extensions/Buttons/buttons.bootstrap.js +3 -1
  8. data/app/assets/javascripts/datatables/extensions/Buttons/buttons.bootstrap4.js +3 -1
  9. data/app/assets/javascripts/datatables/extensions/Buttons/buttons.colVis.js +2 -1
  10. data/app/assets/javascripts/datatables/extensions/Buttons/buttons.flash.js +74 -69
  11. data/app/assets/javascripts/datatables/extensions/Buttons/buttons.foundation.js +3 -1
  12. data/app/assets/javascripts/datatables/extensions/Buttons/buttons.html5.js +86 -63
  13. data/app/assets/javascripts/datatables/extensions/Buttons/buttons.print.js +16 -22
  14. data/app/assets/javascripts/datatables/extensions/Buttons/dataTables.buttons.js +131 -3
  15. data/app/assets/javascripts/datatables/extensions/ColReorder/dataTables.colReorder.js +12 -6
  16. data/app/assets/javascripts/datatables/extensions/FixedColumns/dataTables.fixedColumns.js +8 -5
  17. data/app/assets/javascripts/datatables/extensions/FixedHeader/dataTables.fixedHeader.js +14 -9
  18. data/app/assets/javascripts/datatables/extensions/KeyTable/dataTables.keyTable.js +103 -8
  19. data/app/assets/javascripts/datatables/extensions/Responsive/dataTables.responsive.js +106 -6
  20. data/app/assets/javascripts/datatables/extensions/Responsive/responsive.bootstrap4.js +1 -1
  21. data/app/assets/javascripts/datatables/extensions/RowGroup/dataTables.rowGroup.js +8 -6
  22. data/app/assets/javascripts/datatables/extensions/RowReorder/dataTables.rowReorder.js +68 -35
  23. data/app/assets/javascripts/datatables/extensions/Scroller/dataTables.scroller.js +71 -10
  24. data/app/assets/javascripts/datatables/extensions/Select/dataTables.select.js +11 -7
  25. data/app/assets/javascripts/datatables/jquery.dataTables.js +19 -121
  26. data/app/assets/stylesheets/datatables/dataTables.bootstrap.scss +252 -0
  27. data/app/assets/stylesheets/datatables/{dataTables.bootstrap2.css → dataTables.bootstrap2.scss} +6 -6
  28. data/app/assets/stylesheets/datatables/dataTables.bootstrap4.scss +262 -0
  29. data/app/assets/stylesheets/datatables/dataTables.foundation.scss +154 -0
  30. data/app/assets/stylesheets/datatables/dataTables.jqueryui.scss +93 -0
  31. data/app/assets/stylesheets/datatables/dataTables.material.scss +101 -0
  32. data/app/assets/stylesheets/datatables/dataTables.semanticui.scss +138 -0
  33. data/app/assets/stylesheets/datatables/dataTables.uikit.scss +195 -0
  34. data/app/assets/stylesheets/datatables/extensions/AutoFill/autoFill.bootstrap.scss +8 -0
  35. data/app/assets/stylesheets/datatables/extensions/AutoFill/autoFill.bootstrap4.scss +8 -0
  36. data/app/assets/stylesheets/datatables/extensions/AutoFill/autoFill.dataTables.scss +125 -0
  37. data/app/assets/stylesheets/datatables/extensions/AutoFill/autoFill.foundation.scss +13 -0
  38. data/app/assets/stylesheets/datatables/extensions/AutoFill/autoFill.jqueryui.scss +10 -0
  39. data/app/assets/stylesheets/datatables/extensions/AutoFill/autoFill.semanticui.scss +8 -0
  40. data/app/assets/stylesheets/datatables/extensions/Buttons/buttons.bootstrap.scss +40 -0
  41. data/app/assets/stylesheets/datatables/extensions/Buttons/buttons.bootstrap4.scss +53 -0
  42. data/app/assets/stylesheets/datatables/extensions/Buttons/buttons.dataTables.scss +141 -0
  43. data/app/assets/stylesheets/datatables/extensions/Buttons/buttons.foundation.scss +82 -0
  44. data/app/assets/stylesheets/datatables/extensions/Buttons/buttons.jqueryui.scss +98 -0
  45. data/app/assets/stylesheets/datatables/extensions/Buttons/buttons.semanticui.scss +53 -0
  46. data/app/assets/stylesheets/datatables/extensions/ColReorder/colReorder.bootstrap.scss +4 -0
  47. data/app/assets/stylesheets/datatables/extensions/ColReorder/colReorder.bootstrap4.scss +4 -0
  48. data/app/assets/stylesheets/datatables/extensions/ColReorder/colReorder.dataTables.scss +17 -0
  49. data/app/assets/stylesheets/datatables/extensions/ColReorder/colReorder.foundation.scss +4 -0
  50. data/app/assets/stylesheets/datatables/extensions/ColReorder/colReorder.jqueryui.scss +2 -0
  51. data/app/assets/stylesheets/datatables/extensions/ColReorder/colReorder.semanticui.scss +4 -0
  52. data/app/assets/stylesheets/datatables/extensions/FixedColumns/fixedColumns.bootstrap.scss +50 -0
  53. data/app/assets/stylesheets/datatables/extensions/FixedColumns/fixedColumns.bootstrap4.scss +11 -0
  54. data/app/assets/stylesheets/datatables/extensions/FixedColumns/fixedColumns.dataTables.scss +22 -0
  55. data/app/assets/stylesheets/datatables/extensions/FixedColumns/{fixedColumns.foundation.css → fixedColumns.foundation.scss} +15 -6
  56. data/app/assets/stylesheets/datatables/extensions/FixedColumns/fixedColumns.jqueryui.scss +16 -0
  57. data/app/assets/stylesheets/datatables/extensions/FixedColumns/fixedColumns.semanticui.scss +41 -0
  58. data/app/assets/stylesheets/datatables/extensions/FixedHeader/{fixedHeader.bootstrap4.css → fixedHeader.bootstrap.scss} +6 -5
  59. data/app/assets/stylesheets/datatables/extensions/FixedHeader/{fixedHeader.foundation.css → fixedHeader.bootstrap4.scss} +6 -5
  60. data/app/assets/stylesheets/datatables/extensions/FixedHeader/fixedHeader.dataTables.scss +21 -0
  61. data/app/assets/stylesheets/datatables/extensions/FixedHeader/{fixedHeader.bootstrap.css → fixedHeader.foundation.scss} +6 -5
  62. data/app/assets/stylesheets/datatables/extensions/FixedHeader/{fixedHeader.semanticui.css → fixedHeader.jqueryui.scss} +7 -3
  63. data/app/assets/stylesheets/datatables/extensions/FixedHeader/fixedHeader.semanticui.scss +16 -0
  64. data/app/assets/stylesheets/datatables/extensions/KeyTable/keyTable.bootstrap.scss +4 -0
  65. data/app/assets/stylesheets/datatables/extensions/KeyTable/keyTable.bootstrap4.scss +4 -0
  66. data/app/assets/stylesheets/datatables/extensions/KeyTable/keyTable.dataTables.scss +10 -0
  67. data/app/assets/stylesheets/datatables/extensions/KeyTable/keyTable.foundation.scss +4 -0
  68. data/app/assets/stylesheets/datatables/extensions/KeyTable/keyTable.jqueryui.scss +2 -0
  69. data/app/assets/stylesheets/datatables/extensions/KeyTable/keyTable.semanticui.scss +4 -0
  70. data/app/assets/stylesheets/datatables/extensions/Responsive/responsive.bootstrap.scss +8 -0
  71. data/app/assets/stylesheets/datatables/extensions/Responsive/responsive.bootstrap4.scss +9 -0
  72. data/app/assets/stylesheets/datatables/extensions/Responsive/responsive.dataTables.scss +240 -0
  73. data/app/assets/stylesheets/datatables/extensions/Responsive/responsive.foundation.scss +10 -0
  74. data/app/assets/stylesheets/datatables/extensions/Responsive/responsive.jqueryui.scss +2 -0
  75. data/app/assets/stylesheets/datatables/extensions/Responsive/responsive.semanticui.scss +9 -0
  76. data/app/assets/stylesheets/datatables/extensions/RowGroup/rowGroup.bootstrap.scss +2 -0
  77. data/app/assets/stylesheets/datatables/extensions/RowGroup/rowGroup.bootstrap4.scss +2 -0
  78. data/app/assets/stylesheets/datatables/extensions/RowGroup/rowGroup.dataTables.scss +9 -0
  79. data/app/assets/stylesheets/datatables/extensions/RowGroup/rowGroup.foundation.scss +2 -0
  80. data/app/assets/stylesheets/datatables/extensions/RowGroup/rowGroup.jqueryui.scss +2 -0
  81. data/app/assets/stylesheets/datatables/extensions/RowGroup/rowGroup.semanticui.scss +4 -0
  82. data/app/assets/stylesheets/datatables/extensions/RowReorder/rowReorder.bootstrap.scss +5 -0
  83. data/app/assets/stylesheets/datatables/extensions/RowReorder/{semanticui.scss → rowReorder.bootstrap4.scss} +0 -0
  84. data/app/assets/stylesheets/datatables/extensions/RowReorder/rowReorder.dataTables.scss +26 -0
  85. data/app/assets/stylesheets/datatables/extensions/RowReorder/rowReorder.foundation.scss +5 -0
  86. data/app/assets/stylesheets/datatables/extensions/RowReorder/rowReorder.jqueryui.scss +2 -0
  87. data/app/assets/stylesheets/datatables/extensions/RowReorder/rowReorder.semanticui.scss +5 -0
  88. data/app/assets/stylesheets/datatables/extensions/Scroller/scroller.bootstrap.scss +9 -0
  89. data/app/assets/stylesheets/datatables/extensions/Scroller/scroller.bootstrap4.scss +9 -0
  90. data/app/assets/stylesheets/datatables/extensions/Scroller/scroller.dataTables.scss +36 -0
  91. data/app/assets/stylesheets/datatables/extensions/Scroller/scroller.foundation.scss +31 -0
  92. data/app/assets/stylesheets/datatables/extensions/Scroller/scroller.jqueryui.scss +2 -0
  93. data/app/assets/stylesheets/datatables/extensions/Scroller/scroller.semanticui.scss +2 -0
  94. data/app/assets/stylesheets/datatables/extensions/Select/select.bootstrap.scss +17 -0
  95. data/app/assets/stylesheets/datatables/extensions/Select/select.bootstrap4.scss +17 -0
  96. data/app/assets/stylesheets/datatables/extensions/Select/select.dataTables.scss +143 -0
  97. data/app/assets/stylesheets/datatables/extensions/Select/select.foundation.scss +18 -0
  98. data/app/assets/stylesheets/datatables/extensions/Select/select.jqueryui.scss +4 -0
  99. data/app/assets/stylesheets/datatables/extensions/Select/select.semanticui.scss +14 -0
  100. data/app/assets/stylesheets/datatables/jquery.dataTables.scss +599 -0
  101. data/lib/generators/jquery/datatables/install_generator.rb +1 -1
  102. data/lib/generators/jquery/datatables/templates/bootstrap.js.tt +3 -1
  103. data/lib/generators/jquery/datatables/templates/bootstrap.scss.tt +15 -0
  104. data/lib/generators/jquery/datatables/templates/bootstrap4.js.tt +3 -1
  105. data/lib/generators/jquery/datatables/templates/bootstrap4.scss.tt +15 -0
  106. data/lib/generators/jquery/datatables/templates/foundation.js.tt +4 -4
  107. data/lib/generators/jquery/datatables/templates/foundation.scss.tt +33 -0
  108. data/lib/generators/jquery/datatables/templates/jqueryui.js.tt +7 -1
  109. data/lib/generators/jquery/datatables/templates/jqueryui.scss.tt +15 -0
  110. data/lib/generators/jquery/datatables/templates/material.js.tt +3 -1
  111. data/lib/generators/jquery/datatables/templates/material.scss.tt +1 -0
  112. data/lib/generators/jquery/datatables/templates/regular.js.tt +4 -3
  113. data/lib/generators/jquery/datatables/templates/regular.scss.tt +33 -0
  114. data/lib/generators/jquery/datatables/templates/semanticui.js.tt +4 -2
  115. data/lib/generators/jquery/datatables/templates/semanticui.scss.tt +15 -0
  116. data/lib/generators/jquery/datatables/templates/uikit.js.tt +4 -2
  117. data/lib/generators/jquery/datatables/templates/uikit.scss.tt +1 -0
  118. data/lib/jquery-datatables/version.rb +1 -1
  119. metadata +86 -90
  120. data/app/assets/stylesheets/datatables/dataTables.bootstrap.css +0 -184
  121. data/app/assets/stylesheets/datatables/dataTables.bootstrap4.css +0 -194
  122. data/app/assets/stylesheets/datatables/dataTables.foundation.css +0 -118
  123. data/app/assets/stylesheets/datatables/dataTables.jqueryui.css +0 -482
  124. data/app/assets/stylesheets/datatables/dataTables.material.css +0 -87
  125. data/app/assets/stylesheets/datatables/dataTables.semanticui.css +0 -102
  126. data/app/assets/stylesheets/datatables/dataTables.uikit.css +0 -146
  127. data/app/assets/stylesheets/datatables/extensions/AutoFill/autoFill.bootstrap.css +0 -81
  128. data/app/assets/stylesheets/datatables/extensions/AutoFill/autoFill.bootstrap4.css +0 -81
  129. data/app/assets/stylesheets/datatables/extensions/AutoFill/autoFill.dataTables.css +0 -92
  130. data/app/assets/stylesheets/datatables/extensions/AutoFill/autoFill.foundation.css +0 -85
  131. data/app/assets/stylesheets/datatables/extensions/AutoFill/autoFill.jqueryui.css +0 -85
  132. data/app/assets/stylesheets/datatables/extensions/AutoFill/autoFill.semanticui.css +0 -81
  133. data/app/assets/stylesheets/datatables/extensions/Buttons/buttons.bootstrap.css +0 -158
  134. data/app/assets/stylesheets/datatables/extensions/Buttons/buttons.bootstrap4.css +0 -219
  135. data/app/assets/stylesheets/datatables/extensions/Buttons/buttons.dataTables.css +0 -354
  136. data/app/assets/stylesheets/datatables/extensions/Buttons/buttons.foundation.css +0 -189
  137. data/app/assets/stylesheets/datatables/extensions/Buttons/buttons.jqueryui.css +0 -218
  138. data/app/assets/stylesheets/datatables/extensions/Buttons/buttons.semanticui.css +0 -171
  139. data/app/assets/stylesheets/datatables/extensions/ColReorder/colReorder.bootstrap.css +0 -11
  140. data/app/assets/stylesheets/datatables/extensions/ColReorder/colReorder.bootstrap4.css +0 -11
  141. data/app/assets/stylesheets/datatables/extensions/ColReorder/colReorder.dataTables.css +0 -11
  142. data/app/assets/stylesheets/datatables/extensions/ColReorder/colReorder.foundation.css +0 -11
  143. data/app/assets/stylesheets/datatables/extensions/ColReorder/colReorder.jqueryui.css +0 -11
  144. data/app/assets/stylesheets/datatables/extensions/ColReorder/colReorder.semanticui.css +0 -11
  145. data/app/assets/stylesheets/datatables/extensions/FixedColumns/fixedColumns.bootstrap.css +0 -44
  146. data/app/assets/stylesheets/datatables/extensions/FixedColumns/fixedColumns.bootstrap4.css +0 -44
  147. data/app/assets/stylesheets/datatables/extensions/FixedColumns/fixedColumns.dataTables.css +0 -18
  148. data/app/assets/stylesheets/datatables/extensions/FixedColumns/fixedColumns.jqueryui.css +0 -8
  149. data/app/assets/stylesheets/datatables/extensions/FixedColumns/fixedColumns.semanticui.css +0 -16
  150. data/app/assets/stylesheets/datatables/extensions/FixedHeader/fixedHeader.dataTables.css +0 -19
  151. data/app/assets/stylesheets/datatables/extensions/FixedHeader/fixedHeader.jqueryui.css +0 -15
  152. data/app/assets/stylesheets/datatables/extensions/KeyTable/keyTable.bootstrap.css +0 -5
  153. data/app/assets/stylesheets/datatables/extensions/KeyTable/keyTable.bootstrap4.css +0 -5
  154. data/app/assets/stylesheets/datatables/extensions/KeyTable/keyTable.dataTables.css +0 -5
  155. data/app/assets/stylesheets/datatables/extensions/KeyTable/keyTable.foundation.css +0 -5
  156. data/app/assets/stylesheets/datatables/extensions/KeyTable/keyTable.jqueryui.css +0 -5
  157. data/app/assets/stylesheets/datatables/extensions/KeyTable/keyTable.semanticui.css +0 -5
  158. data/app/assets/stylesheets/datatables/extensions/Responsive/responsive.bootstrap.css +0 -181
  159. data/app/assets/stylesheets/datatables/extensions/Responsive/responsive.bootstrap4.css +0 -181
  160. data/app/assets/stylesheets/datatables/extensions/Responsive/responsive.dataTables.css +0 -178
  161. data/app/assets/stylesheets/datatables/extensions/Responsive/responsive.foundation.css +0 -181
  162. data/app/assets/stylesheets/datatables/extensions/Responsive/responsive.jqueryui.css +0 -178
  163. data/app/assets/stylesheets/datatables/extensions/Responsive/responsive.semanticui.css +0 -181
  164. data/app/assets/stylesheets/datatables/extensions/RowGroup/rowGroup.bootstrap.css +0 -4
  165. data/app/assets/stylesheets/datatables/extensions/RowGroup/rowGroup.bootstrap4.css +0 -4
  166. data/app/assets/stylesheets/datatables/extensions/RowGroup/rowGroup.dataTables.css +0 -4
  167. data/app/assets/stylesheets/datatables/extensions/RowGroup/rowGroup.foundation.css +0 -4
  168. data/app/assets/stylesheets/datatables/extensions/RowGroup/rowGroup.jqueryui.css +0 -4
  169. data/app/assets/stylesheets/datatables/extensions/RowGroup/rowGroup.semanticui.css +0 -4
  170. data/app/assets/stylesheets/datatables/extensions/RowReorder/rowReorder.bootstrap.css +0 -22
  171. data/app/assets/stylesheets/datatables/extensions/RowReorder/rowReorder.bootstrap4.css +0 -22
  172. data/app/assets/stylesheets/datatables/extensions/RowReorder/rowReorder.dataTables.css +0 -22
  173. data/app/assets/stylesheets/datatables/extensions/RowReorder/rowReorder.foundation.css +0 -22
  174. data/app/assets/stylesheets/datatables/extensions/RowReorder/rowReorder.jqueryui.css +0 -22
  175. data/app/assets/stylesheets/datatables/extensions/RowReorder/rowReorder.semanticui.css +0 -22
  176. data/app/assets/stylesheets/datatables/extensions/Scroller/scroller.bootstrap.css +0 -24
  177. data/app/assets/stylesheets/datatables/extensions/Scroller/scroller.bootstrap4.css +0 -24
  178. data/app/assets/stylesheets/datatables/extensions/Scroller/scroller.dataTables.css +0 -20
  179. data/app/assets/stylesheets/datatables/extensions/Scroller/scroller.foundation.css +0 -17
  180. data/app/assets/stylesheets/datatables/extensions/Scroller/scroller.jqueryui.css +0 -20
  181. data/app/assets/stylesheets/datatables/extensions/Scroller/scroller.semanticui.css +0 -20
  182. data/app/assets/stylesheets/datatables/extensions/Select/select.bootstrap.css +0 -115
  183. data/app/assets/stylesheets/datatables/extensions/Select/select.bootstrap4.css +0 -115
  184. data/app/assets/stylesheets/datatables/extensions/Select/select.dataTables.css +0 -105
  185. data/app/assets/stylesheets/datatables/extensions/Select/select.foundation.css +0 -117
  186. data/app/assets/stylesheets/datatables/extensions/Select/select.jqueryui.css +0 -105
  187. data/app/assets/stylesheets/datatables/extensions/Select/select.semanticui.css +0 -110
  188. data/app/assets/stylesheets/datatables/jquery.dataTables.css +0 -455
  189. data/app/assets/stylesheets/datatables/jquery.dataTables_themeroller.css +0 -416
  190. data/lib/generators/jquery/datatables/templates/bootstrap.css.tt +0 -15
  191. data/lib/generators/jquery/datatables/templates/bootstrap2.css.tt +0 -15
  192. data/lib/generators/jquery/datatables/templates/bootstrap2.js.tt +0 -22
  193. data/lib/generators/jquery/datatables/templates/bootstrap4.css.tt +0 -15
  194. data/lib/generators/jquery/datatables/templates/foundation.css.tt +0 -15
  195. data/lib/generators/jquery/datatables/templates/jqueryui.css.tt +0 -15
  196. data/lib/generators/jquery/datatables/templates/material.css.tt +0 -15
  197. data/lib/generators/jquery/datatables/templates/regular.css.tt +0 -15
  198. data/lib/generators/jquery/datatables/templates/semanticui.css.tt +0 -16
  199. data/lib/generators/jquery/datatables/templates/uikit.css.tt +0 -15
@@ -36,12 +36,12 @@ table.table thead .sorting_desc_disabled {
36
36
  *cursor: hand;
37
37
  }
38
38
 
39
- table.table thead .sorting { background: url(/assets/datatables/sort_both.png) no-repeat center right; }
40
- table.table thead .sorting_asc { background: url(/assets/datatables/sort_asc.png) no-repeat center right; }
41
- table.table thead .sorting_desc { background: url(/assets/datatables/sort_desc.png) no-repeat center right; }
39
+ table.table thead .sorting { background-image: image-url("datatables/sort_both.png") no-repeat center right; }
40
+ table.table thead .sorting_asc { background-image: image-url("datatables/sort_asc.png") no-repeat center right; }
41
+ table.table thead .sorting_desc { background-image: image-url("datatables/sort_desc.png") no-repeat center right; }
42
42
 
43
- table.table thead .sorting_asc_disabled { background: url('/assets/datatables/sort_asc_disabled.png') no-repeat center right; }
44
- table.table thead .sorting_desc_disabled { background: url('/assets/datatables/sort_desc_disabled.png') no-repeat center right; }
43
+ table.table thead .sorting_asc_disabled { background-image: image-url("datatables/sort_asc_disabled.png") no-repeat center right; }
44
+ table.table thead .sorting_desc_disabled { background-image: image-url("datatables/sort_desc_disabled.png") no-repeat center right; }
45
45
 
46
46
  table.dataTable th:active {
47
47
  outline: none;
@@ -175,4 +175,4 @@ div.DTFC_LeftBodyWrapper tbody tr:first-child td {
175
175
 
176
176
  div.DTFC_LeftFootWrapper table {
177
177
  border-top: none;
178
- }
178
+ }
@@ -0,0 +1,262 @@
1
+
2
+
3
+ table.dataTable {
4
+ clear: both;
5
+ margin-top: 6px !important;
6
+ margin-bottom: 6px !important;
7
+ max-width: none !important;
8
+ border-collapse: separate !important;
9
+
10
+ td,
11
+ th {
12
+ -webkit-box-sizing: content-box;
13
+ box-sizing: content-box;
14
+
15
+ &.dataTables_empty {
16
+ text-align: center;
17
+ }
18
+ }
19
+
20
+ // Style options for the table. Foundation provides its own, but it is also
21
+ // useful to have a few more for DataTables
22
+ &.nowrap {
23
+ th,
24
+ td {
25
+ white-space: nowrap;
26
+ }
27
+ }
28
+ }
29
+
30
+
31
+ // DataTables' built in feature elements
32
+ div.dataTables_wrapper {
33
+ div.dataTables_length {
34
+ label {
35
+ font-weight: normal;
36
+ text-align: left;
37
+ white-space: nowrap;
38
+ }
39
+
40
+ select {
41
+ width: 75px;
42
+ display: inline-block;
43
+ }
44
+ }
45
+
46
+ div.dataTables_filter {
47
+ text-align: right;
48
+
49
+ label {
50
+ font-weight: normal;
51
+ white-space: nowrap;
52
+ text-align: left;
53
+ }
54
+
55
+ input {
56
+ margin-left: 0.5em;
57
+ display: inline-block;
58
+ width: auto;
59
+ }
60
+ }
61
+
62
+ div.dataTables_info {
63
+ padding-top: 0.85em;
64
+ white-space: nowrap;
65
+ }
66
+
67
+ div.dataTables_paginate {
68
+ margin: 0;
69
+ white-space: nowrap;
70
+ text-align: right;
71
+
72
+ ul.pagination {
73
+ margin: 2px 0;
74
+ white-space: nowrap;
75
+ justify-content: flex-end;
76
+ }
77
+ }
78
+
79
+ div.dataTables_processing {
80
+ position: absolute;
81
+ top: 50%;
82
+ left: 50%;
83
+ width: 200px;
84
+ margin-left: -100px;
85
+ margin-top: -26px;
86
+ text-align: center;
87
+ padding: 1em 0;
88
+ }
89
+ }
90
+
91
+
92
+ // Sorting - using :before and :after with UTF8 characters
93
+ table.dataTable thead {
94
+ > tr > th,
95
+ > tr > td {
96
+ &.sorting_asc,
97
+ &.sorting_desc,
98
+ &.sorting {
99
+ padding-right: 30px;
100
+ }
101
+
102
+ &:active {
103
+ outline: none;
104
+ }
105
+ }
106
+
107
+ .sorting,
108
+ .sorting_asc,
109
+ .sorting_desc,
110
+ .sorting_asc_disabled,
111
+ .sorting_desc_disabled {
112
+ cursor: pointer;
113
+ position: relative;
114
+
115
+ &:before,
116
+ &:after {
117
+ position: absolute;
118
+ bottom: 0.9em;
119
+ display: block;
120
+ opacity: 0.3;
121
+ }
122
+
123
+ &:before {
124
+ right: 1em;
125
+ content: "\2191"; // up arrow - ascending
126
+ }
127
+
128
+ &:after {
129
+ right: 0.5em;
130
+ content: "\2193"; // down arrow - descending
131
+ }
132
+ }
133
+
134
+ .sorting_asc:before,
135
+ .sorting_desc:after {
136
+ opacity: 1;
137
+ }
138
+
139
+ .sorting_asc_disabled:before,
140
+ .sorting_desc_disabled:after {
141
+ opacity: 0;
142
+ }
143
+ }
144
+
145
+
146
+ // Scrolling
147
+ div.dataTables_scrollHead table.dataTable {
148
+ margin-bottom: 0 !important;
149
+ }
150
+
151
+ div.dataTables_scrollBody {
152
+ table {
153
+ border-top: none;
154
+ margin-top: 0 !important;
155
+ margin-bottom: 0 !important;
156
+
157
+ thead { // Hide sort icons
158
+ .sorting:after,
159
+ .sorting_asc:after,
160
+ .sorting_desc:after {
161
+ display: none;
162
+ }
163
+ }
164
+
165
+ tbody tr:first-child th,
166
+ tbody tr:first-child td {
167
+ border-top: none;
168
+ }
169
+ }
170
+ }
171
+
172
+ div.dataTables_scrollFoot {
173
+ > .dataTables_scrollFootInner {
174
+ box-sizing: content-box;
175
+
176
+ > table {
177
+ margin-top: 0 !important;
178
+ border-top: none;
179
+ }
180
+ }
181
+ }
182
+
183
+
184
+ // Responsive
185
+ @media screen and (max-width: 767px) {
186
+ div.dataTables_wrapper {
187
+ div.dataTables_length,
188
+ div.dataTables_filter,
189
+ div.dataTables_info,
190
+ div.dataTables_paginate {
191
+ text-align: center;
192
+ }
193
+ }
194
+ }
195
+
196
+
197
+ //
198
+ // Bootstrap provides a range of styling options for table's via class name
199
+ // that we want to full support. They sometimes require some customisations
200
+ //
201
+
202
+ // Condensed
203
+ table.dataTable.table-sm {
204
+ > thead > tr > th {
205
+ padding-right: 20px;
206
+ }
207
+
208
+ .sorting,
209
+ .sorting_asc,
210
+ .sorting_desc {
211
+ &:before {
212
+ top: 5px;
213
+ right: 0.85em;
214
+ }
215
+
216
+ &:after {
217
+ top: 5px;
218
+ }
219
+ }
220
+ }
221
+
222
+
223
+ // Frustratingly the border-collapse:collapse used by Bootstrap makes the column
224
+ // width calculations when using scrolling impossible to align columns. We have
225
+ // to use `border-collapse: separate`
226
+ table.table-bordered.dataTable {
227
+ th,
228
+ td {
229
+ border-left-width: 0;
230
+
231
+ &:last-child,
232
+ &:last-child {
233
+ border-right-width: 0;
234
+ }
235
+ }
236
+
237
+ tbody th,
238
+ tbody td {
239
+ border-bottom-width: 0;
240
+ }
241
+ }
242
+
243
+ // Bordered table
244
+ div.dataTables_scrollHead table.table-bordered {
245
+ border-bottom-width: 0;
246
+ }
247
+
248
+ // Responsive tables. We use rows inside the Bootstrap responsive wrapper,
249
+ // so they need to have their margin and padding removed
250
+ div.table-responsive > div.dataTables_wrapper > div.row {
251
+ margin: 0;
252
+
253
+ > div[class^="col-"] {
254
+ &:first-child {
255
+ padding-left: 0;
256
+ }
257
+ &:last-child {
258
+ padding-right: 0;
259
+ }
260
+ }
261
+ }
262
+
@@ -0,0 +1,154 @@
1
+
2
+ table.dataTable {
3
+ clear: both;
4
+ margin: 0.5em 0 !important;
5
+ max-width: none !important;
6
+ width: 100%;
7
+
8
+ td,
9
+ th {
10
+ -webkit-box-sizing: content-box;
11
+ box-sizing: content-box;
12
+
13
+ &.dataTables_empty {
14
+ text-align: center;
15
+ }
16
+ }
17
+
18
+ // Style options for the table. Foundation provides its own, but it is also
19
+ // useful to have a few more for DataTables
20
+ &.nowrap {
21
+ th, td {
22
+ white-space: nowrap;
23
+ }
24
+ }
25
+ }
26
+
27
+
28
+ // DataTables' built in feature elements
29
+ div.dataTables_wrapper {
30
+ position: relative;
31
+
32
+ div.dataTables_length {
33
+ label {
34
+ float: left;
35
+ text-align: left;
36
+ margin-bottom: 0;
37
+ }
38
+
39
+ select {
40
+ width: 75px;
41
+ margin-bottom: 0;
42
+ }
43
+ }
44
+
45
+ div.dataTables_filter {
46
+ label {
47
+ float: right;
48
+ margin-bottom: 0;
49
+ }
50
+
51
+ input {
52
+ display: inline-block !important;
53
+ width: auto !important;
54
+ margin-bottom: 0;
55
+ margin-left: 0.5em;
56
+ }
57
+ }
58
+
59
+ div.dataTables_info {
60
+ padding-top: 2px;
61
+ }
62
+
63
+ div.dataTables_paginate {
64
+ float: right;
65
+ margin: 0;
66
+ }
67
+
68
+ div.dataTables_processing {
69
+ position: absolute;
70
+ top: 50%;
71
+ left: 50%;
72
+ width: 200px;
73
+ margin-left: -100px;
74
+ margin-top: -26px;
75
+ text-align: center;
76
+ padding: 1rem 0;
77
+ }
78
+ }
79
+
80
+
81
+ // Sorting
82
+ table.dataTable thead {
83
+ > tr > th,
84
+ > tr > td {
85
+ &.sorting_asc,
86
+ &.sorting_desc,
87
+ &.sorting {
88
+ padding-right: 1.5rem;
89
+ }
90
+
91
+ &:active {
92
+ outline: none;
93
+ }
94
+ }
95
+
96
+ .sorting,
97
+ .sorting_asc,
98
+ .sorting_desc,
99
+ .sorting_asc_disabled,
100
+ .sorting_desc_disabled {
101
+ cursor: pointer;
102
+ }
103
+
104
+ .sorting,
105
+ .sorting_asc,
106
+ .sorting_desc,
107
+ .sorting_asc_disabled,
108
+ .sorting_desc_disabled {
109
+ background-repeat: no-repeat;
110
+ background-position: center right;
111
+ }
112
+
113
+ .sorting {
114
+ background-image: image-url("datatables/sort_both.png");
115
+ }
116
+ .sorting_asc {
117
+ background-image: image-url("datatables/sort_asc.png");
118
+ }
119
+ .sorting_desc {
120
+ background-image: image-url("datatables/sort_desc.png");
121
+ }
122
+ .sorting_asc_disabled {
123
+ background-image: image-url("datatables/sort_asc_disabled.png");
124
+ }
125
+ .sorting_desc_disabled {
126
+ background-image: image-url("datatables/sort_desc_disabled.png");
127
+ }
128
+ }
129
+
130
+
131
+ // Scrolling
132
+ div.dataTables_scrollHead table {
133
+ margin-bottom: 0 !important;
134
+ }
135
+
136
+ div.dataTables_scrollBody {
137
+ table {
138
+ border-top: none;
139
+ margin-top: 0 !important;
140
+ margin-bottom: 0 !important;
141
+
142
+ tbody tr:first-child th,
143
+ tbody tr:first-child td {
144
+ border-top: none;
145
+ }
146
+ }
147
+ }
148
+
149
+ div.dataTables_scrollFoot table {
150
+ margin-top: 0 !important;
151
+ border-top: none;
152
+ }
153
+
154
+
@@ -0,0 +1,93 @@
1
+
2
+
3
+ // jQuery UI doesn't provide any table styling options of its own, so we include
4
+ // the DataTables default styling options and override the few styles that need
5
+ // to be changed
6
+ $jqueryui: true;
7
+ @import 'jquery.dataTables.scss';
8
+
9
+
10
+ table.dataTable {
11
+ // Sorting
12
+ thead {
13
+ th div.DataTables_sort_wrapper {
14
+ position: relative;
15
+
16
+ span {
17
+ position: absolute;
18
+ top: 50%;
19
+ margin-top: -8px;
20
+ right: -18px;
21
+ }
22
+ }
23
+ }
24
+
25
+ thead,
26
+ tfoot {
27
+ th.ui-state-default {
28
+ border-left-width: 0;
29
+
30
+ &:first-child {
31
+ border-left-width: 1px;
32
+ }
33
+ }
34
+ }
35
+ }
36
+
37
+ /*
38
+ * Control feature layout
39
+ */
40
+ .dataTables_wrapper {
41
+ // Paging
42
+ .dataTables_paginate {
43
+ .fg-button {
44
+ box-sizing: border-box;
45
+ display: inline-block;
46
+ min-width: 1.5em;
47
+ padding: 0.5em;
48
+ margin-left: 2px;
49
+ text-align: center;
50
+ text-decoration: none !important;
51
+ cursor: pointer;
52
+ *cursor: hand;
53
+
54
+ border: 1px solid transparent;
55
+
56
+ &:active {
57
+ outline: none;
58
+ }
59
+ }
60
+
61
+ .fg-button:first-child {
62
+ border-top-left-radius: 3px;
63
+ border-bottom-left-radius: 3px;
64
+ }
65
+
66
+ .fg-button:last-child {
67
+ border-top-right-radius: 3px;
68
+ border-bottom-right-radius: 3px;
69
+ }
70
+ }
71
+
72
+ .ui-widget-header {
73
+ font-weight: normal;
74
+ }
75
+
76
+ .ui-toolbar {
77
+ padding: 8px;
78
+ }
79
+
80
+ &.no-footer {
81
+ .dataTables_scrollBody {
82
+ border-bottom: none;
83
+ }
84
+ }
85
+
86
+ .dataTables_length,
87
+ .dataTables_filter,
88
+ .dataTables_info,
89
+ .dataTables_processing,
90
+ .dataTables_paginate {
91
+ color: inherit;
92
+ }
93
+ }