_datatables.scss 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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. div.dataTables_wrapper div {
  17. &.dataTables_length {
  18. select, input {
  19. width: auto;
  20. }
  21. &.d-flex.flex-row {
  22. label {
  23. margin-top: 1.2rem;
  24. margin-right: 1rem;
  25. }
  26. .select-wrapper.mdb-select {
  27. span, .select-dropdown {
  28. margin-top: 1rem;
  29. }
  30. }
  31. }
  32. }
  33. &.dataTables_length,
  34. &.dataTables_filter {
  35. label {
  36. padding-top: .5rem;
  37. padding-bottom: .5rem;
  38. font-weight: 400;
  39. text-align: left;
  40. }
  41. }
  42. &.dataTables_filter {
  43. select,
  44. input {
  45. width: auto;
  46. }
  47. input {
  48. display: inline-block;
  49. margin-left: .5rem;
  50. }
  51. text-align: right;
  52. }
  53. &.dataTables_info,
  54. &.dataTables_paginate {
  55. padding-top: 1rem;
  56. padding-bottom: 1rem;
  57. font-weight: 400;
  58. }
  59. &.dataTables_paginate {
  60. margin: 0;
  61. text-align: right;
  62. ul.pagination {
  63. -ms-flex-pack: end;
  64. -webkit-justify-content: flex-end;
  65. justify-content: flex-end;
  66. -webkit-box-pack: end;
  67. .page-item {
  68. &.active .page-link:focus {
  69. background-color: #4285f4;
  70. }
  71. .page-link:focus {
  72. -webkit-box-shadow: none;
  73. box-shadow: none;
  74. }
  75. }
  76. }
  77. }
  78. }
  79. @media (max-width: 767px) {
  80. div.dataTables_wrapper div {
  81. .dataTables_length, .dataTables_filter, .dataTables_info, .dataTables_paginate ul.pagination {
  82. -ms-flex-pack: center;
  83. -webkit-justify-content: center;
  84. justify-content: center;
  85. text-align: center;
  86. -webkit-box-pack: center;
  87. }
  88. }
  89. }
  90. .bs-select select {
  91. display: inline-block !important;
  92. }
  93. table.dataTable thead {
  94. cursor: pointer;
  95. > tr > {
  96. th,
  97. td {
  98. &.sorting_asc, &.sorting_desc, &.sorting {
  99. padding-right: 30px;
  100. }
  101. }
  102. th:active, td:active {
  103. outline: none;
  104. }
  105. }
  106. .sorting,
  107. .sorting_asc,
  108. .sorting_desc,
  109. .sorting_asc_disabled,
  110. .sorting_desc_disabled {
  111. position: relative;
  112. cursor: pointer;
  113. &:before, &:after {
  114. position: absolute;
  115. bottom: .9em;
  116. display: block;
  117. opacity: .3;
  118. }
  119. }
  120. .sorting:before, .sorting_asc:before, .sorting_desc:before, .sorting_asc_disabled:before, .sorting_desc_disabled:before {
  121. right: 1em;
  122. font-family: "Font Awesome\ 5 Free", sans-serif;
  123. font-size: 1rem;
  124. font-weight: 900;
  125. content: "\f0de";
  126. }
  127. .sorting:after, .sorting_asc:after, .sorting_desc:after, .sorting_asc_disabled:after, .sorting_desc_disabled:after {
  128. right: 16px;
  129. font-family: "Font Awesome\ 5 Free", sans-serif;
  130. font-size: 1rem;
  131. font-weight: 900;
  132. content: "\f0dd";
  133. }
  134. .sorting_asc:before, .sorting_desc:after {
  135. opacity: 1;
  136. }
  137. .sorting_asc_disabled:before, .sorting_desc_disabled:after {
  138. opacity: 0;
  139. }
  140. }