Volunteer social thread #68

Jun. 15th, 2017 06:37 pm
pauamma: Cartooney crab holding drink (Default)
[personal profile] pauamma posting in [site community profile] dw_volunteers
I'm enduring a heat wave.

What have you all been up to?

Question thread #53

Jun. 15th, 2017 08:32 pm
pauamma: Cartooney crab holding drink (Default)
[personal profile] pauamma posting in [site community profile] dw_dev
It's time for another question thread!

The rules:

- 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.
marahmarie: my initials (MM) (Default)
[personal profile] marahmarie posting in [community profile] style_system

Hi, everyone. I've been meaning to ask this question for years: a long time ago [personal profile] 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/72191.png

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!

Profile

metawidget: A platypus looking pensive. (Default)
metawidget
Page generated Jun. 26th, 2017 02:03 am

June 2017

S M T W T F S
    123
45678910
11121314151617
181920 21222324
252627282930 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Powered by Dreamwidth Studios