question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Shift media query breakpoints 1px

See original GitHub issue

Bug, feature request, or proposal:

Proposing the following:

$mat-xsmall: 'max-width: 600px'; // -> 599px
$mat-small: 'max-width: 960px'; // -> 959px

What is the use-case or motivation for changing an existing behavior?

The flex-layout library uses max-width: 599px and max-width: 959px for their xsmall and small breakpoints, respectively. However, material2 uses 600px and 960px, respectively.

This causes a 1px gap between media-query changes.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
grizzm0commented, Jul 24, 2017

The spec states the following:

  • Layouts under 600dp wide may fill the screen with a single level of content hierarchy (either summary or detail content, but not both).
  • Layouts over 600dp wide may place two levels of content hierarchy on the screen (both summary and detail content).

Which doesn’t give a clear answer to if the breakpoint should be at 599 or 600 for max-width.

A bit further down however it states “* 16dp when the smallest width of the device is <600” which indicates that the breakpoint for max-width should be 599.

0reactions
angular-automatic-lock-bot[bot]commented, Sep 7, 2019

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Responsive display settings have 1px gap in breakpoints #5221
The fix would be to ensure the frontend styles all use min-width for the toggle styles media queries, rather than a mixture of...
Read more >
the 1px gap when using min and max with media queries
Using Bootstrap to create a mega menu and between breakpoints 991px (down) and 992px (up), I get a moment of bs default menu...
Read more >
Responsive Layouts, Fewer Media Queries | CSS-Tricks
Basically, we are going to switch between the X1 and X2 values based on the difference, 100vw - W , where W is...
Read more >
CSS Media Min-Width & Max-Width Queries - How They Work
Breakpoints. Most media queries are set to trigger at certain screen widths or breakpoints. Exactly what these should be set to is a...
Read more >
Beginner's guide to media queries - Learn web development
In this lesson you will first learn about the syntax used in media queries, and then move on to use them in a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found