/*
 * ace.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.
 *
 */


.pm-ace-editor {
  position: relative;
  padding-top: 3px;
  padding-bottom: 3px;
}

.pm-ace-editor.pm-ace-has-output {
  padding-bottom: 0px;
}

.ProseMirror .pm-ace-toolbar {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 10;
}

.ProseMirror .pm-image-button {
  margin-left: 5px;
}

.ProseMirror .pm-ace-toolbar .pm-run-previous-chunks-button img {
  width: 13px;
  height: 13px;
}

.ProseMirror .pm-ace-toolbar .pm-run-chunk-button img {
  width: 20px;
  height: 13px;
}

/*
 * Ace makes the cursor mostly transparent when the editor doesn't have focus,
 * but we want to hide it entirely.
 */
.pm-ace-editor .ace_hidden-cursors .ace_cursor {
  visibility: hidden;
}

/*
 * Similarly, hide selection and brackets highlighting due to a match with the
 * invisible cursor position.
 */
.pm-ace-editor-inactive .ace_marker-layer .ace_bracket,
.pm-ace-editor-inactive .ace_marker-layer .ace_selection,
.pm-ace-editor-inactive .ace_marker-layer .ace_selected-word {
  display: none;
}

/*
 * Clear editor's default background color so we can draw our own
 */
.ProseMirror .pm-ace-editor .ace_editor {
  background-color: transparent;
}

.pm-ace-editor .pm-find-text {
  position: absolute;
}

.pm-ace-editor pre.ace_editor {
  margin-top: 0px;
  margin-bottom: 0px;
  margin-left: 4px;
  line-height: 145%;
}