From b89a7ee8b956c96a1dcee995ea840feddc5d4b27 Mon Sep 17 00:00:00 2001 From: Pierre Frisch Date: Thu, 22 Dec 2011 07:25:50 -0800 Subject: First commit of Ninja to ninja-internal Signed-off-by: Valerio Virgillito --- _scss/imports/themes/default/_mixins.scss | 39 +++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 _scss/imports/themes/default/_mixins.scss (limited to '_scss/imports/themes/default/_mixins.scss') diff --git a/_scss/imports/themes/default/_mixins.scss b/_scss/imports/themes/default/_mixins.scss new file mode 100644 index 00000000..e6a38a93 --- /dev/null +++ b/_scss/imports/themes/default/_mixins.scss @@ -0,0 +1,39 @@ +// +// This file contains proprietary software owned by Motorola Mobility, Inc.
+// No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.
+// (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. +//
+ +/* + * themes/themename/mixins.scss + * Mixins that are theme-dependent (e.g. sprite mixins, etc) + */ + +$Mx:0; +$My:0; +$opacity:1; + +//Mixin to set the Image Sprite Sheet +@mixin background-pos($Mx, $My, $Size_x,$Size_y) { + +background-image: url('../images/SpriteSheets/NinjaSpriteSheet2_5.png'); +@if $Size_x == 26px + { + @if $Size_y == 23px + { + $offset_x:30px; + $offset_y:27px; + + $offset_x:$offset_x*$Mx* -1; + $offset_y:$offset_y*$My* -1; + + background-position: $offset_x $offset_y; + background-repeat:no-repeat; + height:$Size_y; + width: $Size_x; + } + } + + +} + -- cgit v1.2.3