affix.less 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. @import '../../input/style/mixin';
  2. @import (reference) '../../style/themes/index';
  3. @input-prefix-cls: ~'@{ant-prefix}-input';
  4. @input-affix-margin: 4px;
  5. .@{ant-prefix}-input-number {
  6. &-affix-wrapper {
  7. .input();
  8. // or number handler will cover form status
  9. position: static;
  10. display: inline-flex;
  11. width: 90px;
  12. padding: 0;
  13. padding-inline-start: @input-padding-horizontal-base;
  14. &:not(&-disabled):hover {
  15. .hover();
  16. z-index: 1;
  17. }
  18. &-focused,
  19. &:focus {
  20. z-index: 1;
  21. }
  22. &-disabled {
  23. .@{ant-prefix}-input-number[disabled] {
  24. background: transparent;
  25. }
  26. }
  27. > div.@{ant-prefix}-input-number {
  28. width: 100%;
  29. border: none;
  30. outline: none;
  31. &.@{ant-prefix}-input-number-focused {
  32. box-shadow: none !important;
  33. }
  34. }
  35. input.@{ant-prefix}-input-number-input {
  36. padding: 0;
  37. }
  38. &::before {
  39. width: 0;
  40. visibility: hidden;
  41. content: '\a0';
  42. }
  43. }
  44. &-prefix {
  45. display: flex;
  46. flex: none;
  47. align-items: center;
  48. margin-inline-end: @input-affix-margin;
  49. }
  50. }
  51. .@{ant-prefix}-input-number-group-wrapper .@{ant-prefix}-input-number-affix-wrapper {
  52. width: 100%;
  53. }