/**
 * The MIT License (MIT)
 *
 * Copyright (c) Camptocamp SA
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
 * this software and associated documentation files (the "Software"), to deal in
 * the Software without restriction, including without limitation the rights to
 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
 * the Software, and to permit persons to whom the Software is furnished to do so,
 * subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */

ngeo-mapswipe {
  position: absolute;
  width: 100%;
  height: 100%;

  .ngeo-swipe-line-draggable {
    position: absolute;
    left: calc(50% - 16px);
    width: 33px;
    height: 100%;
    z-index: 1;
    cursor: ew-resize;
    display: flex;
    justify-content: center;

    .ngeo-swipe-line {
      position: absolute;
      left: 50%;
      width: 7px;
      margin-left: -3.5px;
      height: 100%;
      background-color: $brand-secondary-dark;
      background-color: var(--brand-secondary-dark);
      border: {
        left: $border;
        left-color: $border-color;
        left-color: var(--border-color);
        right: $border;
        right-color: $border-color;
        right-color: var(--border-color);
      }
    }

    .ngeo-swipe-close {
      position: absolute;
      height: 20px;
      width: 20px;
      z-index: $above-content-index;
      padding: 0;
    }

    .ngeo-swipe-arrow {
      position: absolute;
      width: fit-content;
      padding: 0 1px 0 1px;
      height: 1.5 * $icon-font-size;
      top: calc(50% - 1.25rem);
      background-color: $brand-primary;
      background-color: var(--brand-primary);
      color: #fff;
      border: $border;
      border-color: $border-color;
      border-color: var(--border-color);
      svg {
        font-size: 0.8rem;
        height: 100%;
        display: block;
        margin: auto;
      }
    }
  }
}
