vue-good-table.scss 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. // Core variables and mixins
  2. @import '~@resources/scss/base/bootstrap-extended/include';
  3. // Overrides user variable
  4. @import '~@resources/scss/base/components/include';
  5. // good table variable override to change the color of table
  6. $text-color: $body-color;
  7. $thead-bg-color-1: transparent;
  8. $thead-bg-color-2: transparent;
  9. // sorting icons
  10. .vgt-wrap {
  11. .vgt-table {
  12. th.sortable {
  13. &:before {
  14. border-top-color: $border-color;
  15. }
  16. &:after {
  17. border-bottom-color: $border-color;
  18. }
  19. }
  20. thead {
  21. th {
  22. &.sorting-desc {
  23. &::before {
  24. border-top-color: $primary;
  25. }
  26. }
  27. &.sorting-asc {
  28. &::after {
  29. border-bottom-color: $primary;
  30. }
  31. }
  32. }
  33. }
  34. }
  35. }
  36. // pagination in rtl
  37. .vgt-wrap.rtl {
  38. .vgt-table {
  39. th.sortable {
  40. &::after,
  41. &::before {
  42. left: 2rem;
  43. }
  44. }
  45. }
  46. .pagination {
  47. .page-item:last-child:not(.next-item) {
  48. .page-link {
  49. border-top-right-radius: 0;
  50. border-bottom-right-radius: 0;
  51. border-top-left-radius: 1.428rem;
  52. border-bottom-left-radius: 1.428rem;
  53. }
  54. }
  55. .page-item:first-child:not(.prev-item) {
  56. .page-link {
  57. border-top-left-radius: 0;
  58. border-bottom-left-radius: 0;
  59. border-top-right-radius: 1.428rem;
  60. border-bottom-right-radius: 1.428rem;
  61. }
  62. }
  63. }
  64. }
  65. //--------- dark layout -----------//
  66. body {
  67. &.dark-layout {
  68. .vgt-wrap {
  69. .vgt-table {
  70. background-color: $theme-dark-card-bg;
  71. border-color: $theme-dark-border-color;
  72. th,
  73. td,
  74. tr {
  75. border-color: $theme-dark-border-color;
  76. background-color: $theme-dark-card-bg;
  77. span {
  78. color: $theme-dark-body-color;
  79. }
  80. input {
  81. background-color: $theme-dark-input-bg;
  82. color: $theme-dark-body-color;
  83. border-color: $theme-dark-input-border-color;
  84. &::placeholder {
  85. color: $theme-dark-body-color;
  86. }
  87. }
  88. }
  89. th.sortable {
  90. &::after {
  91. border-bottom-color: $theme-dark-body-color;
  92. }
  93. &::before {
  94. border-top-color: $theme-dark-body-color;
  95. }
  96. }
  97. thead th.sorting-desc::before {
  98. border-top-color: $primary;
  99. }
  100. thead th.sorting-asc::after {
  101. border-bottom-color: $primary;
  102. }
  103. }
  104. }
  105. }
  106. }
  107. // ------------------------------------------------
  108. // RTL
  109. // ------------------------------------------------
  110. html[dir='rtl'] {
  111. .b-pagination {
  112. .page-item {
  113. &.prev-item {
  114. margin-right: 0.3571rem;
  115. margin-left: 0;
  116. .page-link {
  117. svg {
  118. transform: rotate(360deg);
  119. }
  120. }
  121. ~ .page-item:nth-child(2):not(.active) {
  122. .page-link {
  123. border-top-right-radius: 0 !important;
  124. border-bottom-right-radius: 0 !important;
  125. border-top-left-radius: 5rem;
  126. border-bottom-left-radius: 5rem;
  127. }
  128. }
  129. ~ .page-item:nth-last-child(2):not(.active) {
  130. .page-link {
  131. border-top-left-radius: 0 !important;
  132. border-bottom-left-radius: 0 !important;
  133. border-top-right-radius: 5rem;
  134. border-bottom-right-radius: 5rem;
  135. }
  136. }
  137. ~ .page-item:nth-child(2) {
  138. border-top-right-radius: 0;
  139. border-bottom-right-radius: 0;
  140. border-top-left-radius: 5rem;
  141. border-bottom-left-radius: 5rem;
  142. }
  143. ~ .page-item:nth-last-child(2) {
  144. border-top-left-radius: 0;
  145. border-bottom-left-radius: 0;
  146. border-top-right-radius: 5rem;
  147. border-bottom-right-radius: 5rem;
  148. }
  149. }
  150. &.next-item {
  151. margin-right: 0;
  152. margin-left: 0.3571rem;
  153. .page-link {
  154. svg {
  155. transform: rotate(360deg);
  156. }
  157. }
  158. }
  159. &.active {
  160. .page-link {
  161. border-top-right-radius: 5rem !important;
  162. border-bottom-right-radius: 5rem !important;
  163. }
  164. }
  165. }
  166. }
  167. }
  168. @import '~vue-good-table/src/styles/style.scss';