simplegrid 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: d434a6249025d45b5f2fd8bf1415bb4cff202680
4
+ data.tar.gz: 40a1f62334f54e6a3bf151d1155942b88bf6729f
5
+ SHA512:
6
+ metadata.gz: 80bcbc2b9ca7f2725401a3bb8653bde6bf3bcf3fa92e9101fe8adad5552edddcae387ab359962ba2f45ce57e3ddc361407ef41b7965fa61980c03ed208cd4d7f
7
+ data.tar.gz: 4fa2eaa801f8438c719cc5b0e23f7ed6a3d2f2e0fcda1b4396c4cf1a2b7c2844de5bb17cc0cde4ed4165ba10f6efca8890c0a731f57d9b2c1822ec9fd1477726
@@ -0,0 +1,22 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
18
+ *.bundle
19
+ *.so
20
+ *.o
21
+ *.a
22
+ mkmf.log
data/Gemfile ADDED
@@ -0,0 +1,2 @@
1
+ source 'https://rubygems.org'
2
+ gemspec
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 Matte Noble
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,25 @@
1
+ # Simplegrid
2
+
3
+ Gemification of [SimpleGrid](http://thisisdallas.github.io/Simple-Grid/)
4
+
5
+ ## Installation
6
+
7
+ In your Gemfile add the `simplegrid` dependency:
8
+
9
+ ```ruby
10
+ gem 'simplegrid'
11
+ ```
12
+
13
+ `bundle install` and restart your application.
14
+
15
+ Then, import the CSS into `app/assets/stylesheets/application.css`:
16
+
17
+ ```
18
+ *= require simplegrid
19
+ ```
20
+
21
+ ## Usage
22
+
23
+ See [http://thisisdallas.github.io/Simple-Grid/](http://thisisdallas.github.io/Simple-Grid/) for how to use
24
+ SimpleGrid.
25
+
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+
@@ -0,0 +1,289 @@
1
+ /*
2
+ Simple Grid
3
+ Learn More - http://dallasbass.com/simple-grid-a-lightweight-responsive-css-grid/
4
+ Project Page - http://thisisdallas.github.com/Simple-Grid/
5
+ Author - Dallas Bass
6
+ Site - dallasbass.com
7
+ */
8
+
9
+ *, *:after, *:before {
10
+ -webkit-box-sizing: border-box;
11
+ -moz-box-sizing: border-box;
12
+ box-sizing: border-box;
13
+ }
14
+
15
+ body {
16
+ margin: 0px;
17
+ }
18
+
19
+ [class*='col-'] {
20
+ float: left;
21
+ padding-right: 20px; /* column-space */
22
+ }
23
+
24
+ .grid {
25
+ width: 100%;
26
+ max-width: 1140px;
27
+ min-width: 755px;
28
+ margin: 0 auto;
29
+ overflow: hidden;
30
+ }
31
+
32
+ .grid:after {
33
+ content: "";
34
+ display: table;
35
+ clear: both;
36
+ }
37
+
38
+ .grid-pad {
39
+ padding-top: 20px;
40
+ padding-left: 20px; /* grid-space to left */
41
+ padding-right: 0px; /* grid-space to right: (grid-space-left - column-space) e.g. 20px-20px=0 */
42
+ }
43
+
44
+ .push-right {
45
+ float: right;
46
+ }
47
+
48
+ /* Content Columns */
49
+
50
+ .col-1-1 {
51
+ width: 100%;
52
+ }
53
+ .col-2-3, .col-8-12 {
54
+ width: 66.66%;
55
+ }
56
+
57
+ .col-1-2, .col-6-12 {
58
+ width: 50%;
59
+ }
60
+
61
+ .col-1-3, .col-4-12 {
62
+ width: 33.33%;
63
+ }
64
+
65
+ .col-1-4, .col-3-12 {
66
+ width: 25%;
67
+ }
68
+
69
+ .col-1-5 {
70
+ width: 20%;
71
+ }
72
+
73
+ .col-1-6, .col-2-12 {
74
+ width: 16.667%;
75
+ }
76
+
77
+ .col-1-7 {
78
+ width: 14.28%;
79
+ }
80
+
81
+ .col-1-8 {
82
+ width: 12.5%;
83
+ }
84
+
85
+ .col-1-9 {
86
+ width: 11.1%;
87
+ }
88
+
89
+ .col-1-10 {
90
+ width: 10%;
91
+ }
92
+
93
+ .col-1-11 {
94
+ width: 9.09%;
95
+ }
96
+
97
+ .col-1-12 {
98
+ width: 8.33%
99
+ }
100
+
101
+ /* Layout Columns */
102
+
103
+ .col-11-12 {
104
+ width: 91.66%
105
+ }
106
+
107
+ .col-10-12 {
108
+ width: 83.333%;
109
+ }
110
+
111
+ .col-9-12 {
112
+ width: 75%;
113
+ }
114
+
115
+ .col-5-12 {
116
+ width: 41.66%;
117
+ }
118
+
119
+ .col-7-12 {
120
+ width: 58.33%
121
+ }
122
+
123
+
124
+
125
+ /* Pushing blocks */
126
+
127
+ .push-2-3, .push-8-12 {
128
+ margin-left: 66.66%;
129
+ }
130
+
131
+ .push-1-2, .push-6-12 {
132
+ margin-left: 50%;
133
+ }
134
+
135
+ .push-1-3, .push-4-12 {
136
+ margin-left: 33.33%;
137
+ }
138
+
139
+ .push-1-4, .push-3-12 {
140
+ margin-left: 25%;
141
+ }
142
+
143
+ .push-1-5 {
144
+ margin-left: 20%;
145
+ }
146
+
147
+ .push-1-6, .push-2-12 {
148
+ margin-left: 16.667%;
149
+ }
150
+
151
+ .push-1-7 {
152
+ margin-left: 14.28%;
153
+ }
154
+
155
+ .push-1-8 {
156
+ margin-left: 12.5%;
157
+ }
158
+
159
+ .push-1-9 {
160
+ margin-left: 11.1%;
161
+ }
162
+
163
+ .push-1-10 {
164
+ margin-left: 10%;
165
+ }
166
+
167
+ .push-1-11 {
168
+ margin-left: 9.09%;
169
+ }
170
+
171
+ .push-1-12 {
172
+ margin-left: 8.33%
173
+ }
174
+
175
+
176
+ @media handheld, only screen and (max-width: 767px) {
177
+ .grid {
178
+ width: 100%;
179
+ min-width: 0;
180
+ margin-left: 0px;
181
+ margin-right: 0px;
182
+ padding-left: 20px; /* grid-space to left */
183
+ padding-right: 10px; /* grid-space to right: (grid-space-left - column-space) e.g. 20px-10px=10px */
184
+ }
185
+
186
+ [class*='col-'] {
187
+ width: auto;
188
+ float: none;
189
+ margin-left: 0px;
190
+ margin-right: 0px;
191
+ margin-top: 10px;
192
+ margin-bottom: 10px;
193
+ padding-left: 0px;
194
+ padding-right: 10px; /* column-space */
195
+ }
196
+
197
+
198
+ /* Mobile Layout */
199
+
200
+ [class*='mobile-col-'] {
201
+ float: left;
202
+ margin-left: 0px;
203
+ margin-right: 0px;
204
+ margin-top: 0px;
205
+ margin-bottom: 10px;
206
+ padding-left: 0px;
207
+ padding-right: 10px; /* column-space */
208
+ padding-bottom: 0px;
209
+ }
210
+
211
+ .mobile-col-1-1 {
212
+ width: 100%;
213
+ }
214
+ .mobile-col-2-3, .mobile-col-8-12 {
215
+ width: 66.66%;
216
+ }
217
+
218
+ .mobile-col-1-2, .mobile-col-6-12 {
219
+ width: 50%;
220
+ }
221
+
222
+ .mobile-col-1-3, .mobile-col-4-12 {
223
+ width: 33.33%;
224
+ }
225
+
226
+ .mobile-col-1-4, .mobile-col-3-12 {
227
+ width: 25%;
228
+ }
229
+
230
+ .mobile-col-1-5 {
231
+ width: 20%;
232
+ }
233
+
234
+ .mobile-col-1-6, .mobile-col-2-12 {
235
+ width: 16.667%;
236
+ }
237
+
238
+ .mobile-col-1-7 {
239
+ width: 14.28%;
240
+ }
241
+
242
+ .mobile-col-1-8 {
243
+ width: 12.5%;
244
+ }
245
+
246
+ .mobile-col-1-9 {
247
+ width: 11.1%;
248
+ }
249
+
250
+ .mobile-col-1-10 {
251
+ width: 10%;
252
+ }
253
+
254
+ .mobile-col-1-11 {
255
+ width: 9.09%;
256
+ }
257
+
258
+ .mobile-col-1-12 {
259
+ width: 8.33%
260
+ }
261
+
262
+ /* Layout Columns */
263
+
264
+ .mobile-col-11-12 {
265
+ width: 91.66%
266
+ }
267
+
268
+ .mobile-col-10-12 {
269
+ width: 83.333%;
270
+ }
271
+
272
+ .mobile-col-9-12 {
273
+ width: 75%;
274
+ }
275
+
276
+ .mobile-col-5-12 {
277
+ width: 41.66%;
278
+ }
279
+
280
+ .mobile-col-7-12 {
281
+ width: 58.33%
282
+ }
283
+
284
+ .hide-on-mobile {
285
+ display: none !important;
286
+ width: 0;
287
+ height: 0;
288
+ }
289
+ }
@@ -0,0 +1,9 @@
1
+ require "simplegrid/version"
2
+
3
+ module Simplegrid
4
+ class Engine < ::Rails::Engine
5
+ initializer :assets do |c|
6
+ Rails.application.config.assets.precompile += %w[simplegrid.css]
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,3 @@
1
+ module Simplegrid
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,24 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'simplegrid/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "simplegrid"
8
+ spec.version = Simplegrid::VERSION
9
+ spec.authors = ["Matte Noble"]
10
+ spec.email = ["me@mattenoble.com"]
11
+ spec.summary = %q{Gemified SimpleGrid}
12
+ spec.description = %q{Gemified SimpleGrid: http://thisisdallas.github.io/Simple-Grid/}
13
+ spec.license = "MIT"
14
+
15
+ spec.files = `git ls-files -z`.split("\x0")
16
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
+ spec.require_paths = ["lib"]
19
+
20
+ spec.add_dependency "rails", "~> 4.0"
21
+
22
+ spec.add_development_dependency "bundler", "~> 1.6"
23
+ spec.add_development_dependency "rake"
24
+ end
metadata ADDED
@@ -0,0 +1,95 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: simplegrid
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Matte Noble
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-09-13 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '4.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '4.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.6'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.6'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ description: 'Gemified SimpleGrid: http://thisisdallas.github.io/Simple-Grid/'
56
+ email:
57
+ - me@mattenoble.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - ".gitignore"
63
+ - Gemfile
64
+ - LICENSE.txt
65
+ - README.md
66
+ - Rakefile
67
+ - app/assets/stylesheets/simplegrid.css
68
+ - lib/simplegrid.rb
69
+ - lib/simplegrid/version.rb
70
+ - simplegrid.gemspec
71
+ homepage:
72
+ licenses:
73
+ - MIT
74
+ metadata: {}
75
+ post_install_message:
76
+ rdoc_options: []
77
+ require_paths:
78
+ - lib
79
+ required_ruby_version: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
84
+ required_rubygems_version: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ requirements: []
90
+ rubyforge_project:
91
+ rubygems_version: 2.2.2
92
+ signing_key:
93
+ specification_version: 4
94
+ summary: Gemified SimpleGrid
95
+ test_files: []