sass-tools 0.1.9 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.9
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 $transparency
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($transparency, $image, $horizontal, $vertical, $repeat, $inline: false) {
58
- @if $inline == true {
59
- background : $transparency inline-image($image) $horizontal $vertical $repeat;
60
- *background : $transparency image-url($image) $horizontal $vertical $repeat;
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
- background: $transparency image-url($image) $horizontal $vertical $repeat;
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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{sass-tools}
8
- s.version = "0.1.9"
8
+ s.version = "0.1.10"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Mario 'Kuroir' Ricalde"]
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: 9
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 9
10
- version: 0.1.9
9
+ - 10
10
+ version: 0.1.10
11
11
  platform: ruby
12
12
  authors:
13
13
  - Mario 'Kuroir' Ricalde