bootstrap-table.scss 5.9 KB

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