/*
 * Copyright 2015-2016 Imply Data, Inc.
 * Copyright 2017-2019 Allegro.pl
 *
 * 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.
 */

@import '../../imports';

.scroller {
  overflow: hidden;
  cursor: pointer;

  > * {
    position: absolute;
    overflow: hidden;
    white-space: nowrap;
  }

  > .event-container {
    overflow: auto;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;

    &.no-x-scroll {
      overflow-x: hidden;
    }

    &.no-y-scroll {
      overflow-y: hidden;
    }

    > .event-target {
      background: $white;
      opacity: 0.001;
    }
  }



  .left-shadow {
    box-shadow: 1px 0 5px 0 rgba(0, 0, 0, 0.2);
  }

  .top-shadow {
    box-shadow: 3px 0 5px 1px rgba(0, 0, 0, 0.2);
  }

  .right-shadow {
    box-shadow: 4px 0 4px 5px hsla(0, 0, 0, 0.2);
  }

  .bottom-shadow {
    box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.2);
  }

  .overlay {
    @include pin-full;
  }
}
