chinchang / hint.css

A CSS only tooltip library for your lovely websites.
https://kushagra.dev/lab/hint/
MIT License
8.42k stars 701 forks source link

Arrow alignment multiline #69

Closed sannefoltz closed 3 years ago

sannefoltz commented 10 years ago

With new lines ("\n") and using "white-space:pre-wrap;" on the .hint:after, you can force new lines in tool tips. This all works.

But the arrow on "hint--right" is aligned at the bottom instead of at the top.

Using .hint--right:before { margin-left: -12px; margin-top: -6px; } .hint--right:after { margin-top: -14px; } .hint--right:before, .hint--right:after { left: 100%; top: 50%; }

fixes it.

shamasis commented 10 years ago

@chinchang - do you have anything in mind to add this feature? I just forked it and was working on a PoC to add this as a feature at https://github.com/shamasis/hint.css/blob/hint-multiline/src/hint-multiline.scss

blainekasten commented 9 years ago

+1, this should be fixed. @chinchang

rudza commented 7 years ago

+1