Timeless (on master, at least) uses css scroll-padding, which only works
in the most up-to-date browsers (notably firefox and chrome at the
moment). If you need to support older stuff, you'll probably need to
come up with a js solution, unless you're sure you're not going to be
using anything with styled anchors like Cite or the like (at which point
various +padding/-margin anchor hacks and the like would do it more easily).
See:
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Scroll_Snap
-I
On 25/08/2019 14:55, Andre Klapper wrote:
Hi,
On Sat, 2019-08-24 at 21:30 +0200, Martin Nünning Bittop wrote:
I have a Problem with a custom Design of a Wiki.
If this here is not the
right place for me to ask, please apologize.
We have a Website that uses a Design with a sticky Toolbar on top of the
page. Integration is fine but if you click on a link inside the Page
Navigation to reach some Anchor point the page jumps “to high” because it
does not “know” there is this sticky Toolbar and part of the Wiki Text is
hidden behind.
For example the Timeless skin also has a sticky toolbar and there
seems
to be no problem with anchors vs hidden content (at least in Firefox):
https://www.mediawiki.org/wiki/Manual:System_administration?useskin=timeless
Could anybody give an advice how to tell the Wiki
to leave a Space of maybe
100px to the top of the page when jumping? Or any other helpful Idea?
Hard to
say without knowing your HTML/CSS implementation.
Cheers,
andre