|
114 | 114 | word-wrap: break-word; |
115 | 115 | } |
116 | 116 |
|
117 | | -/* Version list */ |
118 | | -/* History split view */ |
| 117 | +.history-heading { |
| 118 | + display: flex; |
| 119 | + align-items: center; |
| 120 | + justify-content: flex-start; |
| 121 | + gap: var(--space-sm); |
| 122 | + margin-bottom: var(--space-sm); |
| 123 | +} |
| 124 | + |
| 125 | +.history-heading h1 { margin: 0; } |
| 126 | + |
119 | 127 | .history-split { |
120 | 128 | display: grid; |
121 | | - grid-template-columns: 280px 1fr; |
| 129 | + grid-template-columns: 280px minmax(0, 1fr); |
122 | 130 | gap: 0; |
123 | 131 | min-height: 400px; |
124 | 132 | } |
125 | 133 |
|
126 | 134 | .history-split__list { |
| 135 | + position: relative; |
127 | 136 | border-right: 1px solid var(--color-border); |
128 | 137 | overflow-y: auto; |
129 | 138 | max-height: 70vh; |
|
139 | 148 | transition: background 0.1s; |
140 | 149 | } |
141 | 150 |
|
142 | | -.history-split__item:hover { |
143 | | - background: var(--color-bg-muted); |
| 151 | +.history-split__item[data-revision] { |
| 152 | + border-inline-start: 3px solid transparent; |
| 153 | + padding: 0; |
| 154 | +} |
| 155 | + |
| 156 | +.history-split__entry { |
| 157 | + display: block; |
| 158 | + min-width: 0; |
| 159 | + padding: var(--space-sm) var(--space-md) var(--space-sm) calc(var(--space-md) - 3px); |
| 160 | + color: inherit; |
144 | 161 | text-decoration: none; |
145 | 162 | } |
146 | 163 |
|
147 | | -.history-split__item--active { |
| 164 | +.history-split__entry:hover { text-decoration: none; } |
| 165 | + |
| 166 | +.history-split__entry:focus-visible { |
| 167 | + outline: 2px solid var(--color-primary); |
| 168 | + outline-offset: -2px; |
| 169 | +} |
| 170 | + |
| 171 | +.history-split__item[data-revision]:hover { |
148 | 172 | background: var(--color-primary-light); |
149 | | - border-left: 3px solid var(--color-primary); |
150 | | - padding-left: calc(var(--space-md) - 3px); |
151 | 173 | } |
152 | 174 |
|
153 | | -.history-split__item--active:hover { |
| 175 | +.history-split__item.history-split__item--active { |
154 | 176 | background: var(--color-primary-light); |
| 177 | + border-inline-start-color: var(--color-primary); |
| 178 | +} |
| 179 | + |
| 180 | +.history-split__entry-heading { |
| 181 | + display: flex; |
| 182 | + align-items: baseline; |
| 183 | + justify-content: space-between; |
| 184 | + gap: var(--space-xs); |
| 185 | +} |
| 186 | + |
| 187 | +.history-split__stats { |
| 188 | + display: inline-flex; |
| 189 | + gap: var(--space-xs); |
| 190 | + font-size: var(--text-sm); |
| 191 | + font-variant-numeric: tabular-nums; |
| 192 | +} |
| 193 | + |
| 194 | +.history-split__added { |
| 195 | + color: var(--color-diff-ins-text); |
| 196 | +} |
| 197 | + |
| 198 | +.history-split__removed { |
| 199 | + color: var(--color-diff-del-text); |
155 | 200 | } |
156 | 201 |
|
157 | 202 | .history-split__version { |
|
210 | 255 | } |
211 | 256 |
|
212 | 257 | .history-split__detail { |
213 | | - padding: var(--space-md) var(--space-lg); |
214 | | - overflow-y: auto; |
215 | | - max-height: 70vh; |
| 258 | + padding: 0 var(--space-lg) var(--space-md); |
| 259 | +} |
| 260 | + |
| 261 | +.history-comparison { |
| 262 | + display: flex; |
| 263 | + align-items: end; |
| 264 | + justify-content: space-between; |
| 265 | + flex-wrap: wrap; |
| 266 | + gap: var(--space-sm); |
| 267 | + padding-bottom: var(--space-sm); |
| 268 | + margin-bottom: var(--space-sm); |
| 269 | + border-bottom: 1px solid var(--color-border); |
| 270 | +} |
| 271 | + |
| 272 | +.history-comparison__range { |
| 273 | + display: flex; |
| 274 | + align-items: end; |
| 275 | + gap: var(--space-xs); |
| 276 | +} |
| 277 | + |
| 278 | +.history-comparison__endpoint { |
| 279 | + display: grid; |
| 280 | + gap: 3px; |
| 281 | + font-size: var(--text-sm); |
| 282 | + color: var(--color-text-muted); |
| 283 | +} |
| 284 | + |
| 285 | +.history-comparison__select { |
| 286 | + field-sizing: content; |
| 287 | + min-width: 4rem; |
| 288 | + min-height: 2.25rem; |
| 289 | + padding-inline: var(--space-xs); |
| 290 | + border: 1px solid var(--color-border-strong); |
| 291 | + border-radius: var(--radius); |
| 292 | + color: var(--color-text); |
| 293 | + background: var(--color-input-bg); |
| 294 | + font: inherit; |
| 295 | + font-weight: 650; |
| 296 | + cursor: pointer; |
| 297 | +} |
| 298 | + |
| 299 | +.history-comparison__select:hover { |
| 300 | + border-color: var(--color-primary); |
| 301 | +} |
| 302 | + |
| 303 | +.history-comparison__select:focus-visible { |
| 304 | + outline: 2px solid var(--color-primary); |
| 305 | + outline-offset: 2px; |
216 | 306 | } |
217 | 307 |
|
218 | | -.history-split__placeholder { |
| 308 | +.history-comparison__arrow { |
| 309 | + display: grid; |
| 310 | + min-height: 2.25rem; |
| 311 | + place-items: center; |
| 312 | + color: var(--color-text-muted); |
| 313 | +} |
| 314 | + |
| 315 | +.history-comparison__feedback { |
219 | 316 | display: flex; |
220 | 317 | align-items: center; |
221 | | - justify-content: center; |
222 | | - height: 200px; |
| 318 | + flex-wrap: wrap; |
| 319 | + gap: var(--space-xs); |
| 320 | + min-height: 2.25rem; |
| 321 | +} |
| 322 | + |
| 323 | +.history-split__detail .version-diff-preview__standalone { |
| 324 | + display: none; |
| 325 | +} |
| 326 | + |
| 327 | +.history-split__detail .diff-view, |
| 328 | +.history-split__detail .diff-view ul { |
| 329 | + margin-top: 0; |
| 330 | +} |
| 331 | + |
| 332 | +.history-split__detail #version-diff[aria-busy="true"] { |
| 333 | + visibility: hidden; |
| 334 | +} |
| 335 | + |
| 336 | +.history-split__diff:focus-visible { |
| 337 | + outline: 2px solid var(--color-primary); |
| 338 | + outline-offset: -2px; |
| 339 | +} |
| 340 | + |
| 341 | +@media (min-width: 721px) and (min-height: 400px) { |
| 342 | + body:has(> .main-content > .history-screen) { |
| 343 | + height: 100dvh; |
| 344 | + min-height: 0; |
| 345 | + } |
| 346 | + |
| 347 | + .main-content:has(> .history-screen) { |
| 348 | + display: flex; |
| 349 | + flex-direction: column; |
| 350 | + min-height: 0; |
| 351 | + } |
| 352 | + |
| 353 | + .history-screen { |
| 354 | + display: grid; |
| 355 | + flex: 1; |
| 356 | + min-height: 0; |
| 357 | + grid-template-rows: auto minmax(0, 1fr); |
| 358 | + } |
| 359 | + |
| 360 | + .history-screen .history-page, |
| 361 | + #plan-history { |
| 362 | + display: grid; |
| 363 | + grid-template-rows: minmax(0, 1fr); |
| 364 | + min-height: 0; |
| 365 | + } |
| 366 | + |
| 367 | + .history-split { |
| 368 | + grid-template-rows: minmax(0, 1fr); |
| 369 | + min-height: 0; |
| 370 | + } |
| 371 | + |
| 372 | + .history-split__detail { |
| 373 | + display: grid; |
| 374 | + grid-template-rows: auto minmax(0, 1fr); |
| 375 | + min-height: 0; |
| 376 | + padding-bottom: 0; |
| 377 | + } |
| 378 | + |
| 379 | + .history-split__list, |
| 380 | + .history-split__diff { |
| 381 | + max-height: none; |
| 382 | + overflow-y: auto; |
| 383 | + overscroll-behavior-y: contain; |
| 384 | + scrollbar-gutter: stable; |
| 385 | + } |
223 | 386 | } |
224 | 387 |
|
225 | 388 | /* On narrow screens the side-by-side split would crush the diff to a |
|
238 | 401 |
|
239 | 402 | .history-split__detail { |
240 | 403 | padding: var(--space-md); |
241 | | - max-height: none; |
242 | 404 | } |
243 | 405 | } |
244 | 406 |
|
245 | 407 | /* Version diff preview */ |
246 | 408 | .version-diff-preview__header { |
247 | 409 | display: flex; |
248 | | - align-items: baseline; |
249 | | - gap: var(--space-md); |
250 | | - margin-bottom: var(--space-md); |
| 410 | + align-items: center; |
| 411 | + gap: var(--space-xs) var(--space-md); |
| 412 | + margin-bottom: var(--space-sm); |
251 | 413 | flex-wrap: wrap; |
252 | 414 | } |
253 | 415 |
|
| 416 | +.version-diff-preview__byline { |
| 417 | + display: inline-flex; |
| 418 | + align-items: center; |
| 419 | + gap: var(--space-xs); |
| 420 | +} |
| 421 | + |
| 422 | +.version-diff-preview__summary { |
| 423 | + overflow-wrap: anywhere; |
| 424 | +} |
| 425 | + |
254 | 426 | .version-diff-preview__header h3 { |
255 | 427 | font-size: var(--text-xl); |
256 | 428 | font-weight: 700; |
|
0 commit comments