Deprecated, you should use math.pow
instead.
Power² function for SASS/SCSS.
Install this package, with npm, in the root directory of your project.
$ npm install @fiskhandlarn/sass-pow --save-dev
Import it in your SCSS:
@import '@fiskhandlarn/sass-pow';
foo {
width: pow(20, 2) * 1px; // 400px
}
Copied from CSS-Tricks