.CodeMirror {
  border: 1px solid var(--color-input-border);
  border-bottom-left-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
  background: var(--color-input-bg);
  color: var(--color-input);

  .CodeMirror-placeholder {
    opacity: 0.5;
  }
}

.CodeMirror-wrap {
  overflow: hidden;
}

.editor-toolbar {
  background-color: var(--color-header-background);
  border: none;
  border-top-left-radius: var(--border-radius);
  border-top-right-radius: var(--border-radius);
  border-right: 1px solid var(--color-input-border);
  border-top: 1px solid var(--color-input-border);
  border-left: 1px solid var(--color-input-border);

  opacity: 1; // ?

  &:hover {
    opacity: 1; // ?
  }

  &.disabled-for-preview a:not(.no-disable) {
    border-color: transparent;
    opacity: 0.3;
  }

  &.fullscreen {
    &::before,
    &::after {
      display: none;
    }
  }

  button {
    color: var(--color-header-link);
    border-color: transparent;
    transition: opacity 0.3s ease;
  }

  i.separator {
    border: none;
  }
}

.form-field--SimpleMDE {
  margin-top: var(--spacing-large);

  // Override hyperlink styles
  .cm-s-easymde .cm-link {
    color: inherit;
  }

  // Overriding the lbry/components form styling
  .editor-toolbar {
    button:not(.button) {
      padding-right: 0;
      padding-left: 0;
      background-color: transparent !important;
      border: transparent;

      &:hover {
        color: var(--color-header-link-active);
      }
    }
  }
}
