mcgriddle 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: ca560d1211d0c0b2b584a979734bd490ee7528cf
4
+ data.tar.gz: 8159152e083fbf0b515115d51606ebdba7ce4cfe
5
+ SHA512:
6
+ metadata.gz: 989d3fa99a8a56854450bed0adc398ddd9f568cd736daf28be6de8980d7dda978a35956b44d6dbba8361fe3a9125c32eff9f5ee1c62ca77ff05008c16094996c
7
+ data.tar.gz: e766fbac848fa23b45cc373ffb3f7747ddae2a151a0b46d20b50e67a1b6428978518f8924c584c49429f742975702f9f2a2f9b89b1e7fcbda69dd556fb25fc1e
@@ -0,0 +1,302 @@
1
+ {
2
+ "exclude": [
3
+ ".git/**",
4
+ "node_modules/**",
5
+ "bower_components/**"
6
+ ],
7
+ "always-semicolon": true,
8
+ "color-case": "lower",
9
+ "color-shorthand": true,
10
+ "element-case": "lower",
11
+ "eof-newline": true,
12
+ "leading-zero": false,
13
+ "remove-empty-rulesets": true,
14
+ "unitless-zero": true,
15
+ "sort-order-fallback": "abc",
16
+ "sort-order": [
17
+ "font",
18
+ "font-family",
19
+ "font-size",
20
+ "font-weight",
21
+ "font-style",
22
+ "font-variant",
23
+ "font-size-adjust",
24
+ "font-stretch",
25
+ "font-effect",
26
+ "font-emphasize",
27
+ "font-emphasize-position",
28
+ "font-emphasize-style",
29
+ "font-smooth",
30
+ "line-height"
31
+ "position",
32
+ "z-index",
33
+ "top",
34
+ "right",
35
+ "bottom",
36
+ "left"
37
+ "display",
38
+ "visibility",
39
+ "float",
40
+ "clear",
41
+ "overflow",
42
+ "overflow-x",
43
+ "overflow-y",
44
+ "-ms-overflow-x",
45
+ "-ms-overflow-y",
46
+ "clip",
47
+ "zoom",
48
+ "flex-direction",
49
+ "flex-order",
50
+ "flex-pack",
51
+ "flex-align"
52
+ "-webkit-box-sizing",
53
+ "-moz-box-sizing",
54
+ "box-sizing",
55
+ "width",
56
+ "min-width",
57
+ "max-width",
58
+ "height",
59
+ "min-height",
60
+ "max-height",
61
+ "margin",
62
+ "margin-top",
63
+ "margin-right",
64
+ "margin-bottom",
65
+ "margin-left",
66
+ "padding",
67
+ "padding-top",
68
+ "padding-right",
69
+ "padding-bottom",
70
+ "padding-left"
71
+ "table-layout",
72
+ "empty-cells",
73
+ "caption-side",
74
+ "border-spacing",
75
+ "border-collapse",
76
+ "list-style",
77
+ "list-style-position",
78
+ "list-style-type",
79
+ "list-style-image"
80
+ "content",
81
+ "quotes",
82
+ "counter-reset",
83
+ "counter-increment",
84
+ "resize",
85
+ "cursor",
86
+ "-webkit-user-select",
87
+ "-moz-user-select",
88
+ "-ms-user-select",
89
+ "user-select",
90
+ "nav-index",
91
+ "nav-up",
92
+ "nav-right",
93
+ "nav-down",
94
+ "nav-left",
95
+ "-webkit-transition",
96
+ "-moz-transition",
97
+ "-ms-transition",
98
+ "-o-transition",
99
+ "transition",
100
+ "-webkit-transition-delay",
101
+ "-moz-transition-delay",
102
+ "-ms-transition-delay",
103
+ "-o-transition-delay",
104
+ "transition-delay",
105
+ "-webkit-transition-timing-function",
106
+ "-moz-transition-timing-function",
107
+ "-ms-transition-timing-function",
108
+ "-o-transition-timing-function",
109
+ "transition-timing-function",
110
+ "-webkit-transition-duration",
111
+ "-moz-transition-duration",
112
+ "-ms-transition-duration",
113
+ "-o-transition-duration",
114
+ "transition-duration",
115
+ "-webkit-transition-property",
116
+ "-moz-transition-property",
117
+ "-ms-transition-property",
118
+ "-o-transition-property",
119
+ "transition-property",
120
+ "-webkit-transform",
121
+ "-moz-transform",
122
+ "-ms-transform",
123
+ "-o-transform",
124
+ "transform",
125
+ "-webkit-transform-origin",
126
+ "-moz-transform-origin",
127
+ "-ms-transform-origin",
128
+ "-o-transform-origin",
129
+ "transform-origin",
130
+ "-webkit-animation",
131
+ "-moz-animation",
132
+ "-ms-animation",
133
+ "-o-animation",
134
+ "animation",
135
+ "-webkit-animation-name",
136
+ "-moz-animation-name",
137
+ "-ms-animation-name",
138
+ "-o-animation-name",
139
+ "animation-name",
140
+ "-webkit-animation-duration",
141
+ "-moz-animation-duration",
142
+ "-ms-animation-duration",
143
+ "-o-animation-duration",
144
+ "animation-duration",
145
+ "-webkit-animation-play-state",
146
+ "-moz-animation-play-state",
147
+ "-ms-animation-play-state",
148
+ "-o-animation-play-state",
149
+ "animation-play-state",
150
+ "-webkit-animation-timing-function",
151
+ "-moz-animation-timing-function",
152
+ "-ms-animation-timing-function",
153
+ "-o-animation-timing-function",
154
+ "animation-timing-function",
155
+ "-webkit-animation-delay",
156
+ "-moz-animation-delay",
157
+ "-ms-animation-delay",
158
+ "-o-animation-delay",
159
+ "animation-delay",
160
+ "-webkit-animation-iteration-count",
161
+ "-moz-animation-iteration-count",
162
+ "-ms-animation-iteration-count",
163
+ "-o-animation-iteration-count",
164
+ "animation-iteration-count",
165
+ "-webkit-animation-direction",
166
+ "-moz-animation-direction",
167
+ "-ms-animation-direction",
168
+ "-o-animation-direction",
169
+ "animation-direction",
170
+ "text-align",
171
+ "-webkit-text-align-last",
172
+ "-moz-text-align-last",
173
+ "-ms-text-align-last",
174
+ "text-align-last",
175
+ "vertical-align",
176
+ "white-space",
177
+ "text-decoration",
178
+ "text-emphasis",
179
+ "text-emphasis-color",
180
+ "text-emphasis-style",
181
+ "text-emphasis-position",
182
+ "text-indent",
183
+ "-ms-text-justify",
184
+ "text-justify",
185
+ "letter-spacing",
186
+ "word-spacing",
187
+ "-ms-writing-mode",
188
+ "text-outline",
189
+ "text-transform",
190
+ "text-wrap",
191
+ "text-overflow",
192
+ "-ms-text-overflow",
193
+ "text-overflow-ellipsis",
194
+ "text-overflow-mode",
195
+ "-ms-word-wrap",
196
+ "word-wrap",
197
+ "word-break",
198
+ "-ms-word-break",
199
+ "-moz-tab-size",
200
+ "-o-tab-size",
201
+ "tab-size",
202
+ "-webkit-hyphens",
203
+ "-moz-hyphens",
204
+ "hyphens",
205
+ "pointer-events"
206
+ "opacity",
207
+ "filter:progid:DXImageTransform.Microsoft.Alpha(Opacity",
208
+ "-ms-filter:\\'progid:DXImageTransform.Microsoft.Alpha",
209
+ "-ms-interpolation-mode",
210
+ "color",
211
+ "border",
212
+ "border-width",
213
+ "border-style",
214
+ "border-color",
215
+ "border-top",
216
+ "border-top-width",
217
+ "border-top-style",
218
+ "border-top-color",
219
+ "border-right",
220
+ "border-right-width",
221
+ "border-right-style",
222
+ "border-right-color",
223
+ "border-bottom",
224
+ "border-bottom-width",
225
+ "border-bottom-style",
226
+ "border-bottom-color",
227
+ "border-left",
228
+ "border-left-width",
229
+ "border-left-style",
230
+ "border-left-color",
231
+ "-webkit-border-radius",
232
+ "-moz-border-radius",
233
+ "border-radius",
234
+ "-webkit-border-top-left-radius",
235
+ "-moz-border-radius-topleft",
236
+ "border-top-left-radius",
237
+ "-webkit-border-top-right-radius",
238
+ "-moz-border-radius-topright",
239
+ "border-top-right-radius",
240
+ "-webkit-border-bottom-right-radius",
241
+ "-moz-border-radius-bottomright",
242
+ "border-bottom-right-radius",
243
+ "-webkit-border-bottom-left-radius",
244
+ "-moz-border-radius-bottomleft",
245
+ "border-bottom-left-radius",
246
+ "-webkit-border-image",
247
+ "-moz-border-image",
248
+ "-o-border-image",
249
+ "border-image",
250
+ "-webkit-border-image-source",
251
+ "-moz-border-image-source",
252
+ "-o-border-image-source",
253
+ "border-image-source",
254
+ "-webkit-border-image-slice",
255
+ "-moz-border-image-slice",
256
+ "-o-border-image-slice",
257
+ "border-image-slice",
258
+ "-webkit-border-image-width",
259
+ "-moz-border-image-width",
260
+ "-o-border-image-width",
261
+ "border-image-width",
262
+ "-webkit-border-image-outset",
263
+ "-moz-border-image-outset",
264
+ "-o-border-image-outset",
265
+ "border-image-outset",
266
+ "-webkit-border-image-repeat",
267
+ "-moz-border-image-repeat",
268
+ "-o-border-image-repeat",
269
+ "border-image-repeat",
270
+ "outline",
271
+ "outline-width",
272
+ "outline-style",
273
+ "outline-color",
274
+ "outline-offset",
275
+ "background",
276
+ "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader",
277
+ "background-color",
278
+ "background-image",
279
+ "background-repeat",
280
+ "background-attachment",
281
+ "background-position",
282
+ "background-position-x",
283
+ "-ms-background-position-x",
284
+ "background-position-y",
285
+ "-ms-background-position-y",
286
+ "-webkit-background-clip",
287
+ "-moz-background-clip",
288
+ "background-clip",
289
+ "background-origin",
290
+ "-webkit-background-size",
291
+ "-moz-background-size",
292
+ "-o-background-size",
293
+ "background-size",
294
+ "box-decoration-break",
295
+ "-webkit-box-shadow",
296
+ "-moz-box-shadow",
297
+ "box-shadow",
298
+ "filter:progid:DXImageTransform.Microsoft.gradient",
299
+ "-ms-filter:\\'progid:DXImageTransform.Microsoft.gradient",
300
+ "text-shadow"
301
+ ]
302
+ }
data/.editorconfig ADDED
@@ -0,0 +1,12 @@
1
+ root = true
2
+
3
+ [*]
4
+ charset = utf-8
5
+ end_of_line = lf
6
+ indent_size = 2
7
+ indent_style = space
8
+ insert_final_newline = true
9
+ trim_trailing_whitespace = true
10
+
11
+ [*.md]
12
+ trim_trailing_whitespace = false
data/.gitignore ADDED
@@ -0,0 +1,5 @@
1
+ *gem
2
+ .DS_Store
3
+ bower_components
4
+ node_modules
5
+ css
data/.npmignore ADDED
@@ -0,0 +1,4 @@
1
+ bower.json
2
+ Gemfile
3
+ lib/
4
+ mcgriddle.gemspec
data/CHANGELOG.md ADDED
File without changes
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,9 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Jonathan Suh <hello@jonsuh.com> (jonsuh.com)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,197 @@
1
+ # McGriddle
2
+
3
+ McGriddle is a (mostly) get-out-of-your-way Sass library designed to help you build based a grid system. Set up your grid system…
4
+
5
+ ```scss
6
+ $grid-width : 64em;
7
+ $grid-gutter : 1.875em;
8
+ $grid-columns: 12;
9
+ $grid-flexbox: false;
10
+ ```
11
+
12
+ …and you’re ready to build.
13
+
14
+ ```html
15
+ <section class="container">
16
+ <article class="article"></article>
17
+ <div class="sidebar"></div>
18
+ </section>
19
+ ```
20
+
21
+ ```scss
22
+ .container { @include container; }
23
+ .article { @include columns(8); }
24
+ .sidebar { @include columns(4, last); }
25
+ ```
26
+
27
+ ## Installation
28
+
29
+ 1. Install via [npm](https://www.npmjs.com/package/mcgriddle), yar or [Bower](http://bower.io).
30
+ ```
31
+ npm install mcgriddle
32
+
33
+ yarn add mcgriddle
34
+
35
+ bower install mcgriddle
36
+ ```
37
+
38
+ Also available as a [Ruby gem](https://rubygems.org/gems/mcgriddle) to use within your Rails application—see [below](#install-for-ruby-on-rails) for more information.
39
+
40
+ Or to manually install it, [download](https://github.com/jonsuh/mcgriddle/archive/master.zip) and unzip the source files. Then copy the files from the `_sass/mcgriddle` directory into your project.
41
+
42
+ 2. Import the `_mcgriddle.scss` file in your Sass manifest file:
43
+
44
+ ```scss
45
+ @import "mcgriddle";
46
+ ```
47
+
48
+ ### Install for Ruby on Rails
49
+
50
+ 1. Add McGriddle to your Gemfile.
51
+
52
+ ```
53
+ gem 'mcgriddle'
54
+ ```
55
+
56
+ 2. Run `bundle install`.
57
+ 3. Include McGriddle by using Sass’s native `@import`*
58
+
59
+ ```scss
60
+ // application.scss
61
+ @import "mcgriddle";
62
+ ```
63
+
64
+ \* [More information](https://blog.pivotal.io/pivotal-labs/labs/structure-your-sass-files-with-import) on why Sass’s native `@import` + why you should ditch Sprockets directives altogether.
65
+
66
+ ## Usage
67
+
68
+ First, create a settings file (`_mcgriddle-settings.scss`) and import it _before_ importing McGriddle.
69
+
70
+ ```scss
71
+ @import "mcgriddle-settings";
72
+ @import "mcgriddle";
73
+ ```
74
+
75
+ Then edit the settings file to customize/override default grid settings. The following is a list of default settings:
76
+
77
+ ```scss
78
+ $grid-width : 64em;
79
+ $grid-gutter : 1.875em;
80
+ $grid-columns : 12;
81
+ $grid-minor : 1/3;
82
+ $grid-flexbox : false;
83
+ $grid-collapse: false;
84
+ $grid-rtl : false;
85
+ ```
86
+
87
+ ---
88
+
89
+ ### Read the [documentation](https://jonsuh.com/mcgriddle) for full list and explanation of settings, mixins and functions.
90
+
91
+ ---
92
+
93
+ Features:
94
+
95
+ 1. [Containers](#container)
96
+ 2. [Columns](#columns)
97
+ 3. [Collapse gutters](#grid-collapse)
98
+ 4. [Flexbox support](#grid-flexbox)
99
+ 5. [Right-to-left support](#grid-rtl)
100
+
101
+ #### `container()`
102
+
103
+ You’ll need a container to wrap the columns in.
104
+
105
+ ```scss
106
+ .container {
107
+ @include container;
108
+ }
109
+
110
+ // Container with no max width ($grid-width)
111
+ .container--full {
112
+ @include container(false);
113
+ }
114
+ ```
115
+
116
+ #### `columns()`
117
+
118
+ Then use `columns()` on an element to specify how many columns wide it should be.
119
+
120
+ ```scss
121
+ .column {
122
+ @include columns(8);
123
+ }
124
+
125
+ .column-decimal {
126
+ @include columns(5.6);
127
+ }
128
+
129
+ // Last column
130
+ .column-last {
131
+ @include columns(4, last);
132
+ }
133
+
134
+ // Centered column
135
+ .column-center {
136
+ @include columns(8, center);
137
+ }
138
+
139
+ // Relative columns
140
+ .column-4-9 {
141
+ @include columns(4 of 9);
142
+ }
143
+ .column-5-9 {
144
+ @include columns(5 of 9, last);
145
+ }
146
+ ```
147
+
148
+ Nest columns by wrapping nested columns in a container.
149
+
150
+ ```html
151
+ <div class="container">
152
+ <div class="columns-9">
153
+ <div class="container">
154
+ <div class="columns-6"></div>
155
+ <div class="columns-6"></div>
156
+ </div>
157
+ </div>
158
+ <div class="columns-3"></div>
159
+ </div>
160
+ ```
161
+
162
+ Push an element however many columns with `shift()`.
163
+
164
+ ```scss
165
+ // Shift a column over 2 columns
166
+ .column {
167
+ @include columns(6);
168
+ @include shift(2);
169
+ }
170
+ ```
171
+
172
+ #### `$grid-collapse`
173
+
174
+ Collapse gutters: `$grid-collapse: true`. (Default is `false`)
175
+
176
+ ```scss
177
+ $grid-collapse: true;
178
+ .container { @include container; }
179
+ ```
180
+
181
+ #### `$grid-flexbox`
182
+
183
+ Flexbox support (as opposed to floats): `$grid-flexbox: true`. (Default is `false`)
184
+
185
+ ```scss
186
+ $grid-flexbox: true;
187
+ .container { @include container; }
188
+ ```
189
+
190
+ #### `$grid-rtl`
191
+
192
+ Right-to-left support for RTL languages: `$grid-rtl: true`. (Default is `false`)
193
+
194
+ ```scss
195
+ $grid-rtl: true;
196
+ .container { @include container; }
197
+ ```