Selaa lähdekoodia

Merge pull request #639 from joseluis/patch-6

Definining function calc-percent()
Eddie Machado 11 vuotta sitten
vanhempi
commit
00ad23a09c
1 muutettua tiedostoa jossa 4 lisäystä ja 1 poistoa
  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);
-}
+}