_theme.scss 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390
  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 !important;
  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 td {
  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. width: auto !important;
  115. text-align: left !important;
  116. }
  117. .card-view-value {
  118. width: 100% !important;
  119. text-align: left !important;
  120. }
  121. }
  122. }
  123. .bs-checkbox {
  124. text-align: center;
  125. label {
  126. margin-bottom: 0;
  127. input[type="radio"],
  128. input[type="checkbox"] {
  129. margin: 0 auto !important;
  130. }
  131. }
  132. }
  133. &.table-sm .th-inner {
  134. padding: 0.3rem;
  135. }
  136. }
  137. &.fixed-height {
  138. &:not(.has-footer) {
  139. border-bottom: 1px solid $border-color;
  140. }
  141. &.has-card-view {
  142. border-top: 1px solid $border-color;
  143. border-bottom: 1px solid $border-color;
  144. }
  145. .fixed-table-border {
  146. border-left: 1px solid $border-color;
  147. border-right: 1px solid $border-color;
  148. }
  149. .table {
  150. thead th {
  151. border-bottom: 1px solid $border-color;
  152. }
  153. }
  154. .table-dark {
  155. thead th {
  156. border-bottom: 1px solid $dark-border-color;
  157. }
  158. }
  159. }
  160. .fixed-table-header {
  161. overflow: hidden;
  162. }
  163. .fixed-table-body {
  164. overflow-x: auto;
  165. overflow-y: auto;
  166. height: 100%;
  167. .fixed-table-loading {
  168. align-items: center;
  169. background: $background;
  170. display: flex;
  171. justify-content: center;
  172. position: absolute;
  173. bottom: 0;
  174. width: 100%;
  175. max-width: 100%;
  176. z-index: 1000;
  177. transition: visibility 0s, opacity 0.15s ease-in-out;
  178. opacity: 0;
  179. visibility: hidden;
  180. &.open {
  181. visibility: visible;
  182. opacity: 1;
  183. }
  184. .loading-wrap {
  185. align-items: baseline;
  186. display: flex;
  187. justify-content: center;
  188. .loading-text {
  189. margin-right: 6px;
  190. }
  191. .animation-wrap {
  192. align-items: center;
  193. display: flex;
  194. justify-content: center;
  195. }
  196. .animation-dot,
  197. .animation-wrap::after,
  198. .animation-wrap::before {
  199. content: "";
  200. animation-duration: 1.5s;
  201. animation-iteration-count: infinite;
  202. animation-name: LOADING;
  203. background: $color;
  204. border-radius: 50%;
  205. display: block;
  206. height: 5px;
  207. margin: 0 4px;
  208. opacity: 0;
  209. width: 5px;
  210. }
  211. .animation-dot {
  212. animation-delay: 0.3s;
  213. }
  214. .animation-wrap::after {
  215. animation-delay: 0.6s;
  216. }
  217. }
  218. &.table-dark {
  219. background: $color;
  220. .animation-dot,
  221. .animation-wrap::after,
  222. .animation-wrap::before {
  223. background: $background;
  224. }
  225. }
  226. }
  227. }
  228. .fixed-table-footer {
  229. overflow: hidden;
  230. }
  231. }
  232. .fixed-table-pagination {
  233. &::after {
  234. content: "";
  235. display: block;
  236. clear: both;
  237. }
  238. > .pagination-detail,
  239. > .pagination {
  240. margin-top: 10px;
  241. margin-bottom: 10px;
  242. }
  243. > .pagination-detail {
  244. .pagination-info {
  245. line-height: 34px;
  246. margin-right: 5px;
  247. }
  248. .page-list {
  249. display: inline-block;
  250. .btn-group {
  251. position: relative;
  252. display: inline-block;
  253. vertical-align: middle;
  254. .dropdown-menu {
  255. margin-bottom: 0;
  256. }
  257. }
  258. }
  259. }
  260. > .pagination {
  261. ul.pagination {
  262. margin: 0;
  263. li.page-intermediate {
  264. a {
  265. &::before {
  266. content: '\2B05';
  267. }
  268. &::after {
  269. content: '\27A1';
  270. }
  271. color: #c8c8c8;
  272. }
  273. }
  274. li.disabled a {
  275. pointer-events: none;
  276. cursor: default;
  277. }
  278. }
  279. }
  280. }
  281. &.fullscreen {
  282. position: fixed;
  283. top: 0;
  284. left: 0;
  285. z-index: 1050;
  286. width: 100% !important;
  287. background: #fff;
  288. height: calc(100vh);
  289. overflow-y: scroll;
  290. }
  291. &.bootstrap4,
  292. &.bootstrap5 {
  293. .pagination-lg .page-link {
  294. padding: .5rem 1rem;
  295. }
  296. }
  297. &.bootstrap5 {
  298. .float-left {
  299. float: left;
  300. }
  301. .float-right {
  302. float: right;
  303. }
  304. }
  305. }
  306. /* calculate scrollbar width */
  307. div.fixed-table-scroll-inner {
  308. width: 100%;
  309. height: 200px;
  310. }
  311. div.fixed-table-scroll-outer {
  312. top: 0;
  313. left: 0;
  314. visibility: hidden;
  315. width: 200px;
  316. height: 150px;
  317. overflow: hidden;
  318. }
  319. @keyframes LOADING {
  320. 0% { opacity: 0; }
  321. 50% { opacity: 1; }
  322. to { opacity: 0; }
  323. }