Does WP.com ignore “@import” for Sandbox?

  • Unknown's avatar

    On a self-hosted WordPress site, you would choose among the various 1-, 2- and 3-column Sandbox layouts with an @import rule. My question is whether you can do the same thing on WordPress.com.

    When you go into the WordPress.com CSS Stylesheet Editor for the first time, the edit box includes a comment which says:

    Things we strip out include:
    * HTML code
    * @import rules
    * expressions
    * invalid and unsafe code
    * URLs not using the http: protocol

    However, elsewhere it looks like WordPress.com does use @import rules with Sandbox 1.6.1 because if you click “view original stylesheet” then you see one:

    /* Two-column with sidebar on left from the /examples/ folder */
    @import url('examples/2c-l.css');

    So which is it? For example, if I want to change the layout to 3 columns with sidebars on both sides, do I just paste the rule @import url('examples/3c-b.css'); into the CSS Editor? Or do I do it by downloading Sandbox, unpacking the “examples/3c-b.css” file and pasting in the whole thing explicitly?

    Thanks.

  • Unknown's avatar

    By experiment, it appears that WordPress.com does ignore the @import rule even for Sandbox.

    That being the case, it would be nice if the “view original stylesheet” link would show the actual code used by default for Sandbox, after filtering is applied.

  • The topic ‘Does WP.com ignore “@import” for Sandbox?’ is closed to new replies.