Skip to content

atblock_pre and atblock_post don't seem to have an effect #48

Description

@cwallacetlc

I'd like my @media blocks to have a newline after the brace, so I've set atblock_pre to {\n in the config file (pasted below), but when I run it, the @media blocks come out like this:

@media screen and (max-width:1130px) {.header-logo {
        margin-top: 20px;
    }

There should be a newline and four spaces before .header-logo. It looks like atblock_pre is ignored, and it always just puts a single brace.

Also, I've compared the output between a config file that defines atblock_pre and atblock_post and one that doesn't, and the output files were identical. It seems those two options are completely ignored.

Config file:

{
    "selector_comma": ",\n",
    "indent": "    ",
    "atblock_pre": "{\n    "
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions