WordPress.org

Ready to get started?Download WordPress

Forums

Jetpack by WordPress.com
[resolved] Does the CSS Editor support media queries? (3 posts)

  1. James Barlow
    Member
    Posted 7 months ago #

    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/

  2. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 7 months ago #

    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?

  3. James Barlow
    Member
    Posted 7 months ago #

    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;}
    }

Reply

You must log in to post.

About this Plugin

About this Topic