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

Increase mobile breakpoint #40

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Increase mobile breakpoint #40

wants to merge 3 commits into from

Conversation

rossjrw
Copy link
Member

@rossjrw rossjrw commented Dec 18, 2020

In response to this thread, this is a PR to increase the breakpoint for the sidebar to 1024px.

There are four media queries at four different breakpoints that target the sidebar and its button. The first three breakpoints are subsets of the last, and the properties set in the last override those of the previous ones, so I've straight-up removed the superfluous queries. I've also split the out the sidebar styling from the big 767px query at the end into its own one, which I've placed at the bottom of the sidebar section - this will probably the first step of a larger rework, eventually, to break down the stylesheet into different sections and possibly different files.

Because the mobile topbar contains the link that opens the sidebar, I've moved it to the same breakpoint.

This PR should not be merged if and until the new breakpoint has been agreed upon.

@rossjrw rossjrw force-pushed the increase-breakpoint branch from 8223f9d to c1bc2f7 Compare December 18, 2020 17:31
@rossjrw rossjrw marked this pull request as ready for review December 18, 2020 18:45
@rossjrw rossjrw force-pushed the increase-breakpoint branch from 48949eb to fe6f0ff Compare December 18, 2020 19:08
@rossjrw rossjrw requested a review from emmiegit December 18, 2020 19:28
transition: left .5s ease-in-out .1s;
}

/* XXX What is this for? */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change to TODO? XXX should be for development, not added to master.

}

/* When the sidebar is the URL target, move it to the right */
#side-bar:target {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a comment explaining that this is why we have the page#side-bar addition?

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.

2 participants