rtl.scss 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. $module: #{$prefix}-table;
  2. .#{$module}-wrapper-rtl {
  3. .#{$module} {
  4. direction: rtl;
  5. text-align: right;
  6. &-thead {
  7. & > .#{$module}-row {
  8. & > .#{$module}-row-head {
  9. text-align: right;
  10. &.#{$module}-cell-fixed {
  11. &-left-last {
  12. border-right: 0;
  13. border-left: 1px solid $color-table_shadow-border-default;
  14. &.resizing {
  15. // rtl override mixin
  16. border-left: $width-table_resizer_border solid $color-table_resizer-bg-default;
  17. }
  18. }
  19. &-right-first {
  20. border-left: 0;
  21. border-right: 1px solid $color-table_shadow-border-default;
  22. &.resizing {
  23. border-left: $width-table_resizer_border solid $color-table_resizer-bg-default;
  24. }
  25. &[x-type="column-scrollbar"] {
  26. box-shadow: none;
  27. border-right: transparent;
  28. }
  29. }
  30. }
  31. }
  32. .resizing {
  33. border-left: $width-table_resizer_border solid $color-table_resizer-bg-default;
  34. }
  35. .react-resizable-handle {
  36. right: auto;
  37. left: $spacing-table_react_resizable_handle-right;
  38. }
  39. }
  40. }
  41. &-tbody {
  42. display: table-row-group;
  43. & > .#{$module}-row {
  44. & > .#{$module}-row-cell {
  45. &.resizing {
  46. border-right: 0;
  47. border-left: $width-table_resizer_border solid $color-table_resizer-bg-default;
  48. }
  49. }
  50. & > .#{$module}-cell-fixed {
  51. &-left-last {
  52. border-right: 0;
  53. border-left: $width-table_cell_fixed_left_last solid $color-table_shadow-border-default;
  54. }
  55. &-right-first {
  56. border-left: 0;
  57. border-right: $width-table_cell_fixed_right_first solid $color-table_shadow-border-default;
  58. }
  59. }
  60. }
  61. }
  62. .#{$module}-column {
  63. &-selection {
  64. .#{$prefix}-checkbox-inner-display {
  65. .#{$prefix}-icon {
  66. left: auto;
  67. right: 0;
  68. }
  69. }
  70. }
  71. &-expand {
  72. .#{$module}-expand-icon {
  73. transform: scaleX(-1) translateY(2px);
  74. &:last-child {
  75. margin-right: auto;
  76. margin-left: 0;
  77. }
  78. }
  79. }
  80. &-sorter {
  81. margin-left: auto;
  82. margin-right: $spacing-table_column_sorter-marginLeft;
  83. }
  84. &-filter {
  85. margin-left: auto;
  86. margin-right: $spacing-table_column_filter-marginLeft;
  87. }
  88. }
  89. &-bordered {
  90. .#{$module}-container {
  91. border-left: 0;
  92. border-right: $width-table_base_border $border-table_base-borderStyle $color-table-border-default;
  93. }
  94. .#{$module}-thead > .#{$module}-row > .#{$module}-row-head,
  95. .#{$module}-tbody > .#{$module}-row > .#{$module}-row-cell {
  96. border-right: 0;
  97. border-left: $width-table_base_border $border-table_base-borderStyle $color-table-border-default;
  98. }
  99. .#{$module}-placeholder {
  100. border-left: $width-table_base_border $border-table_base-borderStyle $color-table-border-default;
  101. border-right: 0;
  102. }
  103. .#{$module}-header {
  104. &::-webkit-scrollbar {
  105. border-right: 0;
  106. border-left: $width-table_base_border $border-table_base-borderStyle $color-table-border-default;
  107. }
  108. }
  109. }
  110. &-fixed {
  111. & > .#{$module}-tbody {
  112. & > .#{$module}-row-expand > .#{$module}-row-cell > .#{$module}-expand-inner,
  113. & > .#{$module}-row-section > .#{$module}-row-cell > .#{$module}-section-inner {
  114. left: auto;
  115. right: 0;
  116. margin-right: -$spacing-table_expand_row-paddingLeft;
  117. margin-left: -$spacing-table_expand_row-paddingRight;
  118. padding-right: $spacing-table_expand_row-paddingLeft;
  119. padding-left: $spacing-table_expand_row-paddingRight;
  120. }
  121. }
  122. }
  123. &-scroll {
  124. &-position {
  125. &-left {
  126. .#{$module}-tbody,
  127. .#{$module}-thead {
  128. & > .#{$module}-row > .#{$module}-cell-fixed-left-last {
  129. box-shadow: $shadow-table_right;
  130. }
  131. & > .#{$module}-row > .#{$module}-cell-fixed-right-first {
  132. box-shadow: none;
  133. }
  134. }
  135. }
  136. &-right {
  137. .#{$module}-tbody,
  138. .#{$module}-thead {
  139. & > .#{$module}-row > .#{$module}-cell-fixed-left-last {
  140. box-shadow: none;
  141. }
  142. & > .#{$module}-row > .#{$module}-cell-fixed-right-first {
  143. box-shadow: $shadow-table_left;
  144. }
  145. }
  146. }
  147. }
  148. }
  149. }
  150. .#{$module}-expand-icon {
  151. margin-right: auto;
  152. margin-left: $spacing-table_expand_icon-marginRight;
  153. transform: scaleX(-1) translateY(2px);
  154. }
  155. .#{$prefix}-spin {
  156. direction: rtl;
  157. }
  158. }