/**
 *
 * @ai-apps/angular v2.152.0 | _side-nav-multi-tier.scss
 *
 * Copyright 2014, 2023 IBM
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0

 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */


$textColor: #f3f3f3;
$selectedBgColor: #565656;
$hoverBgColor: #3d3d3d;

.#{$iot-prefix}--side-nav {
  /////////////////////////////////////////
  // Support for mult-level (3) side nav items
  ////////////////////////////////////////
  .#{$prefix}--side-nav__menu-item + .#{$prefix}--side-nav__item > .#{$prefix}--side-nav__submenu {
    font-weight: 400;
    padding-left: mini-units(9);

    & + .#{$prefix}--side-nav__menu .#{$prefix}--side-nav__link {
      padding-left: mini-units(13);
    }
  }

  .#{$prefix}--side-nav__menu .#{$prefix}--side-nav__link--current > span {
    color: $textColor;
  }

  .#{$prefix}--side-nav__item:not(.#{$prefix}--side-nav__item--active):hover
    .#{$prefix}--side-nav__item:not(.#{$prefix}--side-nav__item--active)
    > .#{$prefix}--side-nav__submenu:hover {
    color: $textColor;
  }

  .#{$prefix}--side-nav__item:not(.#{$prefix}--side-nav__item--active):hover
    .#{$prefix}--side-nav__item:not(.#{$prefix}--side-nav__item--active)
    > .#{$prefix}--side-nav__submenu:hover,
  .#{$prefix}--side-nav__menu .#{$prefix}--side-nav__item:hover,
  .#{$prefix}--side-nav__menu .#{$prefix}--side-nav__submenu:hover + .#{$prefix}--side-nav__menu {
    background-color: $selectedBgColor;
  }

  .#{$prefix}--side-nav__menu
    .#{$prefix}--side-nav__menu
    .#{$prefix}--side-nav__link:not(.#{$prefix}--side-nav__link--current):not([aria-current='page']):hover {
    background-color: $hoverBgColor;
  }
}
