Repository navigation
Highlight linked issue comment - #1165
Conversation
|
Not sure whether related, But reaction avatars of linked comments are back to default GitHub style 😕 Test comment: #1122 (comment) |
|
It should probably include all the rules from GitHub, to make sure it works in every case. We can just pick the coloring properties and drop the rest. Their code is: .timeline-comment-wrapper .timeline-comment.unread-item::after,
.timeline-comment-wrapper .timeline-comment.unread-item::before {
position: absolute;
top: 11px;
right: 100%;
left: -16px;
display: block;
width: 0;
height: 0;
pointer-events: none;
content: " ";
border-color: transparent;
border-style: solid solid outset
}
.timeline-comment-wrapper .timeline-comment.unread-item::after {
margin-top: 1px;
margin-left: 2px;
border-width: 7px;
border-right-color: #fffdef
}
.timeline-comment-wrapper .timeline-comment.unread-item::before {
border-width: 8px;
border-right-color: #e5d999
}
.timeline-comment.unread-item {
border-color: #e5d999
}
.timeline-comment.unread-item .timeline-comment-header {
background-color: #fffdef;
border-bottom-color: #e5d999
}
.timeline-comment.unread-item .timeline-comment-label {
border-color: #e5d999
}
.timeline-comment.unread-item .previewable-comment-form .comment-form-head.tabnav {
color: #e5d999;
background-color: #fffdef;
border-bottom-color: #e5d999
}This is how linking my own comments look like: And this is what it should look like (screenshot made with |
|
@bfred-it Wouldn't using JS enable the functionality from GitHub where the custom styling disappears after a bit? |
|
I don't see why that would be desirable; the comment should be colored as long as the Perhaps using the JS is not a big deal, it'd just be something like: select(':target').classList.add('unread-item');
onhashchange -> repeatBut I’d rather have it all be handled by some copy-pasted CSS than dealing with logic, ajax, etc |
Sure, your screenshot looks good on that.
You don't need a specific one for I posted the whole code, there's a couple |
|
Thanks for your PR, @salmanulfarzy! By the way this is particularly useful when opening notifications because now the least recent unread comment will be highlighted (because the notifications link to it) |
|
@salmanulfarzy thank you so much! this has been a real help for me! |








Highlight linked issue comments with
:targetand modified color. Hope this is what you expected @bfred-it.Test comment : #988 (comment)

Close #1164