Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Responsive Layout and Navbar from archlinux-common-style #382

Draft
wants to merge 22 commits into
base: master
Choose a base branch
from

Conversation

maltejur
Copy link

@maltejur maltejur commented Nov 8, 2021

This pull request is #255 rebased and with the navbar replaced by the one from archlinux-common-style via a git submodule. Currently that still links to my branch but once the pull request is closed, I will update it

I am not sure about the margin on the left and right side of the desktop version. Should it stay like it is right now, should it be removed just from the navbar, or should it be completely removed? I would keep it like it is right now.

image
Screenshot_20211108_215744
Screenshot_20211108_215753

Closes #322 #255 #212

Phosphenius and others added 22 commits November 6, 2021 16:06
The markup is added before the actual archnavbarlist to make it possible
to select said list via the CSS sibling selector depending on hamburger
state/class.

Note that this commit removes the minium body width of 650px.
A new JavaScript file base.js is introduced and included in the base
template so the hamburger button will work on every page.
- Make navigation bar stick to top on mobile.
- Increase font size and spacing of navigation entries on mobile and
increase their clickable area.
- Expanded mobile navigation now spans the entire height.
It makes more sense for footer and devnavbar to be siblings of content, and not
children. Also, this step makes it way easier to properly layout everything
using flexbox instead of the outdated float mechanism.
- Layout switches arrangement of content depending on screen width using
flexbox
- Enable word-breaking for news articles. This is necessary because long words
like directory paths might otherwise overflow on small screen widths.
- The contents of the packages page are in correct order but there are
still fixed widths which mess up the layout on small mobile devices.
This is to prevent the headlines from overlapping with the article
timestamp.
- Every nav-sidebar items needs to be wrapped in a container to make
proper styling possible.
- nav-siderbar items will appear in columns of 2 or 3 depending on
available screen width on mobile.
This way the navbar content won't span the entire screen width on wide
monitors.
Table will be reformatted on mobile devices following the technique
described here: https://css-tricks.com/responsive-data-tables/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multiple archnavbar versions
2 participants