kelyvin / ghost-caffeine-theme

A minimalist, Material Design inspired Ghost Theme for optimal desktop and mobile experiences
https://caffeinecoding.com
MIT License
333 stars 97 forks source link

Blinking occurs when the mouse cursor is placed over the code text #77

Closed archervanderwaal closed 5 years ago

archervanderwaal commented 5 years ago

When I use this theme and post, Blinking occurs when the mouse cursor is placed over the code text.

kelyvin commented 5 years ago

When the mouse cursor is placed over code text, the theme darkens the code block so that it's easier to read. However, if you're experiencing an issue than what I just described, can you provide further detail? What browser are you using? Is it repeatedly blinking? Can you provide a video/gif/screenshot of what's happening?

archervanderwaal commented 5 years ago

https://resources.archervanderwaal.com/show-issue.mp4

If I want to ban this phenomenon, what should I do? In addition, I would like to ask if I can't make the syntax highlighting using prismjs. What should I do with the correct method?

kelyvin commented 5 years ago

Oh wow can't believe I haven't noticed that before. Good catch. I will submit a patch fix tonight to resolve the issue.

For prismjs, I sent you a direct message, but here's a recap of how to enable it: All you need to do is write your code in a code block and then add the name of the language after your first set of backticks, like so: ```javascript

Screen Shot 2019-03-26 at 2 18 37 PM

archervanderwaal commented 5 years ago

ok, thanks.

kelyvin commented 5 years ago

@archervanderwaal This issue has now been fixed and I have updated the latest release (https://github.com/kelyvin/caffeine-theme/releases/tag/v4.1.0).

You should be good to go now. Thanks for reporting it!