Newer
Older
navi-1 / webclient / src / components / settings / skills / styles / _editor.scss
@use 'kit-deps' as *;

/* ---------- editor ---------- */

// The kit pins a textarea to a control height and forbids resizing; a document
// editor needs the room of a page. The element part of the selector outranks
// the kit rules; `:deep` because the class lands on GnTextarea's <textarea>.
.catalog-detail :deep(textarea.catalog-textarea) {
  width: 100%;
  height: auto;
  min-height: 320px;
  resize: vertical;
  font-family: var(--gn-font-mono, monospace);
  font-size: 0.8rem;
  line-height: 1.5;
}

.catalog-editor-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: $space-sm;
  flex-wrap: wrap;

  :deep(.form-group) {
    margin-bottom: 0;
  }
}

.catalog-visibility {
  flex: 0 0 180px;
}

.catalog-editor-buttons {
  display: flex;
  gap: $space-xs;
  flex-wrap: wrap;
}