// review: page parts in the one page language (docs/ui-language.md). Tokens only. // One sheet for the file under review: its tools row, then the diff, no box inside the box. .work-main > .sheet .diff-file { background: none; box-shadow: none; border-radius: 0; } // The sheet's tools are quiet words, as in every tools row: "Mark viewed" is a text tool // with its checkbox kept for the keyboard. .work-main > .sheet > .sheet-tools .switch { position: relative; display: inline-flex; align-items: center; height: 32px; padding: 0 10px; border-radius: var(--radius-sm); color: var(--muted); font-size: 14px; cursor: pointer; input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; } &:hover { background: var(--surface-2); color: var(--text); } &:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; } } // Unified, Split and Ignore whitespace are tools too: the chosen one reads as text, not as a tab. .work-main > .sheet > .sheet-tools .pull-diff-top { display: inline-flex; flex-wrap: nowrap; gap: 2px; margin: 0; padding: 0; > a { height: 32px; padding: 0 10px; border-radius: var(--radius-sm); color: var(--muted); font-size: 14px; font-weight: 400; white-space: nowrap; &:hover { background: var(--surface-2); color: var(--text); } &[aria-pressed="true"] { background: var(--surface-2); box-shadow: none; color: var(--text); font-weight: 600; } } } // Split: two equal code halves, each line kept whole and scrolled in its own file body. .work-main .diff-table.diff-split { table-layout: fixed; .diff-ln { width: 44px; min-width: 44px; } .diff-plus { width: 22px; min-width: 22px; } .diff-code { width: auto; white-space: pre; overflow-wrap: normal; } } // The diff's comment button takes the same radius as the other controls. .work-main .diff-table .diff-plus a { border-radius: var(--radius-sm); } // On a phone the review panel spans the window above the pill, never past its edge. @media (max-width: 899px) { .decide-panel { position: fixed; left: 12px; right: 12px; bottom: 92px; width: auto; max-height: calc(100dvh - 120px); overflow-y: auto; } } // The review form reads top down: summary, the three choices close together, then send with what it // includes beside it. The summary's label sits over its field, as the canvas has it. .decide-panel .fields { gap: 4px; > .field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; > label { padding: 0; font-weight: 600; font-size: 14px; } } > .decide-send { gap: 12px; margin: 12px 0 0; } } .decide-panel > .acts { margin-top: -4px; padding-top: 10px; border-top: 1px solid var(--border); } // On a phone the pill keeps its three parts: the viewed count, Next file and Finish. @media (max-width: 899px) { .decide > .stat + .stat { display: none; } }