Skip to content

Commit ffa8994

Browse files
delvhlunny
andauthored
Highlight focused diff file (#22870)
When a diff file has been focused through the URL ID fragment, it will be highlighted. ![light theme](https://user-images.githubusercontent.com/51889757/218283880-ce551cb3-0c21-4044-adb0-d9ceb8a15ec5.png) ![dark theme](https://user-images.githubusercontent.com/51889757/218283885-e96e989a-4670-49b6-9733-fbd6fffabf20.png) --------- Co-authored-by: Lunny Xiao <[email protected]>
1 parent 49919c6 commit ffa8994

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

web_src/less/_review.less

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,3 +317,11 @@ a.blob-excerpt:hover {
317317
width: 72px;
318318
height: 10px;
319319
}
320+
321+
.diff-file-box {
322+
border-radius: .285rem; // Just like ui.top.attached.header
323+
}
324+
325+
.diff-file-box:target {
326+
box-shadow: 0 0 0 3px var(--color-accent);
327+
}

0 commit comments

Comments
 (0)