export default { css: ({ dt }) => ` .p-sidebar { display: flex; flex-direction: column; pointer-events: auto; transform: translate3d(0px, 0px, 0px); position: relative; transition: transform 0.3s; background: ${dt('sidebar.background')}; color: ${dt('sidebar.color')}; border: 1px solid ${dt('sidebar.border.color')}; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); } .p-sidebar-content { overflow-y: auto; flex-grow: 1; padding: 0 1.125rem 1.125rem 1.125rem; } .p-sidebar-header { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; padding: 1.125rem; } .p-sidebar-header-content { font-weight: 600; font-size: 1.25rem; } .p-sidebar-icon { display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; width: 1.75rem; height: 1.75rem; color: ${dt('sidebar.header.icon.color')}; border: 0 none; background: transparent; border-radius: 50%; transition: background-color ${dt('transition.duration')}, color ${dt('transition.duration')}, outline-color ${dt('transition.duration')}; outline-color: transparent; } .p-sidebar-icon:enabled:hover { background: ${dt('sidebar.header.icon.hover.background')}; color: ${dt('sidebar.header.icon.hover.color')}; } .p-sidebar-icon:focus-visible { outline: ${dt('focus.ring.width')} ${dt('focus.ring.style')} ${dt('focus.ring.color')}; outline-offset: ${dt('focus.ring.offset')}; } .p-sidebar-full .p-sidebar { transition: none; transform: none; width: 100vw !important; height: 100vh !important; max-height: 100%; top: 0px !important; left: 0px !important; border-width: 1px; } .p-sidebar-left .p-sidebar-enter-from, .p-sidebar-left .p-sidebar-leave-to { transform: translateX(-100%); } .p-sidebar-right .p-sidebar-enter-from, .p-sidebar-right .p-sidebar-leave-to { transform: translateX(100%); } .p-sidebar-top .p-sidebar-enter-from, .p-sidebar-top .p-sidebar-leave-to { transform: translateY(-100%); } .p-sidebar-bottom .p-sidebar-enter-from, .p-sidebar-bottom .p-sidebar-leave-to { transform: translateY(100%); } .p-sidebar-full .p-sidebar-enter-from, .p-sidebar-full .p-sidebar-leave-to { opacity: 0; } .p-sidebar-full .p-sidebar-enter-active, .p-sidebar-full .p-sidebar-leave-active { transition: opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1); } .p-sidebar-left .p-sidebar { width: 20rem; height: 100%; border-right-width: 1px; } .p-sidebar-right .p-sidebar { width: 20rem; height: 100%; border-left-width: 1px; } .p-sidebar-top .p-sidebar { height: 10rem; width: 100%; border-bottom-width: 1px; } .p-sidebar-bottom .p-sidebar { height: 10rem; width: 100%; border-top-width: 1px; } .p-sidebar-left .p-sidebar-sm, .p-sidebar-right .p-sidebar-sm { width: 20rem; } .p-sidebar-left .p-sidebar-md, .p-sidebar-right .p-sidebar-md { width: 40rem; } .p-sidebar-left .p-sidebar-lg, .p-sidebar-right .p-sidebar-lg { width: 60rem; } .p-sidebar-top .p-sidebar-sm, .p-sidebar-bottom .p-sidebar-sm { height: 10rem; } .p-sidebar-top .p-sidebar-md, .p-sidebar-bottom .p-sidebar-md { height: 20rem; } .p-sidebar-top .p-sidebar-lg, .p-sidebar-bottom .p-sidebar-lg { height: 30rem; } .p-sidebar-left .p-sidebar-content, .p-sidebar-right .p-sidebar-content, .p-sidebar-top .p-sidebar-content, .p-sidebar-bottom .p-sidebar-content { width: 100%; height: 100%; } @media screen and (max-width: 64em) { .p-sidebar-left .p-sidebar-lg, .p-sidebar-left .p-sidebar-md, .p-sidebar-right .p-sidebar-lg, .p-sidebar-right .p-sidebar-md { width: 20rem; } } .p-sidebar-visible { display: flex; } ` };