summaryrefslogtreecommitdiffstats
path: root/public/css
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 /public/css
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 'public/css')
-rw-r--r--public/css/index.css1
1 files changed, 1 insertions, 0 deletions
diff --git a/public/css/index.css b/public/css/index.css
index 52c5604a2d..dd87c2f133 100644
--- a/public/css/index.css
+++ b/public/css/index.css
@@ -593,6 +593,7 @@ i.icon.centerlock{top:1.5em}
.repository.view.issue .comment-list .comment .content>.bottom.segment .ui.image{max-height:100%;width:auto;margin:0;vertical-align:middle}
.repository.view.issue .comment-list .comment .content>.bottom.segment span.ui.image{font-size:128px;color:#000}
.repository.view.issue .comment-list .comment .content>.bottom.segment span.ui.image:hover{color:#000}
+.repository.view.issue .comment-list .comment:target>.content{box-shadow:0 0 10px #8c8c8c}
.repository.view.issue .comment-list .comment .ui.form .field:first-child{clear:none}
.repository.view.issue .comment-list .comment .ui.form .tab.segment{border:0;padding:10px 0 0}
.repository.view.issue .comment-list .comment .ui.form textarea{height:200px;font-family:'SF Mono',Consolas,Menlo,'Liberation Mono',Monaco,'Lucida Console',monospace}