문제

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