+ 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?
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
+ 1
For node-sass installation
http://zetcode.com/javascript/nodesass/
+ 1
Alright then, I'll try what you've said. Thanks. :)
0
I've installed it on my system via Node.js.
Still doesn't work.
0
You can use prepros
https://prepros.io/downloads