_datatables.scss 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. // ================================================================================================
  2. // File Name: datatables.scss
  3. // Description: Datatables pages custom scss
  4. // ----------------------------------------------------------------------------------------------
  5. // Item name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template
  6. // Author: PIXINVENT
  7. // Author URL: http://www.themeforest.net/user/pixinvent
  8. // ================================================================================================
  9. table.dataTable{
  10. border: 2px solid $datatable-bg-color;
  11. // datatable th, td
  12. th, td{
  13. border-bottom: 1px solid $datatable-bg-color;
  14. border-top: 0;
  15. }
  16. // thead, tfoot - font, border
  17. thead, tfoot{
  18. th, td{
  19. font-size: $table-th-font-size;
  20. border: 0;
  21. }
  22. }
  23. thead{
  24. //thead - tr bg-color
  25. tr{
  26. background-color: $datatable-bg-color;
  27. }
  28. // Sorting Icons Change
  29. .sorting, .sorting_asc, .sorting_desc{
  30. padding-right: inherit;
  31. &:before{
  32. font-family: 'feather';
  33. content: "\e845";
  34. padding-right: 0.3rem;
  35. font-size: .7rem;
  36. left: 0;
  37. top: .9rem;
  38. }
  39. &:after{
  40. font-family: 'feather';
  41. content: "\e842";
  42. font-size: .7rem;
  43. left: 0;
  44. top: 1.3rem;
  45. }
  46. }
  47. }
  48. // table-striped bg color for even row
  49. &.table-striped tbody tr:nth-of-type(even){
  50. background-color: $datatable-bg-color;
  51. }
  52. // table-striped bg color for odd row
  53. &.table-striped tbody tr:nth-of-type(odd){
  54. background-color: $white;
  55. }
  56. // Complex headers table
  57. &.complex-headers{
  58. border: 1px solid $gray-300;
  59. thead, tfoot{
  60. th, td{
  61. border-bottom: 1px solid $gray-300;
  62. border-right: 1px solid $gray-300;
  63. }
  64. }
  65. }
  66. // selected row bg color
  67. tbody{
  68. tr{
  69. &.selected {
  70. background-color: rgba($primary, 0.05) !important;
  71. color: rgba($primary, 1) !important;
  72. box-shadow: 0 0 1px 0 rgba($primary, 1)!important;
  73. border-radius: 5px;
  74. td, th{
  75. border-bottom: 0;
  76. }
  77. }
  78. }
  79. }
  80. }
  81. // data table search, labels and
  82. div.dataTables_wrapper {
  83. // data table search, labels
  84. div.dataTables_filter, div.dataTables_length {
  85. label{
  86. margin-top: 1rem;
  87. }
  88. select{
  89. background-position:
  90. calc(100% - 3px) 5px,
  91. calc(100% - 20px) 13px,
  92. 100% 0;
  93. padding: 0 0.8rem;
  94. }
  95. }
  96. // pagination
  97. div.dataTables_paginate {
  98. ul.pagination {
  99. margin-top: 1rem;
  100. padding-bottom: 7px;
  101. // font size for pagination
  102. li a{
  103. font-size: 0.8rem;
  104. }
  105. }
  106. }
  107. }
  108. // row grouping
  109. tr.group {
  110. // row grouping color
  111. background-color: $gray-200;
  112. }
  113. // pagination in center
  114. @media only screen and (max-width:768px){
  115. div.dataTables_wrapper {
  116. div.dataTables_paginate {
  117. ul.pagination {
  118. justify-content: center;
  119. }
  120. }
  121. }
  122. }