GIPainter-grid 0.3.2 → 0.3.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 22ce7a4b72050ec158374f052c3e6662187211e4
4
- data.tar.gz: 53bc510833081d6244fce1b8d27183341d3a42ab
3
+ metadata.gz: 425e108088024c66116dad425e4694cb1406576a
4
+ data.tar.gz: 70b4504c4280cee5fb64e94e0c18678debaf7334
5
5
  SHA512:
6
- metadata.gz: 5518970a2ebe7bec3787e096b6f79b15118263fa5296b848b7f53dcfb781090c5765a58bbd048e97af2a3d622d7cd039ba631251bbe437875325d487d06021f4
7
- data.tar.gz: 01f36a357ee8e9b6c04bdc61d6ea265c3f4a147dce5e835cc9a0b711b63cc13c52bb672e480f0d2c3fb274b830b455c99ec7fa1649da5235f759059b54c1416e
6
+ metadata.gz: b62c1f1fa008e61e68846a860475a0465712a388b1ee53074e0838db6333792362f28cbefa03b67b4597a007c2e9e6fdd59bbaa3f202c6688954731001b9f762
7
+ data.tar.gz: c23a1176578ee088b6fa392ba0f71d20a4e7b3098dad11f0984d4bdc84cff4ba447f126ddfeca4214b63c8b160092f37152971c14c20a736c29619c3c099db6e
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # GIPainter::Helpers
1
+ # GIPainter::grid
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/GIPainter/helpers`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/GIPainter-grid`. To experiment with that code, run `bin/console` for an interactive prompt.
4
4
 
5
5
  TODO: Delete this and the text above, and describe your gem
6
6
 
@@ -9,7 +9,7 @@ TODO: Delete this and the text above, and describe your gem
9
9
  Add this line to your application's Gemfile:
10
10
 
11
11
  ```ruby
12
- gem 'GIPainter-helpers'
12
+ gem 'GIPainter-grid'
13
13
  ```
14
14
 
15
15
  And then execute:
@@ -18,7 +18,7 @@ And then execute:
18
18
 
19
19
  Or install it yourself as:
20
20
 
21
- $ gem install GIPainter-helpers
21
+ $ gem install GIPainter-grid
22
22
 
23
23
  ## Usage
24
24
 
@@ -32,7 +32,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
32
32
 
33
33
  ## Contributing
34
34
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/aprioul/GIPainter-helpers.
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/aprioul/GIPainter-grid.
36
36
 
37
37
 
38
38
  ## License
