compatibility.less 497 B

12345678910111213141516171819
  1. // Compatibility for browsers.
  2. // Placeholder text
  3. .placeholder(@color: @input-placeholder-color) {
  4. // Firefox
  5. /* stylelint-disable-next-line selector-no-vendor-prefix */
  6. &::-moz-placeholder {
  7. opacity: 1; // Override Firefox's unusual default opacity; see https://github.com/twbs/bootstrap/pull/11526
  8. }
  9. &::placeholder {
  10. color: @color;
  11. user-select: none; // https://github.com/ant-design/ant-design/pull/32639
  12. }
  13. &:placeholder-shown {
  14. text-overflow: ellipsis;
  15. }
  16. }