2024-02-19 22:53:42 +00:00
|
|
|
export default {
|
2024-03-12 08:19:23 +00:00
|
|
|
css: ({ dt }) => `
|
2024-04-08 15:26:46 +00:00
|
|
|
.p-drawer {
|
2024-02-19 22:53:42 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
pointer-events: auto;
|
|
|
|
transform: translate3d(0px, 0px, 0px);
|
|
|
|
position: relative;
|
|
|
|
transition: transform 0.3s;
|
2024-03-12 12:07:51 +00:00
|
|
|
background: ${dt('sidebar.background')};
|
|
|
|
color: ${dt('sidebar.color')};
|
|
|
|
border: 1px solid ${dt('sidebar.border.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
|
|
|
|
}
|
|
|
|
|
2024-04-08 15:26:46 +00:00
|
|
|
.p-drawer-content {
|
2024-02-19 22:53:42 +00:00
|
|
|
overflow-y: auto;
|
|
|
|
flex-grow: 1;
|
|
|
|
padding: 0 1.125rem 1.125rem 1.125rem;
|
|
|
|
}
|
|
|
|
|
2024-04-08 15:26:46 +00:00
|
|
|
.p-drawer-header {
|
2024-02-19 22:53:42 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
|
|
|
flex-shrink: 0;
|
|
|
|
padding: 1.125rem;
|
|
|
|
}
|
|
|
|
|
2024-04-08 15:26:46 +00:00
|
|
|
.p-drawer-title {
|
2024-02-19 22:53:42 +00:00
|
|
|
font-weight: 600;
|
|
|
|
font-size: 1.25rem;
|
|
|
|
}
|
|
|
|
|
2024-04-08 15:26:46 +00:00
|
|
|
.p-drawer-full .p-drawer {
|
2024-02-19 22:53:42 +00:00
|
|
|
transition: none;
|
|
|
|
transform: none;
|
|
|
|
width: 100vw !important;
|
|
|
|
height: 100vh !important;
|
|
|
|
max-height: 100%;
|
|
|
|
top: 0px !important;
|
|
|
|
left: 0px !important;
|
|
|
|
border-width: 1px;
|
|
|
|
}
|
|
|
|
|
2024-04-08 15:26:46 +00:00
|
|
|
.p-drawer-left .p-drawer-enter-from,
|
|
|
|
.p-drawer-left .p-drawer-leave-to {
|
2024-02-19 22:53:42 +00:00
|
|
|
transform: translateX(-100%);
|
|
|
|
}
|
|
|
|
|
2024-04-08 15:26:46 +00:00
|
|
|
.p-drawer-right .p-drawer-enter-from,
|
|
|
|
.p-drawer-right .p-drawer-leave-to {
|
2024-02-19 22:53:42 +00:00
|
|
|
transform: translateX(100%);
|
|
|
|
}
|
|
|
|
|
2024-04-08 15:26:46 +00:00
|
|
|
.p-drawer-top .p-drawer-enter-from,
|
|
|
|
.p-drawer-top .p-drawer-leave-to {
|
2024-02-19 22:53:42 +00:00
|
|
|
transform: translateY(-100%);
|
|
|
|
}
|
|
|
|
|
2024-04-08 15:26:46 +00:00
|
|
|
.p-drawer-bottom .p-drawer-enter-from,
|
|
|
|
.p-drawer-bottom .p-drawer-leave-to {
|
2024-02-19 22:53:42 +00:00
|
|
|
transform: translateY(100%);
|
|
|
|
}
|
|
|
|
|
2024-04-08 15:26:46 +00:00
|
|
|
.p-drawer-full .p-drawer-enter-from,
|
|
|
|
.p-drawer-full .p-drawer-leave-to {
|
2024-02-19 22:53:42 +00:00
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
2024-04-08 15:26:46 +00:00
|
|
|
.p-drawer-full .p-drawer-enter-active,
|
|
|
|
.p-drawer-full .p-drawer-leave-active {
|
2024-02-19 22:53:42 +00:00
|
|
|
transition: opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
|
|
}
|
|
|
|
|
2024-04-08 15:26:46 +00:00
|
|
|
.p-drawer-left .p-drawer {
|
2024-02-19 22:53:42 +00:00
|
|
|
width: 20rem;
|
|
|
|
height: 100%;
|
|
|
|
border-right-width: 1px;
|
|
|
|
}
|
|
|
|
|
2024-04-08 15:26:46 +00:00
|
|
|
.p-drawer-right .p-drawer {
|
2024-02-19 22:53:42 +00:00
|
|
|
width: 20rem;
|
|
|
|
height: 100%;
|
|
|
|
border-left-width: 1px;
|
|
|
|
}
|
|
|
|
|
2024-04-08 15:26:46 +00:00
|
|
|
.p-drawer-top .p-drawer {
|
2024-02-19 22:53:42 +00:00
|
|
|
height: 10rem;
|
|
|
|
width: 100%;
|
|
|
|
border-bottom-width: 1px;
|
|
|
|
}
|
|
|
|
|
2024-04-08 15:26:46 +00:00
|
|
|
.p-drawer-bottom .p-drawer {
|
2024-02-19 22:53:42 +00:00
|
|
|
height: 10rem;
|
|
|
|
width: 100%;
|
|
|
|
border-top-width: 1px;
|
|
|
|
}
|
|
|
|
|
2024-04-08 15:26:46 +00:00
|
|
|
.p-drawer-left .p-drawer-sm,
|
|
|
|
.p-drawer-right .p-drawer-sm {
|
2024-02-19 22:53:42 +00:00
|
|
|
width: 20rem;
|
|
|
|
}
|
|
|
|
|
2024-04-08 15:26:46 +00:00
|
|
|
.p-drawer-left .p-drawer-md,
|
|
|
|
.p-drawer-right .p-drawer-md {
|
2024-02-19 22:53:42 +00:00
|
|
|
width: 40rem;
|
|
|
|
}
|
|
|
|
|
2024-04-08 15:26:46 +00:00
|
|
|
.p-drawer-left .p-drawer-lg,
|
|
|
|
.p-drawer-right .p-drawer-lg {
|
2024-02-19 22:53:42 +00:00
|
|
|
width: 60rem;
|
|
|
|
}
|
|
|
|
|
2024-04-08 15:26:46 +00:00
|
|
|
.p-drawer-top .p-drawer-sm,
|
|
|
|
.p-drawer-bottom .p-drawer-sm {
|
2024-02-19 22:53:42 +00:00
|
|
|
height: 10rem;
|
|
|
|
}
|
|
|
|
|
2024-04-08 15:26:46 +00:00
|
|
|
.p-drawer-top .p-drawer-md,
|
|
|
|
.p-drawer-bottom .p-drawer-md {
|
2024-02-19 22:53:42 +00:00
|
|
|
height: 20rem;
|
|
|
|
}
|
|
|
|
|
2024-04-08 15:26:46 +00:00
|
|
|
.p-drawer-top .p-drawer-lg,
|
|
|
|
.p-drawer-bottom .p-drawer-lg {
|
2024-02-19 22:53:42 +00:00
|
|
|
height: 30rem;
|
|
|
|
}
|
|
|
|
|
2024-04-08 15:26:46 +00:00
|
|
|
.p-drawer-left .p-drawer-content,
|
|
|
|
.p-drawer-right .p-drawer-content,
|
|
|
|
.p-drawer-top .p-drawer-content,
|
|
|
|
.p-drawer-bottom .p-drawer-content {
|
2024-02-19 22:53:42 +00:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (max-width: 64em) {
|
2024-04-08 15:26:46 +00:00
|
|
|
.p-drawer-left .p-drawer-lg,
|
|
|
|
.p-drawer-left .p-drawer-md,
|
|
|
|
.p-drawer-right .p-drawer-lg,
|
|
|
|
.p-drawer-right .p-drawer-md {
|
2024-02-19 22:53:42 +00:00
|
|
|
width: 20rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-04-08 15:26:46 +00:00
|
|
|
.p-drawer-open {
|
2024-02-19 22:53:42 +00:00
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
`
|
|
|
|
};
|