News for hackers. Stuff that matters.
Re:Smarter Link Underlines For Every Website by hftf on Monday November 10, 2014 @08:23PM (#8587728)
I had seen this effect about two years ago on the website of Roman Komarov and was impressed by it at the time: http://kizu.ru/en/fun/
Re:Smarter Link Underlines For Every Website by adamschwartz on Monday November 10, 2014 @08:46PM (#8587802)
I really like how he applies the styles on hover. I wanted to do something like that with SmartUnderline but unfortunately there is no way to call getComputedStyle with the :hover pseudo-class applied. (This is necessary because SmartUnderline only applies to links which have text-decoration underline.)

Traversing the enter style ruleset is possible but didn’t seem worth it for a library like this.

Another way is through a configuration option. Something like `SmartUnderline.init({ '.content a': 'hover' });` perhaps.