From fb2dcc065354dee80a3ce52d870755d65adda914 Mon Sep 17 00:00:00 2001 From: mustafahlvc Date: Mon, 31 Jul 2017 16:32:29 +0300 Subject: [PATCH] Width, height percentage class helpers added. --- src/app/core/scss/partials/_helpers.scss | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/app/core/scss/partials/_helpers.scss b/src/app/core/scss/partials/_helpers.scss index f4c12ed2..50b87164 100644 --- a/src/app/core/scss/partials/_helpers.scss +++ b/src/app/core/scss/partials/_helpers.scss @@ -13,6 +13,16 @@ max-#{$prop}: $length !important; } } + + // Percentage + @for $i from 0 through 20 { + $i-p: 5 * $i; + $size-p: 5% * $i; + + .#{$abbrev}-#{$i-p}-p { + #{$prop}: $size-p !important; + } + } } // ######################