Skip to content
Snippets Groups Projects
menu.scss 2.65 KiB
Newer Older
  • Learn to ignore specific revisions
  •   &--mobile {
        align-items: stretch;
        bottom: 0;
        display: flex;
        flex-flow: column;
        justify-items: stretch;
        left: 0;
        position: absolute;
        right: 0;
        top: 0;
    
    Tuukka Turu's avatar
    Tuukka Turu committed
        z-index: 99;
    
        &.is-open {
          z-index: 101;
        }
    
        display: none;
    
        &.is-demo {
          display: block;
        }
    
    
        @include breakpoint($narrow) {
    
          display: block;
        }
    
    .hy-menu-container--mobile {
      min-height: calc(100vh - 60px);
      overflow-x: hidden;
      overflow-y: visible;
    }
    
    
      &--mobile {
    
        -webkit-overflow-scrolling: touch;
    
        flex-flow: column;
    
    katja's avatar
    katja committed
        padding: 0 16px;
    
        transform: translateX(100%);
        transition: 0.45s;
        width: 100%;
        z-index: 100;
    
    
    katja's avatar
    katja committed
        @include breakpoint($narrow) {
          padding: 0 28px;
        }
    
    
        @include breakpoint($extrawide) {
    
          &:not(.is-demo) {
            min-height: 0;
            transform: translateX(0);
            visibility: visible;
          }
    
        &.is-open {
          padding-top: 5px;
          transform: translateX(0);
          transition: transform 0.3s cubic-bezier(0, 0, 0.3, 1);
    
          &::after {
            opacity: 1;
            visibility: visible;
          }
    
      &__logo-container {
        display: inline-block;
    
    
        @include breakpoint($narrow) {
          padding: 16px 28px;
        }
    
      background-color: var(--grayscale-white);
    
    shamalainen's avatar
    shamalainen committed
      box-shadow: rgb(14 104 139 / 20%) 0px -20px 20px -20px;
    
        @include font-size(16px, 16px);
    
    shamalainen's avatar
    shamalainen committed
        align-items: center;
        background-color: var(--grayscale-white);
        color: var(--grayscale-black);
    
        display: block;
    
    shamalainen's avatar
    shamalainen committed
        display: flex;
    
        font-family: var(--main-font-family);
    
    shamalainen's avatar
    shamalainen committed
        justify-content: center;
    
        letter-spacing: -0.4px;
    
    shamalainen's avatar
    shamalainen committed
        padding: 20px 0 16px;
    
        text-align: center;
    
        text-decoration: none;
    
        &:focus {
          outline: solid 2px var(--additional-yellow);
    
    shamalainen's avatar
    shamalainen committed
        }
    
        svg {
          margin-right: 5px;
    
      display: block;
    
    
      &.is-empty {
        min-height: 35px;
      }
    
        // Hide languages in 960-1200px Hamburger panel as they can be found in Header.
    
        .menu--language {
          display: none;
          visibility: hidden;
        }
      }
    
    Tuukka Turu's avatar
    Tuukka Turu committed
    
    // Bit hacky, but easy way to hide hy-logo on group menu in mobile
    .hy-menu-wrapper--mobile[data-is-group] {
      .hy-menu__logo-container .hy-site-logo .hy-site-logo__icon {
        width: 0 !important;
      }
    }