:host { display: block; } // Disabled background no scroll for now until theres time to fix it /* .hy-menu-sidebar__no-scroll { height: 200vh; overflow: hidden; } .hy-menu-sidepanel__no-scroll { height: 100vh; overflow: hidden; } */ .hy-menu-sidebar--container { background: none; position: relative; &.sidebar-open { background: linear-gradient(to right, #fff 380px, rgba(0, 0, 0, 0.5) 10%); bottom: 0; display: block; height: auto; left: 16px; overflow: auto; position: absolute; right: 0; top: -96px; transition: all 0.25s ease-in; z-index: 15; .hy-menu-sidebar__logo { align-items: center; display: flex; height: 96px; margin-bottom: 40px; margin-top: -8px; .hy-site-logo__label { max-width: 200px; } } .hy-menu-sidebar__panel-toggle { display: flex; } } .hy-menu-sidebar__panel-toggle, .hy-menu-sidebar__logo { display: none; } } .hy-menu-sidepanel--container { animation-direction: normal; animation-duration: 0.25s; animation-fill-mode: forwards; animation-name: sidepanel-moveout; bottom: 0; display: none; left: 0; overflow: auto; position: absolute; right: 0; top: -96px; transform: translateX(-105%); visibility: hidden; z-index: 124; &.sidepanel-open { animation-direction: normal; animation-duration: 0.35s; animation-fill-mode: forwards; animation-name: sidepanel-movein; display: flex; height: auto; min-height: 100vh; width: 100%; // Open sidenav panels. Set background color to non-active items :not(.is-parent):not(.in-active-trail):not(.is-active-item).hy-menu-item-sidebar .hy-menu-item-sidebar--label-container { background: linear-gradient(270deg, #f5f5f5 0%, #f8f8f8 100%); } .hy-menu-sidepanel__logo { align-items: center; display: flex; height: 96px; margin-bottom: 46px; margin-top: -26px; margin-left: -4px; .hy-site-logo__label { max-width: 200px; } } } } .hy-menu-sidebar { display: none; @include breakpoint($extrawide) { display: block; max-width: calc(320px - 16px); // Should be in the wrapper. &[aria-hidden='false'] { padding-right: 12px; min-height: var(--minHeight); width: 20vw; .hy-menu-item-sidebar.hy-menu-item-sidebar--sidenav.hy-menu-item--level-1.is-parent { border-bottom: 1px solid var(--brand-main-light) !important; } } } } .hy-menu-sidebar__panel-toggle { @include font-size(14px, 20px); align-items: center; background-color: transparent; border: none; color: var(--brand-main-light); display: flex; flex-direction: row; font-family: var(--main-font-family); font-weight: 600; letter-spacing: -0.5px; margin-bottom: 1rem; &:hover { cursor: pointer; color: var(--brand-main); text-decoration: underline; } svg { fill: var(--brand-main-light); } hy-icon:last-child { margin-right: 0.75rem; } } .hy-menu-sidepanel__logo-container { display: flex; flex-direction: column; height: 150px; justify-content: space-between; margin: 20px; position: relative; z-index: 125; } @keyframes sidepanel-movein { from { display: none; transform: translateX(-105%); visibility: hidden; } 5% { display: flex; } 50% { background-color: rgba(0, 0, 0, 0); } to { background-color: rgba(0, 0, 0, 0.5); transform: translateX(0); visibility: visible; } } @keyframes sidepanel-moveout { from { background-color: rgba(0, 0, 0, 0.5); transform: translateX(0); visibility: visible; } 75% { background-color: rgba(0, 0, 0, 0); } 90% { transform: translateX(-105%); } to { display: none; visibility: hidden; } }