UNPKG

benivo-ui-library

Version:

Benivo UI library

62 lines (53 loc) 1.29 kB
.drawer-container { --transition-speed: 0.3s; .drawer-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: @zindex-fixed-high-priority; background-color: rgba(var(--bg-50), 0.8); } } .drawer { width: 272px; height: 100%; padding-left: calc(272px - 76px); position: fixed; transition: transform var(--transition-speed) ease, width var(--transition-speed) ease; background: var(--white); border-right: 1px solid var(--border-200); z-index: @zindex-fixed-high-priority; @media @lg-max { width: 90%; padding-left: 0; box-shadow: none; .close-modal.icon { position: absolute; top: 25px; right: 25px; z-index: @zindex-fixed-high-priority; } } } .drawer.left { top: 0; left: 0; width: 76px; padding-left: 0; } .drawer-container.open .left { width: 272px; } .drawer.right { top: 0; right: 0; transform: translateX(calc(-272px + 76px)); @media @lg-max { transform: translateX(calc(100%)); } } .drawer-container.open .right { transform: translateX(0); }