_datatables.scss 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. // GENERAL FIXES
  2. // -----------------------------------------------------------------------------
  3. /* Common Fixes */
  4. .dataTables_wrapper {
  5. position:relative;
  6. .DTTT.btn-group {
  7. display: inline-block !important;
  8. }
  9. .datatables-header {
  10. margin-bottom: 15px;
  11. label {
  12. font-weight: normal;
  13. margin: 0;
  14. }
  15. }
  16. // prevent sort arrows to overlap text
  17. table {
  18. thead {
  19. th {
  20. padding-right: 21px !important;
  21. }
  22. }
  23. }
  24. }
  25. // PER PAGE
  26. // -----------------------------------------------------------------------------
  27. .dataTables_wrapper {
  28. .dataTables_length {
  29. .select2-container {
  30. margin-right: 10px;
  31. width: 75px;
  32. }
  33. }
  34. }
  35. @media only screen and (max-width: 991px) {
  36. .dataTables_wrapper {
  37. .dataTables_length {
  38. margin-bottom: 15px;
  39. label {
  40. float: none;
  41. width: 100%;
  42. }
  43. }
  44. }
  45. }
  46. // FILTER
  47. // -----------------------------------------------------------------------------
  48. /* Filter */
  49. .dataTables_wrapper {
  50. .dataTables_filter {
  51. label {
  52. width: 50%;
  53. }
  54. input {
  55. width: 100%;
  56. }
  57. }
  58. }
  59. @media only screen and (max-width: 991px) {
  60. .dataTables_wrapper {
  61. .dataTables_filter {
  62. label {
  63. width: 100%;
  64. }
  65. }
  66. }
  67. }
  68. // FOOTER
  69. // -----------------------------------------------------------------------------
  70. /* Footer */
  71. .dataTables_wrapper {
  72. .datatables-footer {
  73. margin-top: 15px;
  74. .dataTables_info {
  75. font-size: 11px;
  76. padding-top: 0;
  77. margin-top: 6px;
  78. }
  79. .dataTables_paginate {
  80. .pagination {
  81. display: block;
  82. margin: 0;
  83. }
  84. }
  85. }
  86. }
  87. @media only screen and (max-width: 991px) {
  88. .dataTables_wrapper {
  89. .datatables-footer {
  90. .dataTables_info {
  91. margin-bottom: 15px;
  92. text-align: center;
  93. }
  94. .dataTables_paginate {
  95. float: none;
  96. text-align: center;
  97. .pagination {
  98. display: inline-block;
  99. }
  100. }
  101. }
  102. }
  103. }
  104. // DATATABLES EMPTY
  105. // -----------------------------------------------------------------------------
  106. /* Empty Row */
  107. .dataTables_wrapper {
  108. .dataTables_empty {
  109. padding: 50px 0;
  110. text-align: center;
  111. }
  112. }
  113. // DATATABLES LOADER
  114. // -----------------------------------------------------------------------------
  115. .dataTables_processing {
  116. background: $color-primary;
  117. border-radius: 100px;
  118. box-shadow: 0 1px 1px -1px rgba(0, 0, 0, 0.3);
  119. color: #FFF;
  120. left: 50%;
  121. margin-left: -36px;
  122. padding: 5px 10px;
  123. position: absolute;
  124. top: 3px;
  125. }
  126. @media only screen and (max-width: 991px) {
  127. .dataTables_processing {
  128. left: auto;
  129. margin-left: 0;
  130. right: 0;
  131. }
  132. }
  133. // DATATABLES PRINT
  134. // -----------------------------------------------------------------------------
  135. .DTTT_Print {
  136. &,
  137. .inner-wrapper,
  138. .content-body,
  139. .panel {
  140. background: #FFF !important;
  141. margin: 0 !important;
  142. padding: 0 !important;
  143. top: 0 !important;
  144. }
  145. .dataTables_wrapper {
  146. .DTTT.btn-group {
  147. display: none !important;
  148. }
  149. }
  150. .DTTT_print_info {
  151. background: rgba(255, 255, 255, 0.9);
  152. display: block;
  153. left: 0;
  154. height: 100px;
  155. line-height: 100px;
  156. position: fixed;
  157. font-size: 14px;
  158. text-align: center;
  159. top: 0;
  160. width: 100%;
  161. }
  162. }
  163. // DARK - DATATABLES
  164. // -----------------------------------------------------------------------------
  165. /* Dark Fixes */
  166. html.dark {
  167. div.DTTT .btn {
  168. color: #EEE !important;
  169. }
  170. }