theme.scss 7.3 KB

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