asciidoctor / asciidoctor-stylesheet-factory

!DEPRECATED! This was the utility project for producing the default stylesheet for the HTML converter in Asciidoctor. The source of the default stylesheet now lives in the main Asciidoctor repository.
Other
175 stars 87 forks source link

Change anchor "visibility" to "opacity" #52

Closed emackey closed 2 years ago

emackey commented 2 years ago

This is intended to fix an issue I've seen when anchor links cannot be "hovered" directly. Without this PR, one must hover the title text itself, and then quickly move the mouse over to the anchor in order to access the clickable link.

With this change, the anchor link itself remains hoverable (and clickable) even when it is invisible, due to the use of "opacity" as opposed to "visibility."

Note that I've tested this manually in the browser's DevTools, but I haven't run this through the whole SASS build etc. So additional testing here is welcome. To test it, approach the (invisible) anchor link from above or from the left side, as opposed to first hovering the title text associated with it. The anchor should reveal itself and work properly from any direction with this change. It should also work better on mobile, where it will be touchable even without any hovering.

/cc @oddhack

mojavelinux commented 2 years ago

This repository is deprecated. I do not plan to make any other changes to it. I haven't yet archived it because I still need to comment on or transfer some issues. But it's effectively archived.

The documentation now covers how you should extend the default stylesheet, or use it to build your own. See https://docs.asciidoctor.org/asciidoctor/latest/html-backend/default-stylesheet/#customize-the-default-stylesheet

If you need to report an issue with the default stylesheet itself, please do so in the main Asciidoctor repository as that is where the source for the default stylesheet now lives.