griddo 1.0.0 → 1.1.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 +6 -14
- data/{scss/griddo.scss → sass/_griddo.scss} +54 -19
- metadata +14 -22
- data/.gitignore +0 -20
- data/Gemfile +0 -4
- data/Rakefile +0 -1
- data/griddo.gemspec +0 -24
- data/lib/griddo/engine.rb +0 -7
- data/lib/griddo/version.rb +0 -3
- data/lib/griddo.rb +0 -5
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
metadata.gz: !binary |-
|
9
|
-
ZWMxYzk4YWQ3ZWZjMWIwZWFlZTdhNzk1MGJlOGZhZGQxMDIwMWM2MTMzNDUz
|
10
|
-
YmNjMmI4NmQ1NGQyYjllMTk3ZGU1ZDZmNGNiNDU5NTc4ZWViMWRkMjgzMzlj
|
11
|
-
ZDgwNmYwZGMzNDgxZTVkMDVlZmY2YTRlYzg0MTFjZWIyOGRjZjA=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
ZmIyY2M4N2UyNzQ3NzU0OGYyMmFjYzQ4ZDY1ODcxYTIyMjZiNjE1YjBiOGZi
|
14
|
-
Y2EwYmFiODA1MTQ2NmE3NzQyNjhkYjZmZTRlMjc0ZGI4ODYyOWU5ZjIzNjVl
|
15
|
-
ZjJkYTBkODE1NWU5YWI2MGFiZGI2NWFkZWViZTlhOGUzMmE3NTM=
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 62e8e719826e8a5f4f23cfc4f22475031ad52b7c
|
4
|
+
data.tar.gz: 45a7086263c251cfc76ad8abc819352ccbeef3b9
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 34688057dc0567f73504284d7da9bc81167fef39b2262e8d294ab7ad259bcd4c21b195ec48575ab3c7af127fc982a99075382612bf5b1f72fb2a20e450c2d16b
|
7
|
+
data.tar.gz: 53d4818c248d50064f69a5ac5091f08fbfa7e606dcfa032019173d916eae2c1602eecd3bb8c017bdaf1acf5680c0d1e507c0702430b7ddca0196a1cb1e5c912a
|
@@ -20,7 +20,7 @@ $griddo-divisor: $griddo-columns !default;
|
|
20
20
|
//
|
21
21
|
// Intializes a row.
|
22
22
|
//
|
23
|
-
@mixin griddo-row($griddo-behavior: false) {
|
23
|
+
@mixin griddo-row($griddo-behavior: false, $griddo-gutter: $griddo-gutter) {
|
24
24
|
@include griddo-clearfix;
|
25
25
|
|
26
26
|
clear: both;
|
@@ -28,38 +28,66 @@ $griddo-divisor: $griddo-columns !default;
|
|
28
28
|
padding: 0;
|
29
29
|
|
30
30
|
@if $griddo-behavior == nest {
|
31
|
-
|
32
|
-
max-width: none;
|
33
|
-
width: auto;
|
31
|
+
@include griddo-row-nest($griddo-gutter: $griddo-gutter);
|
34
32
|
}
|
35
33
|
@else if $griddo-behavior == collapse {
|
36
|
-
|
37
|
-
margin: 0;
|
38
|
-
max-width: $griddo-row-width;
|
34
|
+
@include griddo-row-collapse;
|
39
35
|
}
|
40
36
|
@else if $griddo-behavior == nest-collapse {
|
41
|
-
|
42
|
-
margin: 0;
|
43
|
-
max-width: none;
|
37
|
+
@include griddo-row-nest-collapse;
|
44
38
|
}
|
45
39
|
@else {
|
46
|
-
|
47
|
-
max-width: $griddo-row-width;
|
48
|
-
width: 100%;
|
40
|
+
@include griddo-row-default;
|
49
41
|
}
|
50
42
|
}
|
51
43
|
|
44
|
+
//
|
45
|
+
// Row type: Default
|
46
|
+
//
|
47
|
+
@mixin griddo-row-default {
|
48
|
+
margin: 0 auto;
|
49
|
+
max-width: $griddo-row-width;
|
50
|
+
width: 100%;
|
51
|
+
}
|
52
|
+
|
53
|
+
//
|
54
|
+
// Row type: Nest
|
55
|
+
//
|
56
|
+
@mixin griddo-row-nest {
|
57
|
+
margin: 0 (-($griddo-gutter / 2));
|
58
|
+
max-width: none;
|
59
|
+
width: auto;
|
60
|
+
}
|
61
|
+
|
62
|
+
//
|
63
|
+
// Row type: Collapse
|
64
|
+
//
|
65
|
+
@mixin griddo-row-collapse {
|
66
|
+
margin: 0;
|
67
|
+
max-width: $griddo-row-width;
|
68
|
+
width: 100%;
|
69
|
+
}
|
70
|
+
|
71
|
+
//
|
72
|
+
// Row type: Nest collapse
|
73
|
+
//
|
74
|
+
@mixin griddo-row-nest-collapse {
|
75
|
+
margin: 0;
|
76
|
+
max-width: none;
|
77
|
+
width: auto;
|
78
|
+
}
|
79
|
+
|
52
80
|
//
|
53
81
|
// Render a column.
|
54
82
|
//
|
55
|
-
@mixin griddo-column($griddo-dividend: false, $griddo-divisor: $griddo-columns) {
|
83
|
+
@mixin griddo-column($griddo-dividend: false, $griddo-divisor: $griddo-columns, $griddo-gutter: $griddo-gutter) {
|
56
84
|
float: $griddo-float;
|
57
85
|
list-style: none;
|
58
|
-
margin: 0;
|
59
86
|
min-height: 1px;
|
60
|
-
padding: 0 ($griddo-gutter / 2);
|
61
87
|
position: relative;
|
62
88
|
|
89
|
+
@include griddo-gutter($griddo-gutter);
|
90
|
+
|
63
91
|
@if $griddo-dividend {
|
64
92
|
@include griddo-width($griddo-dividend, $griddo-divisor);
|
65
93
|
}
|
@@ -72,6 +100,14 @@ $griddo-divisor: $griddo-columns !default;
|
|
72
100
|
width: griddo-calc($griddo-dividend, $griddo-divisor);
|
73
101
|
}
|
74
102
|
|
103
|
+
//
|
104
|
+
// Set gutter
|
105
|
+
//
|
106
|
+
@mixin griddo-gutter($griddo-gutter: $griddo-gutter) {
|
107
|
+
padding-left: ($griddo-gutter / 2);
|
108
|
+
padding-right: ($griddo-gutter / 2);
|
109
|
+
}
|
110
|
+
|
75
111
|
//
|
76
112
|
// Default float.
|
77
113
|
//
|
@@ -128,9 +164,9 @@ $griddo-divisor: $griddo-columns !default;
|
|
128
164
|
//
|
129
165
|
// Make a single element behave like a row with one column of 100% width.
|
130
166
|
//
|
131
|
-
@mixin griddo-container($griddo-behavior: false) {
|
167
|
+
@mixin griddo-container($griddo-behavior: false, $griddo-gutter: $griddo-gutter) {
|
132
168
|
@include griddo-row($griddo-behavior);
|
133
|
-
|
169
|
+
@include griddo-gutter($griddo-gutter);
|
134
170
|
}
|
135
171
|
|
136
172
|
//
|
@@ -199,5 +235,4 @@ $griddo-divisor: $griddo-columns !default;
|
|
199
235
|
@include griddo-pull($i, $total-columns);
|
200
236
|
}
|
201
237
|
}
|
202
|
-
|
203
238
|
}
|
metadata
CHANGED
@@ -1,75 +1,68 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: griddo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Per Sandström
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 3.2.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 3.2.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '1.3'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.3'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
-
description:
|
55
|
+
description: A collection of Sass mixins that helps you build grids.
|
56
56
|
email:
|
57
57
|
- per@helloper.com
|
58
58
|
executables: []
|
59
59
|
extensions: []
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
|
-
- .
|
63
|
-
- Gemfile
|
62
|
+
- sass/_griddo.scss
|
64
63
|
- LICENSE-GPL.txt
|
65
64
|
- LICENSE-MIT.txt
|
66
65
|
- README.md
|
67
|
-
- Rakefile
|
68
|
-
- griddo.gemspec
|
69
|
-
- lib/griddo.rb
|
70
|
-
- lib/griddo/engine.rb
|
71
|
-
- lib/griddo/version.rb
|
72
|
-
- scss/griddo.scss
|
73
66
|
homepage: https://github.com/kollegorna/griddo
|
74
67
|
licenses:
|
75
68
|
- MIT and GPL v2
|
@@ -80,19 +73,18 @@ require_paths:
|
|
80
73
|
- lib
|
81
74
|
required_ruby_version: !ruby/object:Gem::Requirement
|
82
75
|
requirements:
|
83
|
-
- -
|
76
|
+
- - ">="
|
84
77
|
- !ruby/object:Gem::Version
|
85
78
|
version: '0'
|
86
79
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
87
80
|
requirements:
|
88
|
-
- -
|
81
|
+
- - ">="
|
89
82
|
- !ruby/object:Gem::Version
|
90
83
|
version: '0'
|
91
84
|
requirements: []
|
92
85
|
rubyforge_project:
|
93
|
-
rubygems_version: 2.0.
|
86
|
+
rubygems_version: 2.0.14
|
94
87
|
signing_key:
|
95
88
|
specification_version: 4
|
96
|
-
summary: It handles grids and only grids
|
97
|
-
have to provide that by yourself. Hello separation of concerns.
|
89
|
+
summary: It handles grids and only grids – no breakpoints.
|
98
90
|
test_files: []
|
data/.gitignore
DELETED
data/Gemfile
DELETED
data/Rakefile
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
require 'bundler/gem_tasks'
|
data/griddo.gemspec
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require 'griddo/version'
|
5
|
-
|
6
|
-
Gem::Specification.new do |spec|
|
7
|
-
spec.name = "griddo"
|
8
|
-
spec.version = Griddo::VERSION
|
9
|
-
spec.authors = ["Per Sandström"]
|
10
|
-
spec.email = ["per@helloper.com"]
|
11
|
-
spec.description = %q{Griddo is a collection of SCSS mixins that helps you build grids.}
|
12
|
-
spec.summary = %q{It handles grids and only grids. No responsive/breakpointy stuff. You'll have to provide that by yourself. Hello separation of concerns.}
|
13
|
-
spec.homepage = "https://github.com/kollegorna/griddo"
|
14
|
-
spec.license = "MIT and GPL v2"
|
15
|
-
|
16
|
-
spec.files = `git ls-files`.split($/)
|
17
|
-
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
-
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
-
spec.require_paths = ["lib"]
|
20
|
-
|
21
|
-
spec.add_dependency "sass", [">= 3.2.0"]
|
22
|
-
spec.add_development_dependency "bundler", "~> 1.3"
|
23
|
-
spec.add_development_dependency "rake"
|
24
|
-
end
|
data/lib/griddo/engine.rb
DELETED
data/lib/griddo/version.rb
DELETED