bootstrap-table.css 7.2 KB

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