Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 81 additions & 0 deletions packages/web/src/theme/ProgramExample/TraceDrawer.css
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,87 @@
border: 1px solid var(--ifm-color-success);
}

/* Instructions panel header: title + a small grouping control. */
.opcodes-panel-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
}

.band-control {
display: inline-flex;
border: 1px solid var(--ifm-color-emphasis-300);
border-radius: 5px;
overflow: hidden;
}

.band-btn {
appearance: none;
border: none;
background: var(--ifm-background-color);
color: var(--ifm-color-content-secondary);
font-family: var(--ifm-font-family-base);
font-size: 10px;
font-weight: 600;
letter-spacing: 0.02em;
text-transform: none;
padding: 2px 7px;
cursor: pointer;
transition:
background 0.15s,
color 0.15s;
}

.band-btn + .band-btn {
border-left: 1px solid var(--ifm-color-emphasis-300);
}

.band-btn:hover:not(.active) {
background: var(--ifm-color-emphasis-100);
color: var(--ifm-color-content);
}

.band-btn.active {
background: var(--ifm-color-emphasis-200);
color: var(--ifm-color-content);
}

/* Subtle grouped-range banding: a faint tint + hairline accent on
alternating groups so grouped ranges read at a glance, with a light
label naming each group. No indentation, no collapsing. */
.opcode-group {
position: relative;
}

.opcode-list-banded .opcode-group:nth-of-type(odd) {
background: var(--ifm-color-emphasis-100);
box-shadow: inset 2px 0 0 var(--ifm-color-emphasis-300);
}

[data-theme="dark"] .opcode-list-banded .opcode-group:nth-of-type(odd) {
background: rgba(255, 255, 255, 0.03);
}

.opcode-group-label {
padding: 3px 12px 1px;
font-family: var(--ifm-font-family-base);
font-size: 10.5px;
font-weight: 600;
line-height: 1.3;
color: var(--ifm-color-content-secondary);
/* Long source-range labels must never widen the panel or wrap: clip to
one line with an ellipsis; the full text is on the element's title. */
max-width: 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.opcode-group-label.label-function {
color: var(--ifm-color-primary);
}

/* Instruction object footer - user-resizable, scrolls internally */
.instruction-object-panel {
position: relative;
Expand Down
Loading
Loading