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