jacket 0.1.2 → 0.1.3
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.
- data/lib/jacket.rb +1 -1
- data/readme.md +1 -1
- data/stylesheets/_jacket.scss +9 -7
- metadata +1 -1
data/lib/jacket.rb
CHANGED
data/readme.md
CHANGED
data/stylesheets/_jacket.scss
CHANGED
@@ -39,14 +39,16 @@ $jckt-context: null;
|
|
39
39
|
|
40
40
|
// Test if a jacket context and jacket value match.
|
41
41
|
@each $item in $jacket {
|
42
|
-
@
|
42
|
+
@each $arg in $args {
|
43
|
+
@if index($arg, nth($item, 1)) {
|
43
44
|
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
45
|
+
// Gather wrapping selectors.
|
46
|
+
@if length($item) == 1 {
|
47
|
+
$naked: true;
|
48
|
+
}
|
49
|
+
@if length($item) == 2 {
|
50
|
+
$selectors: append($selectors, nth($item, 2) + ' &');
|
51
|
+
}
|
50
52
|
}
|
51
53
|
}
|
52
54
|
}
|