3.1.19 (Brainy Betty) 6cc4d7bad6157534f1b05081ed597db2bc416f31 o:Sass::Tree::RootNode :@children[o:Sass::Tree::MixinDefNode : @nameI"border-image:ET: @args[[o:Sass::Script::Variable;I" images; T:@underscored_nameI" images; T: @options{0;[ o:Sass::Tree::PropNode ;[I"-webkit-border-image; T: @valueo:Sass::Script::Funcall ;I"border-add-prefix; T; [o; ;I" images; T; I" images; T: @linei; @o:Sass::Script::String ;I" webkit; T: @type:identifier;i; @:@keywords{;i; @: @tabsi:@prop_syntax:new;[;i; @o; ;[I"-moz-border-image; T;o; ;I"border-add-prefix; T; [o; ;I" images; T; I" images; T;i; @o; ;I"moz; T;;;i; @;{;i; @;i;;;[;i; @o; ;[I"-o-border-image; T;o; ;I"border-add-prefix; T; [o; ;I" images; T; I" images; T;i ; @o; ;I"o; T;;;i ; @;{;i ; @;i;;;[;i ; @o; ;[I"border-image; T;o; ;I"border-add-prefix; T; [o; ;I" images; T; I" images; T;i ; @;{;i ; @;i;;;[;i ; @;i:@has_childrenT; @o:Sass::Tree::FunctionNode ;I"border-add-prefix; T; [[o; ;I" images; T; I" images; T; @0[o; ;I" vendor; T; I" vendor; T; @o:Sass::Script::Bool;F;i ; @;[ o:Sass::Tree::VariableNode ;I"border-image; T: @expro:Sass::Script::List ;[:@separator: space;i; @: @guarded0;[;i; @o; ;I"images-type; T;o; ;I" type-of; T; [o; ;I"nth; T; [o; ;I" images; T; I" images; T;i; @o:Sass::Script::Number ;i:@numerator_units[:@denominator_units[;i:@originalI"1; F; @;{;i; @;{;i; @;!0;[;i; @o; ;I"first-var; T;o; ;I"nth; T; [o; ;I"nth; T; [o; ;I" images; T; I" images; T;i; @o;" ;i;#[;$@a;i;%I"1; F; @;{;i; @o;" ;i;#[;$@a;i;%I"1; F; @;{;i; @;!0;[;i; @o:Sass::Tree::CommentNode ;[I"2/* Get type of Gradient (Linear || radial) */; F: @silenti: @loud0;[;i; @o;& ;[I"!/* If input is a gradient */; F;'i;(0;[;i; @u:Sass::Tree::IfNode[o:Sass::Script::Operation :@operand1o:Sass::Script::Variable : @nameI"images-type:ET:@underscored_nameI"images_type; T: @linei: @options{:@operand2o:Sass::Script::String : @valueI" string; T: @type:identifier; i; @ :@operator:eq; i; @ u:Sass::Tree::IfNodet [o:Sass::Script::Operation :@operand1o:Sass::Script::Variable : @nameI"images-type:ET:@underscored_nameI"images_type; T: @linei#: @options{:@operand2o:Sass::Script::String : @valueI" list; T: @type:identifier; i#; @ :@operator:eq; i#; @ 0[o:Sass::Tree::ForNode : @varI"i; T: @fromo:Sass::Script::Number ;i:@numerator_units[:@denominator_units[; i$:@originalI"1; F; @ :@too:Sass::Script::Funcall ;I" length; T: @args[o; ;I" images; T; I" images; T; i$; @ :@keywords{; i$; @ :@exclusiveF:@children[ o:Sass::Tree::VariableNode ;I" type; T: @expro; ;I" type-of; T;[o; ;I"nth; T;[o; ;I" images; T; I" images; T; i%; @ o; ;I"i; T; I"i; T; i%; @ ;{; i%; @ ;{; i%; @ : @guarded0; [; i%; @ o:Sass::Tree::CommentNode ;[I"0/* Get type of variable - List or String */; F: @silenti: @loud0; [; i%; @ o;$ ;[I"+/* If variable is a list - Gradient */; F;%i;&0; [; i'; @ u:Sass::Tree::IfNode˜[o:Sass::Script::Operation :@operand1o:Sass::Script::Variable : @nameI" type:ET:@underscored_nameI" type; T: @linei(: @options{:@operand2o:Sass::Script::String : @valueI" list; T: @type:identifier; i(; @ :@operator:eq; i(; @ u:Sass::Tree::IfNode¤[o:Sass::Script::Operation :@operand1o; ;o:Sass::Script::Variable : @nameI" type:ET:@underscored_nameI" type; T: @linei/: @options{:@operand2o:Sass::Script::String : @valueI" string; T: @type:identifier; i/; @ :@operator:eq; i/; @ ; o; ;o; ;I" type; T; I" type; T; i/; @ ; o; ;I" number; T;;; i/; @ ;;; i/; @ ;:or; i/; @ 0[o:Sass::Tree::VariableNode ;I"border-image; T: @expro:Sass::Script::Funcall ;I" append; T: @args[o; ;I"border-image; T; I"border_image; T; i0; @ o; ;I"nth; T;[o; ;I" images; T; I" images; T; i0; @ o; ;I"i; T; I"i; T; i0; @ :@keywords{; i0; @ ;{; i0; @ : @guarded0:@children[; i0; @ [ o:Sass::Tree::VariableNode ;I"gradient-type; T: @expro:Sass::Script::Funcall ;I"nth; T: @args[o; ;I"nth; T;[o; ;I" images; T; I" images; T; i); @ o; ;I"i; T; I"i; T; i); @ :@keywords{; i); @ o:Sass::Script::Number ;i:@numerator_units[:@denominator_units[; i):@originalI"1; F; @ ;{; i); @ : @guarded0:@children[; i); @ o:Sass::Tree::CommentNode ;[I"2/* Get type of gradient (linear || radial) */; F: @silenti: @loud0;[; i); @ o; ;I"gradient-args; T;o; ;I"nth; T;[o; ;I"nth; T;[o; ;I" images; T; I" images; T; i*; @ o; ;I"i; T; I"i; T; i*; @ ;{; i*; @ o; ;i;[;@ ; i*;I"2; F; @ ;{; i*; @ ;0;[; i*; @ o; ;[I"*/* Get actual gradient (red, blue) */; F;!i;"0;[; i*; @ o; ;I"border-image; T;o; ;I"render-gradients; T;[o; ;I"gradient-args; T; I"gradient_args; T; i+; @ o; ;I"gradient-type; T; I"gradient_type; T; i+; @ o; ;I" vendor; T; I" vendor; T; i+; @ ;{; i+; @ ;0;[; i+; @ ; i$:@has_childrenT; @ [u;[o:Sass::Script::Operation :@operand1o; ;o:Sass::Script::Variable : @nameI"first-var:ET:@underscored_nameI"first_var; T: @linei: @options{:@operand2o:Sass::Script::String : @valueI" linear; T: @type: string; i; @ :@operator:eq; i; @ ; o; ;o; ;I"first-var; T; I"first_var; T; i; @ ; o; ;I" radial; T;;; i; @ ;;; i; @ ;:or; i; @ u:Sass::Tree::IfNodeÄ[00[o:Sass::Tree::VariableNode : @nameI"border-image:ET: @expro:Sass::Script::Variable ;I" images;T:@underscored_nameI" images;T: @linei: @options{: @guarded0:@children[; i; @ [o:Sass::Tree::ForNode : @varI"i; T: @fromo:Sass::Script::Number ;i:@numerator_units[:@denominator_units[; i:@originalI"2; F; @ :@too:Sass::Script::Funcall ;I" length; T: @args[o; ;I" images; T; I" images; T; i; @ :@keywords{; i; @ :@exclusiveF:@children[ o:Sass::Tree::VariableNode ;I"gradient-type; T: @expro; ;I"nth; T;[o; ;I" images; T; I" images; T; i; @ o; ;i;[;@; i;I"1; F; @ ; {; i; @ : @guarded0;"[; i; @ o:Sass::Tree::CommentNode ;[I"2/* Get type of gradient (linear || radial) */; F: @silenti: @loud0;"[; i; @ o;# ;I"gradient-args; T;$o; ;I"nth; T;[o; ;I" images; T; I" images; T; i; @ o; ;I"i; T; I"i; T; i; @ ; {; i; @ ;%0;"[; i; @ o;& ;[I"*/* Get actual gradient (red, blue) */; F;'i;(0;"[; i; @ o;# ;I"border-image; T;$o; ;I"render-gradients; T;[o; ;I"gradient-args; T; I"gradient_args; T; i; @ o; ;I"gradient-type; T; I"gradient_type; T; i; @ o; ;I" vendor; T; I" vendor; T; i; @ ; {; i; @ ;%0;"[; i; @ ; i:@has_childrenT; @ o:Sass::Tree::ReturnNode ;o; ;I"border-image; T; I"border_image; T;i4; @;[;i4; @;i ;T; @o;& ;[I"¨/*Examples: * @include border-image(url("image.png")); * @include border-image(url("image.png") 20 stretch); * @include border-image(linear-gradient(45deg, orange, yellow)); * @include border-image(linear-gradient(45deg, orange, yellow) stretch); * @include border-image(linear-gradient(45deg, orange, yellow) 20 30 40 50 stretch round); * @include border-image(radial-gradient(top, cover, orange, yellow, orange)); */; F;'i;(0;[;i7; @:@templateI"”@mixin border-image($images) { -webkit-border-image: border-add-prefix($images, webkit); -moz-border-image: border-add-prefix($images, moz); -o-border-image: border-add-prefix($images, o); border-image: border-add-prefix($images); } @function border-add-prefix($images, $vendor: false) { $border-image: (); $images-type: type-of(nth($images, 1)); $first-var: nth(nth($images, 1), 1); // Get type of Gradient (Linear || radial) // If input is a gradient @if $images-type == string { @if ($first-var == "linear") or ($first-var == "radial") { @for $i from 2 through length($images) { $gradient-type: nth($images, 1); // Get type of gradient (linear || radial) $gradient-args: nth($images, $i); // Get actual gradient (red, blue) $border-image: render-gradients($gradient-args, $gradient-type, $vendor); } } // If input is a URL @else { $border-image: $images; } } // If input is gradient or url + additional args @else if $images-type == list { @for $i from 1 through length($images) { $type: type-of(nth($images, $i)); // Get type of variable - List or String // If variable is a list - Gradient @if $type == list { $gradient-type: nth(nth($images, $i), 1); // Get type of gradient (linear || radial) $gradient-args: nth(nth($images, $i), 2); // Get actual gradient (red, blue) $border-image: render-gradients($gradient-args, $gradient-type, $vendor); } // If variable is a string - Image or number @else if ($type == string) or ($type == number) { $border-image: append($border-image, nth($images, $i)); } } } @return $border-image; } //Examples: // @include border-image(url("image.png")); // @include border-image(url("image.png") 20 stretch); // @include border-image(linear-gradient(45deg, orange, yellow)); // @include border-image(linear-gradient(45deg, orange, yellow) stretch); // @include border-image(linear-gradient(45deg, orange, yellow) 20 30 40 50 stretch round); // @include border-image(radial-gradient(top, cover, orange, yellow, orange)); ; T;i;T; @