jacket 0.1.0 → 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.
- data/lib/jacket.rb +1 -1
- data/readme.md +16 -3
- data/stylesheets/_jacket.scss +11 -6
- metadata +1 -1
data/lib/jacket.rb
CHANGED
data/readme.md
CHANGED
@@ -1,9 +1,22 @@
|
|
1
1
|
## Jacket
|
2
2
|
### Dress appropriately
|
3
3
|
|
4
|
-
Jacket helps orgainze
|
5
|
-
Write and maintain a master stylesheet, then
|
6
|
-
stylesheets for specific browsers, mobile/desktop sites,
|
4
|
+
Jacket is a Sass/Compass component that helps you orgainze stylesheets for a
|
5
|
+
multi-context build process. Write and maintain a master stylesheet, then
|
6
|
+
output custom tailored stylesheets for specific browsers, mobile/desktop sites,
|
7
|
+
and app builds.
|
8
|
+
|
9
|
+
### Installation
|
10
|
+
|
11
|
+
You can install Jacket from Rubygems:
|
12
|
+
|
13
|
+
`gem install jacket`
|
14
|
+
|
15
|
+
with Bower:
|
16
|
+
|
17
|
+
`bower install jacket`
|
18
|
+
|
19
|
+
or by downloading manually and requiring with Compass.
|
7
20
|
|
8
21
|
### Usage
|
9
22
|
|
data/stylesheets/_jacket.scss
CHANGED
@@ -3,15 +3,20 @@
|
|
3
3
|
// Dress appropriately
|
4
4
|
///////////////////////////////////////////////////////////
|
5
5
|
|
6
|
-
// Jacket helps you orgainze stylesheets for a
|
7
|
-
// Write and maintain a master stylesheet, then
|
8
|
-
// stylesheets for specific browsers, mobile/desktop
|
6
|
+
// Jacket is a Sass/Compass component that helps you orgainze stylesheets for a
|
7
|
+
// multi-context build process. Write and maintain a master stylesheet, then
|
8
|
+
// output custom tailored stylesheets for specific browsers, mobile/desktop
|
9
|
+
// sites, and app builds.
|
10
|
+
|
11
|
+
///////////////////////////////////////////////////////////
|
12
|
+
// Settings variables
|
13
|
+
///////////////////////////////////////////////////////////
|
9
14
|
|
10
15
|
// A list of jackets to print in the stylesheet.
|
11
16
|
$jacket: null !default;
|
12
17
|
|
13
18
|
// A private variable used by jacket-context().
|
14
|
-
$
|
19
|
+
$jckt-context: null;
|
15
20
|
|
16
21
|
///////////////////////////////////////////////////////////
|
17
22
|
// Jacket mixin
|
@@ -25,7 +30,7 @@ $jacket-context: null;
|
|
25
30
|
$selector-string: '';
|
26
31
|
|
27
32
|
// Set the global $jacket-context variable.
|
28
|
-
$
|
33
|
+
$jckt-context: $args;
|
29
34
|
|
30
35
|
// If jacket is a single jacket value and selector list, encapsulate so it's
|
31
36
|
// sent through the next function in one piece.
|
@@ -80,5 +85,5 @@ $jacket-context: null;
|
|
80
85
|
// needs to know if a specific jacket value is set.
|
81
86
|
///////////////////////////////////////////////////////////
|
82
87
|
@function jacket-context($arg) {
|
83
|
-
@return if(index($
|
88
|
+
@return if(index($jckt-context, $arg), true, false);
|
84
89
|
}
|