sass-tools 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.5
1
+ 0.1.6
@@ -1,26 +1,30 @@
1
1
  /*
2
- * This Mixin is meant to be used for image replacement of a entities.
3
- * Just feed it the image path, width and height relative to the .scss file.
2
+ This Mixin is meant to be used for image replacement of a entities.
4
3
  */
5
- @mixin image-link($image, $width, $height) {
6
- background:transparent url($image) no-repeat top left;
7
- width: $width;
8
- height: $height;
9
- display:block;
10
- text-indent:-9999px;
11
- overflow:hidden;
12
- outline:none;
4
+ @mixin image-link($image) {
5
+ background:transparent image-url($image) no-repeat top left;
6
+ width: image-width($image);
7
+ height: image-height($image);
13
8
  cursor:pointer;
9
+ @extend .image-link-extend;
14
10
  }
15
11
 
16
12
  /*
17
13
  Mixin for quickly replacing images for any given element.
18
14
  */
19
- @mixin image-replace($image, $width, $height) {
20
- background:transparent url($image) no-repeat top left;
21
- width: $width;
22
- height: $height;
15
+ @mixin image-replace($image) {
16
+ background:transparent image-url($image) no-repeat top left;
17
+ width: image-width($image);
18
+ height: image-height($image);
19
+ @extend .image-link-extend;
20
+ }
21
+
22
+ /*
23
+ Common styles needed by our Image Mixins.
24
+ */
25
+ .image-link-extend {
23
26
  display:block;
24
- text-indent:-9999px;
27
+ outline:none;
25
28
  overflow:hidden;
26
- }
29
+ text-indent:-9999px;
30
+ } // .image-link-extend
@@ -40,14 +40,6 @@ $blueprint-grid-columns : 24;
40
40
  $blueprint-container-size : 950px;
41
41
  $blueprint-grid-margin : 10px;
42
42
 
43
- /* Shortcuts to Directories.
44
- ---------------------------------------- */
45
- $img-dir : "../images/";
46
- $h : $img-dir + "headers/";
47
- $c : $img-dir + "contents/";
48
- $g : $img-dir + 'general/';
49
- $f : $img-dir + "footers/";
50
-
51
43
  /* By default Blueprint adds one margin to each side of the grid on a container;
52
44
  we want this to it to have two instead of one. */
53
45
  $blueprint-container-wrapper : $blueprint-container-size + ($blueprint-grid-margin * 2);
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.5"
8
+ s.version = "0.1.6"
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: 17
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 5
10
- version: 0.1.5
9
+ - 6
10
+ version: 0.1.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Mario 'Kuroir' Ricalde