Files
aimsight-app/app/web/src/style.css
T

33 lines
2.6 KiB
CSS
Raw Normal View History

/* The rest of the visuals comes from Mantine (theme in main.jsx) */
.header { background: #3d4977; color: #fff; border-bottom: 0; }
/* The camera images (Images.jsx) */
.frame { position: relative; height: calc(100vh - 420px); min-height: 300px; background: #000; overflow: hidden; cursor: grab;
touch-action: none; border-radius: var(--mantine-radius-md) var(--mantine-radius-md) 0 0; }
.frame:active { cursor: grabbing; }
.frame.compact { height: auto; min-height: 0; aspect-ratio: 3 / 2; } /* Data page: the right column */
.layer { position: absolute; inset: 0; transform-origin: 0 0; }
.layer > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.layer img { object-fit: contain; user-select: none; }
.marks { overflow: visible; pointer-events: none; font-family: sans-serif; }
.marks circle { fill: none; stroke: currentColor; stroke-width: .12em; }
.marks .ref circle { stroke-dasharray: .3em .2em; }
.marks text { fill: currentColor; text-anchor: middle; paint-order: stroke; stroke: rgba(0, 0, 0, .85); stroke-width: .25em; stroke-linejoin: round; }
.target { color: #ffd400; } .ref { color: #3cc8ff; }
.legend { background: #000; padding: 2px 8px; border-radius: 3px; white-space: nowrap; font-size: var(--mantine-font-size-sm); }
.vectors { overflow: visible; pointer-events: none; }
.vectors line { stroke: #2ecc40; stroke-width: .18em; marker-end: url(#arrowhead); }
.slider { flex: 1; min-width: 0; accent-color: var(--mantine-primary-color-filled); }
.range-bar { position: relative; height: 22px; background: var(--mantine-color-default-hover); border: 1px solid var(--mantine-color-default-border);
border-radius: 3px; cursor: crosshair; touch-action: none; }
.band { position: absolute; top: 0; bottom: 0; background: #e0730080; border-left: 2px solid #e07300; border-right: 2px solid #e07300; }
.check { display: flex; gap: 6px; align-items: center; font-size: var(--mantine-font-size-sm); }
/* Data page: the menu of a plot in its top margin; the images stay in view when the plots scroll */
.plot { position: relative; }
.plot-menu { position: absolute; top: 2px; left: 56px; z-index: 2; }
.sticky { position: sticky; top: calc(64px + var(--mantine-spacing-lg)); }
/* Data page: the arrow that enlarges the image, at the top left of the image (on the side of the plots it pushes) */
.viewer { position: relative; }
.enlarge { position: absolute; top: 8px; left: 8px; z-index: 3; opacity: .75; }
.enlarge:hover { opacity: 1; }
.data-grid .mantine-Grid-col { transition: flex-basis .35s ease, max-width .35s ease; min-width: 0; } /* the image that grows pushes the plots */