/*
 * tooltip.css
 *
 * Copyright (C) 2022 by Posit Software, PBC
 *
 * Unless you have received this program directly from Posit Software pursuant
 * to the terms of a commercial license agreement with Posit Software, then
 * this program is licensed to you under the terms of version 3 of the
 * GNU Affero General Public License. This program is distributed WITHOUT
 * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,
 * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the
 * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.
 *
 */


.ProseMirror .tlite {
  background: #111;
  color: white;
  font-family: sans-serif;
  font-size: 0.8rem;
  font-weight: normal;
  text-decoration: none;
  text-align: left;
  padding: 0.6em 0.75rem;
  border-radius: 4px;
  position: absolute;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s;
  white-space: nowrap;
  box-shadow: 0 0.5rem 1rem -0.5rem black;
  z-index: 900;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.ProseMirror .tlite-table td,
.ProseMirror .tlite-table th {
  position: relative;
}

.ProseMirror .tlite-visible {
  visibility: visible;
  opacity: 0.9;
}

.ProseMirror .tlite::before {
  content: ' ';
  display: block;
  background: inherit;
  width: 10px;
  height: 10px;
  position: absolute;
  transform: rotate(45deg);
}

.ProseMirror .tlite-n::before {
  top: -3px;
  left: 50%;
  margin-left: -5px;
}

.ProseMirror .tlite-nw::before {
  top: -3px;
  left: 10px;
}

.ProseMirror .tlite-ne::before {
  top: -3px;
  right: 10px;
}

.ProseMirror .tlite-s::before {
  bottom: -3px;
  left: 50%;
  margin-left: -5px;
}

.ProseMirror .tlite-se::before {
  bottom: -3px;
  right: 10px;
}

.ProseMirror .tlite-sw::before {
  bottom: -3px;
  left: 10px;
}

.ProseMirror .tlite-w::before {
  left: -3px;
  top: 50%;
  margin-top: -5px;
}

.ProseMirror .tlite-e::before {
  right: -3px;
  top: 50%;
  margin-top: -5px;
}
