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.2 KB
Raw Blame
.view {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px 6px;
  border-bottom: 1px solid var(--border);
}

.textButton {
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
}

.textButton:hover:not(:disabled) {
  background: var(--bg-toolbar-hover);
}

.textButton:disabled {
  opacity: 0.5;
  cursor: default;
}

.body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  position: relative;
}

.status {
  padding: 2px 8px;
  border-top: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 12px;
}

.error {
  padding: 4px 8px;
  color: var(--danger);
  font-size: 12px;
}

.empty {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.listItem {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 8px;
  cursor: default;
}

.listItem:hover,
.listItem:focus-visible {
  background: var(--bg-toolbar-hover);
  outline: none;
}

.listItem[aria-selected="true"] {
  background: var(--bg-tree-selected);
}

.master {
  height: 100%;
  overflow: auto;
}

.detail {
  color: var(--fg-muted);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 12px;
  max-width: 520px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fieldLabel {
  color: var(--fg-muted);
}

.textarea {
  min-height: 80px;
  font: inherit;
  font-family: var(--font-mono, monospace);
  resize: vertical;
}

.tableScroller {
  height: 100%;
  overflow: auto;
  position: relative;
  font-variant-numeric: tabular-nums;
}

.tableCanvas {
  position: relative;
  min-width: 100%;
  width: max-content;
}

.tableRow {
  position: absolute;
  left: 0;
  display: flex;
  height: 24px;
  min-width: 100%;
  border-bottom: 1px solid var(--border);
}

.tableRow[aria-selected="true"] {
  background: var(--bg-tree-selected);
}

.tableHeader {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--bg-island);
  font-weight: 600;
}

.rowNumber {
  flex: 0 0 48px;
  padding: 0 6px;
  text-align: right;
  color: var(--fg-muted);
  line-height: 24px;
  border-right: 1px solid var(--border);
}

.cell {
  flex: 0 0 160px;
  padding: 0 6px;
  line-height: 24px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  border-right: 1px solid var(--border);
}

/* A sortable table's header: clickable, the sorted one marked by an arrow. */
.headerCell {
  cursor: pointer;
  user-select: none;
}

.headerCell:hover,
.headerCell:focus-visible {
  background: var(--bg-hover);
}

.sortIcon {
  display: inline-block;
  margin-left: 4px;
  vertical-align: -2px;
}

.tableEmpty {
  padding: 32px 12px;
  color: var(--fg-muted);
}

.webWrap {
  position: relative;
  width: 100%;
  height: 100%;
}

.cornerActions {
  position: absolute;
  top: 5px;
  right: 8px;
  z-index: 20;
}

.frame {
  border: none;
  width: 100%;
  height: 100%;
  background: transparent;
}

/* A custom editor beside the text editor (`layout = "split"` / `"preview"`). */
.split {
  flex: 1;
  min-height: 0;
  min-width: 0;
  display: flex;
  position: relative;
}
.splitEditor {
  flex: 1 1 50%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.splitPreview {
  flex: 1 1 50%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-editor, var(--bg-app));
}
.layout-preview .splitEditor {
  display: none;
}
.layout-split .splitEditor {
  border-right: 1px solid var(--border-editor-tabs, var(--border));
}
.layoutActions {
  display: flex;
  align-items: center;
}
.layoutActions > button {
  width: var(--h-floating-toolbar-button);
  height: var(--h-floating-toolbar-button);
}

.readonlyValue {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: text;
}

/* Selectable, but framed like a disabled field so it doesn't read as editable. */
.readonlyField:read-only {
  border: 0;
  border-radius: var(--radius-control, 4px);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--border);
}

.tableRow:focus-visible {
  outline: 1px solid var(--focus-ring);
  outline-offset: -1px;
}