3.3.0.alpha.3 (Bleeding Edge) 6b85c5d77c36207c23fecc9f72ff27838ed8c774 o:Sass::Tree::RootNode :@children[o:Sass::Tree::CommentNode : @value[I"V/* Determines those states for which you want to enable magic sprite selectors */:EF: @type: silent;[: @linei: @options{o:Sass::Tree::VariableNode : @nameI"sprite-selectors; T: @expro:Sass::Script::List ;[o:Sass::Script::String ;I" hover; T; :identifier; i; @ o; ;I" target; T; ;; i; @ o; ;I" active; T; ;; i; @ :@separator: comma; i; @ : @guardedI" !default; T;[; i; @ o; ;[I"|/* Set the width and height of an element to the original * dimensions of an image before it was included in the sprite. */; F; ; ;[; i ; @ o:Sass::Tree::MixinDefNode ;I"sprite-dimensions; T: @args[[o:Sass::Script::Variable;I"map; T:@underscored_nameI"map; T; @ 0[o;;I" sprite; T;I" sprite; T; @ 0: @splat0;[o:Sass::Tree::PropNode ;[I" height; T;o:Sass::Script::Funcall ;I"image-height; T;[o; ;I"sprite-file; T;[o; ;I"map; T;I"map; T; i ; @ o; ;I" sprite; T;I" sprite; T; i ; @ :@keywords{;0; i ; @ ;{;0; i ; @ : @tabsi:@prop_syntax:new;[; i ; @ o; ;[I" width; T;o; ;I"image-width; T;[o; ;I"sprite-file; T;[o; ;I"map; T;I"map; T; i ; @ o; ;I" sprite; T;I" sprite; T; i ; @ ;{;0; i ; @ ;{;0; i ; @ ;i; ;!;[; i ; @ ; i :@has_childrenT; @ o; ;[I"Õ/* Set the background position of the given sprite `$map` to display the * sprite of the given `$sprite` name. You can move the image relative to its * natural position by passing `$offset-x` and `$offset-y`. */; F; ; ;[; i; @ o; ;I"sprite-background-position; T;[ [o;;I"map; T;I"map; T; @ 0[o;;I" sprite; T;I" sprite; T; @ 0[o;;I" offset-x; T;I" offset_x; T; @ o:Sass::Script::Number ;i:@numerator_units[:@denominator_units[; i:@originalI"0; F; @ [o;;I" offset-y; T;I" offset_y; T; @ o;# ;i;$[;%@a; i;&I"0; F; @ ;0;[o; ;[I"background-position; T;o; ;I"sprite-position; T;[ o; ;I"map; T;I"map; T; i; @ o; ;I" sprite; T;I" sprite; T; i; @ o; ;I" offset-x; T;I" offset_x; T; i; @ o; ;I" offset-y; T;I" offset_y; T; i; @ ;{;0; i; @ ;i; ;!;[; i; @ ; i;"T; @ o; ;[I"L/* Determines if you want to include magic selectors in your sprites */; F; ; ;[; i; @ o; ;I"#disable-magic-sprite-selectors; T;o:Sass::Script::Bool;F; i; @ ;I" !default; T;[; i; @ o; ;[I"þ/* Include the position and (optionally) dimensions of this `$sprite` * in the given sprite `$map`. The sprite url should come from either a base * class or you can specify the `sprite-url` explicitly like this: * * background: $map no-repeat; */; F; ; ;[; i; @ o; ;I" sprite; T;[ [o;;I"map; T;I"map; T; @ 0[o;;I" sprite; T;I" sprite; T; @ 0[o;;I"dimensions; T;I"dimensions; T; @ o;';F; i ; @ [o;;I" offset-x; T;I" offset_x; T; @ o;# ;i;$[;%@a; i ;&I"0; F; @ [o;;I" offset-y; T;I" offset_y; T; @ o;# ;i;$[;%@a; i ;&I"0; F; @ ;0;[o:Sass::Tree::MixinNode ;I"sprite-background-position; T;[ o; ;I"map; T;I"map; T; i!; @ o; ;I" sprite; T;I" sprite; T; i!; @ o; ;I" offset-x; T;I" offset_x; T; i!; @ o; ;I" offset-y; T;I" offset_y; T; i!; @ ;{;0;[; i!; @ u:Sass::Tree::IfNode([o:Sass::Script::Variable : @nameI"dimensions:ET:@underscored_nameI"dimensions;T: @linei": @options{0[o:Sass::Tree::MixinNode ;I"sprite-dimensions;T: @args[o; ;I"map;T;I"map;T; i#; @ o; ;I" sprite;T;I" sprite;T; i#; @ :@keywords{: @splat0:@children[; i#; @ u;)[o:!Sass::Script::UnaryOperation : @operando:Sass::Script::Variable : @nameI"#disable-magic-sprite-selectors:ET:@underscored_nameI"#disable_magic_sprite_selectors; T: @linei%: @options{:@operator:not; i%; @ 0[o:Sass::Tree::MixinNode ;I"sprite-selectors; T: @args[ o; ;I"map; T; I"map; T; i&; @ o; ;I" sprite; T; I" sprite; T; i&; @ o; ;I" sprite; T; I" sprite; T; i&; @ o; ;I" offset-x; T; I" offset_x; T; i&; @ o; ;I" offset-y; T; I" offset_y; T; i&; @ :@keywords{: @splat0:@children[; i&; @ ; i ;"T; @ o; ;[I"o/* Include the selectors for the `$sprite` given the `$map` and the * `$full-sprite-name` * @private */; F; ; ;[; i*; @ o; ;I"sprite-selectors; T;[ [o;;I"map; T;I"map; T; @ 0[o;;I"sprite-name; T;I"sprite_name; T; @ 0[o;;I"full-sprite-name; T;I"full_sprite_name; T; @ 0[o;;I" offset-x; T;I" offset_x; T; @ o;# ;i;$[;%@a; i-;&I"0; F; @ [o;;I" offset-y; T;I" offset_y; T; @ o;# ;i;$[;%@a; i-;&I"0; F; @ ;0;[o:Sass::Tree::EachNode : @varI" selector; T: @listo; ;I"sprite-selectors; T;I"sprite_selectors; T; i.; @ ;[u;)£[o:Sass::Script::Funcall : @nameI"sprite_has_selector:ET: @args[o:Sass::Script::Variable ;I"map;T:@underscored_nameI"map;T: @linei/: @options{o; ;I"sprite-name;T; I"sprite_name;T; i/; @ o; ;I" selector;T; I" selector;T; i/; @ :@keywords{: @splat0; i/; @ 0[o:Sass::Tree::RuleNode : @rule[I"&:;Fo; ;I" selector;T; I" selector;T; i0; @ I" , &.;Fo; ;I"full-sprite-name;T; I"full_sprite_name;T; i0; @ I"_;To; ;I" selector;T; I" selector;T; i0; @ I" , &.;Fo; ;I"full-sprite-name;T; I"full_sprite_name;T; i0; @ I"-;To; ;I" selector;T; I" selector;T; i0; @ : @tabsi:@children[o:Sass::Tree::MixinNode ;I"sprite-background-position;T;[ o; ;I"map;T; I"map;T; i1; @ o:&Sass::Script::StringInterpolation : @beforeo:Sass::Script::String : @valueI";T: @type: string; i1; @ : @mido; ;I"sprite-name;T; I"sprite_name;T; i1; @ : @aftero; ;o; ;I"_;T;;; i1; @ ;o; ;I" selector;T; I" selector;T; i1; @ ;o; ;I";T;;; i1; @ ; i1; @ ; i1; @ o; ;I" offset-x;T; I" offset_x;T; i1; @ o; ;I" offset-y;T; I" offset_y;T; i1; @ ; {;0;[; i1; @ ; i0:@has_childrenT; @ ; i.;"T; @ ; i-;"T; @ o; ;[I"/* Generates a class for each space separated name in `$sprite-names`. * The class will be of the form .-. * * If a base class is provided, then each class will extend it. * * If `$dimensions` is `true`, the sprite dimensions will specified. */; F; ; ;[; i7; @ o; ;I" sprites; T;[ [o;;I"map; T;I"map; T; @ 0[o;;I"sprite-names; T;I"sprite_names; T; @ 0[o;;I"base-class; T;I"base_class; T; @ o;';F; i=; @ [o;;I"dimensions; T;I"dimensions; T; @ o;';F; i=; @ [o;;I" prefix; T;I" prefix; T; @ o; ;I"sprite-map-name; T;[o; ;I"map; T;I"map; T; i=; @ ;{;0; i=; @ [o;;I" offset-x; T;I" offset_x; T; @ o;# ;i;$[;%@a; i=;&I"0; F; @ [o;;I" offset-y; T;I" offset_y; T; @ o;# ;i;$[;%@a; i=;&I"0; F; @ ;0;[o;* ;+I"sprite-name; T;,o; ;I"sprite-names; T;I"sprite_names; T; i>; @ ;[u;)3[o:Sass::Script::Funcall : @nameI" sprite_does_not_have_parent:ET: @args[o:Sass::Script::Variable ;I"map;T:@underscored_nameI"map;T: @linei?: @options{o; ;I"sprite-name;T; I"sprite_name;T; i?; @ :@keywords{: @splat0; i?; @ 0[o:Sass::Tree::VariableNode ;I"full-sprite-name;T: @expro:&Sass::Script::StringInterpolation : @beforeo:Sass::Script::String : @valueI";T: @type: string; i@; @ : @mido; ;I" prefix;T; I" prefix;T; i@; @ : @aftero; ;o; ;I"-;T;;; i@; @ ;o; ;I"sprite-name;T; I"sprite_name;T; i@; @ ;o; ;I";T;;; i@; @ ; i@; @ ; i@; @ : @guarded0:@children[; i@; @ o:Sass::Tree::RuleNode : @rule[I".;Fo; ;I"full-sprite-name;T; I"full_sprite_name;T; iA; @ : @tabsi;[u:Sass::Tree::IfNodeí[o:Sass::Script::Variable : @nameI"base-class:ET:@underscored_nameI"base_class;T: @lineiB: @options{0[o:Sass::Tree::ExtendNode :@selector[o; ;I"base-class;T;I"base_class;T; iB; @ :@optionalF:@children[; iB; @ o:Sass::Tree::MixinNode ;I" sprite;T;[ o; ;I"map;T; I"map;T; iC; @ o; ;I"sprite-name;T; I"sprite_name;T; iC; @ o; ;I"dimensions;T; I"dimensions;T; iC; @ o; ;I" offset-x;T; I" offset_x;T; iC; @ o; ;I" offset-y;T; I" offset_y;T; iC; @ ; {;0;[; iC; @ ; iA:@has_childrenT; @ ; i>;"T; @ ; i=;"T; @ :@templateI"Ë // Determines those states for which you want to enable magic sprite selectors $sprite-selectors: hover, target, active !default; // Set the width and height of an element to the original // dimensions of an image before it was included in the sprite. @mixin sprite-dimensions($map, $sprite) { height: image-height(sprite-file($map, $sprite)); width: image-width(sprite-file($map, $sprite)); } // Set the background position of the given sprite `$map` to display the // sprite of the given `$sprite` name. You can move the image relative to its // natural position by passing `$offset-x` and `$offset-y`. @mixin sprite-background-position($map, $sprite, $offset-x: 0, $offset-y: 0) { background-position: sprite-position($map, $sprite, $offset-x, $offset-y); } // Determines if you want to include magic selectors in your sprites $disable-magic-sprite-selectors:false !default; // Include the position and (optionally) dimensions of this `$sprite` // in the given sprite `$map`. The sprite url should come from either a base // class or you can specify the `sprite-url` explicitly like this: // // background: $map no-repeat; @mixin sprite($map, $sprite, $dimensions: false, $offset-x: 0, $offset-y: 0) { @include sprite-background-position($map, $sprite, $offset-x, $offset-y); @if $dimensions { @include sprite-dimensions($map, $sprite); } @if not $disable-magic-sprite-selectors { @include sprite-selectors($map, $sprite, $sprite, $offset-x, $offset-y); } } // Include the selectors for the `$sprite` given the `$map` and the // `$full-sprite-name` // @private @mixin sprite-selectors($map, $sprite-name, $full-sprite-name, $offset-x: 0, $offset-y: 0) { @each $selector in $sprite-selectors { @if sprite_has_selector($map, $sprite-name, $selector) { &:#{$selector}, &.#{$full-sprite-name}_#{$selector}, &.#{$full-sprite-name}-#{$selector} { @include sprite-background-position($map, "#{$sprite-name}_#{$selector}", $offset-x, $offset-y); } } } } // Generates a class for each space separated name in `$sprite-names`. // The class will be of the form .-. // // If a base class is provided, then each class will extend it. // // If `$dimensions` is `true`, the sprite dimensions will specified. @mixin sprites($map, $sprite-names, $base-class: false, $dimensions: false, $prefix: sprite-map-name($map), $offset-x: 0, $offset-y: 0) { @each $sprite-name in $sprite-names { @if sprite_does_not_have_parent($map, $sprite-name) { $full-sprite-name: "#{$prefix}-#{$sprite-name}"; .#{$full-sprite-name} { @if $base-class { @extend #{$base-class}; } @include sprite($map, $sprite-name, $dimensions, $offset-x, $offset-y); } } } }; T;"T; @ ; i