Rothera / bpm

BetterPonymotes
GNU Affero General Public License v3.0
22 stars 23 forks source link

[Bug] [Proposed Solution] Emote click-to-reveal doesn't work on /r/homestuck #32

Closed Shugabuga closed 7 years ago

Shugabuga commented 7 years ago

This CSS (as present in /r/homestuck)...

/* make ALL EMOTES unclickable */
.md a[href^="/"] {
  pointer-events: none;
}

...makes all emotes (in comments) unclickable, including BPM's emote name reveal-on-click system.

The following CSS, when added to bpmotes.css, fixes the issue.:

Add the following to bpmotes.css (code modified from /r/homestuck):

.bpm-emote {pointer-events: auto !important}

That fix, however, has a side effect of having two circles appear inside of the box. This can be fixed with some more CSS code added into bpmotes.css:

.bpm-emote:before {visibility:hidden}
.bpm-emote:after {visibility:hidden}

I really have no idea of what that code can do to the rest of the extension, hence separating it from the main (and more important IMO) fix.

Example link: https://www.reddit.com/r/homestuck/comments/5984cm/cinematic_parallels_homestuck_and_undertale/d96em6o/ with emote (from /r/HeyItsShugaMotes).