stitch 0.1.4.beta.2 → 0.1.4
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/.gitignore +3 -4
- data/Gemfile.lock +3 -6
- data/lib/stitch/version.rb +1 -1
- data/stylesheets/stitch/_patterns.scss +2 -1
- data/stylesheets/stitch/patterns/_color.scss +1 -0
- data/stylesheets/stitch/patterns/color/_rgba.scss +21 -0
- data/stylesheets/stitch/patterns/images/_inline-icon.scss +17 -4
- data/stylesheets/stitch/patterns/text/_text-rendering.scss +1 -1
- metadata +14 -16
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,22 +1,19 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
stitch (0.
|
4
|
+
stitch (0.1.4)
|
5
5
|
compass
|
6
|
-
sass-globbing
|
7
6
|
|
8
7
|
GEM
|
9
8
|
remote: http://rubygems.org/
|
10
9
|
specs:
|
11
10
|
chunky_png (1.2.0)
|
12
|
-
compass (0.11.
|
11
|
+
compass (0.11.5)
|
13
12
|
chunky_png (~> 1.2)
|
14
13
|
fssm (>= 0.2.7)
|
15
14
|
sass (~> 3.1)
|
16
15
|
fssm (0.2.7)
|
17
|
-
sass (3.1.
|
18
|
-
sass-globbing (1.0.0.rc.1)
|
19
|
-
sass (>= 3.1)
|
16
|
+
sass (3.1.4)
|
20
17
|
|
21
18
|
PLATFORMS
|
22
19
|
ruby
|
data/lib/stitch/version.rb
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
@import 'patterns/accessibility';
|
3
3
|
@import 'patterns/animation';
|
4
4
|
//@import 'patterns/css3';
|
5
|
+
@import 'patterns/color';
|
5
6
|
@import 'patterns/forms';
|
6
7
|
@import 'patterns/images';
|
7
8
|
@import 'patterns/layout';
|
@@ -9,4 +10,4 @@
|
|
9
10
|
@import 'patterns/mobile';
|
10
11
|
@import 'patterns/print';
|
11
12
|
@import 'patterns/text';
|
12
|
-
@import 'patterns/responsive';
|
13
|
+
@import 'patterns/responsive';
|
@@ -0,0 +1 @@
|
|
1
|
+
@import 'color/rgba';
|
@@ -0,0 +1,21 @@
|
|
1
|
+
/*
|
2
|
+
Pass through a property and color value
|
3
|
+
*/
|
4
|
+
|
5
|
+
/*
|
6
|
+
#header {
|
7
|
+
@include rgba(color, #000, 0.8);
|
8
|
+
or
|
9
|
+
@include rgba(color, #000);
|
10
|
+
}
|
11
|
+
*/
|
12
|
+
|
13
|
+
@mixin rgba($property, $color, $alpha:false){
|
14
|
+
#{$property}: $color;
|
15
|
+
@if ($alpha){
|
16
|
+
#{$property}: rgba($color, $alpha);
|
17
|
+
}
|
18
|
+
@else {
|
19
|
+
#{$property}: rgba($color, 1);
|
20
|
+
}
|
21
|
+
}
|
@@ -1,5 +1,18 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
//
|
2
|
+
// Add an icon to an inline element. E.g anchor or span
|
3
|
+
// Pass through an asset, and optionally a padding value, x-position and y-position.
|
4
|
+
//
|
5
|
+
|
6
|
+
@mixin inline-icon($img, $spacing:5px, $pos: left) {
|
7
|
+
background-image:image-url($img);
|
8
|
+
background-repeat: no-repeat;
|
9
|
+
@if $pos == right {
|
10
|
+
background-position: right top;
|
11
|
+
text-align: right;
|
12
|
+
} @else {
|
13
|
+
background-position: left top;
|
14
|
+
text-align: left;
|
15
|
+
}
|
16
|
+
line-height:image-height($img);
|
17
|
+
padding-#{$pos}:image-width($img) + $spacing;
|
5
18
|
}
|
metadata
CHANGED
@@ -1,15 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stitch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 19
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
9
|
- 4
|
10
|
-
|
11
|
-
- 2
|
12
|
-
version: 0.1.4.beta.2
|
10
|
+
version: 0.1.4
|
13
11
|
platform: ruby
|
14
12
|
authors:
|
15
13
|
- Anthony Short
|
@@ -17,13 +15,11 @@ autorequire:
|
|
17
15
|
bindir: bin
|
18
16
|
cert_chain: []
|
19
17
|
|
20
|
-
date:
|
18
|
+
date: 2012-04-24 00:00:00 +10:00
|
21
19
|
default_executable:
|
22
20
|
dependencies:
|
23
21
|
- !ruby/object:Gem::Dependency
|
24
|
-
|
25
|
-
prerelease: false
|
26
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
22
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
27
23
|
none: false
|
28
24
|
requirements:
|
29
25
|
- - ">="
|
@@ -32,8 +28,10 @@ dependencies:
|
|
32
28
|
segments:
|
33
29
|
- 0
|
34
30
|
version: "0"
|
31
|
+
requirement: *id001
|
32
|
+
name: compass
|
33
|
+
prerelease: false
|
35
34
|
type: :runtime
|
36
|
-
version_requirements: *id001
|
37
35
|
description: A framework for Compass that provides mixins for common CSS patterns to minimize the amount of CSS writing we have to do and gives our stylesheets more meaning.
|
38
36
|
email:
|
39
37
|
- antshort@gmail.com
|
@@ -58,6 +56,7 @@ files:
|
|
58
56
|
- stylesheets/stitch/_utilities.scss
|
59
57
|
- stylesheets/stitch/patterns/_accessibility.scss
|
60
58
|
- stylesheets/stitch/patterns/_animation.scss
|
59
|
+
- stylesheets/stitch/patterns/_color.scss
|
61
60
|
- stylesheets/stitch/patterns/_css3.scss
|
62
61
|
- stylesheets/stitch/patterns/_forms.scss
|
63
62
|
- stylesheets/stitch/patterns/_images.scss
|
@@ -71,6 +70,7 @@ files:
|
|
71
70
|
- stylesheets/stitch/patterns/animation/_hardware-acceleration.scss
|
72
71
|
- stylesheets/stitch/patterns/animation/_keyframes.scss
|
73
72
|
- stylesheets/stitch/patterns/animation/_timing-functions.scss
|
73
|
+
- stylesheets/stitch/patterns/color/_rgba.scss
|
74
74
|
- stylesheets/stitch/patterns/forms/_search-fields.scss
|
75
75
|
- stylesheets/stitch/patterns/images/_image-rendering.scss
|
76
76
|
- stylesheets/stitch/patterns/images/_image-replace.scss
|
@@ -121,14 +121,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
121
121
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
122
122
|
none: false
|
123
123
|
requirements:
|
124
|
-
- - "
|
124
|
+
- - ">="
|
125
125
|
- !ruby/object:Gem::Version
|
126
|
-
hash:
|
126
|
+
hash: 3
|
127
127
|
segments:
|
128
|
-
-
|
129
|
-
|
130
|
-
- 1
|
131
|
-
version: 1.3.1
|
128
|
+
- 0
|
129
|
+
version: "0"
|
132
130
|
requirements: []
|
133
131
|
|
134
132
|
rubyforge_project: stitch
|