2024-02-19 22:53:42 +00:00
|
|
|
export default {
|
2024-03-12 08:19:23 +00:00
|
|
|
css: ({ dt }) => `
|
2024-04-08 12:12:38 +00:00
|
|
|
.p-popover {
|
2024-02-19 22:53:42 +00:00
|
|
|
margin-top: 10px;
|
2024-03-12 12:07:51 +00:00
|
|
|
background: ${dt('overlaypanel.background')};
|
|
|
|
color: ${dt('overlaypanel.color')};
|
|
|
|
border: 1px solid ${dt('overlaypanel.border.color')};
|
2024-03-12 08:19:23 +00:00
|
|
|
border-radius: ${dt('rounded.base')};
|
2024-02-19 22:53:42 +00:00
|
|
|
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
|
|
|
|
}
|
|
|
|
|
2024-04-08 12:12:38 +00:00
|
|
|
.p-popover-content {
|
2024-02-19 22:53:42 +00:00
|
|
|
padding: 0.75rem;
|
|
|
|
}
|
|
|
|
|
2024-04-08 12:12:38 +00:00
|
|
|
.p-popover-flipped {
|
2024-02-19 22:53:42 +00:00
|
|
|
margin-top: 0;
|
|
|
|
margin-bottom: 10px;
|
|
|
|
}
|
|
|
|
|
2024-04-08 12:12:38 +00:00
|
|
|
.p-popover-enter-from {
|
2024-02-19 22:53:42 +00:00
|
|
|
opacity: 0;
|
|
|
|
transform: scaleY(0.8);
|
|
|
|
}
|
|
|
|
|
2024-04-08 12:12:38 +00:00
|
|
|
.p-popover-leave-to {
|
2024-02-19 22:53:42 +00:00
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
2024-04-08 12:12:38 +00:00
|
|
|
.p-popover-enter-active {
|
2024-02-19 22:53:42 +00:00
|
|
|
transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);
|
|
|
|
}
|
|
|
|
|
2024-04-08 12:12:38 +00:00
|
|
|
.p-popover-leave-active {
|
2024-02-19 22:53:42 +00:00
|
|
|
transition: opacity 0.1s linear;
|
|
|
|
}
|
|
|
|
|
2024-04-08 12:12:38 +00:00
|
|
|
.p-popover:after,
|
|
|
|
.p-popover:before {
|
2024-02-19 22:53:42 +00:00
|
|
|
bottom: 100%;
|
2024-03-28 14:26:59 +00:00
|
|
|
left: ${dt('{overlay.arrow.left} + 1.25rem', 0)};
|
2024-02-19 22:53:42 +00:00
|
|
|
content: " ";
|
|
|
|
height: 0;
|
|
|
|
width: 0;
|
|
|
|
position: absolute;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
2024-04-08 12:12:38 +00:00
|
|
|
.p-popover:after {
|
2024-02-19 22:53:42 +00:00
|
|
|
border-width: 8px;
|
|
|
|
margin-left: -8px;
|
|
|
|
border-style: solid;
|
|
|
|
border-color: transparent;
|
2024-03-12 12:07:51 +00:00
|
|
|
border-bottom-color: ${dt('overlaypanel.background')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-08 12:12:38 +00:00
|
|
|
.p-popover:before {
|
2024-02-19 22:53:42 +00:00
|
|
|
border-width: 10px;
|
|
|
|
margin-left: -10px;
|
|
|
|
border-style: solid;
|
|
|
|
border-color: transparent;
|
2024-03-12 12:07:51 +00:00
|
|
|
border-bottom-color: ${dt('overlaypanel.border.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-08 12:12:38 +00:00
|
|
|
.p-popover-flipped:after,
|
|
|
|
.p-popover-flipped:before {
|
2024-02-19 22:53:42 +00:00
|
|
|
bottom: auto;
|
|
|
|
top: 100%;
|
|
|
|
}
|
|
|
|
|
2024-04-08 12:12:38 +00:00
|
|
|
.p-popover.p-popover-flipped:after {
|
2024-02-19 22:53:42 +00:00
|
|
|
border-bottom-color: transparent;
|
2024-03-12 12:07:51 +00:00
|
|
|
border-top-color: ${dt('overlaypanel.background')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-08 12:12:38 +00:00
|
|
|
.p-popover.p-popover-flipped:before {
|
2024-02-19 22:53:42 +00:00
|
|
|
border-bottom-color: transparent;
|
2024-03-12 12:07:51 +00:00
|
|
|
border-top-color: ${dt('overlaypanel.border.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
`
|
|
|
|
};
|