UNPKG

7.41 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.428571429;
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;
108 }
109
110 .both {
111 background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAAkElEQVQoz7X QMQ5AQBCF4dWQSJxC5wwax1Cq1e7BAdxD5SL+Tq/QCM1oNiJidwox0355mXnG/DrEtIQ6azioNZQxI0ykPhTQIwhCR+BmBYtlK7kLJYwWCcJA9M4qdrZrd8pPjZWPtOqdRQy320YSV17OatFC4euts6z39GYMKRPCTKY9UnPQ6P+GtMRfGtPnBCiqhAeJPmkqAAAAAElFTkSuQmCC');
112 }
113
114 .asc {
115 background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAZ0lEQVQ4y2NgGLKgquEuFxBPAGI2ahhWCsS/gDibUoO0gPgxEP8H4ttArEyuQYxAPBdqEAxPBImTY5gjEL9DM+wTENuQahAvEO9DMwiGdwAxOymGJQLxTyD+jgWDxCMZRsEoGAVoAADeemwtPcZI2wAAAABJRU5ErkJggg==');
116 }
117
118 .desc {
119 background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAZUlEQVQ4y2NgGAWjYBSggaqGu5FA/BOIv2PBIPFEUgxjB+IdQPwfC94HxLykus4GiD+hGfQOiB3J8SojEE9EM2wuSJzcsFMG4ttQgx4DsRalkZENxL+AuJQaMcsGxBOAmGvopk8AVz1sLZgg0bsAAAAASUVORK5CYII= ');
120 }
121 }
122
123 tbody tr {
124 &.selected td {
125 background-color: $hover-bg;
126 }
127
128 &.no-records-found {
129 text-align: center;
130 }
131
132 .card-view {
133 display: flex;
134
135 .card-view-title {
136 font-weight: bold;
137 display: inline-block;
138 min-width: 30%;
139 text-align: left !important;
140 }
141 }
142 }
143
144 .bs-checkbox {
145 text-align: center;
146 }
147
148 input[type="radio"],
149 input[type="checkbox"] {
150 margin: 0 auto !important;
151 }
152
153 &.table-sm .th-inner {
154 padding: 0.3rem;
155 }
156 }
157
158 &.fixed-height {
159 &:not(.has-footer) {
160 border-bottom: 1px solid $border-color;
161 }
162
163 &.has-card-view {
164 border-top: 1px solid $border-color;
165 border-bottom: 1px solid $border-color;
166 }
167
168 .fixed-table-border {
169 border-left: 1px solid $border-color;
170 border-right: 1px solid $border-color;
171 }
172
173 .table {
174 thead th {
175 border-bottom: 1px solid $border-color;
176 }
177 }
178
179 .table-dark {
180 thead th {
181 border-bottom: 1px solid $dark-border-color;
182 }
183 }
184 }
185
186 .fixed-table-header {
187 overflow: hidden;
188 }
189
190 .fixed-table-body {
191 overflow-x: auto;
192 overflow-y: auto;
193 height: 100%;
194
195 .fixed-table-loading {
196 align-items: center;
197 background: $background;
198 display: none;
199 justify-content: center;
200 position: absolute;
201 bottom: 0;
202 width: 100%;
203 z-index: 1000;
204
205 .loading-wrap {
206 align-items: baseline;
207 display: flex;
208 justify-content: center;
209
210 .loading-text {
211 font-size: 2rem;
212 margin-right: 6px;
213 }
214
215 .animation-wrap {
216 align-items: center;
217 display: flex;
218 justify-content: center;
219 }
220
221 .animation-dot,
222 .animation-wrap::after,
223 .animation-wrap::before {
224 content: "";
225 animation-duration: 1.5s;
226 animation-iteration-count: infinite;
227 animation-name: LOADING;
228 background: $color;
229 border-radius: 50%;
230 display: block;
231 height: 5px;
232 margin: 0 4px;
233 opacity: 0;
234 width: 5px;
235 }
236
237 .animation-dot {
238 animation-delay: 0.3s;
239 }
240
241 .animation-wrap::after {
242 animation-delay: 0.6s;
243 }
244 }
245
246 &.table-dark {
247 background: $color;
248
249 .animation-dot,
250 .animation-wrap::after,
251 .animation-wrap::before {
252 background: $background;
253 }
254 }
255 }
256 }
257
258 .fixed-table-footer {
259 overflow: hidden;
260 }
261 }
262
263 .fixed-table-pagination {
264 &::after {
265 content: "";
266 display: block;
267 clear: both;
268 }
269
270 > .pagination-detail,
271 > .pagination {
272 margin-top: 10px;
273 margin-bottom: 10px;
274 }
275
276 > .pagination-detail {
277 .pagination-info {
278 line-height: 34px;
279 margin-right: 5px;
280 }
281
282 .page-list {
283 display: inline-block;
284
285 .btn-group {
286 position: relative;
287 display: inline-block;
288 vertical-align: middle;
289
290 .dropdown-menu {
291 margin-bottom: 0;
292 }
293 }
294 }
295 }
296
297 > .pagination {
298 ul.pagination {
299 margin: 0;
300
301 a {
302 padding: 6px 12px;
303 line-height: 1.428571429;
304 }
305
306 li.page-intermediate {
307 a {
308 &::before {
309 content: '\2B05';
310 }
311
312 &::after {
313 content: '\27A1';
314 }
315
316 color: #c8c8c8;
317 }
318 }
319
320 li.disabled a {
321 pointer-events: none;
322 cursor: default;
323 }
324 }
325 }
326 }
327
328 &.fullscreen {
329 position: fixed;
330 top: 0;
331 left: 0;
332 z-index: 1050;
333 width: 100% !important;
334 background: #fff;
335 height: calc(100vh);
336 overflow-y: scroll;
337 }
338}
339
340/* calculate scrollbar width */
341div.fixed-table-scroll-inner {
342 width: 100%;
343 height: 200px;
344}
345
346div.fixed-table-scroll-outer {
347 top: 0;
348 left: 0;
349 visibility: hidden;
350 width: 200px;
351 height: 150px;
352 overflow: hidden;
353}
354
355@keyframes LOADING {
356 0% { opacity: 0; }
357 50% { opacity: 1; }
358 to { opacity: 0; }
359}