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.

4.7 KB
Raw Blame
/* IDEA's Find in Files is a popup: Popup.background, not the dialog surface. */
.dialog {
  max-height: calc(90vh - 12px);
  background: var(--bg-popup, var(--bg-elev));
  font-family: var(--font-ui);
}
.dialog > :global([data-dialog-body]) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.root {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.header {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 14px 0 20px;
  border-bottom: 1px solid var(--border-popup);
  color: var(--fg-subtle);
}
.title {
  color: var(--fg-strong);
  font-weight: 600;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fg-faint);
  font-size: var(--fs-small);
  font-variant-numeric: tabular-nums;
}
.spacer {
  flex: 1;
}
.mask {
  display: flex;
  align-items: center;
  height: var(--h-control);
  background: var(--bg-field);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-small);
  padding-left: 6px;
}
.maskOff {
  opacity: 0.6;
}
.maskInput {
  width: 120px;
  background: none;
  border: 0;
  outline: none;
  color: var(--fg);
}
.fields {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 8px 0;
}
/* The query fields sit on the popup surface, framed only by their border. */
.fields .field {
  width: 100%;
  background: transparent;
}
.field input {
  font-family: var(--font-mono);
  font-size: var(--fs-code);
}
.error {
  color: var(--danger);
  font-size: var(--fs-small);
  padding-left: 2px;
}
/* Scope tabs line up with the title; the selected one is a neutral pressed pill, as in IDEA. */
.scopeRow {
  --bg-tab-selected: var(--bg-toolbar-pressed);
  --border-tab-selected: transparent;
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 4px 20px;
}
.scopeDetail {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}
.dirInput {
  width: 100%;
  max-width: 420px;
  height: var(--h-control-small);
  padding: 0 6px;
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-small);
  outline: none;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
}
.dirInput:focus {
  border-color: var(--accent);
}
/* Results alone (empty state) or results over the preview; grows with the popup. */
.split {
  flex: 1 1 auto;
  height: 500px;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.split > * {
  flex: 1;
  min-height: 0;
}
.results {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 2px 0;
}
.results > * {
  flex: 1;
}
.outdated .rowText,
.outdated .rowText *,
.outdated .rowFile,
.outdated .rowFile * {
  color: var(--fg-faint);
}
.rowText {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-mono);
  font-weight: var(--fw-code);
}
.rowFile {
  flex: none;
  max-width: 40%;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--fg-subtle);
}
.rowFileActive {
  color: var(--fg-muted);
}
.rowLine {
  color: var(--fg-faint);
  font-variant-numeric: tabular-nums;
}
.previewHeader {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 36px;
  padding: 0 20px;
  border-top: 1px solid var(--border-popup);
  color: var(--fg-subtle);
}
.previewPath {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.previewName {
  color: var(--fg-strong);
  margin-right: 8px;
}
.previewBox {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.footer {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 46px;
  padding: 8px 20px;
}
.footer > button,
.footer > label {
  flex: none;
  white-space: nowrap;
}
.hint {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--fg-faint);
  font-size: var(--fs-small);
}
.rowDone {
  opacity: 0.55;
}
.rowExcluded {
  opacity: 0.55;
  text-decoration: line-through;
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0 20px;
  text-align: center;
  line-height: 1.6;
}
.emptyOptions {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1.2em;
}
.link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--link);
  font: inherit;
  cursor: pointer;
}
.link:hover {
  color: var(--link-hover);
}
/* IDEA's disabled "Ctrl+Enter" label before Open in Find Window. */
.okHint {
  flex: none;
  color: var(--fg-faint);
  white-space: nowrap;
}