antd
Version:
An enterprise-class UI design language and React components implementation
39 lines (38 loc) • 1.11 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
const genSelectInputCustomizeStyle = token => {
const {
antCls,
componentCls
} = token;
const transparentBackground = {
background: 'transparent'
};
const disabledCustomizedInputSelector = ['> input[disabled]', '> textarea[disabled]', `> ${componentCls}-input`, `> ${antCls}-input-affix-wrapper-disabled`, `> ${antCls}-input-search`].join(', ');
return {
[`&${componentCls}-customize`]: {
border: 0,
padding: 0,
fontSize: 'inherit',
lineHeight: 'inherit',
[`${componentCls}-placeholder`]: {
display: 'none'
},
[`${componentCls}-content`]: {
margin: 0,
padding: 0,
'&-value': {
display: 'none'
}
},
[`&${componentCls}-disabled ${componentCls}-content`]: {
[disabledCustomizedInputSelector]: transparentBackground,
'input[disabled], textarea[disabled]': transparentBackground
}
}
};
};
var _default = exports.default = genSelectInputCustomizeStyle;