/*
 * Copyright 2018-2020 DITA (AM Consulting LLC)
 *
 * 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.
 *
 * Developed on behalf of: Bokbasen AS (https://www.bokbasen.no), CAST (http://www.cast.org)
 * Licensed to: Bokbasen AS and CAST under one or more contributor license agreements.
 */
@use "sass:math";

 .highlight-toolbox {
  transform: translate(-50%, -100%);
  animation: toolsAnimateIn 100ms ease-out both;
  transform-origin: bottom;
  z-index: 999;
  position: relative;
  background: gainsboro;
  display: none;
  width: fit-content;
   --content: '';
  &:before {
      $size: 0.4rem;
      content: var(--content);
      position: absolute;
      width: $size;
      height: $size;
      bottom: - math.div($size, 2);
      left: calc(50% - #{math.div($size, 2)});
      background-color: inherit;
      transform: rotate(45deg);
  }
  > div > button {
    display: inline-block;
  }
}

.color-option span {
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  background: grey;
}

@keyframes toolsAnimateIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
}
