sass-tools 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/stylesheets/sass-tools/_images.scss +33 -7
- data/sass-tools.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.10
|
@@ -9,6 +9,24 @@
|
|
9
9
|
@extend .imagelink-ext;
|
10
10
|
}
|
11
11
|
|
12
|
+
/*
|
13
|
+
Replace an A tag with an a background-image sprite. You need to provide it with
|
14
|
+
the dimentions of the image and the x-pos/y-pos
|
15
|
+
|
16
|
+
@var $image string path to the image
|
17
|
+
@var $height width
|
18
|
+
@var $height pixels
|
19
|
+
@var $x-pos pixels
|
20
|
+
@var $y-pos pixels
|
21
|
+
@var $inline boolean embed via data.
|
22
|
+
*/
|
23
|
+
@mixin image-sprite-link($image, $width, $height, $x-pos, $y-pos, $inline: false) {
|
24
|
+
@include background(transparent, $image, $x-pos, $y-pos, no-repeat, $inline);
|
25
|
+
width:$width;
|
26
|
+
height:$height;
|
27
|
+
@extend .imagelink-ext;
|
28
|
+
}
|
29
|
+
|
12
30
|
/*
|
13
31
|
Replace a Header>a tag with a background image. Made specifically for logos.
|
14
32
|
@var $image string path to the image
|
@@ -47,19 +65,27 @@
|
|
47
65
|
one more parameter $inline. Which will use inline-image and add backward
|
48
66
|
compatibility to IE7 via *background.
|
49
67
|
|
50
|
-
@var $
|
51
|
-
@var $image
|
68
|
+
@var $color
|
69
|
+
@var $image string can be a path to an image or inherit (will insert tags separately)
|
52
70
|
@var $horizontal
|
53
71
|
@var $vertical
|
54
72
|
@var $repeat
|
55
73
|
@var $inline
|
56
74
|
*/
|
57
|
-
@mixin background($
|
58
|
-
@if $
|
59
|
-
|
60
|
-
|
75
|
+
@mixin background($color, $image, $horizontal, $vertical, $repeat, $inline: false) {
|
76
|
+
@if $image == inherit {
|
77
|
+
@if $inline == true {
|
78
|
+
background-color: $color;
|
79
|
+
background-repeat: $repeat;
|
80
|
+
background-position: $horizontal $vertical;
|
81
|
+
}
|
61
82
|
} @else {
|
62
|
-
|
83
|
+
@if $inline == true {
|
84
|
+
background : $color inline-image($image) $horizontal $vertical $repeat;
|
85
|
+
*background : $color image-url($image) $horizontal $vertical $repeat;
|
86
|
+
} @else {
|
87
|
+
background: $color image-url($image) $horizontal $vertical $repeat;
|
88
|
+
}
|
63
89
|
}
|
64
90
|
}
|
65
91
|
|
data/sass-tools.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sass-tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 10
|
10
|
+
version: 0.1.10
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Mario 'Kuroir' Ricalde
|