remove old css selectors, add anchor
remotes/1693045480750635534/spooky-22
kek7198 2021-10-01 17:05:57 -05:00
parent aa043d05e3
commit 01318319bc
1 changed files with 2 additions and 22 deletions

View File

@ -1,26 +1,4 @@
<style>
.anchor::before {
display: block;
content: " ";
height: 110px;
visibility: hidden;
pointer-events: none;
}
.anchor:target {
background-color: #ffa;
animation: highlight 2s;
}
@keyframes highlight {
0% {
background-color: #ffa;
}
50% {
background-color: initial;
}
}
a.comment-anchor {
display: block;
position: relative;
@ -182,6 +160,8 @@
<div id="comment-{{c.id}}" class="anchor {% if c.unread %}context{% endif %} comment {% if standalone and level==1 %} mt-0{% endif %}{% if c.collapse_for_user(v) or (standalone and c.over_18 and not (v and v.over_18)) %} collapsed{% endif %}" style="border-left: 2px solid #{{c.author.namecolor}}; {% if c.unread %}padding: 10px 10px 10px !important;{% endif %}">
<a class="comment-anchor" id="comment-{{c.id}}"></a>
<span class="comment-collapse-desktop d-none d-md-block" {% if not c.unread %}style="border-left: 2px solid #{{c.author.namecolor}};"{% endif %} onclick="collapse_comment('{{c.id}}')"></span>
<div class="comment-body">