Skip to content
Snippets Groups Projects
menu-item.scss 1.85 KiB
Newer Older
  • Learn to ignore specific revisions
  • :host(.hy-menu-item) {
      border-top: 1px dashed var(--grayscale-medium-dark);
      display: flex;
    
      --menu-item-display: flex;
    
    }
    
    :host(.hy-menu-item:first-of-type) {
      border-top: 3px solid var(--brand-main-nearly-black);
    }
    
    :host(.hy-menu-item.menu-item--alternative) {
      border-bottom: 0 none;
      border-top: 1px solid black;
    }
    
    :host(.hy-menu-item:last-of-type) {
      border-bottom: 0 none;
    }
    
    :host([depth='1']:not(.menu-item--alternative)) a {
      @include font-weight($bold);
    }
    
    :host(.hy-menu-item.is-hidden) {
      visibility: hidden !important;
    }
    
    
    :host(.hy-menu-item.hy-menu-item--desktop.is-hidden) {
      visibility: visible !important;
    }
    
    :host(.hy-menu-item.hy-menu-item--desktop) {
      border: 0 none;
      --menu-item-display: none;
    }
    
    :host(.hy-menu-item.hy-menu-item--desktop:first-of-type) {
      border: 0 none;
      --menu-item-display: none;
    }
    
    
    a {
      @include font-size(15px, 20px);
      @include font-weight($regular);
      align-items: center;
      color: var(--brand-main-nearly-black);
      display: flex;
      font-family: var(--main-font-family);
      padding: 24px 16px;
      text-decoration: none;
      width: 100%;
    
      &:focus {
        outline: solid 2px var(--additional-yellow);
        outline-offset: 2px;
      }
    
      &.in-active-trail {
        .hy-menu-item__label {
          border-bottom: 2px solid var(--additional-orange);
          padding-bottom: 5px;
        }
      }
    
      &.is-active,
      &.is-heading {
        .hy-menu-item__label {
          @include font-weight($bold);
        }
      }
    }
    
    .hy-menu-item__button {
      align-items: center;
      background: transparent;
      border: 0 none;
      cursor: pointer;
    
      display: var(--menu-item-display);
    
      justify-content: center;
      width: 70px;
    
      &:focus {
        outline: solid 2px var(--additional-yellow);
        outline-offset: 2px;
      }
    
      &::before {
        border-left: 1px dashed var(--brand-main-nearly-black);
        content: '';
        display: block;
        height: 16px;
        margin-right: 16px;
        width: 1px;
      }
    }