مۇنازىرىلەر » Greasy Fork镜像 قا ئىنكاس

[SOLVED] Yellow background highlight of an added/edited comment stays forever

woxxomMod
§
يوللانغان ۋاقتى: 2015-03-20
تەھرىرلەنگەن ۋاقتى: 2015-03-21

[SOLVED] Yellow background highlight of an added/edited comment stays forever

When I submit a new comment or edit an existing one, its background becomes yellow and it won't go away unless I reload the page. If this is intended, the highlight should go away after a few seconds, probably using a css transition so that it'll look good (stackoverflow uses something like this when you open an answer link - just make sure the sstatic domain isn't blocked otherwise the effect won't work).

.ItemComment.Mine {
  -webkit-transition: background-color 5s;
  -moz-transition: background-color 5s;
  transition: background-color 5s;
}
var comment = ........;
comment.style.setProperty('background-color', 'transparent');

Alternatively the transition rules may be injected right into the element's css.

woxxomMod
§
يوللانغان ۋاقتى: 2015-03-21
تەھرىرلەنگەن ۋاقتى: 2015-03-21

Vanilla, indeed.

Only appears when you edit an existing post.

Happened here because my GF userstyle didn't account for the dynamic background-color change.

The problem is solved.

جاۋاب قايتۇرۇش

جاۋاب قايتۇرۇش ئۈچۈن كىرىش.

长期地址
遇到问题?请前往 GitHub 提 Issues,或加Q群1031348184

赞助商

Fishcpy

广告

Rainyun

注册一下就行

Rainyun

一年攒够 12 元