I've asked this before, and I did get some good suggestions, I wasn't able to fix the problem (probably because I really don't understand CSS at all).
Is there anyone here who would be willing to help explain what changes I need to make to the CSS in order to get rid of the horizontal scrolling in my documentation page for my project?
This is the page, generated from asciidoc, so I can't actually change the content, only the CSS: https://kapdemo.dhsdevelopments.com/reference.html
What I really wanted to do was to have the TOC on top on mobile devices, but on the side in an actual browser.
I'll give a finder's fee as well, if requested.
Note that the project is open source (MIT licensed) by the way.
=> More informations about this toot | More toots from loke@functional.cafe
@loke I can help! 🐾
=> More informations about this toot | More toots from efi@chitter.xyz
@efi I'd love some help. Have you seen how terrible the linked page looks like on mobile?
=> More informations about this toot | More toots from loke@functional.cafe
@loke yes, I can use firefox dev mode to see how it would look on any device size!
how would you like the TOC to look when the width is not enough to show them side by side? I just don't know what would make sense with such a tall TOC
=> More informations about this toot | More toots from efi@chitter.xyz
@efi Not sure. Is it possible to put it on top, so one can just click on a line and jump to that section?
=> More informations about this toot | More toots from loke@functional.cafe
@loke yes, but the box would have to scroll up and down and im not sure how ergonomic it is to have two boxes that scroll up and down on top of each other? but it is how I have it right now with a simple edit
=> More informations about this toot | More toots from efi@chitter.xyz
@efi Ah, I see. The way it originally looked was that everything was just one page (no separate scroll areas). The TOC was just on top of the content. I think this is perfectly fine for mobile.
I wanted to create a sidebar for the menu when using a browser, and came up with my current solution. I couldn't figure out how to preserve the original behaviour for mobile only.
=> More informations about this toot | More toots from loke@functional.cafe
@loke oh, ok! can do!
=> More informations about this toot | More toots from efi@chitter.xyz
@loke this is all you need! (I think; let me know if there's a detail to make better)
@media (max-width: 60em) {
#header {
position: initial !important;
}
#content {
margin-left: 0px !important;
}
#footer {
margin: 0 !important;
}
}
=> More informations about this toot | More toots from efi@chitter.xyz
@efi Ohh, that's simple! Thanks! This @media thing looks useful.
Thanks a lot! Together with the suggestion from @bean I think I may have a much more usable version now.
Please share your contribution links if you want to be sponsored with something (coffee money?)
=> More informations about this toot | More toots from loke@functional.cafe
@loke @bean feel free to drop me as much as you feel like, I am quite literally powered by caffeine, since they won't diagnose me for adhd because "it's not a real category" and thus won't give me meds lol
https://ko-fi.com/A321H8J
=> More informations about this toot | More toots from efi@chitter.xyz
@loke Ping me tomorrow if nobody helped by then.
=> More informations about this toot | More toots from oscherler@tooting.ch This content has been proxied by September (3851b).Proxy Information
text/gemini