stitch 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/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Patterns are chunks of styles that we use on every project. These chunks of styles generally perform a particular function, such as clearing floats. Having to write these styles each time is annoying and the function of these chunks of code in our stylesheets is obscure.
4
4
 
5
- By breaking these patterns into reusable classes and mixins we:
5
+ By breaking these patterns into reusable classes and mixins we can:
6
6
 
7
7
  * Make our stylesheets free from clutter
8
8
  * Give our styles more meaning
@@ -1,3 +1,3 @@
1
1
  module Stitch
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -3,4 +3,8 @@
3
3
  @import 'layout/columns';
4
4
  @import 'layout/force-scrollbars';
5
5
  @import 'layout/media';
6
- @import 'layout/simple-gradient';
6
+ @import 'layout/simple-gradient';
7
+ @import 'layout/pseudo-elements';
8
+ @import 'layout/absolute';
9
+ @import 'layout/relative';
10
+ @import 'layout/float-children';
@@ -0,0 +1,7 @@
1
+ @mixin absolute($top:false,$right:false,$bottom:false,$left:false) {
2
+ position:absolute;
3
+ @if $top { top:$top; }
4
+ @if $left { left:$left; }
5
+ @if $bottom { bottom:$bottom; }
6
+ @if $right { right:$right; }
7
+ }
@@ -0,0 +1,11 @@
1
+ @mixin float-children($children:false,$direction:left) {
2
+ @include clear-floats;
3
+
4
+ @if $children == false {
5
+ $children: '*';
6
+ }
7
+
8
+ & > #{$children} {
9
+ float:$direction;
10
+ }
11
+ }
@@ -0,0 +1,4 @@
1
+ @mixin show-pseudo-element {
2
+ content:'';
3
+ display:block;
4
+ }
@@ -0,0 +1,7 @@
1
+ @mixin relative($top:false,$right:false,$bottom:false,$left:false) {
2
+ position:relative;
3
+ @if $top { top:$top; }
4
+ @if $left { left:$left; }
5
+ @if $bottom { bottom:$bottom; }
6
+ @if $right { right:$right; }
7
+ }
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stitch
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 3
10
+ version: 0.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Anthony Short
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-08-24 00:00:00 +10:00
19
- default_executable:
18
+ date: 2011-09-01 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: compass
@@ -70,11 +69,15 @@ files:
70
69
  - stylesheets/stitch/patterns/forms/_search-fields.scss
71
70
  - stylesheets/stitch/patterns/images/_image-rendering.scss
72
71
  - stylesheets/stitch/patterns/images/_image-replace.scss
72
+ - stylesheets/stitch/patterns/layout/_absolute.scss
73
73
  - stylesheets/stitch/patterns/layout/_center.scss
74
74
  - stylesheets/stitch/patterns/layout/_clear-floats.scss
75
75
  - stylesheets/stitch/patterns/layout/_columns.scss
76
+ - stylesheets/stitch/patterns/layout/_float-children.scss
76
77
  - stylesheets/stitch/patterns/layout/_force-scrollbars.scss
77
78
  - stylesheets/stitch/patterns/layout/_media.scss
79
+ - stylesheets/stitch/patterns/layout/_pseudo-elements.scss
80
+ - stylesheets/stitch/patterns/layout/_relative.scss
78
81
  - stylesheets/stitch/patterns/layout/_simple-gradient.scss
79
82
  - stylesheets/stitch/patterns/legacy/_has-layout.scss
80
83
  - stylesheets/stitch/patterns/legacy/_inline-block.scss
@@ -87,7 +90,6 @@ files:
87
90
  - stylesheets/stitch/patterns/text/_justify.scss
88
91
  - stylesheets/stitch/patterns/text/_rem.scss
89
92
  - stylesheets/stitch/patterns/text/_text-rendering.scss
90
- has_rdoc: true
91
93
  homepage: https://github.com/anthonyshort/stitch-css
92
94
  licenses: []
93
95
 
@@ -117,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
119
  requirements: []
118
120
 
119
121
  rubyforge_project: stitch
120
- rubygems_version: 1.6.2
122
+ rubygems_version: 1.8.8
121
123
  signing_key:
122
124
  specification_version: 3
123
125
  summary: A CSS pattern framework for Compass