{: versionI"3.2.19 (Media Mark):EF:shaI"-f80db3a4814a4630e6b4b1ae97813c3b754a4187;F: contents"xfo:Sass::Tree::RootNode :@children[o:Sass::Tree::CommentNode : @value[I"6/* @private Default font-size for all browsers */:ET: @type: silent;[: @linei: @options{o:Sass::Tree::VariableNode : @nameI"browser-default-font-size; T: @expro:Sass::Script::Number ;i:@numerator_units[I"px; T:@denominator_units[; i:@originalI" 16px; F; @ : @guarded0;[; i; @ o; ;[I"x/* Base font size in pixels, if not already defined. * Should be the same as the font-size of the html element. */; T; ; ;[; i ; @ o; ;I"base-font-size; T;o; ;i;[I"px; T;[; i ;I" 16px; F; @ ;I" !default; T;[; i ; @ o; ;[I"H/* Whether to output fallback values in px when outputting rems. */; T; ; ;[; i ; @ o; ;I"rem-with-px-fallback; T;o:Sass::Script::Bool;T; i; @ ;I" !default; T;[; i; @ o; ;[I"G/* Convert any CSS or value to any other. */; T; ; ;[; i; @ o:Sass::Tree::FunctionNode ;I"convert-length; T: @args[ [o:Sass::Script::Variable;I" length; T:@underscored_nameI" length; T; @ 0[o;;I" to-unit; T;I" to_unit; T; @ 0[o;;I"from-context; T;I"from_context; T; @ o; ;I"base-font-size; T;I"base_font_size; T; i; @ [o;;I"to-context; T;I"to_context; T; @ o; ;I"from-context; T;I"from_context; T; i; @ : @splat0;[o; ;I"from-unit; T;o:Sass::Script::Funcall ;I" unit; T;[o; ;I" length; T;I" length; T; i; @ :@keywords{;0; i; @ ;0;[; i; @ o; ;[I"M/* Optimize for cases where from and to may accidentally be the same. */; T; ; ;[; i; @ u:Sass::Tree::IfNodeE[o:Sass::Script::Operation :@operand1o:Sass::Script::Variable : @nameI"from-unit:ET:@underscored_nameI"from_unit; T: @linei: @options{:@operand2o; ;I" to-unit; T; I" to_unit; T; i; @ :@operator:eq; i; @ 0[o:Sass::Tree::ReturnNode : @expro; ;I" length; T; I" length; T; i; @ :@children[; i; @ u;Ù[o:Sass::Script::Operation :@operand1o:Sass::Script::Funcall : @nameI" unit:ET: @args[o:Sass::Script::Variable ;I"from-context; T:@underscored_nameI"from_context; T: @linei: @options{:@keywords{: @splat0; i;@ :@operand2o:Sass::Script::String : @valueI"px; T: @type: string; i;@ :@operator:neq; i;@ 0[o:Sass::Tree::WarnNode : @expro; ;I"DParemeter $from-context must resolve to a value in pixel units.; T;;; i;@ :@children[; i;@ u;Ó[o:Sass::Script::Operation :@operand1o:Sass::Script::Funcall : @nameI" unit:ET: @args[o:Sass::Script::Variable ;I"to-context; T:@underscored_nameI"to_context; T: @linei: @options{:@keywords{: @splat0; i;@ :@operand2o:Sass::Script::String : @valueI"px; T: @type: string; i;@ :@operator:neq; i;@ 0[o:Sass::Tree::WarnNode : @expro; ;I"BParameter $to-context must resolve to a value in pixel units.; T;;; i;@ :@children[; i;@ o; ;[I"/* Fixed ratios * https://developer.mozilla.org/en/CSS/length * http://dev.w3.org/csswg/css3-values/#absolute-lengths */; T; ; ;[; i; @ o; ;I"px-per-in; T;o:Sass::Script::Operation :@operand1o; ;ie;[I"px; T;[; i;I" 96px; F; @ :@operand2o; ;i;[I"in; T;[; i;I"1in; F; @ :@operator:div; i; @ ;0;[; i; @ o; ;I"px-per-mm; T;o; ; o; ;ie;[I"px; T;[; i;I" 96px; F; @ ;!o; ;f 25.4;[I"mm; T;[; i;I" 25.4mm; F; @ ;";#; i; @ ;0;[; i; @ o; ;I"px-per-cm; T;o; ; o; ;ie;[I"px; T;[; i;I" 96px; F; @ ;!o; ;f 2.54;[I"cm; T;[; i;I" 2.54cm; F; @ ;";#; i; @ ;0;[; i; @ o; ;I"px-per-pt; T;o; ; o; ;i ;[I"px; T;[; i;I"4px; F; @ ;!o; ;i;[I"pt; T;[; i;I"3pt; F; @ ;";#; i; @ ;0;[; i; @ o; ;I"px-per-pc; T;o; ; o; ;i;[I"px; T;[; i ;I" 16px; F; @ ;!o; ;i;[I"pc; T;[; i ;I"1pc; F; @ ;";#; i ; @ ;0;[; i ; @ o; ;[I"5/* Variables to store actual convesion ratios */; T; ; ;[; i"; @ o; ;I"px-per-from-unit; T;o; ;i;[;[; i#;I"1; F; @ ;0;[; i#; @ o; ;I"px-per-to-unit; T;o; ;i;[;@¨; i$;I"1; F; @ ;0;[; i$; @ u;F[o:Sass::Script::Operation :@operand1o:Sass::Script::Variable : @nameI"from-unit:ET:@underscored_nameI"from_unit; T: @linei&: @options{:@operand2o:Sass::Script::String : @valueI"px; T: @type: string; i&; @ :@operator:neq; i&; @ 0[u:Sass::Tree::IfNode4[o:Sass::Script::Operation :@operand1o:Sass::Script::Variable : @nameI"from-unit:ET:@underscored_nameI"from_unit; T: @linei': @options{:@operand2o:Sass::Script::String : @valueI"em; T: @type: string; i'; @ :@operator:eq; i'; @ u:Sass::Tree::IfNode[o:Sass::Script::Operation :@operand1o:Sass::Script::Variable : @nameI"from-unit:ET:@underscored_nameI"from_unit; T: @linei(: @options{:@operand2o:Sass::Script::String : @valueI"rem; T: @type: string; i(; @ :@operator:eq; i(; @ u:Sass::Tree::IfNodeã[o:Sass::Script::Operation :@operand1o:Sass::Script::Variable : @nameI"from-unit:ET:@underscored_nameI"from_unit; T: @linei): @options{:@operand2o:Sass::Script::String : @valueI"%; T: @type: string; i); @ :@operator:eq; i); @ u:Sass::Tree::IfNode¿[o:Sass::Script::Operation :@operand1o:Sass::Script::Variable : @nameI"from-unit:ET:@underscored_nameI"from_unit; T: @linei*: @options{:@operand2o:Sass::Script::String : @valueI"ex; T: @type: string; i*; @ :@operator:eq; i*; @ u:Sass::Tree::IfNodeš [o:Sass::Script::Operation :@operand1o:Sass::Script::Variable : @nameI"from-unit:ET:@underscored_nameI"from_unit; T: @linei+: @options{:@operand2o:Sass::Script::String : @valueI"in; T: @type: string; i+; @ :@operator:eq; i+; @ u:Sass::Tree::IfNodeþ [o:Sass::Script::Operation :@operand1o:Sass::Script::Variable : @nameI"from-unit:ET:@underscored_nameI"from_unit; T: @linei,: @options{:@operand2o:Sass::Script::String : @valueI"mm; T: @type: string; i,; @ :@operator:eq; i,; @ u:Sass::Tree::IfNodeb [o:Sass::Script::Operation :@operand1o:Sass::Script::Variable : @nameI"from-unit:ET:@underscored_nameI"from_unit; T: @linei-: @options{:@operand2o:Sass::Script::String : @valueI"cm; T: @type: string; i-; @ :@operator:eq; i-; @ u:Sass::Tree::IfNodeÆ[o:Sass::Script::Operation :@operand1o:Sass::Script::Variable : @nameI"from-unit:ET:@underscored_nameI"from_unit; T: @linei.: @options{:@operand2o:Sass::Script::String : @valueI"pt; T: @type: string; i.; @ :@operator:eq; i.; @ u:Sass::Tree::IfNode*[o:Sass::Script::Operation :@operand1o:Sass::Script::Variable : @nameI"from-unit:ET:@underscored_nameI"from_unit; T: @linei/: @options{:@operand2o:Sass::Script::String : @valueI"pc; T: @type: string; i/; @ :@operator:eq; i/; @ u:Sass::Tree::IfNodeŽ[o:Sass::Script::Operation :@operand1o; ;o; ;o; ;o:Sass::Script::Variable : @nameI" to-unit:ET:@underscored_nameI" to_unit; T: @linei0: @options{:@operand2o:Sass::Script::String : @valueI"ch; T: @type: string; i0; @ :@operator:eq; i0; @ ; o; ;o; ;I" to-unit; T; I" to_unit; T; i0; @ ; o; ;I"vw; T;;; i0; @ ;;; i0; @ ;:or; i0; @ ; o; ;o; ;I" to-unit; T; I" to_unit; T; i0; @ ; o; ;I"vh; T;;; i0; @ ;;; i0; @ ;;; i0; @ ; o; ;o; ;I" to-unit; T; I" to_unit; T; i0; @ ; o; ;I" vmin; T;;; i0; @ ;;; i0; @ ;;; i0; @ u:Sass::Tree::IfNodeÈ[00[o:Sass::Tree::WarnNode : @expro:&Sass::Script::StringInterpolation : @beforeo:Sass::Script::String : @valueI":ET: @type: string: @linei5: @options{: @mido:Sass::Script::Variable : @nameI"from-unit; T:@underscored_nameI"from_unit; T;i5;@ : @aftero; ; I": is an unknown length unit. Returning original value.; T; ; ;i5;@ ;i5;@ :@children[;i5;@ o:Sass::Tree::ReturnNode ;o; ;I" length; T;I" length; T;i6;@ ;[;i6;@ [o:Sass::Tree::WarnNode : @expro:&Sass::Script::StringInterpolation : @beforeo; ;I"; T;;; i1; @ : @mido; ;I"from-unit; T; I"from_unit; T; i1; @ : @aftero; ;I"B units can't be reliably converted; Returning original value.; T;;; i1; @ ; i1; @ :@children[; i1; @ o:Sass::Tree::ReturnNode ;o; ;I" length; T; I" length; T; i2; @ ;[; i2; @ [o:Sass::Tree::VariableNode ;I"px-per-from-unit; T: @expro; ;I"px-per-pc; T; I"px_per_pc; T; i/; @ : @guarded0:@children[; i/; @ [o:Sass::Tree::VariableNode ;I"px-per-from-unit; T: @expro; ;I"px-per-pt; T; I"px_per_pt; T; i.; @ : @guarded0:@children[; i.; @ [o:Sass::Tree::VariableNode ;I"px-per-from-unit; T: @expro; ;I"px-per-cm; T; I"px_per_cm; T; i-; @ : @guarded0:@children[; i-; @ [o:Sass::Tree::VariableNode ;I"px-per-from-unit; T: @expro; ;I"px-per-mm; T; I"px_per_mm; T; i,; @ : @guarded0:@children[; i,; @ [o:Sass::Tree::VariableNode ;I"px-per-from-unit; T: @expro; ;I"px-per-in; T; I"px_per_in; T; i+; @ : @guarded0:@children[; i+; @ [o:Sass::Tree::VariableNode ;I"px-per-from-unit; T: @expro; ;o; ;I"from-context; T; I"from_context; T; i*; @ ; o:Sass::Script::Number ;i:@numerator_units[I"ex; T:@denominator_units[; i*:@originalI"2ex; F; @ ;:div; i*; @ : @guarded0:@children[; i*; @ [o:Sass::Tree::VariableNode ;I"px-per-from-unit; T: @expro; ;o; ;I"from-context; T; I"from_context; T; i); @ ; o:Sass::Script::Number ;ii:@numerator_units[I"%; T:@denominator_units[; i):@originalI" 100%; F; @ ;:div; i); @ : @guarded0:@children[; i); @ [o:Sass::Tree::VariableNode ;I"px-per-from-unit; T: @expro; ;o; ;I"base-font-size; T; I"base_font_size; T; i(; @ ; o:Sass::Script::Number ;i:@numerator_units[I"rem; T:@denominator_units[; i(:@originalI" 1rem; F; @ ;:div; i(; @ : @guarded0:@children[; i(; @ [o:Sass::Tree::VariableNode ;I"px-per-from-unit; T: @expro; ;o; ;I"from-context; T; I"from_context; T; i'; @ ; o:Sass::Script::Number ;i:@numerator_units[I"em; T:@denominator_units[; i':@originalI"1em; F; @ ;:div; i'; @ : @guarded0:@children[; i'; @ u;ø[o:Sass::Script::Operation :@operand1o:Sass::Script::Variable : @nameI" to-unit:ET:@underscored_nameI" to_unit; T: @linei:: @options{:@operand2o:Sass::Script::String : @valueI"px; T: @type: string; i:; @ :@operator:neq; i:; @ 0[u:Sass::Tree::IfNodeê[o:Sass::Script::Operation :@operand1o:Sass::Script::Variable : @nameI" to-unit:ET:@underscored_nameI" to_unit; T: @linei;: @options{:@operand2o:Sass::Script::String : @valueI"em; T: @type: string; i;; @ :@operator:eq; i;; @ u:Sass::Tree::IfNodeÏ[o:Sass::Script::Operation :@operand1o:Sass::Script::Variable : @nameI" to-unit:ET:@underscored_nameI" to_unit; T: @linei<: @options{:@operand2o:Sass::Script::String : @valueI"rem; T: @type: string; i<; @ :@operator:eq; i<; @ u:Sass::Tree::IfNode©[o:Sass::Script::Operation :@operand1o:Sass::Script::Variable : @nameI" to-unit:ET:@underscored_nameI" to_unit; T: @linei=: @options{:@operand2o:Sass::Script::String : @valueI"%; T: @type: string; i=; @ :@operator:eq; i=; @ u:Sass::Tree::IfNode[o:Sass::Script::Operation :@operand1o:Sass::Script::Variable : @nameI" to-unit:ET:@underscored_nameI" to_unit; T: @linei>: @options{:@operand2o:Sass::Script::String : @valueI"ex; T: @type: string; i>; @ :@operator:eq; i>; @ u:Sass::Tree::IfNodet [o:Sass::Script::Operation :@operand1o:Sass::Script::Variable : @nameI" to-unit:ET:@underscored_nameI" to_unit; T: @linei?: @options{:@operand2o:Sass::Script::String : @valueI"in; T: @type: string; i?; @ :@operator:eq; i?; @ u:Sass::Tree::IfNodeÞ [o:Sass::Script::Operation :@operand1o:Sass::Script::Variable : @nameI" to-unit:ET:@underscored_nameI" to_unit; T: @linei@: @options{:@operand2o:Sass::Script::String : @valueI"mm; T: @type: string; i@; @ :@operator:eq; i@; @ u:Sass::Tree::IfNodeH [o:Sass::Script::Operation :@operand1o:Sass::Script::Variable : @nameI" to-unit:ET:@underscored_nameI" to_unit; T: @lineiA: @options{:@operand2o:Sass::Script::String : @valueI"cm; T: @type: string; iA; @ :@operator:eq; iA; @ u:Sass::Tree::IfNode²[o:Sass::Script::Operation :@operand1o:Sass::Script::Variable : @nameI" to-unit:ET:@underscored_nameI" to_unit; T: @lineiB: @options{:@operand2o:Sass::Script::String : @valueI"pt; T: @type: string; iB; @ :@operator:eq; iB; @ u:Sass::Tree::IfNode[o:Sass::Script::Operation :@operand1o:Sass::Script::Variable : @nameI" to-unit:ET:@underscored_nameI" to_unit; T: @lineiC: @options{:@operand2o:Sass::Script::String : @valueI"pc; T: @type: string; iC; @ :@operator:eq; iC; @ u:Sass::Tree::IfNode†[o:Sass::Script::Operation :@operand1o; ;o; ;o; ;o:Sass::Script::Variable : @nameI" to-unit:ET:@underscored_nameI" to_unit; T: @lineiD: @options{:@operand2o:Sass::Script::String : @valueI"ch; T: @type: string; iD; @ :@operator:eq; iD; @ ; o; ;o; ;I" to-unit; T; I" to_unit; T; iD; @ ; o; ;I"vw; T;;; iD; @ ;;; iD; @ ;:or; iD; @ ; o; ;o; ;I" to-unit; T; I" to_unit; T; iD; @ ; o; ;I"vh; T;;; iD; @ ;;; iD; @ ;;; iD; @ ; o; ;o; ;I" to-unit; T; I" to_unit; T; iD; @ ; o; ;I" vmin; T;;; iD; @ ;;; iD; @ ;;; iD; @ u:Sass::Tree::IfNodeÄ[00[o:Sass::Tree::WarnNode : @expro:&Sass::Script::StringInterpolation : @beforeo:Sass::Script::String : @valueI":ET: @type: string: @lineiI: @options{: @mido:Sass::Script::Variable : @nameI" to-unit; T:@underscored_nameI" to_unit; T;iI;@ : @aftero; ; I": is an unknown length unit. Returning original value.; T; ; ;iI;@ ;iI;@ :@children[;iI;@ o:Sass::Tree::ReturnNode ;o; ;I" length; T;I" length; T;iJ;@ ;[;iJ;@ [o:Sass::Tree::WarnNode : @expro:&Sass::Script::StringInterpolation : @beforeo; ;I"; T;;; iE; @ : @mido; ;I" to-unit; T; I" to_unit; T; iE; @ : @aftero; ;I"B units can't be reliably converted; Returning original value.; T;;; iE; @ ; iE; @ :@children[; iE; @ o:Sass::Tree::ReturnNode ;o; ;I" length; T; I" length; T; iF; @ ;[; iF; @ [o:Sass::Tree::VariableNode ;I"px-per-to-unit; T: @expro; ;I"px-per-px; T; I"px_per_px; T; iC; @ : @guarded0:@children[; iC; @ [o:Sass::Tree::VariableNode ;I"px-per-to-unit; T: @expro; ;I"px-per-pt; T; I"px_per_pt; T; iB; @ : @guarded0:@children[; iB; @ [o:Sass::Tree::VariableNode ;I"px-per-to-unit; T: @expro; ;I"px-per-cm; T; I"px_per_cm; T; iA; @ : @guarded0:@children[; iA; @ [o:Sass::Tree::VariableNode ;I"px-per-to-unit; T: @expro; ;I"px-per-mm; T; I"px_per_mm; T; i@; @ : @guarded0:@children[; i@; @ [o:Sass::Tree::VariableNode ;I"px-per-to-unit; T: @expro; ;I"px-per-in; T; I"px_per_in; T; i?; @ : @guarded0:@children[; i?; @ [o:Sass::Tree::VariableNode ;I"px-per-to-unit; T: @expro; ;o; ;I"to-context; T; I"to_context; T; i>; @ ; o:Sass::Script::Number ;i:@numerator_units[I"ex; T:@denominator_units[; i>:@originalI"2ex; F; @ ;:div; i>; @ : @guarded0:@children[; i>; @ [o:Sass::Tree::VariableNode ;I"px-per-to-unit; T: @expro; ;o; ;I"to-context; T; I"to_context; T; i=; @ ; o:Sass::Script::Number ;ii:@numerator_units[I"%; T:@denominator_units[; i=:@originalI" 100%; F; @ ;:div; i=; @ : @guarded0:@children[; i=; @ [o:Sass::Tree::VariableNode ;I"px-per-to-unit; T: @expro; ;o; ;I"base-font-size; T; I"base_font_size; T; i<; @ ; o:Sass::Script::Number ;i:@numerator_units[I"rem; T:@denominator_units[; i<:@originalI" 1rem; F; @ ;:div; i<; @ : @guarded0:@children[; i<; @ [o:Sass::Tree::VariableNode ;I"px-per-to-unit; T: @expro; ;o; ;I"to-context; T; I"to_context; T; i;; @ ; o:Sass::Script::Number ;i:@numerator_units[I"em; T:@denominator_units[; i;:@originalI"1em; F; @ ;:div; i;; @ : @guarded0:@children[; i;; @ o:Sass::Tree::ReturnNode ;o; ; o; ; o; ;I" length; T;I" length; T; iM; @ ;!o; ;I"px-per-from-unit; T;I"px_per_from_unit; T; iM; @ ;": times; iM; @ ;!o; ;I"px-per-to-unit; T;I"px_per_to_unit; T; iM; @ ;";#; iM; @ ;[; iM; @ ; i:@has_childrenT; @ o; ;[I"*/* For the given property, use rem units with px as a fallback value for older * browsers. * * $property - The css property name. * $values - The value (or space-separated list of values) for the property. * $use-px-fallback - Boolean, default: true; whether to use pixel fallback values * */; T; ; ;[; iP; @ o:Sass::Tree::MixinDefNode ;I"rem; T;[[o;;I" property; T;I" property; T; @ 0[o;;I" values; T;I" values; T; @ 0[o;;I"use-px-fallback; T;I"use_px_fallback; T; @ o; ;I"rem-with-px-fallback; T;I"rem_with_px_fallback; T; iW; @ ;0;[o; ;[I" or value to any other. @function convert-length($length, $to-unit, $from-context: $base-font-size, $to-context: $from-context) { $from-unit: unit($length); // Optimize for cases where from and to may accidentally be the same. @if $from-unit == $to-unit { @return $length; } @if unit($from-context) != 'px' { @warn "Paremeter $from-context must resolve to a value in pixel units."; } @if unit($to-context) != 'px' { @warn "Parameter $to-context must resolve to a value in pixel units."; } // Fixed ratios // https://developer.mozilla.org/en/CSS/length // http://dev.w3.org/csswg/css3-values/#absolute-lengths $px-per-in: 96px / 1in; $px-per-mm: 96px / 25.4mm; $px-per-cm: 96px / 2.54cm; $px-per-pt: 4px / 3pt; $px-per-pc: 16px / 1pc; // Variables to store actual convesion ratios $px-per-from-unit: 1; $px-per-to-unit: 1; @if $from-unit != 'px' { @if $from-unit == 'em' { $px-per-from-unit: $from-context / 1em } @else if $from-unit == 'rem' { $px-per-from-unit: $base-font-size / 1rem } @else if $from-unit == '%' { $px-per-from-unit: $from-context / 100% } @else if $from-unit == 'ex' { $px-per-from-unit: $from-context / 2ex } @else if $from-unit == 'in' { $px-per-from-unit: $px-per-in } @else if $from-unit == 'mm' { $px-per-from-unit: $px-per-mm } @else if $from-unit == 'cm' { $px-per-from-unit: $px-per-cm } @else if $from-unit == 'pt' { $px-per-from-unit: $px-per-pt } @else if $from-unit == 'pc' { $px-per-from-unit: $px-per-pc } @else if $to-unit == 'ch' or $to-unit == 'vw' or $to-unit == 'vh' or $to-unit == 'vmin' { @warn "#{$from-unit} units can't be reliably converted; Returning original value."; @return $length; } @else { @warn "#{$from-unit} is an unknown length unit. Returning original value."; @return $length; } } @if $to-unit != 'px' { @if $to-unit == 'em' { $px-per-to-unit: $to-context / 1em } @else if $to-unit == 'rem' { $px-per-to-unit: $base-font-size / 1rem } @else if $to-unit == '%' { $px-per-to-unit: $to-context / 100% } @else if $to-unit == 'ex' { $px-per-to-unit: $to-context / 2ex } @else if $to-unit == 'in' { $px-per-to-unit: $px-per-in } @else if $to-unit == 'mm' { $px-per-to-unit: $px-per-mm } @else if $to-unit == 'cm' { $px-per-to-unit: $px-per-cm } @else if $to-unit == 'pt' { $px-per-to-unit: $px-per-pt } @else if $to-unit == 'pc' { $px-per-to-unit: $px-per-px } @else if $to-unit == 'ch' or $to-unit == 'vw' or $to-unit == 'vh' or $to-unit == 'vmin' { @warn "#{$to-unit} units can't be reliably converted; Returning original value."; @return $length; } @else { @warn "#{$to-unit} is an unknown length unit. Returning original value."; @return $length; } } @return $length * $px-per-from-unit / $px-per-to-unit; } // For the given property, use rem units with px as a fallback value for older // browsers. // // $property - The css property name. // $values - The value (or space-separated list of values) for the property. // $use-px-fallback - Boolean, default: true; whether to use pixel fallback values // @mixin rem($property, $values, $use-px-fallback: $rem-with-px-fallback) { // Create a couple of empty lists as output buffers. $px-values: (); $rem-values: (); // Ensure $values is a list. @if type-of($values) != 'list' { $values: join((), $values); } // Loop through the $values list @each $value in $values { // For each property value, if it's in rem or px, derive both rem and // px values for it and add those to the end of the appropriate buffer. // Ensure all pixel values are rounded to the nearest pixel. @if type-of($value) == number and not unitless($value) and (unit($value) == px or unit($value) == rem) { @if unit($value) == px { $px-values: join($px-values, round($value)); $rem-values: join($rem-values, convert-length($value, rem)); } @else { $px-values: join($px-values, round(convert-length($value, px))); $rem-values: join($rem-values, $value); } } @else { $px-values: join($px-values, $value); $rem-values: join($rem-values, $value); } } // Use pixel fallback for browsers that don't understand rem units. @if $use-px-fallback { #{$property}: $px-values; } // Use rem values for everyone else (overrides pixel values). #{$property}: $rem-values; } ; T; i;&T; @