Answers for "function as a value in scss"

CSS
2

scss function

/* How to declare a function: */
@function some-func($param) {
    @return (100/$param);
}

/* How to use a function: */
.col-6 { font-size: some-func(5);}

/* The above is the same as: */
.col-6 { font-size: 20; }
Posted by: Guest on August-11-2021

Browse Popular Code Answers by Language