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-overlaypanel {
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-overlaypanel-content {
|
|
|
|
padding: 0.75rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-overlaypanel-flipped {
|
|
|
|
margin-top: 0;
|
|
|
|
margin-bottom: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-overlaypanel-close {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
overflow: hidden;
|
|
|
|
width: 1.75rem;
|
|
|
|
height: 1.75rem;
|
|
|
|
background: transparent;
|
2024-03-12 12:07:51 +00:00
|
|
|
color: ${dt('overlaypanel.close.icon.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
border: 0 none;
|
|
|
|
border-radius: 50%;
|
2024-03-12 08:19:23 +00:00
|
|
|
transition: background-color ${dt('transition.duration')}, color ${dt('transition.duration')}, outline-color ${dt('transition.duration')};
|
2024-02-19 22:53:42 +00:00
|
|
|
outline-color: transparent;
|
|
|
|
position: absolute;
|
|
|
|
top: 0.25rem;
|
|
|
|
right: 0.25rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-overlaypanel-close:enabled:hover {
|
2024-03-12 12:07:51 +00:00
|
|
|
background: ${dt('overlaypanel.close.icon.hover.background')};
|
|
|
|
color: ${dt('overlaypanel.close.icon.hover.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-overlaypanel-close:focus-visible {
|
2024-03-12 08:19:23 +00:00
|
|
|
outline: ${dt('focus.ring.width')} ${dt('focus.ring.style')} ${dt('focus.ring.color')};
|
|
|
|
outline-offset: ${dt('focus.ring.offset')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-overlaypanel-enter-from {
|
|
|
|
opacity: 0;
|
|
|
|
transform: scaleY(0.8);
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-overlaypanel-leave-to {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-overlaypanel-enter-active {
|
|
|
|
transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-overlaypanel-leave-active {
|
|
|
|
transition: opacity 0.1s linear;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-overlaypanel:after,
|
|
|
|
.p-overlaypanel:before {
|
|
|
|
bottom: 100%;
|
|
|
|
left: calc(var(--overlayArrowLeft, 0) + 1.25rem);
|
|
|
|
content: " ";
|
|
|
|
height: 0;
|
|
|
|
width: 0;
|
|
|
|
position: absolute;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-overlaypanel:after {
|
|
|
|
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
|
|
|
}
|
|
|
|
|
|
|
|
.p-overlaypanel:before {
|
|
|
|
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
|
|
|
}
|
|
|
|
|
|
|
|
.p-overlaypanel-flipped:after,
|
|
|
|
.p-overlaypanel-flipped:before {
|
|
|
|
bottom: auto;
|
|
|
|
top: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-overlaypanel.p-overlaypanel-flipped:after {
|
|
|
|
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
|
|
|
}
|
|
|
|
|
|
|
|
.p-overlaypanel.p-overlaypanel-flipped:before {
|
|
|
|
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
|
|
|
}
|
|
|
|
`
|
|
|
|
};
|