You may or may not have noticed we had a general election here in the UK, swiftly followed by the leader of my party resigning and lots of associated fallout. So non-politics things kind of fell by the wayside a bit.
Anyway, I'm still alive (just about) and I thought I ought to get back on the challenge posting horse. And my mint plants have gone BONKERS in the weather we've had here the last few days, hence, this week's challenge is: mint. Fresh mint, mint essence, mint sweeties, whatever form of minty thing you'd like to do.
- You may ask any dev-related question you have in a comment. (It doesn't even need to be about Dreamwidth, although if it involves a language/library/framework/database Dreamwidth doesn't use, you will probably get answers pointing that out and suggesting a better place to ask.)
- You may also answer any question, using the guidelines given in To Answer, Or Not To Answer and in this comment thread.
Hi, everyone. I've been meaning to ask this question for years: a long time ago foxfirefey gave me some code to have a "back to top" link with because Transmogrified didn't have one. Later on, she modified the code because it kept moving around on page re-sizing. Her mod solved that problem but possibly begat another: the jumplink doesn't clear short entries/pages with little content.
While this doesn't normally affect .page-tag, .page-icon, .page-archive, .page-recent, .page-read, or .page-network (but it could; the content on those views just happens to be long enough to clear the jumplink) it affects some .page-month views and short entries, reply views with short comments being replied to, reply views where the post and comment form combined won't clear the jumplink, and so on.
Here's an example of the problem in viewable action, seen in the month view.
In playing with the live HTML editor in Firefox the other night I realized I can make the jumplink clear - and stay in place - even with little page content present only if I put it in a pretty weird part of the HTML; it looks like I'd have to take it out of
$this->print_body(); and move it to
$this->print_module_section("two"); right before the
<div style="clear:both"> that's there to clear the footer.
This is a screencap of where the jumplink would need to go, according to live HTML editing: https://marahmarie.dreamwidth.org/file/
My s2 layer is public and viewable here: my s2 layer.
That said, if anyone can think of a better spot for it in the s2, I'm open to any and all ideas! Fwiw, I've tried CSSing it into clearing but so far, without any luck.
I can't write original s2 nor modify s2 like this (only the simplest snippets of it; this unfortunately didn't qualify) so I'm curious if anyone knows how to move the jumplink without breaking other things (which I actually did three times before giving up the other night in live code: every time I went into our compiler and tried to move it where the HTML live editor seems to think it should go, my sidebar wound up resting in my content body, while my content got pushed clear off the top of the page, so whatever I was trying to do to get this right was not working).
Any help is gladly appreciated!