rtl.less 964 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. @import '../../style/themes/index';
  2. @import '../../style/mixins/index';
  3. @import '../../input/style/mixin';
  4. @input-number-prefix-cls: ~'@{ant-prefix}-input-number';
  5. .@{input-number-prefix-cls} {
  6. &-rtl {
  7. direction: rtl;
  8. }
  9. &-handler {
  10. .@{input-number-prefix-cls}-rtl & {
  11. border-right: @border-width-base @border-style-base @input-number-handler-border-color;
  12. border-left: 0;
  13. }
  14. &-wrap {
  15. .@{input-number-prefix-cls}-rtl & {
  16. right: auto;
  17. left: 0;
  18. }
  19. .@{input-number-prefix-cls}-rtl.@{input-number-prefix-cls}-borderless & {
  20. border-right-width: 0;
  21. }
  22. }
  23. &-up {
  24. .@{input-number-prefix-cls}-rtl & {
  25. border-top-right-radius: 0;
  26. }
  27. }
  28. &-down {
  29. .@{input-number-prefix-cls}-rtl & {
  30. border-bottom-right-radius: 0;
  31. }
  32. }
  33. }
  34. &-input {
  35. .@{input-number-prefix-cls}-rtl & {
  36. direction: ltr;
  37. text-align: right;
  38. }
  39. }
  40. }