Эх сурвалжийг харах

Definining function calc-percent()

It was not defined.
José Luis Cruz 11 жил өмнө
parent
commit
789dece9c0

+ 4 - 1
library/scss/partials/_functions.scss

@@ -58,6 +58,9 @@ both compile to:
 width: 65%;
 *********************/
 
+@function calc-percent($target, $container) {
+  @return ($target / $container) * 100%;
+}
 @function cp($target, $container) {
   @return calc-percent($target, $container);
-}
+}