Преглед на файлове

Definining function calc-percent()

It was not defined.
José Luis Cruz преди 11 години
родител
ревизия
789dece9c0
променени са 1 файла, в които са добавени 4 реда и са изтрити 1 реда
  1. 4 1
      library/scss/partials/_functions.scss

+ 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);
-}
+}