_datatables.scss 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. /*
  2. * MDBootstrap integration with Datatables
  3. * Learn more: https://mdbootstrap.com/docs/jquery/tables/datatables/
  4. * About MDBootstrap: https://mdbootstrap.com/
  5. *
  6. * This combined file was created by the DataTables downloader builder:
  7. * https://datatables.net/download
  8. *
  9. * To rebuild or modify this file with the latest versions of the included
  10. * software please visit:
  11. * https://datatables.net/download/#bs4/dt-1.10.18
  12. *
  13. * Included libraries:
  14. * DataTables 1.10.18
  15. */
  16. table.dataTable thead {
  17. cursor: pointer;
  18. > tr > {
  19. th:active, td:active {
  20. outline: none;
  21. }
  22. }
  23. }
  24. div.dataTables_wrapper div {
  25. &.dataTables_length {
  26. &.d-flex.flex-row {
  27. label {
  28. margin-top: 1.2rem;
  29. margin-right: 1rem;
  30. }
  31. .select-wrapper.mdb-select {
  32. span, .select-dropdown {
  33. margin-top: 1rem;
  34. }
  35. }
  36. }
  37. }
  38. &.dataTables_length,
  39. &.dataTables_filter {
  40. label {
  41. text-align: left;
  42. font-weight: normal;
  43. padding-top: .5rem;
  44. padding-bottom: .5rem;
  45. }
  46. }
  47. &.dataTables_length {
  48. select, input {
  49. width: auto;
  50. }
  51. }
  52. &.dataTables_filter {
  53. select,
  54. input {
  55. width: auto;
  56. }
  57. input {
  58. margin-left: .5rem;
  59. display: inline-block;
  60. }
  61. text-align: right;
  62. }
  63. &.dataTables_info,
  64. &.dataTables_paginate {
  65. font-weight: normal;
  66. padding-top: 1rem;
  67. padding-bottom: 1rem;
  68. }
  69. &.dataTables_paginate {
  70. text-align: right;
  71. margin: 0;
  72. ul.pagination {
  73. -webkit-box-pack: end;
  74. -webkit-justify-content: flex-end;
  75. -ms-flex-pack: end;
  76. justify-content: flex-end;
  77. .page-item {
  78. &.active .page-link:focus {
  79. background-color: #4285f4;
  80. }
  81. .page-link:focus {
  82. -webkit-box-shadow: none;
  83. box-shadow: none;
  84. }
  85. }
  86. }
  87. }
  88. }
  89. @media (max-width: 767px) {
  90. div.dataTables_wrapper div {
  91. .dataTables_length, .dataTables_filter, .dataTables_info, .dataTables_paginate ul.pagination {
  92. text-align: center;
  93. -webkit-box-pack: center;
  94. -webkit-justify-content: center;
  95. -ms-flex-pack: center;
  96. justify-content: center;
  97. }
  98. }
  99. }
  100. .bs-select select {
  101. display: inline-block !important;
  102. }
  103. table.dataTable thead {
  104. > tr > {
  105. th,
  106. td {
  107. &.sorting_asc, &.sorting_desc, &.sorting {
  108. padding-right: 30px;
  109. }
  110. }
  111. th:active, td:active {
  112. outline: none;
  113. }
  114. }
  115. .sorting, .sorting_asc, .sorting_desc, .sorting_asc_disabled, .sorting_desc_disabled {
  116. cursor: pointer;
  117. position: relative;
  118. }
  119. .sorting,
  120. .sorting_asc,
  121. .sorting_desc,
  122. .sorting_asc_disabled,
  123. .sorting_desc_disabled {
  124. &:before, &:after {
  125. position: absolute;
  126. bottom: 0.9em;
  127. display: block;
  128. opacity: 0.3;
  129. }
  130. }
  131. .sorting:before, .sorting_asc:before, .sorting_desc:before, .sorting_asc_disabled:before, .sorting_desc_disabled:before {
  132. right: 1em;
  133. content: "\f0de";
  134. }
  135. .sorting:after, .sorting_asc:after, .sorting_desc:after, .sorting_asc_disabled:after, .sorting_desc_disabled:after {
  136. content: "\f0dd";
  137. right: 16px;
  138. }
  139. .sorting:before, .sorting_asc:before, .sorting_desc:before, .sorting_asc_disabled:before, .sorting_desc_disabled:before,
  140. .sorting:after, .sorting_asc:after, .sorting_desc:after, .sorting_asc_disabled:after, .sorting_desc_disabled:after {
  141. font-family: 'Font Awesome\ 5 Free';
  142. font-weight: 900;
  143. font-size: 1rem;
  144. }
  145. .sorting_asc:before, .sorting_desc:after {
  146. opacity: 1;
  147. }
  148. .sorting_asc_disabled:before, .sorting_desc_disabled:after {
  149. opacity: 0;
  150. }
  151. }