2024-02-19 22:53:42 +00:00
|
|
|
export default {
|
2024-03-12 08:19:23 +00:00
|
|
|
css: ({ dt }) => `
|
2024-02-19 22:53:42 +00:00
|
|
|
.p-tooltip {
|
|
|
|
position: absolute;
|
|
|
|
display: none;
|
|
|
|
max-width: 12.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-tooltip-right,
|
|
|
|
.p-tooltip-left {
|
|
|
|
padding: 0 0.25rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-tooltip-top,
|
|
|
|
.p-tooltip-bottom {
|
|
|
|
padding: 0.25rem 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-tooltip-text {
|
|
|
|
white-space: pre-line;
|
|
|
|
word-break: break-word;
|
2024-03-12 12:07:51 +00:00
|
|
|
background: ${dt('tooltip.background')};
|
|
|
|
color: ${dt('tooltip.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
padding: 0.5rem 0.75rem;
|
|
|
|
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
|
|
|
|
border-radius: 6px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-tooltip-arrow {
|
|
|
|
position: absolute;
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
border-color: transparent;
|
|
|
|
border-style: solid;
|
|
|
|
scale: 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-tooltip-right .p-tooltip-arrow {
|
|
|
|
margin-top: -0.25rem;
|
|
|
|
border-width: 0.25em 0.25em 0.25em 0;
|
2024-03-12 12:07:51 +00:00
|
|
|
border-right-color: ${dt('tooltip.background')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-tooltip-left .p-tooltip-arrow {
|
|
|
|
margin-top: -0.25rem;
|
|
|
|
border-width: 0.25em 0 0.25em 0.25rem;
|
2024-03-12 12:07:51 +00:00
|
|
|
border-left-color: ${dt('tooltip.background')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-tooltip-top .p-tooltip-arrow {
|
|
|
|
margin-left: -0.25rem;
|
|
|
|
border-width: 0.25em 0.25em 0;
|
2024-03-12 12:07:51 +00:00
|
|
|
border-top-color: ${dt('tooltip.background')};
|
|
|
|
border-bottom-color: ${dt('tooltip.background')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-tooltip-bottom .p-tooltip-arrow {
|
|
|
|
margin-left: -0.25rem;
|
|
|
|
border-width: 0 0.25em 0.25rem;
|
|
|
|
}
|
|
|
|
`
|
|
|
|
};
|