Skip to content

Instantly share code, notes, and snippets.

@ApacheEx
Created June 18, 2018 10:48
Show Gist options
  • Save ApacheEx/3a0296391c14b5103e3bad461e55b316 to your computer and use it in GitHub Desktop.
Save ApacheEx/3a0296391c14b5103e3bad461e55b316 to your computer and use it in GitHub Desktop.
patch-package
--- a/node_modules/singularitygs/stylesheets/singularitygs/_api.scss
+++ b/node_modules/singularitygs/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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment