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 CHANGED
@@ -1,5 +1,4 @@
1
- */.DS_Store
1
+ *.DS_Store
2
2
  *.gem
3
- */.sass-cache/*
4
- pkg/*
5
- */.gitignore
3
+ *.sass-cache/*
4
+ pkg/*
@@ -1,22 +1,19 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- stitch (0.0.3)
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.4)
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.7)
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
@@ -1,3 +1,3 @@
1
1
  module Stitch
2
- VERSION = "0.1.4.beta.2"
2
+ VERSION = "0.1.4"
3
3
  end
@@ -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
- @mixin inline-icon($image, $spacing: 10px) {
2
- background: image-url($image) no-repeat left center;
3
- padding-left: image-width($image) + $spacing;
4
- line-height: image-height($image);
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
  }
@@ -5,5 +5,5 @@
5
5
  //
6
6
  @mixin improve-text-rendering {
7
7
  text-rendering:optimizeLegibility;
8
- -webkit-font-smoothing:subpixel-antialiased;
8
+ -webkit-font-smoothing:antialiased;
9
9
  }
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: 62196375
5
- prerelease: 6
4
+ hash: 19
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
9
  - 4
10
- - beta
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: 2011-11-30 00:00:00 +11:00
18
+ date: 2012-04-24 00:00:00 +10:00
21
19
  default_executable:
22
20
  dependencies:
23
21
  - !ruby/object:Gem::Dependency
24
- name: compass
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: 25
126
+ hash: 3
127
127
  segments:
128
- - 1
129
- - 3
130
- - 1
131
- version: 1.3.1
128
+ - 0
129
+ version: "0"
132
130
  requirements: []
133
131
 
134
132
  rubyforge_project: stitch