UNPKG

8.09 kBSCSSView Raw
1.bootstrap-table {
2 .fixed-table-toolbar {
3 &::after {
4 content: "";
5 display: block;
6 clear: both;
7 }
8
9 .bs-bars,
10 .search,
11 .columns {
12 position: relative;
13 margin-top: 10px;
14 margin-bottom: 10px;
15 }
16
17 .columns {
18 .btn-group > .btn-group {
19 display: inline-block;
20 margin-left: -1px !important;
21
22 > .btn {
23 border-radius: 0;
24 }
25
26 &:first-child > .btn {
27 border-top-left-radius: 4px;
28 border-bottom-left-radius: 4px;
29 }
30
31 &:last-child > .btn {
32 border-top-right-radius: 4px;
33 border-bottom-right-radius: 4px;
34 }
35 }
36
37 .dropdown-menu {
38 text-align: left;
39 max-height: 300px;
40 overflow: auto;
41 -ms-overflow-style: scrollbar;
42 z-index: 1001;
43 }
44
45 label {
46 display: block;
47 padding: 3px 20px;
48 clear: both;
49 font-weight: normal;
50 line-height: 1.4286;
51 }
52 }
53
54 .columns-left {
55 margin-right: 5px;
56 }
57
58 .columns-right {
59 margin-left: 5px;
60 }
61
62 .pull-right .dropdown-menu {
63 right: 0;
64 left: auto;
65 }
66 }
67
68 .fixed-table-container {
69 position: relative;
70 clear: both;
71
72 .table {
73 width: 100%;
74 margin-bottom: 0 !important;
75
76 th,
77 td {
78 vertical-align: middle;
79 box-sizing: border-box;
80 }
81
82 thead th {
83 vertical-align: bottom;
84 padding: 0;
85 margin: 0;
86
87 &:focus {
88 outline: 0 solid transparent;
89 }
90
91 &.detail {
92 width: 30px;
93 }
94
95 .th-inner {
96 padding: 0.75rem;
97 vertical-align: bottom;
98 overflow: hidden;
99 text-overflow: ellipsis;
100 white-space: nowrap;
101 }
102
103 .sortable {
104 cursor: pointer;
105 background-position: right;
106 background-repeat: no-repeat;
107 padding-right: 30px !important;
108
109 &.sortable-center {
110 padding-left: 20px !important;
111 padding-right: 20px !important;
112 }
113 }
114
115 .both {
116 background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAAkElEQVQoz7X QMQ5AQBCF4dWQSJxC5wwax1Cq1e7BAdxD5SL+Tq/QCM1oNiJidwox0355mXnG/DrEtIQ6azioNZQxI0ykPhTQIwhCR+BmBYtlK7kLJYwWCcJA9M4qdrZrd8pPjZWPtOqdRQy320YSV17OatFC4euts6z39GYMKRPCTKY9UnPQ6P+GtMRfGtPnBCiqhAeJPmkqAAAAAElFTkSuQmCC");
117 }
118
119 .asc {
120 background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAZ0lEQVQ4y2NgGLKgquEuFxBPAGI2ahhWCsS/gDibUoO0gPgxEP8H4ttArEyuQYxAPBdqEAxPBImTY5gjEL9DM+wTENuQahAvEO9DMwiGdwAxOymGJQLxTyD+jgWDxCMZRsEoGAVoAADeemwtPcZI2wAAAABJRU5ErkJggg==");
121 }
122
123 .desc {
124 background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAZUlEQVQ4y2NgGAWjYBSggaqGu5FA/BOIv2PBIPFEUgxjB+IdQPwfC94HxLykus4GiD+hGfQOiB3J8SojEE9EM2wuSJzcsFMG4ttQgx4DsRalkZENxL+AuJQaMcsGxBOAmGvopk8AVz1sLZgg0bsAAAAASUVORK5CYII= ");
125 }
126 }
127
128 tbody tr {
129 &.selected td {
130 background-color: $hover-bg;
131 }
132
133 &.no-records-found td {
134 text-align: center;
135 }
136
137 .card-view {
138 display: flex;
139
140 .card-view-title {
141 font-weight: bold;
142 display: inline-block;
143 min-width: 30%;
144 width: auto !important;
145 text-align: left !important;
146 }
147
148 .card-view-value {
149 width: 100% !important;
150 text-align: left !important;
151 }
152 }
153 }
154
155 .bs-checkbox {
156 text-align: center;
157
158 label {
159 margin-bottom: 0;
160
161 input[type="radio"],
162 input[type="checkbox"] {
163 margin: 0 auto !important;
164 }
165 }
166 }
167
168 &.table-sm .th-inner {
169 padding: 0.3rem;
170 }
171 }
172
173 &.fixed-height {
174 &:not(.has-footer) {
175 border-bottom: 1px solid $border-color;
176 }
177
178 &.has-card-view {
179 border-top: 1px solid $border-color;
180 border-bottom: 1px solid $border-color;
181 }
182
183 .fixed-table-border {
184 border-left: 1px solid $border-color;
185 border-right: 1px solid $border-color;
186 }
187
188 .table {
189 thead th {
190 border-bottom: 1px solid $border-color;
191 }
192 }
193
194 .table-dark {
195 thead th {
196 border-bottom: 1px solid $dark-border-color;
197 }
198 }
199 }
200
201 .fixed-table-header {
202 overflow: hidden;
203 }
204
205 .fixed-table-body {
206 overflow-x: auto;
207 overflow-y: auto;
208 height: 100%;
209
210 .fixed-table-loading {
211 align-items: center;
212 background: $background;
213 display: flex;
214 justify-content: center;
215 position: absolute;
216 bottom: 0;
217 width: 100%;
218 max-width: 100%;
219 z-index: 1000;
220 transition: visibility 0s, opacity 0.15s ease-in-out;
221 opacity: 0;
222 visibility: hidden;
223
224 &.open {
225 visibility: visible;
226 opacity: 1;
227 }
228
229 .loading-wrap {
230 align-items: baseline;
231 display: flex;
232 justify-content: center;
233
234 .loading-text {
235 margin-right: 6px;
236 }
237
238 .animation-wrap {
239 align-items: center;
240 display: flex;
241 justify-content: center;
242 }
243
244 .animation-dot,
245 .animation-wrap::after,
246 .animation-wrap::before {
247 content: "";
248 animation-duration: 1.5s;
249 animation-iteration-count: infinite;
250 animation-name: loading;
251 background: $color;
252 border-radius: 50%;
253 display: block;
254 height: 5px;
255 margin: 0 4px;
256 opacity: 0;
257 width: 5px;
258 }
259
260 .animation-dot {
261 animation-delay: 0.3s;
262 }
263
264 .animation-wrap::after {
265 animation-delay: 0.6s;
266 }
267 }
268
269 &.table-dark {
270 background: $color;
271
272 .animation-dot,
273 .animation-wrap::after,
274 .animation-wrap::before {
275 background: $background;
276 }
277 }
278 }
279 }
280
281 .fixed-table-footer {
282 overflow: hidden;
283 }
284 }
285
286 .fixed-table-pagination {
287 &::after {
288 content: "";
289 display: block;
290 clear: both;
291 }
292
293 > .pagination-detail,
294 > .pagination {
295 margin-top: 10px;
296 margin-bottom: 10px;
297 }
298
299 > .pagination-detail {
300 .pagination-info {
301 line-height: 34px;
302 margin-right: 5px;
303 }
304
305 .page-list {
306 display: inline-block;
307
308 .btn-group {
309 position: relative;
310 display: inline-block;
311 vertical-align: middle;
312
313 .dropdown-menu {
314 margin-bottom: 0;
315 }
316 }
317 }
318 }
319
320 > .pagination {
321
322 ul.pagination {
323 margin: 0;
324
325 li.page-intermediate {
326 a {
327 &::before {
328 content: "\2B05";
329 }
330
331 &::after {
332 content: "\27A1";
333 }
334
335 color: #c8c8c8;
336 }
337 }
338
339 li.disabled a {
340 pointer-events: none;
341 cursor: default;
342 }
343 }
344 }
345 }
346
347 &.fullscreen {
348 position: fixed;
349 top: 0;
350 left: 0;
351 z-index: 1050;
352 width: 100% !important;
353 background: #fff;
354 height: calc(100vh);
355 overflow-y: scroll;
356 }
357
358 &.bootstrap4,
359 &.bootstrap5 {
360 .pagination-lg .page-link {
361 padding: .5rem 1rem;
362 }
363 }
364
365 &.bootstrap5 {
366 .float-left {
367 float: left;
368 }
369
370 .float-right {
371 float: right;
372 }
373 }
374}
375
376/* calculate scrollbar width */
377div.fixed-table-scroll-inner {
378 width: 100%;
379 height: 200px;
380}
381
382div.fixed-table-scroll-outer {
383 top: 0;
384 left: 0;
385 visibility: hidden;
386 width: 200px;
387 height: 150px;
388 overflow: hidden;
389}
390
391@keyframes loading {
392 0% { opacity: 0; }
393 50% { opacity: 1; }
394 to { opacity: 0; }
395}