@use 'tokens' as *; @use 'mixins' as *; $crosshair-size: 9px; .graph-panel { position: relative; z-index: $layer-context; width: 100%; aspect-ratio: var(--graph-aspect); min-width: 0; scroll-margin-top: space(28); outline: none; } .link-graph { @include fill; > svg { shape-rendering: crispEdges; display: block; @include size(100%); overflow: hidden; touch-action: pan-y; } } .graph-bitmap { position: absolute; image-rendering: pixelated; pointer-events: none; } .graph-fallback { position: absolute; inset: space(6); margin: 0; padding: space(6); overflow: auto; background: var(--black); @include type($body-size, $body-leading, var(--font-reading)); a { text-decoration: underline dashed; } } .link-graph.bitmap-ready > svg { position: relative; } .graph-node { cursor: grab; outline: none; &:active { cursor: grabbing; } } .node-label { pointer-events: none; image-rendering: auto; } .node-hit-area { fill: transparent; stroke: none; } .graph-crosshair { position: absolute; @include size($crosshair-size); opacity: 0.35; pointer-events: none; &::before, &::after { content: ''; position: absolute; background: #838383; } &::before { @include size($crosshair-size, 1px); top: 4px; } &::after { @include size(1px, $crosshair-size); left: 4px; } } .crosshair-a { left: 13px; top: 17px; } .crosshair-b { right: 13px; bottom: 17px; }