Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

2.8 KB
Raw Blame
.secret-tree-container .rct-tree-root {
  padding: 0;
  list-style: none;
  display: inline-block;
  min-width: 100%;
  padding-right: 12px;
  box-sizing: border-box;
}

.secret-tree-container .rct-tree-root > li {
  list-style: none;
}

.secret-tree-container ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.secret-tree-container .rct-tree-item-li {
  list-style: none;
  padding: 0;
  margin: 0;
}

.secret-tree-container .rct-tree-item-title-container {
  display: flex;
  align-items: center;
  padding: 3px 0;
  border-radius: 4px;
  cursor: default;
}

.secret-tree-container .rct-tree-item-title-container-selected,
.secret-tree-container .rct-tree-item-title-container-focused {
  outline: none;
  background-color: transparent;
}

.secret-tree-container .rct-tree-item-arrow {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  flex-shrink: 0;
  margin-right: 4px;
}

.secret-tree-container .rct-tree-item-arrow-isFolder {
  cursor: pointer;
}

.secret-tree-container .rct-tree-item-arrow-isFolder:hover {
  color: var(--color-foreground);
}

/* Top-level items - minimal indentation, no line */
.secret-tree-container .rct-tree-items-container {
  padding-left: 0;
  margin-left: 0;
  border-left: none;
}

/* Nested items - indentation with connector line */
.secret-tree-container .rct-tree-items-container .rct-tree-items-container {
  padding-left: 12px;
  margin-left: 8px;
  border-left: 1px solid var(--color-border);
}

.secret-tree-container .rct-tree-item-button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: default;
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
}

/* Custom arrow using CSS */
.secret-tree-container .rct-tree-item-arrow::before {
  content: "";
  border: solid var(--color-muted);
  border-width: 0 1.5px 1.5px 0;
  display: inline-block;
  padding: 2.5px;
  transform: rotate(-45deg);
  transition: transform 150ms ease, border-color 150ms ease;
}

.secret-tree-container .rct-tree-item-arrow-expanded::before {
  transform: rotate(45deg);
  border-color: var(--color-foreground);
}

.secret-tree-container .rct-tree-item-arrow:not(.rct-tree-item-arrow-isFolder)::before {
  visibility: hidden;
}

/* Remove default SVG arrow */
.secret-tree-container .rct-tree-item-arrow svg {
  display: none;
}

/* Disable drag and drop visuals */
.secret-tree-container .rct-tree-drag-between-line {
  display: none;
}

.secret-tree-container .rct-tree-item-li-dragging-over {
  background: transparent;
}

/* Hide search input */
.secret-tree-container .rct-tree-search-input {
  display: none;
}

/* Focus states - keep minimal */
.secret-tree-container .rct-tree-item-title-container:focus {
  outline: none;
}

.secret-tree-container .rct-tree-item-title-container:focus-visible {
  outline: none;
}