_theme.scss 7.2 KB

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