rtl.less 852 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. @import '../../style/themes/index';
  2. @import '../../style/mixins/index';
  3. @typography-prefix-cls: ~'@{ant-prefix}-typography';
  4. .@{typography-prefix-cls} {
  5. &-rtl {
  6. direction: rtl;
  7. }
  8. // Operation
  9. &-expand,
  10. &-edit,
  11. &-copy {
  12. .@{typography-prefix-cls}-rtl & {
  13. margin-right: 4px;
  14. margin-left: 0;
  15. }
  16. }
  17. &-expand {
  18. .@{typography-prefix-cls}-rtl & {
  19. float: left;
  20. }
  21. }
  22. // Text input area
  23. &-edit-content {
  24. div& {
  25. &.@{typography-prefix-cls}-rtl {
  26. right: -@input-padding-horizontal - 1px;
  27. left: auto;
  28. }
  29. }
  30. &-confirm {
  31. .@{typography-prefix-cls}-rtl & {
  32. right: auto;
  33. left: 10px;
  34. }
  35. }
  36. }
  37. // list
  38. ul,
  39. ol {
  40. li {
  41. .@{typography-prefix-cls}-rtl& {
  42. margin: 0 20px 0 0;
  43. padding: 0 4px 0 0;
  44. }
  45. }
  46. }
  47. }