graphite-sass 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/graphite.rb +2 -2
- data/stylesheets/graphite.scss +9 -16
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5542004c1ff4758f6c961bd661840f81cda27979
|
4
|
+
data.tar.gz: 073d7f01ba9bbc3a69026bead64e01e98e1a4389
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 928c68f5045b73498218ea8964fd0ecdcb0671e7e51894b5eb49f1a08aef69e83312a972a57d8edd56caf2d3b843997363a1af16418577a26df4ab607501075c
|
7
|
+
data.tar.gz: 335d0022d7767ffa4aee171107dfc51f1eaf02a815448cfbad6027601cd13f8b5e370d186925eddfca08484fe9371e83f398732a7140fa5c1feea9a08f577d30
|
data/lib/graphite.rb
CHANGED
@@ -5,8 +5,8 @@ extension_path = File.expand_path(File.join(File.dirname(__FILE__), ".."))
|
|
5
5
|
Compass::Frameworks.register('graphite', :path => extension_path)
|
6
6
|
|
7
7
|
module Graphite
|
8
|
-
VERSION = "0.3.
|
9
|
-
DATE = "2014-08-
|
8
|
+
VERSION = "0.3.1"
|
9
|
+
DATE = "2014-08-13"
|
10
10
|
end
|
11
11
|
|
12
12
|
# Graphite : import fonts from font_dir into map
|
data/stylesheets/graphite.scss
CHANGED
@@ -24,27 +24,20 @@ $graphite_chdir: ".." !global;
|
|
24
24
|
// @return fetched literal | false
|
25
25
|
|
26
26
|
@function graphite-map-fetch($map, $keys) {
|
27
|
-
$key: nth($keys, 1);
|
27
|
+
$has-key: graphite-is-map($map) and map-has-key($map, nth($keys, 1)) and map-get($map, nth($keys, 1)) or false;
|
28
28
|
$length: length($keys);
|
29
|
-
$value: map-get($map, $key);
|
30
29
|
|
31
|
-
@if $
|
32
|
-
|
33
|
-
$rest: ();
|
30
|
+
@if $has-key and $length > 1 {
|
31
|
+
$remainder: ();
|
34
32
|
|
35
|
-
|
36
|
-
|
37
|
-
}
|
38
|
-
|
39
|
-
@return graphite-map-fetch($value, $rest);
|
40
|
-
|
41
|
-
} @else {
|
42
|
-
@return $value;
|
33
|
+
@for $i from 2 through $length {
|
34
|
+
$remainder: append($remainder, nth($keys, $i))
|
43
35
|
}
|
44
|
-
|
45
|
-
@
|
46
|
-
@return false;
|
36
|
+
|
37
|
+
@return graphite-map-fetch($has-key, $remainder);
|
47
38
|
}
|
39
|
+
|
40
|
+
@return $has-key;
|
48
41
|
}
|
49
42
|
|
50
43
|
// Import fonts from $dir
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphite-sass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ezekiel Gabrielse
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08-
|
11
|
+
date: 2014-08-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|