compass-chameleon 0.1 → 0.1.1
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.
- checksums.yaml +8 -8
- data/CHANGELOG.md +5 -1
- data/README.md +5 -1
- data/stylesheets/chameleon/_functions.scss +8 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZmFmMTQ1YTFlZjgzNWYxNjZiNWM5ZTczYWRkMzRhNTlhMTYxYjg1ZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NDkwMTVlZDc0MDMwZWY4NjgwMTljMWJhOWFiZGE5NTUzYWEwMzYxZA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MWVhNDAzYWNhOTQwNTAwYzg2ZTU4OWRkODliZGU1MjUwNzkyZTQ2ZTBkMWJl
|
10
|
+
ZjgxODRmYzMwMzhmNDMwNDk2NWNkNjM2NzhmMWVjOGY3Nzg1YWU5MWRmN2E5
|
11
|
+
OWFiNjMxNWIyNjkxZGZlYWUyNjc2NWRiZWEyNGRkNjk5MTQ5ZmQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ODc5YTNmZTRjYzlkZWIwYWJmYmMwMjYwNzNlMzRjMWJkZmI2NzI4YjRkYWI2
|
14
|
+
M2U3MzIxYzI4YzhmNWZlYzZmYWFjMWYzNjMwMWRiZGM0OGFkZWZlY2EzOTlh
|
15
|
+
MThkYjBhNDY4MzdjYWQ3YTEwMGUxZmFiYjk1YzdjYzk0NWRhMzQ=
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -57,17 +57,20 @@
|
|
57
57
|
// Function theme-color
|
58
58
|
// Returns the desired color (primary, secondary etc.) of the specified theme.
|
59
59
|
//
|
60
|
-
// @param $theme {
|
61
|
-
// @param $
|
60
|
+
// @param $theme {list} The theme
|
61
|
+
// @param $color {number} Desired color by ordinal number (primary color is 1, secondary color
|
62
62
|
// is 2, tertiary color is 3 etc.)
|
63
63
|
//
|
64
64
|
// @return {color} The desired color
|
65
65
|
//
|
66
|
-
@function theme-color($theme, $
|
67
|
-
|
66
|
+
@function theme-color($theme, $color) {
|
67
|
+
$index: index($themes, $theme);
|
68
|
+
@if $index == false {
|
68
69
|
@warn "Theme `#{$theme}` was not found in the list of themes.";
|
69
70
|
@return null;
|
70
71
|
}
|
71
72
|
|
72
|
-
|
73
|
+
$colors: fail-safe-nth(nth($themes, $index), 2);
|
74
|
+
|
75
|
+
@return fail-safe-nth($colors, $color);
|
73
76
|
}
|