aboutsummaryrefslogtreecommitdiff
path: root/_scss/imports/themes/default/_mixins.scss
diff options
context:
space:
mode:
authorPierre Frisch2011-12-22 07:25:50 -0800
committerValerio Virgillito2012-01-27 11:18:17 -0800
commitb89a7ee8b956c96a1dcee995ea840feddc5d4b27 (patch)
tree0f3136ab0ecdbbbed6a83576581af0a53124d6f1 /_scss/imports/themes/default/_mixins.scss
parent2401f05d1f4b94d45e4568b81fc73e67b969d980 (diff)
downloadninja-b89a7ee8b956c96a1dcee995ea840feddc5d4b27.tar.gz
First commit of Ninja to ninja-internal
Signed-off-by: Valerio Virgillito <rmwh84@motorola.com>
Diffstat (limited to '_scss/imports/themes/default/_mixins.scss')
-rw-r--r--_scss/imports/themes/default/_mixins.scss39
1 files changed, 39 insertions, 0 deletions
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 @@
1// <copyright>
2// This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
3// No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/>
4// (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved.
5// </copyright>
6
7/*
8 * themes/themename/mixins.scss
9 * Mixins that are theme-dependent (e.g. sprite mixins, etc)
10 */
11
12$Mx:0;
13$My:0;
14$opacity:1;
15
16//Mixin to set the Image Sprite Sheet
17@mixin background-pos($Mx, $My, $Size_x,$Size_y) {
18
19background-image: url('../images/SpriteSheets/NinjaSpriteSheet2_5.png');
20@if $Size_x == 26px
21 {
22 @if $Size_y == 23px
23 {
24 $offset_x:30px;
25 $offset_y:27px;
26
27 $offset_x:$offset_x*$Mx* -1;
28 $offset_y:$offset_y*$My* -1;
29
30 background-position: $offset_x $offset_y;
31 background-repeat:no-repeat;
32 height:$Size_y;
33 width: $Size_x;
34 }
35 }
36
37
38}
39