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

39 lines
1.0 KiB
JavaScript
Raw Normal View History

import BaseStyle from 'primevue/base/style';
const theme = ({ dt }) => `
.p-inplace-display {
display: inline;
cursor: pointer;
padding: 0.5rem 0.75rem;
2024-05-06 21:18:22 +00:00
border-radius: ${dt('border.radius.md')};
transition: background-color ${dt('transition.duration')}, color ${dt('transition.duration')}, outline-color ${dt('transition.duration')};
outline-color: transparent;
}
.p-inplace-display:not(.p-disabled):hover {
background: ${dt('inplace.display.hover.background')};
color: ${dt('inplace.display.hover.color')};
}
.p-inplace-display:focus-visible {
outline: ${dt('focus.ring.width')} ${dt('focus.ring.style')} ${dt('focus.ring.color')};
outline-offset: ${dt('focus.ring.offset')};
}
.p-inplace-content {
display: inline;
}
`;
const classes = {
2024-04-09 14:11:00 +00:00
root: 'p-inplace p-component',
display: ({ props }) => ['p-inplace-display', { 'p-disabled': props.disabled }],
content: 'p-inplace-content'
};
export default BaseStyle.extend({
name: 'inplace',
theme,
classes
});