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

Feature request: lessThan media type #78

Open
hntrl opened this issue Mar 17, 2020 · 2 comments
Open

Feature request: lessThan media type #78

hntrl opened this issue Mar 17, 2020 · 2 comments

Comments

@hntrl
Copy link

hntrl commented Mar 17, 2020

It would be nice to have "less than" functionality with the media api.

${media.lessThan.md``}  // @media (max-width: 768px)
${media.md``}  // @media (min-width: 768px)
@dragma
Copy link
Owner

dragma commented May 14, 2020

Hello !

Since bootstrap is designed to be "mobile first", the logic we have to handle with is :

this css applies everytime, but if my screen is larger than {breakpoint}, apply that specific css

I also had some troubles to deal with this logic when I switched from bootstrap V3 to V4, but since, I haven't found any problem that can't be soved with this logic.

Of course, if you provide me some specific usecases that justifies this implementation, I'll be glad to work on it.

@hntrl
Copy link
Author

hntrl commented May 15, 2020

The same result can be achieved with either implementation, you're right. This is more a convenience thing than anything.
The reason i'm suggesting this is because its apart of Bootstraps SCSS Mixins

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

2 participants