]>
Commit | Line | Data |
---|---|---|
9f95a23c | 1 | @import 'styles'; |
11fdf7f2 TL |
2 | |
3 | .dataTables_wrapper { | |
4 | margin-bottom: 25px; | |
5 | .separator { | |
6 | height: 30px; | |
7 | border-left: 1px solid $color-table-seperator-border; | |
8 | padding-left: 5px; | |
9 | margin-left: 5px; | |
10 | display: inline-block; | |
11 | vertical-align: middle; | |
12 | } | |
9f95a23c | 13 | |
11fdf7f2 | 14 | .widget-toolbar { |
11fdf7f2 | 15 | float: right; |
9f95a23c TL |
16 | // width: auto; |
17 | // height: 30px; | |
18 | // line-height: 28px; | |
19 | // position: relative; | |
11fdf7f2 | 20 | border-left: 1px solid $color-table-seperator-border; |
9f95a23c | 21 | // cursor: pointer; |
11fdf7f2 | 22 | padding: 0 8px; |
9f95a23c TL |
23 | // text-align: center; |
24 | ||
25 | .form-check { | |
26 | padding-left: 0; | |
27 | } | |
11fdf7f2 | 28 | } |
9f95a23c | 29 | |
11fdf7f2 TL |
30 | .dropdown-menu { |
31 | white-space: nowrap; | |
32 | & > li { | |
33 | cursor: pointer; | |
34 | & > label { | |
35 | width: 100%; | |
36 | margin-bottom: 0; | |
37 | padding-left: 20px; | |
38 | padding-right: 20px; | |
39 | cursor: pointer; | |
40 | &:hover { | |
41 | background-color: $color-table-dropdown-bg; | |
42 | } | |
43 | & > input { | |
44 | cursor: pointer; | |
45 | } | |
46 | } | |
47 | } | |
48 | } | |
11fdf7f2 TL |
49 | .dataTables_length > input { |
50 | line-height: 25px; | |
51 | text-align: right; | |
52 | } | |
53 | } | |
54 | .dataTables_header { | |
55 | background-color: $color-table-header-bg; | |
56 | border: 1px solid $color-table-header-border; | |
57 | border-bottom: none; | |
58 | padding: 5px; | |
59 | position: relative; | |
9f95a23c | 60 | .cd-datatable-actions { |
11fdf7f2 TL |
61 | float: left; |
62 | } | |
63 | ::ng-deep .table-filters { | |
64 | float: right; | |
65 | border-left: 1px solid $color-table-seperator-border; | |
66 | padding-left: 8px; | |
67 | } | |
68 | ::ng-deep .table-filters label { | |
69 | margin-right: 4px; | |
70 | } | |
71 | .form-group { | |
72 | padding-left: 8px; | |
73 | } | |
74 | .input-group { | |
75 | float: right; | |
76 | border-left: 1px solid $color-table-input-border; | |
77 | padding-left: 8px; | |
78 | padding-right: 8px; | |
79 | width: 40%; | |
80 | max-width: 250px; | |
81 | .form-control { | |
82 | height: 30px; | |
83 | } | |
11fdf7f2 TL |
84 | } |
85 | .input-group.dataTables_paginate { | |
86 | width: 8%; | |
87 | min-width: 85px; | |
88 | padding-right: 8px; | |
89 | } | |
9f95a23c TL |
90 | .filter-chips { |
91 | float: right; | |
92 | padding: 0 8px; | |
93 | } | |
11fdf7f2 TL |
94 | } |
95 | ||
9f95a23c | 96 | ::ng-deep .cd-datatable { |
11fdf7f2 TL |
97 | border: 1px solid $color-table-header-border; |
98 | margin-bottom: 0; | |
99 | max-width: none !important; | |
9f95a23c | 100 | |
11fdf7f2 TL |
101 | .progress-linear { |
102 | display: block; | |
103 | position: relative; | |
104 | width: 100%; | |
105 | height: 5px; | |
106 | padding: 0; | |
107 | margin: 0; | |
9f95a23c | 108 | |
11fdf7f2 TL |
109 | .container { |
110 | background-color: $color-table-active-row; | |
9f95a23c | 111 | |
11fdf7f2 TL |
112 | .bar { |
113 | left: 0; | |
114 | height: 100%; | |
115 | width: 100%; | |
116 | position: absolute; | |
117 | overflow: hidden; | |
118 | background-color: $color-table-active-row; | |
119 | } | |
9f95a23c | 120 | |
11fdf7f2 TL |
121 | .bar:before { |
122 | display: block; | |
123 | position: absolute; | |
124 | content: ''; | |
125 | left: -200px; | |
126 | width: 200px; | |
127 | height: 100%; | |
128 | background-color: $color-table-progress-bar-active; | |
129 | animation: progress-loading 3s linear infinite; | |
130 | } | |
131 | } | |
132 | } | |
9f95a23c | 133 | |
11fdf7f2 TL |
134 | .datatable-header { |
135 | background-clip: padding-box; | |
136 | background-color: $color-table-datatable-header; | |
137 | background-image: -webkit-linear-gradient( | |
138 | top, | |
139 | $color-table-gradient-1 0, | |
140 | $color-table-gradient-2 100% | |
141 | ); | |
142 | background-image: -o-linear-gradient( | |
143 | top, | |
144 | $color-table-gradient-1 0, | |
145 | $color-table-gradient-2 100% | |
146 | ); | |
147 | background-image: linear-gradient( | |
148 | to bottom, | |
149 | $color-table-gradient-1 0, | |
150 | $color-table-gradient-2 100% | |
151 | ); | |
152 | background-repeat: repeat-x; | |
153 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffafafa', endColorstr='#ffededed', GradientType=0); | |
9f95a23c | 154 | |
11fdf7f2 TL |
155 | .sort-asc, |
156 | .sort-desc { | |
157 | color: $color-table-sort; | |
158 | } | |
9f95a23c | 159 | |
11fdf7f2 TL |
160 | .datatable-header-cell { |
161 | @include table-cell; | |
9f95a23c | 162 | |
11fdf7f2 TL |
163 | text-align: left; |
164 | font-weight: bold; | |
9f95a23c | 165 | |
11fdf7f2 TL |
166 | .datatable-header-cell-label { |
167 | &:after { | |
168 | font-family: ForkAwesome; | |
169 | font-weight: 400; | |
170 | height: 9px; | |
171 | left: 10px; | |
172 | line-height: 12px; | |
173 | position: relative; | |
174 | vertical-align: baseline; | |
175 | width: 12px; | |
176 | } | |
177 | } | |
9f95a23c | 178 | |
11fdf7f2 TL |
179 | &.sortable { |
180 | .datatable-header-cell-label:after { | |
181 | content: ' \f0dc'; | |
182 | } | |
9f95a23c | 183 | |
11fdf7f2 TL |
184 | &.sort-active { |
185 | &.sort-asc .datatable-header-cell-label:after { | |
186 | content: ' \f160'; | |
187 | } | |
9f95a23c | 188 | |
11fdf7f2 TL |
189 | &.sort-desc .datatable-header-cell-label:after { |
190 | content: ' \f161'; | |
191 | } | |
192 | } | |
193 | } | |
9f95a23c | 194 | |
11fdf7f2 TL |
195 | &:first-child { |
196 | border-left: none; | |
197 | } | |
198 | } | |
199 | } | |
200 | .datatable-body { | |
9f95a23c TL |
201 | margin-bottom: -6px; |
202 | ||
11fdf7f2 TL |
203 | .empty-row { |
204 | background-color: $color-table-empty-row; | |
205 | text-align: center; | |
206 | font-weight: bold; | |
207 | font-style: italic; | |
208 | padding-top: 5px; | |
209 | padding-bottom: 5px; | |
210 | } | |
211 | .datatable-body-row { | |
11fdf7f2 TL |
212 | &.clickable:hover .datatable-row-group { |
213 | background-color: $color-table-hover-row; | |
214 | transition-property: background; | |
215 | transition-duration: 0.3s; | |
216 | transition-timing-function: linear; | |
217 | } | |
218 | &.datatable-row-even { | |
219 | background-color: $color-table-even-row-bg; | |
220 | } | |
221 | &.datatable-row-odd { | |
222 | background-color: $color-table-odd-row-bg; | |
223 | } | |
224 | &.active, | |
225 | &.active:hover { | |
226 | background-color: $color-table-active-row-hover; | |
227 | } | |
228 | .datatable-body-cell { | |
229 | @include table-cell; | |
230 | &:first-child { | |
231 | border-left: none; | |
232 | } | |
233 | .datatable-body-cell-label { | |
234 | display: block; | |
235 | } | |
236 | } | |
237 | } | |
238 | } | |
239 | .datatable-footer { | |
9f95a23c TL |
240 | @extend .p-2; |
241 | ||
11fdf7f2 TL |
242 | .selected-count, |
243 | .page-count { | |
244 | font-style: italic; | |
245 | padding-left: 5px; | |
246 | } | |
9f95a23c TL |
247 | .datatable-pager { |
248 | // .pager | |
249 | ul { | |
250 | @extend .pagination; | |
251 | ||
252 | li { | |
253 | @extend .page-item; | |
254 | ||
255 | a { | |
256 | @extend .page-link; | |
257 | } | |
11fdf7f2 TL |
258 | } |
259 | } | |
260 | } | |
261 | } | |
9f95a23c TL |
262 | |
263 | .cd-datatable-checkbox { | |
264 | text-align: center; | |
265 | } | |
11fdf7f2 TL |
266 | } |
267 | ||
268 | @keyframes progress-loading { | |
269 | from { | |
270 | left: -200px; | |
271 | width: 15%; | |
272 | } | |
273 | 50% { | |
274 | width: 30%; | |
275 | } | |
276 | 70% { | |
277 | width: 70%; | |
278 | } | |
279 | 80% { | |
280 | left: 50%; | |
281 | } | |
282 | 95% { | |
283 | left: 120%; | |
284 | } | |
285 | to { | |
286 | left: 100%; | |
287 | } | |
288 | } |