UNPKG

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