summaryrefslogtreecommitdiff
path: root/public/stylesheets/admin.css
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-07-10 00:35:24 +0200
committererdgeist <erdgeist@erdgeist.org>2026-07-10 00:35:24 +0200
commita25d90335ad3738b6831288190132c2f7498465c (patch)
tree5aa7083d9f8c8701644fe60bc7d28542775694b8 /public/stylesheets/admin.css
parentda0b79a7c1f3116e2b450ecbe50efdf31cf23414 (diff)
Retire vendored cacycle_diff.js for a diff-lcs-based diff view
Revisions#diff now computes an inline or side-by-side word diff server-side (Page#diff_against, lib/html_word_diff.rb) instead of shipping raw/escaped content to the browser for a 2008-era vendored JS differ to mangle. View mode is picked via a `view` param, settable either on the diff page itself or directly from the revisions#index sticky bar next to "Diff revisions". Also fixes a pre-existing bug in RevisionsController#diff's single- revision branch, which set params[:start]/params[:end] instead of params[:start_revision]/params[:end_revision].
Diffstat (limited to 'public/stylesheets/admin.css')
-rw-r--r--public/stylesheets/admin.css25
1 files changed, 25 insertions, 0 deletions
diff --git a/public/stylesheets/admin.css b/public/stylesheets/admin.css
index 38c9e5a..1bb6cf4 100644
--- a/public/stylesheets/admin.css
+++ b/public/stylesheets/admin.css
@@ -511,6 +511,31 @@ table.revisions_table tr:hover {
511 background-color: #f1f1f1; 511 background-color: #f1f1f1;
512} 512}
513 513
514#diffview del {
515 background: #ffd7d5;
516 color: #82071e;
517 text-decoration: line-through;
518 padding: 0 2px;
519 border-radius: 2px;
520}
521
522#diffview ins {
523 background: #ccffd8;
524 color: #055d20;
525 text-decoration: none;
526 padding: 0 2px;
527 border-radius: 2px;
528}
529
530#diffview .diff_side_by_side {
531 display: flex;
532 gap: 1rem;
533}
534
535#diffview .diff_column {
536 flex: 1;
537}
538
514table.user_table td.user_login { 539table.user_table td.user_login {
515 padding-right: 30px; 540 padding-right: 30px;
516} 541}