aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/less
diff options
context:
space:
mode:
authorjaqra <48099350+jaqra@users.noreply.github.com>2019-11-25 14:50:46 +0300
committerzeripath <art27@cantab.net>2019-11-25 11:50:46 +0000
commit802aa6d5f306ade08438dc07d93913daecb1d3ab (patch)
tree35df51e32026b160599c642aced5b6affe2889db /web_src/less
parent62bcb2b7f1ce1a64f828d94f045d06bd8605455a (diff)
downloadgitea-802aa6d5f306ade08438dc07d93913daecb1d3ab.tar.gz
gitea-802aa6d5f306ade08438dc07d93913daecb1d3ab.zip
Add comment highlight when target from url (#9047)
* Add comment highlight css * Add js to remove highlight on click outside * Improve refresh page on click outside * Use location.hash property to remove target * Handle click ONLY clicked outside of 'targetted comment' (not other comment) * Remove unnecessary checks and simply code * Combine hash and setState to remove target path
Diffstat (limited to 'web_src/less')
-rw-r--r--web_src/less/_repository.less4
1 files changed, 4 insertions, 0 deletions
diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less
index e0537245ef..1b47de8a1b 100644
--- a/web_src/less/_repository.less
+++ b/web_src/less/_repository.less
@@ -844,6 +844,10 @@
}
}
+ &:target > .content {
+ box-shadow: 0 0 10px #8c8c8c;
+ }
+
.ui.form {
.field:first-child {
clear: none;