forge
Clone
https://git.tahinli.com/Tahinli/forge.git
0 watching0 forksRustAGPL-3.07.1 MiB490f099Tahinli7 hours ago322 commits
| 1 | // review: page parts in the one page language (docs/ui-language.md). Tokens only. |
| 2 | |
| 3 | // One sheet for the file under review: its tools row, then the diff, no box inside the box. |
| 4 | .work-main > .sheet .diff-file { |
| 5 | background: none; |
| 6 | box-shadow: none; |
| 7 | border-radius: 0; |
| 8 | } |
| 9 | |
| 10 | // The sheet's tools are quiet words, as in every tools row: "Mark viewed" is a text tool |
| 11 | // with its checkbox kept for the keyboard. |
| 12 | .work-main > .sheet > .sheet-tools .switch { |
| 13 | position: relative; |
| 14 | display: inline-flex; |
| 15 | align-items: center; |
| 16 | height: 32px; |
| 17 | padding: 0 10px; |
| 18 | border-radius: var(--radius-sm); |
| 19 | color: var(--muted); |
| 20 | font-size: 14px; |
| 21 | cursor: pointer; |
| 22 | |
| 23 | input { |
| 24 | position: absolute; |
| 25 | width: 1px; |
| 26 | height: 1px; |
| 27 | margin: 0; |
| 28 | opacity: 0; |
| 29 | } |
| 30 | |
| 31 | &:hover { |
| 32 | background: var(--surface-2); |
| 33 | color: var(--text); |
| 34 | } |
| 35 | |
| 36 | &:has(input:focus-visible) { |
| 37 | outline: 2px solid var(--accent); |
| 38 | outline-offset: 1px; |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | // Unified, Split and Ignore whitespace are tools too: the chosen one reads as text, not as a tab. |
| 43 | .work-main > .sheet > .sheet-tools .pull-diff-top { |
| 44 | display: inline-flex; |
| 45 | flex-wrap: nowrap; |
| 46 | gap: 2px; |
| 47 | margin: 0; |
| 48 | padding: 0; |
| 49 | |
| 50 | > a { |
| 51 | height: 32px; |
| 52 | padding: 0 10px; |
| 53 | border-radius: var(--radius-sm); |
| 54 | color: var(--muted); |
| 55 | font-size: 14px; |
| 56 | font-weight: 400; |
| 57 | white-space: nowrap; |
| 58 | |
| 59 | &:hover { |
| 60 | background: var(--surface-2); |
| 61 | color: var(--text); |
| 62 | } |
| 63 | |
| 64 | &[aria-pressed="true"] { |
| 65 | background: var(--surface-2); |
| 66 | box-shadow: none; |
| 67 | color: var(--text); |
| 68 | font-weight: 600; |
| 69 | } |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | // Split: two equal code halves, each line kept whole and scrolled in its own file body. |
| 74 | .work-main .diff-table.diff-split { |
| 75 | table-layout: fixed; |
| 76 | |
| 77 | .diff-ln { |
| 78 | width: 44px; |
| 79 | min-width: 44px; |
| 80 | } |
| 81 | |
| 82 | .diff-plus { |
| 83 | width: 22px; |
| 84 | min-width: 22px; |
| 85 | } |
| 86 | |
| 87 | .diff-code { |
| 88 | width: auto; |
| 89 | white-space: pre; |
| 90 | overflow-wrap: normal; |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | // The diff's comment button takes the same radius as the other controls. |
| 95 | .work-main .diff-table .diff-plus a { |
| 96 | border-radius: var(--radius-sm); |
| 97 | } |
| 98 | |
| 99 | // On a phone the review panel spans the window above the pill, never past its edge. |
| 100 | @media (max-width: 899px) { |
| 101 | .decide-panel { |
| 102 | position: fixed; |
| 103 | left: 12px; |
| 104 | right: 12px; |
| 105 | bottom: 92px; |
| 106 | width: auto; |
| 107 | max-height: calc(100dvh - 120px); |
| 108 | overflow-y: auto; |
| 109 | } |
| 110 | } |
| 111 | |
| 112 | // The review form reads top down: summary, the three choices close together, then send with what it |
| 113 | // includes beside it. The summary's label sits over its field, as the canvas has it. |
| 114 | .decide-panel .fields { |
| 115 | gap: 4px; |
| 116 | |
| 117 | > .field { |
| 118 | display: flex; |
| 119 | flex-direction: column; |
| 120 | gap: 8px; |
| 121 | margin-bottom: 10px; |
| 122 | |
| 123 | > label { |
| 124 | padding: 0; |
| 125 | font-weight: 600; |
| 126 | font-size: 14px; |
| 127 | } |
| 128 | } |
| 129 | |
| 130 | > .decide-send { |
| 131 | gap: 12px; |
| 132 | margin: 12px 0 0; |
| 133 | } |
| 134 | } |
| 135 | |
| 136 | .decide-panel > .acts { |
| 137 | margin-top: -4px; |
| 138 | padding-top: 10px; |
| 139 | border-top: 1px solid var(--border); |
| 140 | } |
| 141 | |
| 142 | // On a phone the pill keeps its three parts: the viewed count, Next file and Finish. |
| 143 | @media (max-width: 899px) { |
| 144 | .decide > .stat + .stat { |
| 145 | display: none; |
| 146 | } |
| 147 | } |