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.4 KB
Raw Blame
/* IDEA Settings: one flat dialog surface, sidebar split by a hairline, window-style title bar. */
.dialog {
  height: min(720px, calc(100vh - 48px));
  background: var(--bg-dialog, var(--bg-elev));
}
.layout {
  height: 100%;
  display: flex;
  min-height: 0;
  min-width: 0;
}

.sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.search {
  margin: 7px 5px 6px;
}
.tree {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-bottom: 6px;
}
.node {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topLevel {
  font-weight: 600;
  color: var(--fg-strong);
}
/* Selection stays blue and full-width even when the tree is not focused (IDEA settings tree). */
.tree [role="tree"] {
  padding-inline: 0;
}
.tree [role="treeitem"] {
  margin-inline: 0;
  border-radius: 0;
}
.tree [role="treeitem"][aria-selected="true"] {
  background: var(--bg-tree-selected);
}
.dirty {
  color: var(--accent);
}
.noMatch {
  padding: 8px 12px;
  color: var(--fg-subtle);
}

.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  container: settings-content / inline-size;
}
.loading {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  color: var(--fg-subtle);
  font-size: var(--fs-small);
}
.pageHeader {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 0 12px 0 20px;
}
.history {
  display: inline-flex;
  gap: 2px;
}
.crumbs {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  color: var(--fg-strong);
  font-weight: 600;
}
.crumb:last-child {
  min-width: 0;
}
.crumb > span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.crumb {
  display: inline-flex;
  align-items: center;
}
.crumbSep {
  margin: 0 4px;
  color: var(--fg-subtle);
}
.reset {
  flex: none;
  padding: 0;
  border: 0;
  background: none;
  color: var(--link);
  font: inherit;
  cursor: pointer;
}
.reset:hover {
  color: var(--link-hover);
  text-decoration: underline;
}
.reset:focus-visible {
  outline: 2px solid var(--focus-ring, var(--accent));
}
.scope {
  display: inline-flex;
  flex: none;
  padding: 2px;
  border-radius: var(--radius-small);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.scopeButton {
  height: var(--h-control-small);
  padding: 0 10px;
  border-radius: 3px;
  color: var(--fg-muted);
  font-size: var(--fs-small);
  white-space: nowrap;
}
.scopeButton:hover {
  color: var(--fg-emphasis);
}
.scopeOn {
  background: var(--bg-active);
  color: var(--fg-strong);
}
.scopeNote {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 16px 6px;
  color: var(--fg-subtle);
  font-size: var(--fs-small);
}
.pageBody {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 4px 20px 20px;
  -webkit-user-select: text;
  user-select: text;
}

.groupPage {
  padding-top: 8px;
}
.groupDescription {
  margin: 0 0 14px;
  max-width: 720px;
  color: var(--fg);
  line-height: 1.45;
}
.groupLinks {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding-left: 32px;
}
.groupLink {
  height: 20px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--link);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.groupLink:hover {
  color: var(--link-hover);
  text-decoration: underline;
}
.groupLink:focus-visible {
  outline: 2px solid var(--focus-ring, var(--accent));
}

.footerStatus {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.error {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--danger);
}

/* Native Settings window (desktop): the same layout filling the window. */
.window {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg-dialog, var(--bg-elev));
  color: var(--fg);
}
/* Linux: on Wayland GTK draws the frameless window's shadow (`decorate_csd` in
   windows.rs), but frameless X11 windows have none, so mark the edge in CSS. */
.windowEdge {
  position: relative;
}
.windowEdge::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--border-window);
}
.windowBody {
  flex: 1;
  min-height: 0;
}
.windowFooter {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 12px 16px;
}