Sha256: 70109aa2c6adb83fa067c3cc5ad416a5831ced536363779412134c3f3c1a6d16

Contents?: true

Size: 1.15 KB

Versions: 12

Compression:

Stored size: 1.15 KB

Contents

3.2.9 (Media Mark)
fc5f9108f250edc5459dd7a9cf9373a6dfcfcbe1
o:Sass::Tree::RootNode
:@children[o:Sass::Tree::CommentNode
:@value[I"¢/* Convert pixels to ems
 * eg. for a relational value of 12px write em(12) when the parent is 16px
 * if the parent is another value say 24px write em(12, 24) */:ET:
@type:silent;[:
@linei:
@options{o:Sass::Tree::FunctionNode:
@nameI"em;	T:
@args[[o:Sass::Script::Variable;I"
pxval;	T:@underscored_nameI"
pxval;	T;
@0[o;;I"	base;	T;I"	base;	T;
@o:Sass::Script::Number;i:@numerator_units[:@denominator_units[;i
:@originalI"16;	F;
@:@splat0;[o:Sass::Tree::ReturnNode	:
@expro:Sass::Script::Operation
:@operand1o;
;o;	;I"
pxval;	T;I"
pxval;	T;i;
@:@operand2o;	;I"	base;	T;I"	base;	T;i;
@:@operator:div;i;
@;o;;i;[I"em;	T;[;i;I"1em;	F;
@;:
times;i;
@;[;i;
@;i
:@has_childrenT;
@:@templateI"è// Convert pixels to ems
// eg. for a relational value of 12px write em(12) when the parent is 16px
// if the parent is another value say 24px write em(12, 24)

@function em($pxval, $base: 16) {
  @return ($pxval / $base) * 1em;
}

;	T;i; T;
@

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
activeadmin-selleo-cms-0.0.61 spec/dummy/tmp/cache/sass/15da70bc7d0da60bc7a0f58553e8f13c7238b9a6/_px-to-em.scssc
activeadmin-selleo-cms-0.0.60 spec/dummy/tmp/cache/sass/15da70bc7d0da60bc7a0f58553e8f13c7238b9a6/_px-to-em.scssc
activeadmin-selleo-cms-0.0.59 spec/dummy/tmp/cache/sass/15da70bc7d0da60bc7a0f58553e8f13c7238b9a6/_px-to-em.scssc
activeadmin-selleo-cms-0.0.58 spec/dummy/tmp/cache/sass/15da70bc7d0da60bc7a0f58553e8f13c7238b9a6/_px-to-em.scssc
activeadmin-selleo-cms-0.0.54 spec/dummy/tmp/cache/sass/15da70bc7d0da60bc7a0f58553e8f13c7238b9a6/_px-to-em.scssc
activeadmin-selleo-cms-0.0.52 spec/dummy/tmp/cache/sass/15da70bc7d0da60bc7a0f58553e8f13c7238b9a6/_px-to-em.scssc
activeadmin-selleo-cms-0.0.51 spec/dummy/tmp/cache/sass/15da70bc7d0da60bc7a0f58553e8f13c7238b9a6/_px-to-em.scssc
activeadmin-selleo-cms-0.0.49 spec/dummy/tmp/cache/sass/15da70bc7d0da60bc7a0f58553e8f13c7238b9a6/_px-to-em.scssc
activeadmin-selleo-cms-0.0.48 spec/dummy/tmp/cache/sass/15da70bc7d0da60bc7a0f58553e8f13c7238b9a6/_px-to-em.scssc
activeadmin-selleo-cms-0.0.47 spec/dummy/tmp/cache/sass/15da70bc7d0da60bc7a0f58553e8f13c7238b9a6/_px-to-em.scssc
activeadmin-selleo-cms-0.0.46 spec/dummy/tmp/cache/sass/15da70bc7d0da60bc7a0f58553e8f13c7238b9a6/_px-to-em.scssc
activeadmin-selleo-cms-0.0.45 spec/dummy/tmp/cache/sass/15da70bc7d0da60bc7a0f58553e8f13c7238b9a6/_px-to-em.scssc