flexlayout-rails 0.1.3 → 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/README.md CHANGED
@@ -113,6 +113,8 @@ The following stylesheets with CSS helper classes are included.
113
113
  * `flexlayout.css`
114
114
  * `flex-box-helpers.css`
115
115
 
116
+ Also SCSS mixins at `flex-layout.scss`
117
+
116
118
  Better yet to use [Compass box mixins](http://compass-style.org/examples/compass/css3/box/)
117
119
 
118
120
  ```scss
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.4
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "flexlayout-rails"
8
- s.version = "0.1.3"
8
+ s.version = "0.1.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Kristian Mandrup"]
12
- s.date = "2012-08-31"
12
+ s.date = "2012-09-03"
13
13
  s.description = "Use CSS Flex, Regions, Multi-column and Template layout models in your Rails apps"
14
14
  s.email = "kmandrup@gmail.com"
15
15
  s.extra_rdoc_files = [
@@ -56,6 +56,7 @@ Gem::Specification.new do |s|
56
56
  "vendor/assets/javascripts/template_layout/templateLayout.generator.js",
57
57
  "vendor/assets/javascripts/template_layout/templateLayout.js",
58
58
  "vendor/assets/stylesheets/flex-box-helpers.css",
59
+ "vendor/assets/stylesheets/flex-layout.scss",
59
60
  "vendor/assets/stylesheets/flexlayout.css",
60
61
  "vendor/assets/stylesheets/multi-column.css"
61
62
  ]
@@ -0,0 +1,94 @@
1
+ /* From: http://infrequently.org/2009/08/css-3-progress/
2
+
3
+ hbox and vbox classes */
4
+
5
+ @mixin hbox() {
6
+ @include display-box;
7
+ @include box-orient(horizontal);
8
+ @include box-align(stretch);
9
+ }
10
+
11
+ .hbox {
12
+ @include hbox();
13
+
14
+ > * {
15
+ @include hbox-item();
16
+ }
17
+ }
18
+
19
+ @mixin hbox-item() {
20
+ @include box-flex(0);
21
+ display: block;
22
+ }
23
+
24
+
25
+ @mixin vbox() {
26
+ @include display-box;
27
+ @include box-orient(vertical);
28
+ @include box-align(stretch);
29
+ }
30
+
31
+ .vbox {
32
+ @include vbox();
33
+
34
+ > * {
35
+ @include vbox-item();
36
+ }
37
+ }
38
+
39
+ @mixin vbox-item {
40
+ @include box-flex(0);
41
+ display: block;
42
+ }
43
+
44
+ @mixin flex-reverse() {
45
+ @include box-direction(reverse);
46
+ }
47
+
48
+ .flex-reverse {
49
+ @include flex-reverse()
50
+ }
51
+
52
+ @mixin flex-box($size: 1) {
53
+ @include box-flex($size);
54
+ }
55
+
56
+ @mixin flex-spacer($size: 1)
57
+ @include flex-box($size);
58
+ }
59
+
60
+ @for $i in 1 through 12 {
61
+ .flex-spacer#{$i} {
62
+ @include flex-spacer(#{$i});
63
+ }
64
+
65
+ .flex-box#{$i} {
66
+ @include flex-box(#{$i});
67
+ }
68
+ }
69
+
70
+ @mixin flex-group($size) {
71
+ @include box-flex-group($size);
72
+ }
73
+
74
+ @for $i in 1 through 3 {
75
+ .flex-group#{$i} {
76
+ @include flex-group(#{$i});
77
+ }
78
+ }
79
+
80
+ @mixin flex-pack($pack) {
81
+ @include box-pack($pack);
82
+ }
83
+
84
+ @mixin flex-start() {
85
+ @include box-pack(start);
86
+ }
87
+
88
+ @mixin flex-end() {
89
+ @include box-pack(end);
90
+ }
91
+
92
+ @mixin flex-center() {
93
+ @include box-pack(center);
94
+ }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flexlayout-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-31 00:00:00.000000000 Z
12
+ date: 2012-09-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -155,6 +155,7 @@ files:
155
155
  - vendor/assets/javascripts/template_layout/templateLayout.generator.js
156
156
  - vendor/assets/javascripts/template_layout/templateLayout.js
157
157
  - vendor/assets/stylesheets/flex-box-helpers.css
158
+ - vendor/assets/stylesheets/flex-layout.scss
158
159
  - vendor/assets/stylesheets/flexlayout.css
159
160
  - vendor/assets/stylesheets/multi-column.css
160
161
  homepage: http://github.com/kristianmandrup/flexlayout-rails
@@ -172,7 +173,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
172
173
  version: '0'
173
174
  segments:
174
175
  - 0
175
- hash: 2728143054712158305
176
+ hash: 2360954479671718475
176
177
  required_rubygems_version: !ruby/object:Gem::Requirement
177
178
  none: false
178
179
  requirements: