shelves 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/shelves.rb +2 -4
- data/lib/shelves/extensions/sprockets.rb +2 -8
- data/lib/shelves/version.rb +1 -1
- data/scss/shelves/_functions.scss +7 -7
- data/scss/shelves/mixins/_base.scss +3 -3
- data/scss/shelves/mixins/_generators.scss +4 -4
- data/scss/shelves/mixins/_modifiers.scss +4 -4
- metadata +47 -82
data/lib/shelves.rb
CHANGED
@@ -12,12 +12,10 @@ module Shelves
|
|
12
12
|
end
|
13
13
|
end
|
14
14
|
|
15
|
-
if defined?
|
15
|
+
if defined?(::Rails)
|
16
16
|
require 'shelves/extensions/rails'
|
17
|
-
elsif defined?
|
17
|
+
elsif defined?(::Sprockets) && Sprockets.respond_to?(:append_path)
|
18
18
|
require 'shelves/extensions/sprockets'
|
19
|
-
elsif defined? ::Sprockets && Sprockets.respond_to?(:append_path)
|
20
|
-
Sprockets.append_path Shelves.stylesheets_path
|
21
19
|
else
|
22
20
|
require 'shelves/extensions/compass'
|
23
21
|
end
|
data/lib/shelves/version.rb
CHANGED
@@ -10,11 +10,11 @@
|
|
10
10
|
// Defaults to the value of $shelves-gutter.
|
11
11
|
//
|
12
12
|
@function column-width(
|
13
|
-
$context:
|
13
|
+
$context: false,
|
14
14
|
$total: $shelves-columns,
|
15
15
|
$gutter: $shelves-gutter
|
16
16
|
) {
|
17
|
-
@if
|
17
|
+
@if $context == false {
|
18
18
|
$context: $total;
|
19
19
|
}
|
20
20
|
|
@@ -43,11 +43,11 @@
|
|
43
43
|
// Defaults to the value of $shelves-gutter.
|
44
44
|
//
|
45
45
|
@function column-gutter(
|
46
|
-
$context:
|
46
|
+
$context: false,
|
47
47
|
$total: $shelves-columns,
|
48
48
|
$gutter: $shelves-gutter
|
49
49
|
) {
|
50
|
-
@if
|
50
|
+
@if $context == false {
|
51
51
|
$context: $total;
|
52
52
|
}
|
53
53
|
|
@@ -77,11 +77,11 @@
|
|
77
77
|
//
|
78
78
|
@function columns-width(
|
79
79
|
$n,
|
80
|
-
$context:
|
80
|
+
$context: false,
|
81
81
|
$total: $shelves-columns,
|
82
82
|
$gutter: $shelves-gutter
|
83
83
|
) {
|
84
|
-
@if
|
84
|
+
@if $context == false or $context > $total {
|
85
85
|
$context: $total;
|
86
86
|
}
|
87
87
|
|
@@ -113,7 +113,7 @@
|
|
113
113
|
//
|
114
114
|
@function columns-distance(
|
115
115
|
$n,
|
116
|
-
$context:
|
116
|
+
$context: false,
|
117
117
|
$total: $shelves-columns,
|
118
118
|
$gutter: $shelves-gutter
|
119
119
|
) {
|
@@ -71,7 +71,7 @@
|
|
71
71
|
//
|
72
72
|
@mixin column(
|
73
73
|
$n,
|
74
|
-
$context:
|
74
|
+
$context: false,
|
75
75
|
$total: $shelves-columns,
|
76
76
|
$gutter: $shelves-gutter,
|
77
77
|
$reset-if-tablet: true,
|
@@ -126,7 +126,7 @@
|
|
126
126
|
//
|
127
127
|
@mixin columns-width(
|
128
128
|
$n,
|
129
|
-
$context:
|
129
|
+
$context: false,
|
130
130
|
$total: $shelves-columns,
|
131
131
|
$gutter: $shelves-gutter
|
132
132
|
) {
|
@@ -145,7 +145,7 @@
|
|
145
145
|
// Defaults to true.
|
146
146
|
//
|
147
147
|
@mixin column-gutter(
|
148
|
-
$context:
|
148
|
+
$context: false,
|
149
149
|
$total: $shelves-columns,
|
150
150
|
$gutter: $shelves-gutter,
|
151
151
|
$reset-first: true
|
@@ -203,8 +203,8 @@
|
|
203
203
|
@mixin shelves-columns(
|
204
204
|
$column-name: $shelves-column-name,
|
205
205
|
$start: 1,
|
206
|
-
$end:
|
207
|
-
$context:
|
206
|
+
$end: false,
|
207
|
+
$context: false,
|
208
208
|
$total: $shelves-columns,
|
209
209
|
$gutter: $shelves-gutter,
|
210
210
|
$prefixes: true,
|
@@ -212,10 +212,10 @@
|
|
212
212
|
$pushes: true,
|
213
213
|
$pulls: true
|
214
214
|
) {
|
215
|
-
@if
|
215
|
+
@if $context == false or $context > $total {
|
216
216
|
$context: $total;
|
217
217
|
}
|
218
|
-
@if
|
218
|
+
@if $end == false or $end > $context {
|
219
219
|
$end: $context;
|
220
220
|
}
|
221
221
|
@for $i from $start to $end {
|
@@ -11,7 +11,7 @@
|
|
11
11
|
//
|
12
12
|
@mixin column-prefix(
|
13
13
|
$n,
|
14
|
-
$context:
|
14
|
+
$context: false,
|
15
15
|
$total: $shelves-columns,
|
16
16
|
$gutter: $shelves-gutter
|
17
17
|
) {
|
@@ -31,7 +31,7 @@
|
|
31
31
|
//
|
32
32
|
@mixin column-suffix(
|
33
33
|
$n,
|
34
|
-
$context:
|
34
|
+
$context: false,
|
35
35
|
$total: $shelves-columns,
|
36
36
|
$gutter: $shelves-gutter
|
37
37
|
) {
|
@@ -51,7 +51,7 @@
|
|
51
51
|
//
|
52
52
|
@mixin column-push(
|
53
53
|
$n,
|
54
|
-
$context:
|
54
|
+
$context: false,
|
55
55
|
$total: $shelves-columns,
|
56
56
|
$gutter: $shelves-gutter
|
57
57
|
) {
|
@@ -71,7 +71,7 @@
|
|
71
71
|
//
|
72
72
|
@mixin column-pull(
|
73
73
|
$n,
|
74
|
-
$context:
|
74
|
+
$context: false,
|
75
75
|
$total: $shelves-columns,
|
76
76
|
$gutter: $shelves-gutter
|
77
77
|
) {
|
metadata
CHANGED
@@ -1,92 +1,67 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: shelves
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.1
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 2
|
9
|
-
- 0
|
10
|
-
version: 0.2.0
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Pete Browne
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-04-21 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
21
15
|
name: sass
|
22
|
-
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: &70282995955920 !ruby/object:Gem::Requirement
|
24
17
|
none: false
|
25
|
-
requirements:
|
18
|
+
requirements:
|
26
19
|
- - ~>
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
|
29
|
-
segments:
|
30
|
-
- 3
|
31
|
-
- 1
|
32
|
-
version: "3.1"
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '3.1'
|
33
22
|
type: :runtime
|
34
|
-
version_requirements: *id001
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
name: compass
|
37
23
|
prerelease: false
|
38
|
-
|
24
|
+
version_requirements: *70282995955920
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: compass
|
27
|
+
requirement: &70282995952420 !ruby/object:Gem::Requirement
|
39
28
|
none: false
|
40
|
-
requirements:
|
29
|
+
requirements:
|
41
30
|
- - ~>
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
|
44
|
-
segments:
|
45
|
-
- 0
|
46
|
-
- 12
|
47
|
-
version: "0.12"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0.12'
|
48
33
|
type: :runtime
|
49
|
-
version_requirements: *id002
|
50
|
-
- !ruby/object:Gem::Dependency
|
51
|
-
name: sprockets
|
52
34
|
prerelease: false
|
53
|
-
|
35
|
+
version_requirements: *70282995952420
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: sprockets
|
38
|
+
requirement: &70282995949260 !ruby/object:Gem::Requirement
|
54
39
|
none: false
|
55
|
-
requirements:
|
40
|
+
requirements:
|
56
41
|
- - ~>
|
57
|
-
- !ruby/object:Gem::Version
|
58
|
-
|
59
|
-
segments:
|
60
|
-
- 2
|
61
|
-
- 3
|
62
|
-
version: "2.3"
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '2.3'
|
63
44
|
type: :development
|
64
|
-
version_requirements: *id003
|
65
|
-
- !ruby/object:Gem::Dependency
|
66
|
-
name: sprockets-sass
|
67
45
|
prerelease: false
|
68
|
-
|
46
|
+
version_requirements: *70282995949260
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: sprockets-sass
|
49
|
+
requirement: &70282995946200 !ruby/object:Gem::Requirement
|
69
50
|
none: false
|
70
|
-
requirements:
|
51
|
+
requirements:
|
71
52
|
- - ~>
|
72
|
-
- !ruby/object:Gem::Version
|
73
|
-
|
74
|
-
segments:
|
75
|
-
- 0
|
76
|
-
- 7
|
77
|
-
version: "0.7"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0.7'
|
78
55
|
type: :development
|
79
|
-
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *70282995946200
|
80
58
|
description: The only responsive, fluid CSS grid with infinitely nestable columns.
|
81
|
-
email:
|
59
|
+
email:
|
82
60
|
- me@petebrowne.com
|
83
61
|
executables: []
|
84
|
-
|
85
62
|
extensions: []
|
86
|
-
|
87
63
|
extra_rdoc_files: []
|
88
|
-
|
89
|
-
files:
|
64
|
+
files:
|
90
65
|
- .gitignore
|
91
66
|
- Gemfile
|
92
67
|
- LICENSE
|
@@ -109,36 +84,26 @@ files:
|
|
109
84
|
- shelves.gemspec
|
110
85
|
homepage: https://github.com/petebrowne/shelves
|
111
86
|
licenses: []
|
112
|
-
|
113
87
|
post_install_message:
|
114
88
|
rdoc_options: []
|
115
|
-
|
116
|
-
require_paths:
|
89
|
+
require_paths:
|
117
90
|
- lib
|
118
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
91
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
119
92
|
none: false
|
120
|
-
requirements:
|
121
|
-
- -
|
122
|
-
- !ruby/object:Gem::Version
|
123
|
-
|
124
|
-
|
125
|
-
- 0
|
126
|
-
version: "0"
|
127
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ! '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
128
98
|
none: false
|
129
|
-
requirements:
|
130
|
-
- -
|
131
|
-
- !ruby/object:Gem::Version
|
132
|
-
|
133
|
-
segments:
|
134
|
-
- 0
|
135
|
-
version: "0"
|
99
|
+
requirements:
|
100
|
+
- - ! '>='
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0'
|
136
103
|
requirements: []
|
137
|
-
|
138
104
|
rubyforge_project:
|
139
105
|
rubygems_version: 1.8.11
|
140
106
|
signing_key:
|
141
107
|
specification_version: 3
|
142
108
|
summary: The only responsive, fluid CSS grid with infinitely nestable columns.
|
143
109
|
test_files: []
|
144
|
-
|