/**
 *
 * @ai-apps/angular v2.152.0 | _scrolling-controls.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.
 */


.#{$iot-prefix}--map-scroll-controls {
  &__container {
    margin-bottom: 1rem;
    @include box-shadow();
  }

  &__scroll-area {
    display: flex;
    flex-direction: column;
    height: var(--scroll-area-height);
    overflow-y: hidden;
  }
  &__btn {
    background: white;
    border-bottom: 1px solid $ui-03;
  }

  &__scroll-btn {
    border-bottom: 1px solid $ui-03;
    &:disabled,
    &:disabled:hover {
      background: white;
      border-bottom: 1px solid $ui-03;
      &:last-child {
        border-bottom: inherit;
      }
    }
    &:last-child {
      border-bottom: none;
    }
  }

  &__gradient {
    z-index: 3;
    position: absolute;
    width: 100%;
    height: $spacing-06;
    margin-top: -0.1rem;
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 1) 70%,
      rgba(255, 255, 255, 0) 100%
    );
    &--flipped {
      margin-top: calc(#{$spacing-06} * -1);
      background: linear-gradient(
        to top,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 1) 70%,
        rgba(255, 255, 255, 0) 100%
      );
    }
  }
}
