소스 검색

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