I'm using Susy 2 with breakpoint-sass to create my media queries.

It's outputting like:

@media (min-width: 1000px)

I'm wondering why the screen is missing? It should read:

@media screen (min-width: 1000px)

I'm trying to add css3-mediaqueries-js which isn't working and I think that might be why.

有帮助吗?

解决方案

Breakpoint's default media type is all, which, per the CSS spec, can be omitted. We do this we do not want to assume any media type, doing so has led to the current situation we have now where media types are all but useless. If you would like to change your default media type in Breakpoint to screen, before including any breakpoint mixins, add the following to your Sass file:

$breakpoint-default-media: screen;

其他提示

This may help: https://github.com/Team-Sass/breakpoint/wiki/Advanced-Media-Queries#media-types

If you're still stuck after that, could you edit your question to include the sass code that outputs that media query?

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top