+ 1

Sass

Even though I've copied and pasted the clip-path from https://bennettfeely.com/clippy/, it still doesn't show in the file. html: <body> <div id="bg"></div> </body> sass: $colors: ( primary: orangered, accent:wheat, ); body, html { height: 100%; } body { margin:0; #bg { clip-path: polygon(100% 0, 100% 55%, 29% 100%, 0 100%, 0 0); background-color: map-get($colors, primary); width: 100%; height: 100%; position:absolute; z-index:-1; } } What's wrong?

18th Jul 2019, 10:50 PM
John Galt
John Galt - avatar
5 Respostas
+ 4
Sass cannot directly run from code Playground, you need sass precompiler script to precompile it. https://code.sololearn.com/WdqvlWzhrALG/?ref=app
19th Jul 2019, 12:36 AM
Calviղ
Calviղ - avatar
+ 1
For node-sass installation http://zetcode.com/javascript/nodesass/
19th Jul 2019, 8:38 AM
Calviղ
Calviղ - avatar
+ 1
Alright then, I'll try what you've said. Thanks. :)
19th Jul 2019, 10:09 AM
John Galt
John Galt - avatar
0
I've installed it on my system via Node.js. Still doesn't work.
19th Jul 2019, 8:16 AM
John Galt
John Galt - avatar
0
You can use prepros https://prepros.io/downloads
19th Jul 2019, 8:29 AM
Calviղ
Calviղ - avatar