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

41 lines
1.2 KiB
JavaScript
Raw Normal View History

import BaseStyle from 'primevue/base/style';
const theme = ({ dt }) => `
.p-inplace-display {
2024-05-25 14:14:15 +00:00
display: inline-block;
cursor: pointer;
2024-05-25 14:14:15 +00:00
border: 1px solid transparent;
2024-05-09 19:00:50 +00:00
padding: ${dt('inplace.padding')};
border-radius: ${dt('inplace.border.radius')};
transition: background ${dt('inplace.transition.duration')}, color ${dt('inplace.transition.duration')}, outline-color ${dt('inplace.transition.duration')}, box-shadow ${dt('inplace.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 {
2024-05-09 19:00:50 +00:00
box-shadow: ${dt('inplace.focus.ring.shadow')};
outline: ${dt('inplace.focus.ring.width')} ${dt('inplace.focus.ring.style')} ${dt('inplace.focus.ring.color')};
outline-offset: ${dt('inplace.focus.ring.offset')};
}
.p-inplace-content {
2024-05-25 14:14:15 +00:00
display: block;
}
`;
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
});