GIPainter-grid 0.1.0 → 0.2.0
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 +4 -4
- data/assets/stylesheets/Base/_column.scss +151 -0
- data/assets/stylesheets/Base/_core.scss +32 -0
- data/assets/stylesheets/Base/_row.scss +19 -0
- data/assets/stylesheets/Functions/_grid.scss +3 -0
- data/assets/stylesheets/Mixins/_grid.scss +10 -0
- data/assets/stylesheets/Variables/_grid.scss +31 -0
- data/lib/GIPainter-grid/version.rb +1 -1
- metadata +7 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ab6dfb7988cca0cccefeff0babcf9ac8c10c8cd
|
4
|
+
data.tar.gz: e7ef9afb5b46300ed4f40712c160c48b721e0985
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07cd090b848d01bbb10d01c45e06cced66a63d884cf0ffe208b11cf6ec81d6206999c546bc23d604974a3d70f882c6431b5f708650adaaae5b8eff11b56ed19f
|
7
|
+
data.tar.gz: 376aa94281e35c453b228208b37809e078a993f8ce653a0146cd68e90e371f1fafb7a13e11d0232a6f371408f046671646ae85f38b416a83190727b864b14a0d
|
@@ -0,0 +1,151 @@
|
|
1
|
+
.o-column{
|
2
|
+
@include flexboxgrid-sass-col-common;
|
3
|
+
|
4
|
+
&--reverse {
|
5
|
+
@include flex-direction(column-reverse);
|
6
|
+
}
|
7
|
+
|
8
|
+
&--auto{
|
9
|
+
@include flex-basis(auto);
|
10
|
+
}
|
11
|
+
|
12
|
+
@for $i from 1 through $max-grid-columns {
|
13
|
+
@for $j from 1 through $max-grid-columns {
|
14
|
+
&--size-#{$i}of#{$j} {
|
15
|
+
@include flex-basis(grid-size($i, $j));
|
16
|
+
max-width: grid-size($i, $j);
|
17
|
+
}
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
21
|
+
@for $i from 1 through $max-grid-columns {
|
22
|
+
@for $j from 1 through $max-grid-columns {
|
23
|
+
&--offset-#{$i}of#{$j} {
|
24
|
+
@include flexboxgrid-sass-col-common;
|
25
|
+
@if $i == 0 {
|
26
|
+
margin-left: 0;
|
27
|
+
} @else {
|
28
|
+
margin-left: 100% / $grid-columns * $i;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
&--start {
|
35
|
+
@include justify-content(flex-start);
|
36
|
+
text-align: start;
|
37
|
+
}
|
38
|
+
|
39
|
+
&--center {
|
40
|
+
@include justify-content(center);
|
41
|
+
text-align: center;
|
42
|
+
}
|
43
|
+
|
44
|
+
&--end {
|
45
|
+
@include justify-content(flex-end);
|
46
|
+
text-align: end;
|
47
|
+
}
|
48
|
+
|
49
|
+
&--around {
|
50
|
+
@include justify-content(space-around);
|
51
|
+
}
|
52
|
+
|
53
|
+
&--between {
|
54
|
+
@include justify-content(space-between);
|
55
|
+
}
|
56
|
+
|
57
|
+
&--top {
|
58
|
+
@include align-items(flex-start);
|
59
|
+
}
|
60
|
+
|
61
|
+
&--middle {
|
62
|
+
@include align-items(center);
|
63
|
+
}
|
64
|
+
|
65
|
+
&--bottom {
|
66
|
+
@include align-items(flex-end);
|
67
|
+
}
|
68
|
+
|
69
|
+
&--first {
|
70
|
+
order: -1;
|
71
|
+
}
|
72
|
+
|
73
|
+
&--last {
|
74
|
+
order: 1;
|
75
|
+
}
|
76
|
+
}
|
77
|
+
|
78
|
+
@each $name, $value in $default_breakpoint {
|
79
|
+
@include mquery($value) {
|
80
|
+
.o-column--#{"" + $name} {
|
81
|
+
&-size-auto {
|
82
|
+
@include flex-basis(auto);
|
83
|
+
}
|
84
|
+
|
85
|
+
@for $i from 1 through $max-grid-columns {
|
86
|
+
@for $j from 1 through $max-grid-columns {
|
87
|
+
&-size-#{$i}of#{$j} {
|
88
|
+
@include flex-basis(grid-size($i, $j));
|
89
|
+
max-width: grid-size($i, $j);
|
90
|
+
}
|
91
|
+
}
|
92
|
+
}
|
93
|
+
|
94
|
+
@for $i from 1 through $max-grid-columns {
|
95
|
+
@for $j from 1 through $max-grid-columns {
|
96
|
+
&-offset-#{$i}of#{$j} {
|
97
|
+
@include flexboxgrid-sass-col-common;
|
98
|
+
@if $i == 0 {
|
99
|
+
margin-left: 0;
|
100
|
+
} @else {
|
101
|
+
margin-left: 100% / $grid-columns * $i;
|
102
|
+
}
|
103
|
+
}
|
104
|
+
}
|
105
|
+
}
|
106
|
+
|
107
|
+
&-start {
|
108
|
+
@include justify-content(flex-start);
|
109
|
+
text-align: start;
|
110
|
+
}
|
111
|
+
|
112
|
+
&-center {
|
113
|
+
@include justify-content(center);
|
114
|
+
text-align: center;
|
115
|
+
}
|
116
|
+
|
117
|
+
&-end {
|
118
|
+
@include justify-content(flex-end);
|
119
|
+
text-align: end;
|
120
|
+
}
|
121
|
+
|
122
|
+
&-around {
|
123
|
+
@include justify-content(space-around);
|
124
|
+
}
|
125
|
+
|
126
|
+
&-between {
|
127
|
+
@include justify-content(space-between);
|
128
|
+
}
|
129
|
+
|
130
|
+
&-top {
|
131
|
+
@include align-items(flex-start);
|
132
|
+
}
|
133
|
+
|
134
|
+
&-middle {
|
135
|
+
@include align-items(center);
|
136
|
+
}
|
137
|
+
|
138
|
+
&-bottom {
|
139
|
+
@include align-items(flex-end);
|
140
|
+
}
|
141
|
+
|
142
|
+
&-first {
|
143
|
+
order: -1;
|
144
|
+
}
|
145
|
+
|
146
|
+
&-last {
|
147
|
+
order: 1;
|
148
|
+
}
|
149
|
+
}
|
150
|
+
}
|
151
|
+
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
.m-grid {
|
2
|
+
clear: both;
|
3
|
+
display: block;
|
4
|
+
letter-spacing: -0.31em;
|
5
|
+
*letter-spacing: normal;
|
6
|
+
*word-spacing: -0.43em;
|
7
|
+
text-rendering: optimizespeed;
|
8
|
+
|
9
|
+
.m-grid {
|
10
|
+
margin-left: -$grid-padding;
|
11
|
+
margin-right: -$grid-padding;
|
12
|
+
}
|
13
|
+
|
14
|
+
> .m-grid {
|
15
|
+
margin-left: 0;
|
16
|
+
margin-right: 0;
|
17
|
+
}
|
18
|
+
|
19
|
+
&__wrapper {
|
20
|
+
*zoom: 1;
|
21
|
+
&:before,
|
22
|
+
&:after {
|
23
|
+
content: " ";
|
24
|
+
display: table;
|
25
|
+
line-height: 0;
|
26
|
+
}
|
27
|
+
&:after {
|
28
|
+
clear: both;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
@@ -0,0 +1,19 @@
|
|
1
|
+
.o-row {
|
2
|
+
display: block;
|
3
|
+
@include flexbox();
|
4
|
+
@include flex(0, 1, auto);
|
5
|
+
@include flex-direction(row);
|
6
|
+
@include flex-wrap(wrap);
|
7
|
+
margin: 0 auto;
|
8
|
+
padding: 0 $outer-margin;
|
9
|
+
max-width: $grid-max-width;
|
10
|
+
box-sizing: border-box;
|
11
|
+
|
12
|
+
&--full {
|
13
|
+
max-width: 100% !important;
|
14
|
+
}
|
15
|
+
|
16
|
+
&--reverse {
|
17
|
+
@include flex-direction(row-reverse);
|
18
|
+
}
|
19
|
+
}
|
@@ -0,0 +1,31 @@
|
|
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
|
+
/// @prop {Length} grid-padding [$grid-padding]
|
17
|
+
/// @prop {Length} half-gutter-width [$half-gutter-width]
|
18
|
+
|
19
|
+
$max-grid-columns: 12 !default;
|
20
|
+
$gutter-width: 1rem !default;
|
21
|
+
$outer-margin: 2rem !default;
|
22
|
+
$grid-max-width: 1200px !default;
|
23
|
+
$grid-padding: 0.71429em !default;
|
24
|
+
$half-gutter-width: $gutter-width * .5;
|
25
|
+
|
26
|
+
$default_breakpoint: (
|
27
|
+
xs: $screen-xs,
|
28
|
+
sm: $screen-sm,
|
29
|
+
md: $screen-md,
|
30
|
+
lg: $screen-lg
|
31
|
+
);
|
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.
|
4
|
+
version: 0.2.0
|
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-
|
11
|
+
date: 2017-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: GIPainter-base
|
@@ -144,7 +144,12 @@ extensions: []
|
|
144
144
|
extra_rdoc_files: []
|
145
145
|
files:
|
146
146
|
- README.md
|
147
|
+
- assets/stylesheets/Base/_column.scss
|
147
148
|
- assets/stylesheets/Base/_core.scss
|
149
|
+
- assets/stylesheets/Base/_row.scss
|
150
|
+
- assets/stylesheets/Functions/_grid.scss
|
151
|
+
- assets/stylesheets/Mixins/_grid.scss
|
152
|
+
- assets/stylesheets/Variables/_grid.scss
|
148
153
|
- assets/stylesheets/_GIPainter-grid.scss
|
149
154
|
- lib/GIPainter-grid.rb
|
150
155
|
- lib/GIPainter-grid/version.rb
|