@@ -1,17 +1,17 @@
1
- .m-grid {
2
- clear: both;
3
- display: block;
4
-
5
- &__wrapper {
6
- *zoom: 1;
7
- &:before,
8
- &:after {
9
- content: " ";
10
- display: table;
11
- line-height: 0;
12
- }
13
- &:after {
14
- clear: both;
15
- }
16
- }
1
+ .m-grid {
2
+ clear: both;
3
+ display: block;
4
+
5
+ &__wrapper {
6
+ *zoom: 1;
7
+ &:before,
8
+ &:after {
9
+ content: " ";
10
+ display: table;
11
+ line-height: 0;
12
+ }
13
+ &:after {
14
+ clear: both;
15
+ }
16
+ }
17
17
  }
@@ -1,173 +1,173 @@
1
- [class*="o-column-"] {
2
- @include flexboxgrid-sass-col-common;
3
- }
4
-
5
- .o-column{
6
- @include box-sizing(border-box);
7
- @include flexbox((display: flex, flex-direction: column));
8
- @include flex(0 1 auto);
9
- @include flex-wrap(wrap);
10
- max-width: 100%;
11
-
12
- &--reverse {
13
- @include flex-direction(column-reverse);
14
- }
15
-
16
- &--auto{
17
- @include flex-basis(auto);
18
- }
19
-
20
- @for $i from 1 through $max-grid-columns {
21
- @for $j from 1 through $max-grid-columns {
22
- @if $i <= $j {
23
- &--size-#{$i}of#{$j} {
24
- @include flex-basis(grid-size($i, $j));
25
- max-width: grid-size($i, $j);
26
- }
27
- }
28
- }
29
- }
30
-
31
- @for $i from 1 through $max-grid-columns {
32
- @for $j from 1 through $max-grid-columns {
33
- @if $i < $j {
34
- &--offset-#{$i}of#{$j} {
35
- margin-left: grid-size($i, $j);
36
- }
37
- }
38
- }
39
- }
40
-
41
- &--no-wrap {
42
- @include flex-wrap(nowrap);
43
- }
44
-
45
- &--start {
46
- @include justify-content(flex-start);
47
- text-align: start;
48
- }
49
-
50
- &--center {
51
- @include justify-content(center);
52
- text-align: center;
53
- }
54
-
55
- &--end {
56
- @include justify-content(flex-end);
57
- text-align: end;
58
- }
59
-
60
- &--around {
61
- @include justify-content(space-around);
62
- }
63
-
64
- &--between {
65
- @include justify-content(space-between);
66
- }
67
-
68
- &--top {
69
- @include align-items(flex-start);
70
- }
71
-
72
- &--middle {
73
- @include align-items(center);
74
- }
75
-
76
- &--bottom {
77
- @include align-items(flex-end);
78
- }
79
-
80
- &--first {
81
- order: -1;
82
- }
83
-
84
- &--last {
85
- order: 1;
86
- }
87
- }
88
-
89
- @each $name, $value in $default_breakpoint {
90
- @include mquery($value) {
91
- .o-column-#{"" + $name} {
92
- @include box-sizing(border-box);
93
- @include flexbox((display: flex, flex-direction: column));
94
- @include flex(0 1 auto);
95
- @include flex-wrap(wrap);
96
- margin-right: $gutter-width;
97
- margin-left: $gutter-width;
98
- max-width: 100%;
99
-
100
- &-size-auto {
101
- @include flex-basis(auto);
102
- }
103
-
104
- @for $i from 1 through $max-grid-columns {
105
- @for $j from 1 through $max-grid-columns {
106
- @if $i <= $j {
107
- &--size-#{$i}of#{$j} {
108
- @include flex-basis(grid-size($i, $j));
109
- max-width: grid-size($i, $j);
110
- }
111
- }
112
- }
113
- }
114
-
115
- @for $i from 1 through $max-grid-columns {
116
- @for $j from 1 through $max-grid-columns {
117
- @if $i < $j {
118
- &--offset-#{$i}of#{$j} {
119
- margin-left: grid-size($i, $j);
120
- }
121
- }
122
- }
123
- }
124
-
125
- &--no-wrap {
126
- @include flex-wrap(nowrap);
127
- }
128
-
129
- &--start {
130
- @include justify-content(flex-start);
131
- text-align: start;
132
- }
133
-
134
- &--center {
135
- @include justify-content(center);
136
- text-align: center;
137
- }
138
-
139
- &--end {
140
- @include justify-content(flex-end);
141
- text-align: end;
142
- }
143
-
144
- &--around {
145
- @include justify-content(space-around);
146
- }
147
-
148
- &--between {
149
- @include justify-content(space-between);
150
- }
151
-
152
- &--top {
153
- @include align-items(flex-start);
154
- }
155
-
156
- &--middle {
157
- @include align-items(center);
158
- }
159
-
160
- &--bottom {
161
- @include align-items(flex-end);
162
- }
163
-
164
- &--first {
165
- order: -1;
166
- }
167
-
168
- &--last {
169
- order: 1;
170
- }
171
- }
172
- }
1
+ [class*="o-column-"] {
2
+ @include flexboxgrid-sass-col-common;
3
+ }
4
+
5
+ .o-column{
6
+ @include box-sizing(border-box);
7
+ @include flexbox((display: flex, flex-direction: column));
8
+ @include flex(0 1 auto);
9
+ @include flex-wrap(wrap);
10
+ max-width: 100%;
11
+
12
+ &--reverse {
13
+ @include flex-direction(column-reverse);
14
+ }
15
+
16
+ &--auto{
17
+ @include flex-basis(auto);
18
+ }
19
+
20
+ @for $i from 1 through $max-grid-columns {
21
+ @for $j from 1 through $max-grid-columns {
22
+ @if $i <= $j {
23
+ &--size-#{$i}of#{$j} {
24
+ @include flex-basis(grid-size($i, $j));
25
+ max-width: grid-size($i, $j);
26
+ }
27
+ }
28
+ }
29
+ }
30
+
31
+ @for $i from 1 through $max-grid-columns {
32
+ @for $j from 1 through $max-grid-columns {
33
+ @if $i < $j {
34
+ &--offset-#{$i}of#{$j} {
35
+ margin-left: grid-size($i, $j);
36
+ }
37
+ }
38
+ }
39
+ }
40
+
41
+ &--no-wrap {
42
+ @include flex-wrap(nowrap);
43
+ }
44
+
45
+ &--start {
46
+ @include justify-content(flex-start);
47
+ text-align: start;
48
+ }
49
+
50
+ &--center {
51
+ @include justify-content(center);
52
+ text-align: center;
53
+ }
54
+
55
+ &--end {
56
+ @include justify-content(flex-end);
57
+ text-align: end;
58
+ }
59
+
60
+ &--around {
61
+ @include justify-content(space-around);
62
+ }
63
+
64
+ &--between {
65
+ @include justify-content(space-between);
66
+ }
67
+
68
+ &--top {
69
+ @include align-items(flex-start);
70
+ }
71
+
72
+ &--middle {
73
+ @include align-items(center);
74
+ }
75
+
76
+ &--bottom {
77
+ @include align-items(flex-end);
78
+ }
79
+
80
+ &--first {
81
+ order: -1;
82
+ }
83
+
84
+ &--last {
85
+ order: 1;
86
+ }
87
+ }
88
+
89
+ @each $name, $value in $default_breakpoint {
90
+ @include mquery($value) {
91
+ .o-column-#{"" + $name} {
92
+ @include box-sizing(border-box);
93
+ @include flexbox((display: flex, flex-direction: column));
94
+ @include flex(0 1 auto);
95
+ @include flex-wrap(wrap);
96
+ margin-right: $gutter-width;
97
+ margin-left: $gutter-width;
98
+ max-width: 100%;
99
+
100
+ &-size-auto {
101
+ @include flex-basis(auto);
102
+ }
103
+
104
+ @for $i from 1 through $max-grid-columns {
105
+ @for $j from 1 through $max-grid-columns {
106
+ @if $i <= $j {
107
+ &--size-#{$i}of#{$j} {
108
+ @include flex-basis(grid-size($i, $j));
109
+ max-width: grid-size($i, $j);
110
+ }
111
+ }
112
+ }
113
+ }
114
+
115
+ @for $i from 1 through $max-grid-columns {
116
+ @for $j from 1 through $max-grid-columns {
117
+ @if $i < $j {
118
+ &--offset-#{$i}of#{$j} {
119
+ margin-left: grid-size($i, $j);
120
+ }
121
+ }
122
+ }
123
+ }
124
+
125
+ &--no-wrap {
126
+ @include flex-wrap(nowrap);
127
+ }
128
+
129
+ &--start {
130
+ @include justify-content(flex-start);
131
+ text-align: start;
132
+ }
133
+
134
+ &--center {
135
+ @include justify-content(center);
136
+ text-align: center;
137
+ }
138
+
139
+ &--end {
140
+ @include justify-content(flex-end);
141
+ text-align: end;
142
+ }
143
+
144
+ &--around {
145
+ @include justify-content(space-around);
146
+ }
147
+
148
+ &--between {
149
+ @include justify-content(space-between);
150
+ }
151
+
152
+ &--top {
153
+ @include align-items(flex-start);
154
+ }
155
+
156
+ &--middle {
157
+ @include align-items(center);
158
+ }
159
+
160
+ &--bottom {
161
+ @include align-items(flex-end);
162
+ }
163
+
164
+ &--first {
165
+ order: -1;
166
+ }
167
+
168
+ &--last {
169
+ order: 1;
170
+ }
171
+ }
172
+ }
173
173
  }
