1
0

rtl.scss 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. @import './variables.scss';
  2. $module: #{$prefix}-popconfirm;
  3. .#{$module} {
  4. &-rtl {
  5. direction: rtl;
  6. }
  7. &-inner {
  8. .#{$module}-rtl & {
  9. padding: $spacing-popconfirm-top $spacing-popconfirm-bottom $spacing-popconfirm-top $spacing-popconfirm-top;
  10. .#{$module}-btn-close {
  11. right: auto;
  12. left: 0;
  13. margin-right: 0;
  14. margin-left: $spacing-popconfirm_btn_close-margin;
  15. }
  16. }
  17. }
  18. &-header {
  19. .#{$module}-rtl & {
  20. margin-right: 0;
  21. margin-left: $spacing-popconfirm_header-marginRight;
  22. &-icon {
  23. margin-right: 0;
  24. margin-left: $spacing-popconfirm_header_icon-marginRight;
  25. }
  26. }
  27. }
  28. &-footer {
  29. .#{$module}-rtl & {
  30. justify-content: flex-end;
  31. & > .#{$prefix}-button:first-child:not(:last-child) {
  32. margin-right: 0;
  33. margin-left: $spacing-popconfirm_footer_btn-marginRight;
  34. }
  35. }
  36. }
  37. }
  38. .#{$prefix}-popover-with-arrow {
  39. &.#{$module}-rtl {
  40. direction: rtl;
  41. .#{$module}-inner {
  42. padding: $spacing-popconfirm_popover_with_arrow_inner_rtl-padding;
  43. .#{$module}-btn-close {
  44. margin-right: 0;
  45. margin-left: $spacing-popconfirm_popover_with_arrow_inner_btn_close-marginRight;
  46. }
  47. }
  48. }
  49. }