diff --git a/package.json b/package.json index 5f29ede..8f3a53e 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "diff": "^1.2.1", "fs-extra": "^0.14.0", "glob": "^4.3.2", - "node-sass": "^3.0.0", + "node-sass": "^4.8.3", "semver": "^5.1.0", "yargs": "^4.1.0" }, diff --git a/stylesheets/singularitygs/_api.scss b/stylesheets/singularitygs/_api.scss index 18f5940..5db6951 100644 --- a/stylesheets/singularitygs/_api.scss +++ b/stylesheets/singularitygs/_api.scss @@ -56,11 +56,19 @@ $Right: (); @if $Direction == 'both' or $From == 'left' or ($Direction == 'rtl' and $From == 'opposite') { - $Left: call('output-#{$output-style}', map-merge($Span-Map, ('direction': left))); + @if (function-exists('get-function')) { + $Left: call(get-function('output-#{$output-style}'), map-merge($Span-Map, ('direction': left))); + } @else { + $Left: call('output-#{$output-style}', map-merge($Span-Map, ('direction': left))); + } } @if $Direction == 'both' or $From == 'right' or ($Direction == 'ltr' and $From == 'opposite') { - $Right: call('output-#{$output-style}', map-merge($Span-Map, ('direction': right))); + @if (function-exists('get-function')) { + $Right: call(get-function('output-#{$output-style}'), map-merge($Span-Map, ('direction': right))); + } @else { + $Right: call('output-#{$output-style}', map-merge($Span-Map, ('direction': right))); + } } $Left-Keys: map-keys($Left); @@ -115,4 +123,4 @@ @include grid-span-build($property, $value); } } -} \ No newline at end of file +}