aboutsummaryrefslogtreecommitdiff
path: root/scss/imports/themes/default/_mixins.scss
diff options
context:
space:
mode:
authorAnanya Sen2012-02-08 15:37:23 -0800
committerAnanya Sen2012-02-08 15:37:23 -0800
commitab6f2f7ada39a9b27408575af9a565daf0a9d291 (patch)
tree92a796e34530d1a724ddb24ef22e59ffef13c12a /scss/imports/themes/default/_mixins.scss
parent36b2e540f06cef3887e7d0fea60527fee51e2a40 (diff)
parent5a69d5be181ea98fa842977885ebd8c861dda6ca (diff)
downloadninja-ab6f2f7ada39a9b27408575af9a565daf0a9d291.tar.gz
Merge branch 'FileIO' of github.com:joseeight/ninja-internal into FileIO
Diffstat (limited to 'scss/imports/themes/default/_mixins.scss')
-rwxr-xr-xscss/imports/themes/default/_mixins.scss37
1 files changed, 37 insertions, 0 deletions
diff --git a/scss/imports/themes/default/_mixins.scss b/scss/imports/themes/default/_mixins.scss
new file mode 100755
index 00000000..9f61e7ef
--- /dev/null
+++ b/scss/imports/themes/default/_mixins.scss
@@ -0,0 +1,37 @@
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// themes/themename/mixins.scss
8// Mixins that are theme-dependent (e.g. sprite mixins, etc)
9
10$Mx:0;
11$My:0;
12$opacity:1;
13
14//Mixin to set the Image Sprite Sheet
15@mixin background-pos($Mx, $My, $Size_x,$Size_y) {
16
17background-image: url('../images/SpriteSheets/NinjaSpriteSheet2_5.png');
18@if $Size_x == 26px
19 {
20 @if $Size_y == 23px
21 {
22 $offset_x:30px;
23 $offset_y:27px;
24
25 $offset_x:$offset_x*$Mx* -1;
26 $offset_y:$offset_y*$My* -1;
27
28 background-position: $offset_x $offset_y;
29 background-repeat:no-repeat;
30 height:$Size_y;
31 width: $Size_x;
32 }
33 }
34
35
36}
37