sassy-namespaces 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sassy-namespaces.rb +2 -2
- data/sass/_sassy-namespaces.scss +6 -6
- 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: c017860295d1ea1044ab99e96fcb37fe1f37cba2
|
4
|
+
data.tar.gz: fbb9238dec8efa959cddc4508a9f675ccbd3c34f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5abbf0d59edd29bbe51be1e8de61e77d7f4ed4c2ce47280163107ade920a5a2b0ff8d8fa685d44be46f1c1e06dc63960aa4dbd1ba40ef14fd2bbc6fcb8774d6a
|
7
|
+
data.tar.gz: 3de34df4e93d14a00805caf62bd00625c177e1a8dfc1ebf5ce408da042082973fe4d2ab9bc4af254a4ebf61fac0b796efa44a98defc40b0f3eaab16378e4d336
|
data/lib/sassy-namespaces.rb
CHANGED
data/sass/_sassy-namespaces.scss
CHANGED
@@ -15,15 +15,15 @@ $__sassy-namespaces: ();
|
|
15
15
|
}
|
16
16
|
@else if length($args) > 1 {
|
17
17
|
$keys: nth($args, 1);
|
18
|
-
|
18
|
+
|
19
19
|
@if length($keys) == 1 {
|
20
20
|
$namespace: map-set($namespace, $args...);
|
21
21
|
} @else {
|
22
22
|
$namespace: map-set-deep($namespace, $args...);
|
23
23
|
}
|
24
24
|
}
|
25
|
-
|
26
|
-
$__sassy-namespaces: map-merge($__sassy-namespaces, ($name: $namespace));
|
25
|
+
|
26
|
+
$__sassy-namespaces: map-merge($__sassy-namespaces, ($name: $namespace)) !global;
|
27
27
|
@return $namespace;
|
28
28
|
}
|
29
29
|
|
@@ -31,17 +31,17 @@ $__sassy-namespaces: ();
|
|
31
31
|
// Returns null if key or namespace doesn't exist
|
32
32
|
@function namespace-get($name, $args...) {
|
33
33
|
$namespace: map-get($__sassy-namespaces, $name);
|
34
|
-
|
34
|
+
|
35
35
|
@if not $namespace {
|
36
36
|
@return null;
|
37
37
|
}
|
38
|
-
|
38
|
+
|
39
39
|
@if length($args) == 0 {
|
40
40
|
@return $namespace;
|
41
41
|
}
|
42
42
|
@else if length($args) == 1 {
|
43
43
|
$keys: nth($args, 1);
|
44
|
-
|
44
|
+
|
45
45
|
@if length($keys) == 1 {
|
46
46
|
@return map-get($namespace, $args...);
|
47
47
|
} @else {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sassy-namespaces
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Clark
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|