primevue-mirror/components/lib/inplace/style/InplaceStyle.js

36 lines
781 B
JavaScript

import BaseStyle from 'primevue/base/style';
const css = `
@layer primevue {
.p-inplace .p-inplace-display {
display: inline;
cursor: pointer;
}
.p-inplace .p-inplace-content {
display: inline;
}
.p-fluid .p-inplace.p-inplace-closable .p-inplace-content {
display: flex;
}
.p-fluid .p-inplace.p-inplace-closable .p-inplace-content > .p-inputtext {
flex: 1 1 auto;
width: 1%;
}
}
`;
const classes = {
root: ({ props }) => ['p-inplace p-component', { 'p-inplace-closable': props.closable }],
display: ({ props }) => ['p-inplace-display', { 'p-disabled': props.disabled }],
content: 'p-inplace-content'
};
export default BaseStyle.extend({
name: 'inplace',
css,
classes
});