WordPress.org

Forums

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

  1. James Barlow
    Member
    Posted 1 year 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 1 year 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 1 year 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;}
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Jetpack by WordPress.com
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic