bootstrap-table.scss 5.8 KB

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