HEX
Server: nginx/1.18.0
System: Linux test-ipsremont 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
User: ips (1000)
PHP: 8.0.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/innodrive/src/scss/blocks/main-nav.scss
.main-nav {
  flex-grow: 1;
  border-radius: 0 0 20px 20px;
  background: #fff;
  box-shadow: 0 30px 30px 0 rgba(31, 103, 159, 0.08);

  @include media('tablet-s') {
    box-shadow: none;
    background: transparent;
    border-radius: 0;
  }
}

.main-nav__list {
  @include reset-list;

  z-index: 1;
  display: flex;
  justify-content: center;
}

.main-nav__item {
  position: relative;
  white-space: nowrap;
  color: #222;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 21px;
  cursor: pointer;
  outline: none !important;
  margin-bottom: 30px;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-tap-highlight-color: transparent;
  a:hover {
    color: #dbdbdb;
  }

  > a:hover {
    color: unset;
  }

  &:not(:last-of-type) {
    margin-right: 14px;
  }

  &:hover,
  &:focus {
    .main-nav__sublist {
      opacity: 1;
      pointer-events: all;
    }
  }

  svg.icon {
    width: 12px;
    height: 8px;
    fill: #000;
  }

  a {
    &.show {
      color: #1db09a;
    }
  }
}

.main-nav__sublist {
  @include reset-list;

  z-index: 5;
  position: absolute;
  left: 0;
  bottom: -19px;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  width: 230px;
  padding: 15px 10px;
  background-color: #fff;
  line-height: 36px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: opacity 0.2s linear;

  &::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    transform: translateY(-100%);
    width: 100%;
    height: 19px;
  }
}

.main-nav__subitem {
  width: 100%;
  padding: 9px 0;
  line-height: 18px;
  white-space: normal;
  word-wrap: break-word;

  &:hover,
  &:focus {
    color: #078ebe;
    text-decoration: underline;
  }
}

.main-nav__compare {
  display: none;
}

.mobile-last-item {
  display: flex;
  justify-content: center;

  .language {
    width: auto;
    border-top: 0;
  }

  .user-nav__button--compare {
    display: none;
    transform: scale(0.8) translateY(3px);
  }
}

@include media("tablet-m") {
  .mobile-last-item {
    .user-nav__button--compare {
      display: block;
    }
  }
}

@include media("tablet-m") {
  .main-nav {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
  }

  .main-nav__list {
    flex-wrap: wrap;
    width: 100%;
    padding: 0;
  }

  .main-nav__item,
  .main-nav__compare {
    width: 100%;
    padding: 0;

    .li-arrow {
      position: absolute;
      right: 5px;
      top: 0;
      width: 16px;
      height: 16px;
      padding: 0;
      display: flex;
      justify-content: center;
    }

    a,
    span {
      width: 100%;
      display: block;
      padding: 0 20px;
      font-size: inherit;
      line-height: inherit;
    }

    > ul {
      width: 100%;
      list-style: none;
      padding: 20px 20px 0;

      span,
      a {
        font-size: 14px;
        font-weight: 400;
        line-height: 17px;
        padding: 0;
        color: #222;
        display: flex;
      }

      > li {
        position: relative;
        .li-arrow {
          position: absolute;
          right: -14px;
          top: 0;
          display: flex;
          justify-content: center;
        }
      }

      li {
        margin-bottom: 20px;
        > ul {
          list-style: none;
          padding: 10px 0 0 0;

          a {
            font-size: 15px;
            padding: 0;
            font-weight: 100;
          }
        }

        &:last-of-type {
          margin-bottom: 0;
        }
      }
    }
  }

  .main-nav__item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;

    svg.icon {
      margin-right: 20px;
      transition: transform 0.2s linear;
    }

    &.active {
      .main-nav__sublist {
        max-height: 400px;
      }

      svg.icon {
        transform: rotate(180deg);
      }
    }
  }

  .main-nav__sublist {
    @include reset-list;

    z-index: 0;
    position: static;
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
    width: 100%;
    max-height: 0;
    box-shadow: none;
    transition: max-height 0.3s linear;
    overflow: hidden;

    &::before {
      display: none;
    }
  }

  .main-nav__compare {
    display: block;

    a {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    h3 {
      margin: 0;
      font-weight: 300;
      font-size: 18px;
    }

    .user-nav__button {
      display: block;
      height: 23.5px;
      margin-right: 9px;
      margin-top: 5px;

      svg.icon {
        width: 23.5px;
        height: 23.5px;
      }

      span {
        top: -8px;
        right: -10px;
        width: 16px;
        height: 16px;
        font-size: 8.75px;
        line-height: 16px;
      }
    }
  }
}

#menu {
  .main-nav__item {
    a {
      width: 100%;
    }
  }
}

.main-header__dropdown-menu {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  overflow-y: scroll;
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background-color: white;
  z-index: 2;
  transition: all 0.3s ease;
  .page-heading {
    text-transform: uppercase;
    margin: 18px 0;
  }
  .main-header__hamburger-close {
    top: 19px;
  }
  .main-header__catalog-menu {
    .main-nav__item {
      background-color: white;
      justify-content: flex-start;
      a {
        padding: 8px 8px 8px 28px;
      }
      svg.icon {
        transform: rotate(0deg);
      }
      &.has-child.active {
        color: #078ebe;
        & > .main-nav__sublist {
          max-height: none;
        }
        & > svg.icon {
          fill: #078ebe;
          transform: rotate(180deg);
        }
      }
      .main-nav__sublist {
        max-height: 0;
        &[data-sublist="1"] {
          ul {
            width: calc(100% + 15px);
            margin-left: -15px;
          }
          li {
            padding-left: 15px;
          }
        }
        &[data-sublist="2"] {
          ul {
            width: calc(100% + 30px);
            margin-left: -30px;
          }
          li {
            padding-left: 30px;
          }
        }
        &[data-sublist="3"] {
          ul {
            width: calc(100% + 45px);
            margin-left: -45px;
          }
          li {
            padding-left: 45px;
          }
        }
      }
    }
  }
}

@include media('tablet-s') {

}