shadoof / rtwtr

reading through writing through ...
GNU General Public License v3.0
0 stars 1 forks source link

mouseover/hover only operates on the font height of text in a span #3

Open shadoof opened 4 years ago

shadoof commented 4 years ago

If the text is 20px on 30px of line height and the mouse is 'between' lines of text in a span, it is treated as not hovering or mouseout.

cqx931 commented 4 years ago

This is a bit trickier than I expected. This is mainly because each unit is defined as a "span". And a span in HTML doesn't include the gap between the lines to its content.

I can use "display:inline-block" to avoid this issue, but then each unit will start as a new line instead of following the last sentence end.

shadoof commented 4 years ago

And I would not worry about this one either. To be figured out later and not a priority.

 

On May 8, 2020 at 6:23:07 PM, cqx931 (notifications@github.com) wrote:

This is a bit trickier than I expected. This is mainly because each unit is defined as a "span". And a span in HTML doesn't include the gap between the lines to its content.

I can use "display:inline-block" to avoid this issue, but then each unit will start as a new line instead of following the last sentence end.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

shadoof commented 4 years ago

hi Sally,

Quick one:

At least while continuing to develop, it's probably worth changing the body style to:

body {   background-color: white;   font: 20px/23px Georgia, "Times New Roman", Times, serif;   cursor: default; }

I've found that this gives a tiny bit of interline spacing (one px?) without triggering interline mouse out (although 20px/24px does!).

I'm exploring the new PR which is amazing work. Big thanks.

With luck I'll write a longer response to your other email messages within the hour.

Best, j

. .  .   .     .       .         .                . John Cayley Professor and Chair of Literary Arts iPhone: +1 (401) 368 3002 email: john_cayley@brown.edu personal zoom: https://brown.zoom.us/my/johncayley/ . .  .   .     .       .         .                .

On May 8, 2020 at 6:23:07 PM, cqx931 (notifications@github.com) wrote:

This is a bit trickier than I expected. This is mainly because each unit is defined as a "span". And a span in HTML doesn't include the gap between the lines to its content.

I can use "display:inline-block" to avoid this issue, but then each unit will start as a new line instead of following the last sentence end.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.