aboutsummaryrefslogtreecommitdiff
path: root/_scss/imports/themes/default/_mixins.scss
diff options
context:
space:
mode:
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