Skip to content

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.

1.8 KB
Raw Blame
.foreignObject {
  text-align: center;
  color: var(--node-text);
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
    monospace;
  font-size: 12px;
  font-weight: 500;
  overflow: hidden;
  pointer-events: none;
  border-radius: 5px;
}

.objectForeignObject {
  text-align: left;
}

.key {
  display: inline;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row {
  padding: 3px 10px;
  height: 30px;
  line-height: 24px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-bottom: 1px solid var(--node-divider);
  box-sizing: border-box;
}

.row.collapsed {
  font-style: italic;
  opacity: 0.7;
}

.collapseButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  margin-top: -2px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  color: var(--interactive-normal);
  background: transparent;
  border: 1px solid var(--node-divider);
  border-radius: 3px;
  opacity: 0.6;
  pointer-events: all;
  cursor: pointer;
  user-select: none;
  vertical-align: middle;
  transition:
    opacity 120ms ease,
    background 120ms ease;
}

.collapseButton:hover {
  opacity: 1;
  background: var(--node-divider);
}

.row:last-of-type {
  border-bottom: none;
}

.textNodeWrapper {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 100%;
  width: 100%;
  overflow: hidden;
  padding: 0 10px;
}

.row:global(.searched),
.textNodeWrapper:global(.searched) {
  background: rgba(34, 197, 94, 0.18);
  box-shadow: inset 3px 0 0 rgba(34, 197, 94, 0.6);
}

.row:global(.highlight),
.textNodeWrapper:global(.highlight) {
  background: rgba(22, 163, 74, 0.55);
  box-shadow: inset 3px 0 0 #15803d;
}