_theme.scss 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396
  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-x: auto;
  170. overflow-y: auto;
  171. height: 100%;
  172. .fixed-table-loading {
  173. align-items: center;
  174. background: $background;
  175. display: flex;
  176. justify-content: center;
  177. position: absolute;
  178. bottom: 0;
  179. width: 100%;
  180. max-width: 100%;
  181. z-index: 1000;
  182. transition: visibility 0s, opacity 0.15s ease-in-out;
  183. opacity: 0;
  184. visibility: hidden;
  185. &.open {
  186. visibility: visible;
  187. opacity: 1;
  188. }
  189. .loading-wrap {
  190. align-items: baseline;
  191. display: flex;
  192. justify-content: center;
  193. .loading-text {
  194. margin-right: 6px;
  195. }
  196. .animation-wrap {
  197. align-items: center;
  198. display: flex;
  199. justify-content: center;
  200. }
  201. .animation-dot,
  202. .animation-wrap::after,
  203. .animation-wrap::before {
  204. content: "";
  205. animation-duration: 1.5s;
  206. animation-iteration-count: infinite;
  207. animation-name: loading;
  208. background: $color;
  209. border-radius: 50%;
  210. display: block;
  211. height: 5px;
  212. margin: 0 4px;
  213. opacity: 0;
  214. width: 5px;
  215. }
  216. .animation-dot {
  217. animation-delay: 0.3s;
  218. }
  219. .animation-wrap::after {
  220. animation-delay: 0.6s;
  221. }
  222. }
  223. &.table-dark {
  224. background: $color;
  225. .animation-dot,
  226. .animation-wrap::after,
  227. .animation-wrap::before {
  228. background: $background;
  229. }
  230. }
  231. }
  232. }
  233. .fixed-table-footer {
  234. overflow: hidden;
  235. }
  236. }
  237. .fixed-table-pagination {
  238. &::after {
  239. content: "";
  240. display: block;
  241. clear: both;
  242. }
  243. > .pagination-detail,
  244. > .pagination {
  245. margin-top: 10px;
  246. margin-bottom: 10px;
  247. }
  248. > .pagination-detail {
  249. .pagination-info {
  250. line-height: 34px;
  251. margin-right: 5px;
  252. }
  253. .page-list {
  254. display: inline-block;
  255. .btn-group {
  256. position: relative;
  257. display: inline-block;
  258. vertical-align: middle;
  259. .dropdown-menu {
  260. margin-bottom: 0;
  261. }
  262. }
  263. }
  264. }
  265. > .pagination {
  266. ul.pagination {
  267. margin: 0;
  268. li.page-intermediate {
  269. a {
  270. &::before {
  271. content: "\2B05";
  272. }
  273. &::after {
  274. content: "\27A1";
  275. }
  276. color: #c8c8c8;
  277. }
  278. }
  279. li.disabled a {
  280. pointer-events: none;
  281. cursor: default;
  282. }
  283. }
  284. }
  285. }
  286. &.fullscreen {
  287. position: fixed;
  288. top: 0;
  289. left: 0;
  290. z-index: 1050;
  291. width: 100% !important;
  292. background: #fff;
  293. height: calc(100vh);
  294. overflow-y: scroll;
  295. }
  296. &.bootstrap4,
  297. &.bootstrap5 {
  298. .pagination-lg .page-link {
  299. padding: 0.5rem 1rem;
  300. }
  301. }
  302. &.bootstrap5 {
  303. .float-left {
  304. float: left;
  305. }
  306. .float-right {
  307. float: right;
  308. }
  309. }
  310. }
  311. /* calculate scrollbar width */
  312. div.fixed-table-scroll-inner {
  313. width: 100%;
  314. height: 200px;
  315. }
  316. div.fixed-table-scroll-outer {
  317. top: 0;
  318. left: 0;
  319. visibility: hidden;
  320. width: 200px;
  321. height: 150px;
  322. overflow: hidden;
  323. }
  324. @keyframes loading {
  325. 0% { opacity: 0; }
  326. 50% { opacity: 1; }
  327. 100% { opacity: 0; }
  328. }