.hy-menu-sidebar--container.sidebar-open, .hy-menu-sidepanel--container.sidepanel-open { .hy-menu-item-sidebar:not(.is-parent):not(.is-parent--sub-level) { .hy-menu-item-sidebar__label, .hy-menu-item__label__icon { background: linear-gradient(270deg, #f5f5f5 0%, #f8f8f8 100%); } } .hy-menu-item-sidebar.is-parent { .hy-menu-item-sidebar__label { background-color: none !important; } } .hy-menu-item-sidebar:not(.is-parent) { .hy-menu-item-sidebar__label { &:hover { background: var(--hover-gray) !important; text-decoration: underline; } } .hy-menu-item__label__icon { &:not([aria-expanded='true']):hover { background: var(--hover-gray) !important; cursor: pointer; svg { width: 22px; height: 22px; } } &[aria-expanded='true']:hover { background: var(--brand-main); cursor: pointer; transition: all 0.25s ease; .hy-menu-item__label__icon__svg { transform: rotate(180deg) translateX(2px); } svg { width: 22px; height: 22px; } } } } } .hy-menu-sidebar--container:not(.sidebar-open) { .hy-menu-item-sidebar:not(.is-parent) { .hy-menu-item-sidebar__label { &:hover { border: 1px solid var(--brand-main); margin: -1px; text-decoration: underline; } } .hy-menu-item__label__icon { &:hover { border: 1px solid var(--brand-main); margin: -1px; margin-left: 4px; text-decoration: underline; cursor: pointer; svg { width: 22px; height: 22px; } } } } } .hy-menu-item-sidebar { list-style-type: none; margin-bottom: 6px; &--label-container { @include font-size(14px, 20px); @include font-weight($semibold); box-sizing: border-box; color: var(--brand-main-light); display: flex; font-family: var(--main-font-family); justify-content: space-between; hyphens: auto; min-height: 48px; padding: 0; word-break: break-word; @include breakpoint($xlarge) { @include font-size(16px, 22px); } } &:focus { outline-offset: 4px; } /* &:hover { color: var(--brand-main-nearly-black); } */ > .hy-menu-level-container.hy-menu-level-container--sidepanel { display: none; } &.hy-menu-item-sidebar--sidepanel.in-active-trail { > .hy-menu-item-sidebar--label-container { border: 1px solid var(--brand-main-light); text-decoration: none; > .hy-menu-item__label__icon { background-color: var(--brand-main-light); border: none; svg { fill: var(--grayscale-white); } } } > .hy-menu-level-container--sidepanel { display: flex; } } &:not(.is-parent):not(.is-parent--sub-level).is-active-item { > .hy-menu-item-sidebar--label-container { background: var(--grayscale-white) !important; text-decoration: none; > a.hy-menu-item-sidebar__label { border: 1px solid var(--brand-main-light); border-right: 0; } > .hy-menu-item__label__icon { background: var(--brand-main-light); border: none; margin-left: 4px; svg { fill: var(--grayscale-white); } } } } &__label { align-items: center; background-color: var(--grayscale-white); color: var(--brand-main-light); display: flex; hyphens: auto; padding: 8px 10px 8px 20px; text-decoration: none; width: 100%; word-break: break-word; &:focus { outline: none; box-shadow: 0 0 1px 1px rgba(55, 148, 224, 0.5); border-radius: none; } } .hy-menu-item__label__icon { border-top: 0; border-right: 0; border-bottom: 0; background: var(--grayscale-white); border-left: 1px solid var(--brand-main-light); color: var(--brand-main-light); display: inline-block; position: relative; width: 61.5px; margin-left: 6px; min-height: 48px; svg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); } &:focus { outline: none; box-shadow: 0 0 1px 1px rgba(55, 148, 224, 0.5); border-radius: none; } } &.is-parent { align-items: flex-start; display: flex; flex-direction: row; justify-content: flex-start; margin-bottom: 10px; max-width: 280px; padding-bottom: 10px; width: calc(100% - 25px); .hy-menu-item-sidebar--label-container { align-items: flex-start; background: none; border: none; color: var(--brand-main-light); display: flex; .hy-menu-item-sidebar__label { @include font-size(26px, 26px); background-color: transparent !important; font-family: var(--main-font-family); font-weight: bold; letter-spacing: -0.81px; padding: 0; text-decoration: none; text-transform: uppercase; } } &:hover { span { background: none; border: none; margin: 0; } a { border: none; color: var(--brand-main) !important; text-decoration: underline; margin: 0; } .hy-menu-item__parent__icon__svg { fill: var(--brand-main-nearly-black); } } .hy-menu-item__parent__icon { align-items: center; display: flex; flex-direction: row; height: 26px; } .hy-menu-item__parent__icon__svg svg { fill: var(--brand-main-light); } &.is-parent--sub-level { align-items: flex-end; background: none; border-bottom: 1px solid var(--brand-main-light); display: flex; margin-bottom: 12px; padding-bottom: 18px; position: absolute; transform: translateY(calc(-100% - 12px)); width: calc(100% - 25px); .hy-menu-item-parent__icon { bottom: 20px; left: -20px; position: absolute; } * { text-transform: uppercase; } svg { fill: var(--brand-main-light); } .hy-menu-item-sidebar__label:hover { background: none !important; text-decoration: underline; } > .hy-menu-item-sidebar--label-container { align-items: flex-end; margin: 0 0 0 0.5rem; padding: 0; } } } &.is-current-page { span.hy-menu-item-sidebar__label { border-left: 4px solid var(--grayscale-black); color: var(--grayscale-black); padding: 8px 10px 8px 6px !important; } &.is-parent { .hy-menu-item__parent__icon { display: none; } } } }