patch.less 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. @import './input-otp';
  2. textarea.nz-textarea-autosize-measuring {
  3. height: auto !important;
  4. // Having 2px top and bottom padding seems to fix a bug where Chrome gets an incorrect
  5. // measurement. We just have to account for it later and subtract it off the final result.
  6. padding: 2px 0 !important;
  7. overflow: hidden !important;
  8. }
  9. .@{search-prefix} {
  10. &-enter-button {
  11. & + .@{ant-prefix}-input-group-addon,
  12. input + .@{ant-prefix}-input-group-addon {
  13. .@{search-rtl-cls}& {
  14. .@{search-prefix}-button.@{ant-prefix}-btn-icon-only {
  15. .square(@btn-height-base);
  16. &.@{ant-prefix}-btn-sm {
  17. .square(@btn-height-sm);
  18. }
  19. &.@{ant-prefix}-btn-lg {
  20. .square(@btn-height-lg);
  21. }
  22. }
  23. }
  24. }
  25. }
  26. }
  27. .ant-input-affix-wrapper-textarea-with-clear-btn .ant-input-suffix {
  28. margin-left: 0;
  29. }
  30. nz-form-item-feedback-icon.@{ant-prefix}-input {
  31. &-suffix {
  32. position: absolute;
  33. top: 0;
  34. right: 0;
  35. z-index: 1;
  36. display: flex;
  37. flex: none;
  38. align-items: center;
  39. height: 100%;
  40. margin-right: @padding-sm;
  41. margin-left: @input-affix-margin;
  42. pointer-events: none;
  43. }
  44. }
  45. .@{ant-prefix}-input {
  46. &-status-error,
  47. &-status-warning,
  48. &-status-validating,
  49. &-status-success {
  50. &.@{ant-prefix}-input-has-feedback {
  51. padding-right: @padding-lg + @padding-xss;
  52. }
  53. }
  54. }
  55. .@{ant-prefix}-input-textarea-show-count {
  56. position: relative;
  57. display: block;
  58. }
  59. .input() {
  60. &-stepperless[type='number'] {
  61. /* stylelint-disable-next-line property-no-vendor-prefix */
  62. -moz-appearance: textfield;
  63. &::-webkit-inner-spin-button,
  64. ::-webkit-outer-spin-button {
  65. margin: 0;
  66. /* stylelint-disable-next-line property-no-vendor-prefix */
  67. -webkit-appearance: none;
  68. }
  69. }
  70. }
  71. .@{ant-prefix}-otp-input {
  72. width: auto;
  73. }