Skip to content
Snippets Groups Projects
menu-item-sidebar.scss 5.68 KiB
Newer Older
  • Learn to ignore specific revisions
  • .hy-menu-sidebar--container.sidebar-open {
      .hy-menu-item-sidebar:not(.is-parent) {
        .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: none;
        }
      }
    }
    
    
    .hy-menu-item-sidebar {
      list-style-type: none;
      margin-bottom: 6px;
    
      &--label-container {
    
        @include font-size(14px, 20px);
    
        background-color: var(--grayscale-white);
    
        border: 0.5px solid rgba(16, 126, 171, 0.1);
        box-sizing: border-box;
        color: var(--brand-main-light);
        display: flex;
        font-family: var(--main-font-family);
        justify-content: space-between;
        min-height: 48px;
        padding: 0;
    
    
        @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);
    
    
            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;
          }
    
            background: var(--brand-main-light);
    
            border: none;
            margin-left: 4px;
    
            svg {
              fill: var(--grayscale-white);
            }
          }
        }
      }
    
      &__label {
        align-items: center;
        color: var(--brand-main-light);
        display: flex;
        hyphens: auto;
        padding: 8px 10px 8px 20px;
        text-decoration: none;
        width: 100%;
        word-break: break-word;
    
    
        &:hover {
          background: var(--hover-gray) !important;
          text-decoration: underline;
        }
    
        &: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: none;
        border-left: 1px dotted var(--brand-main-light);
        color: var(--brand-main-light);
        display: inline-block;
        position: relative;
        width: 61.5px;
        min-height: 48px;
    
        svg {
          position: absolute;
          left: 50%;
          top: 50%;
          transform: translate(-50%, -50%);
        }
    
    
        &: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);
    
          transition: all 0.25s ease;
    
          .hy-menu-item__label__icon__svg {
            transform: rotate(180deg) translateX(2px);
          }
          svg {
            width: 22px;
            height: 22px;
          }
    
        }
    
        &:focus {
          outline: none;
          box-shadow: 0 0 1px 1px rgba(55, 148, 224, 0.5);
          border-radius: none;
        }
      }
    
      &.is-parent {
        align-items: flex-start;
        background: none;
        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);
            font-family: var(--main-font-family);
            font-weight: bold;
            letter-spacing: -0.81px;
            margin: 0 0 0 0.5rem;
            padding: 0;
            text-decoration: none;
    
            text-transform: uppercase;
    
          a {
            color: var(--brand-main) !important;
            text-decoration: underline;
          }
    
          .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;
          }
    
          .hy-menu-item-sidebar__label:hover {
            background: none !important;
            text-decoration: underline;
          }
    
    
          > .hy-menu-item-sidebar--label-container {
            align-items: flex-end;
            margin: 0;
            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;
          }
        }