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

The container size to the smallest size monitor #255

Open
mrKorg opened this issue Aug 1, 2017 · 0 comments
Open

The container size to the smallest size monitor #255

mrKorg opened this issue Aug 1, 2017 · 0 comments

Comments

@mrKorg
Copy link

mrKorg commented Aug 1, 2017

Hi.
First of all great job!
Secondly, for the smaller monitor turns
min-width: $size
But is it not more logical to make for the smallest size, such as xs to limit the width with max-width?

For personal purposes corrected so (sass):

@each $breakpoint in $breakpoints
$name: nth($breakpoint, 1)
$size: nth($breakpoint, 2)
$container: nth($breakpoint, 3)
@media only screen and (min-width: $size)
.....
@if $name != 'xs'
@media only screen and (min-width: $size)
.container
max-width: $container
@else
@media only screen and (max-width: $size)
.container
max-width: $container

I apologize for the lack of indentation

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

No branches or pull requests

1 participant