ant-design/components/style/mixins/compatibility.less

25 lines
554 B
Plaintext
Raw Normal View History

2015-06-09 15:21:44 +08:00
// Compatibility for browsers.
// Placeholder text
.placeholder(@color: @input-placeholder-color) {
// Firefox
/* stylelint-disable-next-line selector-no-vendor-prefix */
&::-moz-placeholder {
opacity: 1; // Override Firefox's unusual default opacity; see https://github.com/twbs/bootstrap/pull/11526
}
&::placeholder {
color: @color;
}
2019-07-22 19:21:33 +08:00
&:placeholder-shown {
text-overflow: ellipsis;
}
// Chrome
/* stylelint-disable-next-line selector-no-vendor-prefix */
&::-webkit-input-placeholder {
user-select: none;
}
}