Файли
openidea/src/features/database/Diagram.module.css
T
Mansur Akhmadiтаmansur-akhmadi de971848ab feat(database): interactive ER diagram, unique keys and indexes, Show Diagram Popup (#5937)
The database ER diagram becomes interactive: automatic layout, draggable and collapsible tables, unique keys and indexes with badges, dashed nullable foreign keys, and a Show Diagram Popup action.

Refs #5778

Co-authored-by: mansur-akhmadi <[email protected]>
2026-11-26 01:43:41 +08:00

122 рядки
2.0 KiB
CSS

.root {
height: 100%;
min-height: 0;
display: flex;
flex-direction: column;
background: var(--bg-editor, var(--bg-app));
color: var(--fg);
outline: none;
}
.toolbar {
flex: none;
display: flex;
align-items: center;
gap: var(--space-0-5);
min-height: calc(var(--h-control) + var(--space-2));
padding: var(--space-1) var(--space-2);
border-bottom: 1px solid var(--border-editor-tabs, var(--border));
}
.separator {
align-self: stretch;
width: 1px;
margin: var(--space-0-5) var(--space-1);
background: var(--border-strong);
}
.zoom {
margin-inline-start: auto;
font-size: var(--fs-ui);
font-variant-numeric: tabular-nums;
color: var(--fg-secondary);
}
.canvas {
flex: 1;
min-height: 0;
position: relative;
overflow: hidden;
cursor: grab;
touch-action: none;
user-select: none;
}
.canvas > svg {
display: block;
width: 100%;
height: 100%;
}
.panning {
cursor: grabbing;
}
.message {
position: absolute;
inset: 0;
display: grid;
place-items: center;
color: var(--fg-secondary);
}
.table {
cursor: default;
}
.body {
fill: var(--bg-elev, var(--bg-editor));
stroke: var(--border-strong);
}
.header {
fill: var(--bg-hover, var(--bg-elev));
}
.title {
font-family: var(--font-ui);
font-size: var(--fs-small);
font-weight: 600;
fill: var(--fg-strong, var(--fg));
}
.name {
font-family: var(--font-ui);
font-size: var(--fs-small);
fill: var(--fg);
}
.type {
font-family: var(--font-ui);
font-size: var(--fs-small);
fill: var(--fg-secondary);
}
.badge {
font-family: var(--font-ui);
font-size: var(--fs-tiny, 10px);
font-weight: 600;
fill: var(--accent);
}
.toggle {
cursor: pointer;
}
.toggle > rect {
fill: transparent;
}
.toggle:hover > rect {
fill: var(--bg-toolbar-hover, var(--bg-hover));
}
.selection {
fill: none;
stroke: var(--focus-ring, var(--accent));
stroke-width: 2;
}
.link {
fill: none;
stroke: var(--fg-secondary);
stroke-width: 1.2;
}
.optional {
stroke-dasharray: 5 3;
}
.arrow {
fill: var(--fg-secondary);
}
.popup {
height: min(600px, 100%);
}