Skip to content

The IDE you know, rebuilt in Rust. IntelliJ IDEA–style keymap, tool windows and search-everywhere in a fast native app: editor, code insight, debugger, Git, terminal, database and HTTP clients for 60+ languages.

1.9 KB
Raw Blame
.text {
  white-space: pre;
}
.match {
  background: var(--bg-search-match);
  color: var(--fg-search-match, inherit);
  border-radius: 2px;
}
/* IDEA paints a hit in one colour over the syntax colours, selected row or not. */
.match :global([class*="tok-"]) {
  color: inherit;
}
.removed {
  color: var(--fg-subtle);
  text-decoration: line-through;
  background: color-mix(in srgb, var(--danger) 14%, transparent);
}
.inserted {
  color: var(--fg-strong);
  text-decoration: none;
  background: color-mix(in srgb, var(--success) 18%, transparent);
}
.preview {
  /* offsetParent for the scroll-to-line math in ReplaceDiffPreview. */
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: var(--bg-app);
  font-family: var(--font-mono);
  font-weight: var(--fw-code);
  font-size: var(--fs-ui);
  line-height: 19px;
  color: var(--fg);
}
.previewEditor {
  position: absolute;
  inset: 0;
}
.previewHidden {
  visibility: hidden;
}
.previewEmpty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-faint);
  font-family: var(--font-ui);
}
.pre {
  margin: 0;
  padding: 4px 0;
  font: inherit;
  min-width: max-content;
}
.codeLine {
  display: flex;
  white-space: pre;
}
.currentLine {
  background: var(--bg-current-line);
}
.gutter {
  flex: none;
  position: sticky;
  left: 0;
  width: 48px;
  padding-right: 12px;
  text-align: right;
  color: var(--fg-gutter);
  background: inherit;
  background-color: var(--bg-app);
}
.currentLine .gutter {
  color: var(--fg-muted);
  background-color: var(--bg-current-line);
}
.code {
  padding-right: 16px;
}
.lineDeleted {
  background: color-mix(in srgb, var(--danger) 14%, transparent);
}
.lineAdded {
  background: color-mix(in srgb, var(--success) 16%, transparent);
}
.lineDeleted .gutter,
.lineAdded .gutter {
  background-color: transparent;
}
.sign {
  flex: none;
  width: 14px;
  color: var(--fg-faint);
}