diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-08-14 15:55:13 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-08-14 15:55:13 +0200 |
| commit | dcdc892d940adffced3d2bc272d813a47c7d4700 (patch) | |
| tree | 722878382c4d3a2fdfae0a99106878de07375c09 /public/stylesheets | |
| parent | 6d56e9eedfc8fee9b1804e805d0be1def861018d (diff) | |
Select revisions to compare by picking rows
Two hidden fields hold the pair, picking a row pushes it as the target and
the previous target becomes the source, so any pair takes two picks. Source
and target carry the diff view's own colours, in the rows and in the sticky
bar's readout.
Rows are focusable and respond to Enter and Space, the readout is the
accessible equivalent of the colour, so it is aria-live.
Diffstat (limited to 'public/stylesheets')
| -rw-r--r-- | public/stylesheets/admin.css | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/public/stylesheets/admin.css b/public/stylesheets/admin.css index d3f3afe6..8bbf7289 100644 --- a/public/stylesheets/admin.css +++ b/public/stylesheets/admin.css | |||
| @@ -686,6 +686,28 @@ form.button_to svg { | |||
| 686 | border-bottom: 1px solid var(--hairline); | 686 | border-bottom: 1px solid var(--hairline); |
| 687 | } | 687 | } |
| 688 | 688 | ||
| 689 | .revisions_table tbody tr { | ||
| 690 | cursor: pointer; | ||
| 691 | } | ||
| 692 | |||
| 693 | .revisions_table tbody tr.diff_source { | ||
| 694 | background-color: var(--diff-del-bg); | ||
| 695 | } | ||
| 696 | |||
| 697 | .revisions_table tbody tr.diff_target { | ||
| 698 | background-color: var(--diff-ins-bg); | ||
| 699 | } | ||
| 700 | |||
| 701 | #diff_selection_label #diff_from { | ||
| 702 | color: var(--diff-del-fg); | ||
| 703 | font-weight: bold; | ||
| 704 | } | ||
| 705 | |||
| 706 | #diff_selection_label #diff_to { | ||
| 707 | color: var(--diff-ins-fg); | ||
| 708 | font-weight: bold; | ||
| 709 | } | ||
| 710 | |||
| 689 | .row_primary { | 711 | .row_primary { |
| 690 | font-weight: bold; | 712 | font-weight: bold; |
| 691 | } | 713 | } |
