Skip to content

Commit

Permalink
Highlight focused diff file (go-gitea#22870)
Browse files Browse the repository at this point in the history
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 <xiaolunwen@gmail.com>
  • Loading branch information
delvh and lunny authored Feb 13, 2023
1 parent 49919c6 commit ffa8994
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions web_src/less/_review.less
Original file line number Diff line number Diff line change
Expand Up @@ -317,3 +317,11 @@ a.blob-excerpt:hover {
width: 72px;
height: 10px;
}

.diff-file-box {
border-radius: .285rem; // Just like ui.top.attached.header
}

.diff-file-box:target {
box-shadow: 0 0 0 3px var(--color-accent);
}

0 comments on commit ffa8994

Please sign in to comment.