quantecon-book-theme icon indicating copy to clipboard operation
quantecon-book-theme copied to clipboard

Issue in Safari with Equation References

Open sayaikegawa opened this issue 3 years ago • 4 comments

Hi @mmcky , I'm really sorry my work delay and I'll catch up.

I found a potential issue about equation references in all lectures. (e.g. Equation(9.1))

When I click an equation reference in MYST, the referred equation is concealed by the upper menu bar.

This shows a comparison when I click the same equation reference. ( left: clicking Equation(1) in RST, right: clicking Equation(9.1) in MYST) Screen Shot 2021-01-08 at 6 44 38 pm

I wonder whether it can be fixed in some ways. ( For example, I wonder whether the upper menu bar can be invisible depending on users' cursor's position.)

sayaikegawa avatar Jan 08 '21 08:01 sayaikegawa

thanks @sayaikegawa (cc: @DrDrij)

mmcky avatar Jan 08 '21 10:01 mmcky

@DrDrij @AakashGfude is there a way to improve this issue re: alignment of math links.

mmcky avatar Jan 13 '21 01:01 mmcky

Since we have a sticky toolbar we need to add padding at the top, but this padding also needs to exist for skip anchor links in the content.

Tried all the following without luck: https://css-tricks.com/hash-tag-links-padding/

@mmcky I've added a solution which works cleanly in chrome and firefox for now. https://github.com/QuantEcon/quantecon-book-theme/commit/4ac9e170e2c309e9c9e23757fe40d7ec31ae485b

https://60263686dc45de7dbd694187--hungry-lovelace-7d0512.netlify.app

DrDrij avatar Feb 12 '21 08:02 DrDrij

Thanks @DrDrij given this is an issue in safari I will transfer this issue to quantecon-book-theme for tracking

mmcky avatar Feb 15 '21 01:02 mmcky