@@ -1,3 +1,3 @@
1
- @import "base";
2
- @import "row";
1
+ @import "base";
2
+ @import "row";
3
3
  @import "column";
@@ -1,26 +1,26 @@
1
- .o-row {
2
- display: block;
3
- @include flexbox((display: flex, flex-direction: row));
4
- @include flex(0 1 auto);
5
- @include flex-wrap(wrap);
6
- margin: 0 auto;
7
- padding: 0 $outer-margin;
8
- max-width: $grid-max-width;
9
- box-sizing: border-box;
10
-
11
- &--full {
12
- max-width: 100%;
13
- padding: 0;
14
- }
15
-
16
- &--reverse {
17
- @include flex-direction(row-reverse);
18
- }
19
-
20
- &--no-gutter{
21
- [class*="o-column-"] {
22
- padding-left: 0;
23
- padding-right: 0;
24
- }
25
- }
1
+ .o-row {
2
+ display: block;
3
+ @include flexbox((display: flex, flex-direction: row));
4
+ @include flex(0 1 auto);
5
+ @include flex-wrap(wrap);
6
+ margin: 0 auto;
7
+ padding: 0 $outer-margin;
8
+ max-width: $grid-max-width;
9
+ box-sizing: border-box;
10
+
11
+ &--full {
12
+ max-width: 100%;
13
+ padding: 0;
14
+ }
15
+
16
+ &--reverse {
17
+ @include flex-direction(row-reverse);
18
+ }
19
+
20
+ &--no-gutter{
21
+ [class*="o-column-"] {
22
+ padding-left: 0;
23
+ padding-right: 0;
24
+ }
25
+ }
26
26
  }
@@ -1,3 +1,3 @@
1
- @function grid-size($column, $size) {
2
- @return ($column/$size)*100%
1
+ @function grid-size($column, $size) {
2
+ @return ($column/$size)*100%
3
3
  }
@@ -1,9 +1,9 @@
1
- @mixin flexboxgrid-sass-col-common {
2
- @include box-sizing(border-box);
3
-
4
- @include flex-grow(0);
5
- @include flex-shrink(0);
6
-
7
- padding-right: $gutter-width;
8
- padding-left: $gutter-width;
1
+ @mixin flexboxgrid-sass-col-common {
2
+ @include box-sizing(border-box);
3
+
4
+ @include flex-grow(0);
5
+ @include flex-shrink(0);
6
+
7
+ padding-right: $gutter-width;
8
+ padding-left: $gutter-width;
9
9
  }
@@ -1,27 +1,20 @@
1
- //-----------------------------------
2
- // GRID VARIABLES
3
- //-----------------------------------
4
-
5
- ////
6
- /// @access public
7
- /// @group Grid
8
- /// @type String
9
- ////
10
-
11
- /// Grid variables
12
- /// @prop {Number} max-grid-columns [$max-grid-columns]
13
- /// @prop {Length} gutter-width [$gutter-width]
14
- /// @prop {Length} outer-margin [$outer-margin]
15
- /// @prop {Length} grid-max-width [$grid-max-width]
16
-
17
- $max-grid-columns: 12 !default;
18
- $gutter-width: 1rem !default;
19
- $outer-margin: 2rem !default;
20
- $grid-max-width: 1200px !default;
21
-
22
- $default_breakpoint: (
23
- xs: $screen-xs,
24
- sm: $screen-sm,
25
- md: $screen-md,
26
- lg: $screen-lg
27
- );
1
+ //-----------------------------------
2
+ // GRID VARIABLES
3
+ //-----------------------------------
4
+
5
+ ////
6
+ /// @access public
7
+ /// @group Grid
8
+ /// @type String
9
+ ////
10
+
11
+ /// Grid variables
12
+ /// @prop {Number} max-grid-columns [$max-grid-columns]
13
+ /// @prop {Length} gutter-width [$gutter-width]
14
+ /// @prop {Length} outer-margin [$outer-margin]
15
+ /// @prop {Length} grid-max-width [$grid-max-width]
16
+
17
+ $max-grid-columns: 12 !default;
18
+ $gutter-width: 1rem !default;
19
+ $outer-margin: 2rem !default;
20
+ $grid-max-width: 1200px !default;
@@ -1,15 +1,15 @@
1
- // @file
2
- // SCSS partials import
3
- // -----------------------------------------------------------------------------
4
-
5
- // COMPASS Imports
6
- // -----------------------------------------------------------------------------
7
- @import "compass";
8
- @import 'compass/css3';
9
-
10
- // GIPainter Variables and Mixins
11
- // -----------------------------------------------------------------------------
12
- @import "Variables/**/*";
13
- @import "Mixins/**/*";
14
- @import "Functions/**/*";
1
+ // @file
2
+ // SCSS partials import
3
+ // -----------------------------------------------------------------------------
4
+
5
+ // COMPASS Imports
6
+ // -----------------------------------------------------------------------------
7
+ @import "compass";
8
+ @import 'compass/css3';
9
+
10
+ // GIPainter Variables and Mixins
11
+ // -----------------------------------------------------------------------------
12
+ @import "Variables/**/*";
13
+ @import "Mixins/**/*";
14
+ @import "Functions/**/*";
15
15
  @import "Base/core";
@@ -1,3 +1,3 @@
1
1
  module GIPainter_grid
2
- VERSION = '0.3.2'
2
+ VERSION = '0.3.3'
3
3
  end
@@ -1,7 +1,7 @@
1
- stylesheet '_GIPainter-helpers.scss', :media => 'screen, projection'
2
-
3
- description "A Compass plugin for the Genious-interactive agency"
4
-
5
- help %Q{
6
- See GIPainter documentation
1
+ stylesheet '_GIPainter-helpers.scss', :media => 'screen, projection'
2
+
3
+ description "A Compass plugin for the Genious-interactive agency"
4
+
5
+ help %Q{
6
+ See GIPainter documentation
7
7
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: GIPainter-grid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genious Interactive
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-22 00:00:00.000000000 Z
11
+ date: 2017-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: GIPainter-base
@@ -176,7 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
176
176
  version: '0'
177
177
  requirements: []
178
178
  rubyforge_project:
179
- rubygems_version: 2.6.10
179
+ rubygems_version: 2.5.2
180
180
  signing_key:
181
181
  specification_version: 4
182
182
  summary: A compass extension | grid