Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SCSS Syntax Disappear #77

Closed
gagna opened this issue Sep 6, 2014 · 2 comments · May be fixed by cooljl31/atom-beautify#18 or cooljl31/atom-beautify#21
Closed

SCSS Syntax Disappear #77

gagna opened this issue Sep 6, 2014 · 2 comments · May be fixed by cooljl31/atom-beautify#18 or cooljl31/atom-beautify#21
Assignees

Comments

@gagna
Copy link

gagna commented Sep 6, 2014

Hi @Glavin001, again i am really unlucky with this package.
When i beautify SCSS my code change from this:

#cta {
  .container {
    .cta--primary {
      &:visited {
           //whatever
      }
      &::before {
           //whatever
      }
    }
  }
}

To:

#cta {
  .container {
    .cta--primary {
      &::before {
        //whatever
      }
    }
  }
}
@gagna gagna changed the title SCSS SCSS Syntax Disappear Sep 6, 2014
@Glavin001 Glavin001 added the bug label Sep 7, 2014
@Glavin001 Glavin001 self-assigned this Sep 7, 2014
@Glavin001
Copy link
Owner

You should submit the issue to Pretty-Diff and have their maintainer try and debug and fix it. If there is anything that I can do from Atom Beautify's perspective, please let me know. Thanks.

@Glavin001
Copy link
Owner

This has since been resolved.

Before:

#cta {
  .container {
    .cta--primary {
      &:visited {
           //whatever
      }
      &::before {
           //whatever
      }
    }
  }
}

After:

#cta {
  .container {
    .cta--primary {
      &::before {
        //whatever
      }
      &:visited {
        //whatever
      }
    }
  }
}

Thanks again, @austincheney!

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