Skip to content

Commit f395759

Browse files
committed
SideBySide stripes use "background-attachment: fixed;"
So I give up, non-fixed stripes always may be unaligned. Signed-off-by: Jack Cherng <[email protected]>
1 parent a93f7fb commit f395759

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

example/diff-table.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
}
7979
.diff-wrapper.diff.diff-html .change.change-ins .old, .diff-wrapper.diff.diff-html .change.change-del .new, .diff-wrapper.diff.diff-html .change.change-rep .old:empty, .diff-wrapper.diff.diff-html .change.change-rep .new:empty {
8080
cursor: not-allowed;
81-
background: repeating-linear-gradient(-45deg, whitesmoke, whitesmoke 0.5em, #e8e8e8 0.5em, #e8e8e8 0.9em);
81+
background: repeating-linear-gradient(-45deg, whitesmoke, whitesmoke 0.5em, #e8e8e8 0.5em, #e8e8e8 0.9em) fixed;
8282
}
8383
.diff-wrapper.diff.diff-html .change .old {
8484
background: #fbe1e1;

example/diff-table.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,7 @@
130130
$bg-color-nonexistent-block 0.5em,
131131
$bg-color-nonexistent-block-alternative 0.5em,
132132
$bg-color-nonexistent-block-alternative 0.9em,
133-
);
134-
// background-attachment: fixed;
133+
) fixed;
135134
}
136135

137136
.old {

0 commit comments

Comments
 (0)