MadLittleMods / postcss-css-variables

PostCSS plugin to transform CSS Custom Properties(CSS variables) syntax into a static representation
https://madlittlemods.github.io/postcss-css-variables/playground/
Other
536 stars 62 forks source link

Unclosed Bracket error with Google MDC #103

Closed hoomanb closed 4 years ago

hoomanb commented 5 years ago

I'm trying to add Google Material design components to a project where postcss-css-variables is running. But I'm getting an unclosed bracket error:

https://material.io/develop/web/components/ripples/

[15:22:04] Finished 'sass:lint' after 3.71 s
[15:22:04] Starting 'sass:compile'...
[15:22:04] Finished 'sass:block-compile' after 2.6 s
[15:22:06] 'sass:compile' errored after 1.97 s
[15:22:06] CssSyntaxError in plugin "gulp-postcss"
Message:
    /node_modules/@material/ripple/_mixins.scss:182:6: Unclosed bracket

  180 |     @include mdc-feature-targets($feat-structure) {
  181 |       // Retain transform from mdc-ripple-fg-radius-in activation
> 182 |       transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));
      |      ^
  183 |     }
  184 |   }

I think the error above should have enough information, but here's the source code if you need to look further: https://github.com/material-components/material-components-web/tree/master/packages/mdc-ripple

MadLittleMods commented 4 years ago

I am going to close this in favor of https://github.com/MadLittleMods/postcss-css-variables/issues/96