Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
/* graph.css - Signal analyzer / Logic analyzer graph */
/* ============================================================
GRAPH PANEL
============================================================ */
.graph-panel {
width: 100%;
display: flex;
flex-direction: column;
}
.graph-container {
background: var(--bg-white);
border: 1px solid var(--border-color);
border-radius: 6px;
padding: 10px;
display: flex;
flex-direction: column;
}
/* ============================================================
GRAPH CONTROLS
============================================================ */
/* ============================================================
GRAPH CONTROLS
============================================================ */
.graph-controls {
display: flex;
gap: 10px;
margin-bottom: 10px;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
padding: 5px 10px;
background: var(--bg-muted);
border: 1px solid var(--border-color);
border-radius: 6px;
}
.graph-controls-left,
.graph-controls-center,
.graph-controls-right {
display: flex;
align-items: center;
gap: 6px;
}
.graph-controls label {
font-size: 11px;
font-weight: 600;
color: var(--text-primary);
}
.graph-controls select {
padding: 5px 8px;
border: 1px solid var(--border-color);
border-radius: 4px;
background: var(--bg-white);
font-size: 11px;
font-family: inherit;
cursor: pointer;
color: var(--text-primary);
transition: border-color var(--transition-fast);
}
.graph-controls select:hover {
border-color: var(--border-color-dark);
}
.graph-controls select:focus {
outline: none;
border-color: var(--plant-green);
box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.15);
}
/* Navigation buttons (center) */
.graph-controls-center button {
width: 28px;
height: 28px;
padding: 0;
font-size: 12px;
display: flex;
align-items: center;
justify-content: center;
background: var(--bg-white);
border: 1px solid var(--border-color);
border-radius: 4px;
cursor: pointer;
transition: all var(--transition-fast);
color: var(--text-secondary);
}
.graph-controls-center button:hover {
background: var(--plant-green);
border-color: var(--plant-green);
color: #fff;
}
.graph-controls-center button:active {
transform: scale(0.95);
}
.graph-controls-center button:focus {
outline: none;
box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
}
/* Auto-scroll checkbox */
.auto-scroll-label {
display: flex;
align-items: center;
gap: 4px;
font-size: 11px;
font-weight: 500;
color: var(--text-secondary);
cursor: pointer;
user-select: none;
margin-left: 8px;
padding-left: 8px;
border-left: 1px solid var(--border-color);
}
.auto-scroll-label input[type="checkbox"] {
accent-color: var(--plant-green);
cursor: pointer;
margin: 0;
width: 14px;
height: 14px;
}
/* Scroll position display */
.scroll-position {
font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
font-size: 10px;
color: #1a1f24;
font-weight: 600;
background: var(--bg-white);
padding: 4px 8px;
border: 1px solid var(--border-color);
border-radius: 4px;
white-space: nowrap;
font-variant-numeric: tabular-nums;
}
/* Right side buttons (zoom, fit, clear) - all same style */
.graph-controls-right button {
padding: 5px 10px;
font-size: 11px;
background: var(--bg-white);
border: 1px solid var(--border-color);
border-radius: 4px;
color: var(--text-primary);
font-weight: 600;
cursor: pointer;
transition: all var(--transition-fast);
}
.graph-controls-right button:hover {
background: var(--plant-green);
border-color: var(--plant-green);
color: #fff;
}
.graph-controls-right button:active {
transform: scale(0.95);
}
.graph-controls-right button:focus {
outline: none;
box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
}
/* Zoom buttons - slightly narrower */
.graph-controls-right button#btnZoomIn,
.graph-controls-right button#btnZoomOut {
padding: 5px 8px;
min-width: 28px;
}
/* Clear button - subtle red tint on hover for destructive action */
.graph-controls-right button#btnClearGraph:hover {
background: #e74c3c;
border-color: #e74c3c;
}
/* ============================================================
GRAPH STACK
============================================================ */
.graph-stack {
display: flex;
flex-direction: column;
gap: 1px;
border: 1px solid var(--border-color);
border-radius: 6px;
overflow: hidden;
background: var(--border-color);
}
/* ============================================================
INDIVIDUAL SIGNAL PANEL
============================================================ */
.graph-signal {
display: flex;
position: relative;
background: var(--bg-white);
min-height: 50px;
}
/* Signal label */
.graph-label {
position: absolute;
left: 0;
top: 0;
bottom: 0;
width: 60px;
display: flex;
align-items: center;
justify-content: center;
font-size: 10px;
font-weight: 700;
background: var(--bg-muted);
border-right: 1px solid var(--border-color);
z-index: 2;
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* Signal-specific colors */
.graph-signal:nth-child(1) .graph-label {
color: #8e44ad;
background: linear-gradient(90deg, rgba(155, 89, 182, 0.1) 0%, var(--bg-muted) 100%);
}
.graph-signal:nth-child(2) .graph-label {
color: #c0392b;
background: linear-gradient(90deg, rgba(231, 76, 60, 0.1) 0%, var(--bg-muted) 100%);
}
.graph-signal:nth-child(3) .graph-label {
color: #2980b9;
background: linear-gradient(90deg, rgba(52, 152, 219, 0.1) 0%, var(--bg-muted) 100%);
}
.graph-signal:nth-child(4) .graph-label {
color: #d68910;
background: linear-gradient(90deg, rgba(243, 156, 18, 0.1) 0%, var(--bg-muted) 100%);
}
/* ============================================================
CANVAS AREA
============================================================ */
.graph-signal canvas {
position: absolute;
left: 60px;
top: 0;
right: 0;
bottom: 0;
width: calc(100% - 60px);
height: 50px;
background: var(--bg-white);
cursor: grab;
}
.graph-signal canvas:active {
cursor: grabbing;
}
/* ============================================================
TIME AXIS
============================================================ */
.graph-time-axis {
height: 24px;
margin-left: 60px;
background: var(--bg-muted);
border: 1px solid var(--border-color);
border-top: none;
border-radius: 0 0 6px 6px;
}
.graph-time-axis canvas {
display: block;
width: 100%;
height: 100%;
}
/* ============================================================
RESPONSIVE
============================================================ */
/* ============================================================
GRAPH CONTROLS
============================================================ */
.graph-controls {
display: flex;
gap: 10px;
margin-bottom: 10px;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
padding: 5px 10px;
background: var(--bg-muted);
border: 1px solid var(--border-color);
border-radius: 6px;
}
.graph-controls-left,
.graph-controls-center,
.graph-controls-right {
display: flex;
align-items: center;
gap: 6px;
}
.graph-controls label {
font-size: 11px;
font-weight: 600;
color: var(--text-primary);
}
.graph-controls select {
padding: 5px 8px;
border: 1px solid var(--border-color);
border-radius: 4px;
background: var(--bg-white);
font-size: 11px;
font-family: inherit;
cursor: pointer;
color: var(--text-primary);
transition: border-color var(--transition-fast);
}
.graph-controls select:hover {
border-color: var(--border-color-dark);
}
.graph-controls select:focus {
outline: none;
border-color: var(--plant-green);
box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.15);
}
/* Navigation buttons (center) */
.graph-controls-center button {
width: 28px;
height: 28px;
padding: 0;
font-size: 12px;
display: flex;
align-items: center;
justify-content: center;
background: var(--bg-white);
border: 1px solid var(--border-color);
border-radius: 4px;
cursor: pointer;
transition: all var(--transition-fast);
color: var(--text-secondary);
}
.graph-controls-center button:hover {
background: var(--plant-green);
border-color: var(--plant-green);
color: #fff;
}
.graph-controls-center button:active {
transform: scale(0.95);
}
.graph-controls-center button:focus {
outline: none;
box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
}
/* Auto-scroll checkbox */
.auto-scroll-label {
display: flex;
align-items: center;
gap: 4px;
font-size: 11px;
font-weight: 500;
color: var(--text-secondary);
cursor: pointer;
user-select: none;
margin-left: 8px;
padding-left: 8px;
border-left: 1px solid var(--border-color);
}
.auto-scroll-label input[type="checkbox"] {
accent-color: var(--plant-green);
cursor: pointer;
margin: 0;
width: 14px;
height: 14px;
}
/* Scroll position display */
.scroll-position {
font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
font-size: 10px;
color: #1a1f24;
font-weight: 600;
background: var(--bg-white);
padding: 4px 8px;
border: 1px solid var(--border-color);
border-radius: 4px;
white-space: nowrap;
font-variant-numeric: tabular-nums;
}
/* Right side buttons (zoom, fit, clear) - all same style */
.graph-controls-right button {
padding: 5px 10px;
font-size: 11px;
background: var(--bg-white);
border: 1px solid var(--border-color);
border-radius: 4px;
color: var(--text-primary);
font-weight: 600;
cursor: pointer;
transition: all var(--transition-fast);
}
.graph-controls-right button:hover {
background: var(--plant-green);
border-color: var(--plant-green);
color: #fff;
}
.graph-controls-right button:active {
transform: scale(0.95);
}
.graph-controls-right button:focus {
outline: none;
box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
}
/* Zoom buttons - slightly narrower */
.graph-controls-right button#btnZoomIn,
.graph-controls-right button#btnZoomOut {
padding: 5px 8px;
min-width: 28px;
}
/* Clear button - subtle red tint on hover for destructive action */
.graph-controls-right button#btnClearGraph:hover {
background: #e74c3c;
border-color: #e74c3c;
}
/* ============================================================
HOVER & INTERACTIONS
============================================================ */
.graph-signal:hover .graph-label {
filter: brightness(0.97);
}
.graph-signal canvas:hover {
background: #fafcfe;
}
/* ============================================================
PRINT STYLES
============================================================ */
@media print {
.graph-controls-center {
display: none;
}
.graph-signal canvas {
cursor: default;
}
.graph-controls-right button {
display: none;
}
}