rtl.less 713 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. @import '../../style/themes/index';
  2. @import '../../style/mixins/index';
  3. @divider-prefix-cls: ~'@{ant-prefix}-divider';
  4. .@{divider-prefix-cls} {
  5. &-rtl {
  6. direction: rtl;
  7. }
  8. &-horizontal&-with-text-left {
  9. &::before {
  10. .@{divider-prefix-cls}-rtl& {
  11. width: 100% - @divider-orientation-margin;
  12. }
  13. }
  14. &::after {
  15. .@{divider-prefix-cls}-rtl& {
  16. width: @divider-orientation-margin;
  17. }
  18. }
  19. }
  20. &-horizontal&-with-text-right {
  21. &::before {
  22. .@{divider-prefix-cls}-rtl& {
  23. width: @divider-orientation-margin;
  24. }
  25. }
  26. &::after {
  27. .@{divider-prefix-cls}-rtl& {
  28. width: 100% - @divider-orientation-margin;
  29. }
  30. }
  31. }
  32. }