sass-list-maps 0.9.6 → 0.9.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/_sass-list-maps.scss +5 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37158a534d6628064931e501d2fb2be09332b144
|
4
|
+
data.tar.gz: 30f387311c340811d032afaf0c57e0687fb3686c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e9af13f1b084f252cd1c5ff84942145920931be9fc2e4f34fce39b2da243afd1da68117263ccf91632baeabce5e49379f2763cce1aea416ee3de5a83ad762f5
|
7
|
+
data.tar.gz: 66ce421d60a383cddcc9e2793a1d3bc39c94f9ce94b385d0f8c553a1ad1ecb0cee1d12baece11b436bb5818a5f8b8351225a0e56ea86721f962b1b965552cc8a
|
data/README.md
CHANGED
@@ -6,6 +6,7 @@ Forward-compatible map (hash) functionality for [libsass](https://github.com/hca
|
|
6
6
|
|
7
7
|
###### Latest Updates
|
8
8
|
|
9
|
+
* 0.9.6-0.9.7 -- argument handling enhancements; bugfix due to typo
|
9
10
|
* 0.9.5 -- now handles single-pair lists automatically. This means no more need for `list()` or `zip()` functions, which are now deprecated.
|
10
11
|
* 0.9.3 -- <del>deprecated `list()` function in favor of native `zip()` for creating single-pair list-maps</del>
|
11
12
|
* 0.9.2 -- improved merge performance with rewritten `set-nth()` function
|
data/_sass-list-maps.scss
CHANGED
@@ -24,11 +24,12 @@
|
|
24
24
|
|
25
25
|
// list-map helper functions
|
26
26
|
// 0.9.3 -- key() and value() tentatively added as alternatives to 'tuple-' named funcs
|
27
|
+
// 0.9.6 -- added better error handling; aliased to single version of each
|
27
28
|
|
28
|
-
@function tuple-key($tuple) { @return nth($tuple, 1); }
|
29
|
-
@function tuple-value($tuple) { @return nth($tuple, 2); }
|
30
|
-
@function key($tuple) { @return
|
31
|
-
@function value($tuple) { @return
|
29
|
+
@function tuple-key($tuple) { @if length($tuple) < 1 { @return null; } @else { @return nth($tuple, 1); } }
|
30
|
+
@function tuple-value($tuple) { @if length($tuple) < 2 { @return null; } @else { @return nth($tuple, 2); } }
|
31
|
+
@function key($tuple) { @return tuple-key($tuple); }
|
32
|
+
@function value($tuple) { @return tuple-value($tuple); }
|
32
33
|
|
33
34
|
// 0.9.5 -- added list-map-check()
|
34
35
|
|