UNPKG

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