/*---------------------------------------------------------------------------------------------
 * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
 * See LICENSE.md in the project root for license terms and full copyright notice.
 *--------------------------------------------------------------------------------------------*/
.components-hue-pointer {
  position: absolute;
  width: 1.2em;
  height: 1.2em;
  border-radius: 50%;
  box-shadow: rgba(0, 0, 0, 0.37) 0px 1px 4px 0px;

  &:focus {
    outline: none;
    border: none;
  }
}

.components-hue-container-horizontal {
  width: 100%;
  height: 0.5em;
  display: flex;
  align-items: center;
  justify-content: center;

  .components-hue-slider {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 1em;
    background: linear-gradient(
      to right,
      #f00 0%,
      #ff0 17%,
      #0f0 33%,
      #0ff 50%,
      #00f 67%,
      #f0f 83%,
      #f00 100%
    );
  }

  .components-hue-pointer {
    transform: translate(-0.6em, -0.45em);
    cursor: pointer;
    border: 1px solid #fff;
  }
}

.components-hue-container-vertical {
  width: 0.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;

  .components-hue-slider {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 1em;
    background: linear-gradient(
      to top,
      #f00 0%,
      #ff0 17%,
      #0f0 33%,
      #0ff 50%,
      #00f 67%,
      #f0f 83%,
      #f00 100%
    );
  }

  .components-hue-pointer {
    transform: translate(-0.45em, -0.6em);
    cursor: pointer;
    border: 1px solid #fff;
  }
}
