Support » Plugin: Jetpack by WordPress.com » Does the CSS Editor support media queries?

  • Resolved James Barlow

    (@jmbarlow)


    I just tried to put in a simple media query via the CSS Editor [Jetpack with stock Twenty Fourteen theme]:

    @media all {
         .something {color: red;}
    }

    and it get’s mangled to:

    @media all {}
    }

    without a pre-processor enabled. Is that expected? All works fine if SASS or LESS are activated.

    http://wordpress.org/plugins/jetpack/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic

    The CSS editor does indeed support media queries.

    I don’t seem to be able to reproduce the bug with the latest version of WordPress and Jetpack (2.7). Could you try to update to the latest version of Jetpack, and let me know if it helps?

    Just tried it again; it was a SASS-style single line comment causing the problem. Which is fair enough as those aren’t in the css spec.

    // Single-line comment without SASS preprocessing breaks the next media query
    @media all {
         .something {color: red;}
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Does the CSS Editor support media queries?’ is closed to new replies.