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

@keyframes percentages are being converted incorrectly #92

Open
brossi opened this issue Aug 25, 2015 · 0 comments
Open

@keyframes percentages are being converted incorrectly #92

brossi opened this issue Aug 25, 2015 · 0 comments

Comments

@brossi
Copy link

brossi commented Aug 25, 2015

I noticed that when running sass2stylus on .scss files that contain @Keyframes rules that the output was incorrectly appending nested keyframe selectors with "$" instead of "%".

original.scss

@mixin topbar-x-rotation(){
    @keyframes topbar-x {
      0% {top: 0px; transform: rotate(0deg); }
      45% {top: 6px; transform: rotate(145deg); }
      75% {transform: rotate(130deg); }
      100% {transform: rotate(135deg); }
    }
}

output.styl

topbar-x-rotation()
  @keyframes
    0$
      top: 0px
      transform: rotate(0deg)
    45$
      top: 6px
      transform: rotate(145deg)
    75$
      transform: rotate(130deg)
    100$
      transform: rotate(135deg)

The expected output should be:

topbar-x-rotation()
  @keyframes
    0%
      top: 0px
      transform: rotate(0deg)
    45%
      top: 6px
      transform: rotate(145deg)
    75%
      transform: rotate(130deg)
    100%
      transform: rotate(135deg)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant