neat 1.7.0 → 4.0.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 +5 -5
- data/.circleci/config.yml +34 -0
- data/.github/ISSUE_TEMPLATE.md +22 -0
- data/.github/PULL_REQUEST_TEMPLATE.md +8 -0
- data/.gitignore +4 -2
- data/.hound.yml +5 -0
- data/.npmignore +20 -0
- data/.scss-lint.yml +239 -0
- data/.tool-versions +2 -0
- data/CHANGELOG.md +388 -0
- data/CODE_OF_CONDUCT.md +6 -0
- data/CONTRIBUTING.md +16 -1
- data/Gemfile +1 -2
- data/Gulpfile.js +42 -0
- data/{LICENSE → LICENSE.md} +8 -10
- data/README.md +138 -214
- data/RELEASING.md +27 -0
- data/Rakefile +3 -17
- data/bin/neat +2 -2
- data/contrib/base/_variables.scss +8 -0
- data/contrib/index.html +90 -0
- data/contrib/patterns/_box.scss +11 -0
- data/contrib/patterns/_global.scss +32 -0
- data/contrib/patterns/_grid-collapse.scss +3 -0
- data/contrib/patterns/_grid-media.scss +36 -0
- data/contrib/patterns/_grid-nested.scss +12 -0
- data/contrib/patterns/_grid-push.scss +7 -0
- data/contrib/patterns/_grid-shift.scss +7 -0
- data/contrib/patterns/_grid-visual.scss +3 -0
- data/contrib/patterns/_grid.scss +39 -0
- data/contrib/styles.scss +13 -0
- data/core/_neat.scss +26 -0
- data/core/neat/functions/_neat-append-grid-visual.scss +21 -0
- data/core/neat/functions/_neat-column-default.scss +23 -0
- data/core/neat/functions/_neat-column-ratio.scss +24 -0
- data/core/neat/functions/_neat-column-width.scss +25 -0
- data/core/neat/functions/_neat-float-direction.scss +22 -0
- data/core/neat/functions/_neat-merge-defaults.scss +23 -0
- data/core/neat/functions/_neat-opposite-direction.scss +22 -0
- data/core/neat/functions/_neat-parse-columns.scss +22 -0
- data/core/neat/functions/_neat-parse-media.scss +20 -0
- data/core/neat/functions/_retrieve-neat-settings.scss +19 -0
- data/core/neat/mixins/_grid-collapse.scss +35 -0
- data/core/neat/mixins/_grid-column.scss +39 -0
- data/core/neat/mixins/_grid-container.scss +31 -0
- data/core/neat/mixins/_grid-media.scss +88 -0
- data/core/neat/mixins/_grid-push.scss +37 -0
- data/core/neat/mixins/_grid-shift.scss +36 -0
- data/core/neat/mixins/_grid-visual.scss +41 -0
- data/core/neat/settings/_settings.scss +74 -0
- data/eyeglass-exports.js +7 -0
- data/index.js +7 -0
- data/lib/neat/generator.rb +43 -26
- data/lib/neat/version.rb +1 -1
- data/lib/neat.rb +6 -11
- data/neat.gemspec +26 -31
- data/package-lock.json +5960 -0
- data/package.json +47 -0
- data/spec/.keep +0 -0
- data/spec/fixtures/_setup.scss +1 -0
- data/spec/fixtures/functions/neat-column-default.scss +22 -0
- data/spec/fixtures/functions/neat-column-width.scss +30 -0
- data/spec/fixtures/functions/neat-float-direction.scss +17 -0
- data/spec/fixtures/functions/neat-opposite-direction.scss +17 -0
- data/spec/fixtures/functions/neat-parse-media.scss +9 -0
- data/spec/fixtures/functions/retrieve-neat-settings.scss +22 -0
- data/spec/fixtures/mixins/grid-collapse.scss +14 -0
- data/spec/fixtures/mixins/grid-column.scss +57 -0
- data/spec/fixtures/mixins/grid-container.scss +5 -0
- data/spec/fixtures/mixins/grid-media.scss +45 -0
- data/spec/fixtures/mixins/grid-push.scss +38 -0
- data/spec/fixtures/mixins/grid-shift.scss +38 -0
- data/spec/neat/functions/neat_column_default_spec.rb +35 -0
- data/spec/neat/functions/neat_column_width_spec.rb +47 -0
- data/spec/neat/functions/neat_float_direction_spec.rb +23 -0
- data/spec/neat/functions/neat_opposite_direction_spec.rb +23 -0
- data/spec/neat/functions/neat_parse_media_spec.rb +23 -0
- data/spec/neat/functions/retrieve_neat_settings_spec.rb +35 -0
- data/spec/neat/mixins/grid_collapse_spec.rb +26 -0
- data/spec/neat/mixins/grid_column_spec.rb +101 -0
- data/spec/neat/mixins/grid_container_spec.rb +17 -0
- data/spec/neat/mixins/grid_media_spec.rb +39 -0
- data/spec/neat/mixins/grid_push_spec.rb +59 -0
- data/spec/neat/mixins/grid_shift_spec.rb +59 -0
- data/spec/spec_helper.rb +5 -8
- data/spec/support/matchers/be_contained_in.rb +1 -1
- data/spec/support/matchers/have_rule.rb +8 -6
- data/spec/support/matchers/have_ruleset.rb +20 -0
- data/spec/support/matchers/have_value.rb +9 -7
- data/spec/support/parser_support.rb +8 -1
- data/spec/support/sass_support.rb +3 -3
- metadata +98 -148
- data/.rspec +0 -2
- data/.travis.yml +0 -5
- data/NEWS.md +0 -47
- data/app/assets/stylesheets/_neat-helpers.scss +0 -8
- data/app/assets/stylesheets/_neat.scss +0 -23
- data/app/assets/stylesheets/functions/_new-breakpoint.scss +0 -49
- data/app/assets/stylesheets/functions/_private.scss +0 -108
- data/app/assets/stylesheets/grid/_box-sizing.scss +0 -11
- data/app/assets/stylesheets/grid/_direction-context.scss +0 -31
- data/app/assets/stylesheets/grid/_display-context.scss +0 -26
- data/app/assets/stylesheets/grid/_fill-parent.scss +0 -22
- data/app/assets/stylesheets/grid/_media.scss +0 -92
- data/app/assets/stylesheets/grid/_omega.scss +0 -91
- data/app/assets/stylesheets/grid/_outer-container.scss +0 -36
- data/app/assets/stylesheets/grid/_pad.scss +0 -23
- data/app/assets/stylesheets/grid/_private.scss +0 -35
- data/app/assets/stylesheets/grid/_row.scss +0 -53
- data/app/assets/stylesheets/grid/_shift.scss +0 -48
- data/app/assets/stylesheets/grid/_span-columns.scss +0 -90
- data/app/assets/stylesheets/grid/_to-deprecate.scss +0 -105
- data/app/assets/stylesheets/grid/_visual-grid.scss +0 -40
- data/app/assets/stylesheets/settings/_disable-warnings.scss +0 -11
- data/app/assets/stylesheets/settings/_grid.scss +0 -53
- data/app/assets/stylesheets/settings/_visual-grid.scss +0 -25
- data/bower.json +0 -22
- data/lib/neat/engine.rb +0 -5
- data/lib/tasks/install.rake +0 -21
- data/sache.json +0 -5
- data/spec/neat/columns_spec.rb +0 -73
- data/spec/neat/container_spec.rb +0 -21
- data/spec/neat/default_spec.rb +0 -15
- data/spec/neat/direction_spec.rb +0 -19
- data/spec/neat/display_spec.rb +0 -19
- data/spec/neat/media_spec.rb +0 -55
- data/spec/neat/new_breakpoint_spec.rb +0 -17
- data/spec/neat/omega_spec.rb +0 -43
- data/spec/neat/pad_spec.rb +0 -32
- data/spec/neat/row_spec.rb +0 -39
- data/spec/neat/shift_spec.rb +0 -41
- data/spec/support/bourbon_support.rb +0 -9
- data/test/_setup.scss +0 -3
- data/test/default.scss +0 -1
- data/test/direction-context.scss +0 -13
- data/test/display-context.scss +0 -15
- data/test/media.scss +0 -39
- data/test/new-breakpoint.scss +0 -13
- data/test/omega.scss +0 -25
- data/test/outer-container.scss +0 -11
- data/test/pad.scss +0 -17
- data/test/row.scss +0 -26
- data/test/shift.scss +0 -36
- data/test/span-columns.scss +0 -21
data/CHANGELOG.md
ADDED
@@ -0,0 +1,388 @@
|
|
1
|
+
# Change Log
|
2
|
+
|
3
|
+
All notable changes to this project will be documented in this file. This
|
4
|
+
project adheres to [Semantic Versioning](http://semver.org).
|
5
|
+
|
6
|
+
## [Unreleased (`master`)][unreleased]
|
7
|
+
|
8
|
+
Nothing at the moment.
|
9
|
+
|
10
|
+
## [4.0.0] - 2019-07-10
|
11
|
+
|
12
|
+
### Removed
|
13
|
+
|
14
|
+
- Installation through Bower is no longer supported.
|
15
|
+
- The sass gem (the deprecated Ruby Sass) is no longer a runtime dependency.
|
16
|
+
|
17
|
+
## [3.0.1] - 2019-01-07
|
18
|
+
|
19
|
+
### Fixed
|
20
|
+
|
21
|
+
- Fixed an issue that would cause Neat to not be found when using SassC.
|
22
|
+
- Fixed `if` function syntax error.
|
23
|
+
|
24
|
+
## [3.0.0] - 2018-06-29
|
25
|
+
|
26
|
+
- Extend grid-media to accept multiple custom grids
|
27
|
+
|
28
|
+
## [2.1.0] - 2017-06-27
|
29
|
+
|
30
|
+
### Added
|
31
|
+
|
32
|
+
- A `--path` CLI option, which lets you install Neat into specific
|
33
|
+
directory. ([#459])
|
34
|
+
- A `style` property has been added to our `package.json`, which makes for easy
|
35
|
+
importing when using npm-sass, sass-module-importer and others. ([#514])
|
36
|
+
|
37
|
+
### Fixed
|
38
|
+
|
39
|
+
- Fixed an issue that would cause Neat to not be found within Rails
|
40
|
+
apps. ([#612])
|
41
|
+
- Simplified the gradient used in the `grid-visual` mixin for more consistent
|
42
|
+
cross-browser behaviour. ([#569])
|
43
|
+
|
44
|
+
[#459]: https://github.com/thoughtbot/neat/pull/459
|
45
|
+
[#514]: https://github.com/thoughtbot/neat/pull/514
|
46
|
+
[#569]: https://github.com/thoughtbot/neat/pull/569
|
47
|
+
[#612]: https://github.com/thoughtbot/neat/pull/612
|
48
|
+
|
49
|
+
## [2.0.0] - 2017-02-17
|
50
|
+
|
51
|
+
### Fixed
|
52
|
+
|
53
|
+
- Custom grids inherit undefined properties from global `$neat-grid`
|
54
|
+
- Fixed instillation from CLI
|
55
|
+
- Remove float property from `grid-collapse`
|
56
|
+
|
57
|
+
## [2.0.0.beta.2] - 2016-12-08
|
58
|
+
|
59
|
+
### Added
|
60
|
+
|
61
|
+
- Added `grid-visual` to show visual grid guides
|
62
|
+
- Added ltr/rtl support
|
63
|
+
|
64
|
+
### Removed
|
65
|
+
|
66
|
+
- Removed `node-sass` dependency from `package.json`
|
67
|
+
|
68
|
+
## [2.0.0.beta.1] - 2016-08-20
|
69
|
+
|
70
|
+
### Added
|
71
|
+
|
72
|
+
- Added `grid-collapse` to allow the creation of nested layouts
|
73
|
+
|
74
|
+
## [2.0.0.alpha.1] - 2016-07-23
|
75
|
+
|
76
|
+
### Added
|
77
|
+
|
78
|
+
- Added `grid-shift` functionality
|
79
|
+
- Added `grid-media` to allow the creation of media queries with custom grids
|
80
|
+
|
81
|
+
## [2.0.0.alpha.0]
|
82
|
+
|
83
|
+
### Added
|
84
|
+
|
85
|
+
- Added `$neat-grid` map to store user defined default grid properties
|
86
|
+
- Added core grid functionality in `grid-column`
|
87
|
+
- Added improved documentation and releasing information
|
88
|
+
- Added `grid-container` for floated grid which contains a simple clearfix
|
89
|
+
- Added `grid-push` functionality
|
90
|
+
|
91
|
+
### Changed
|
92
|
+
|
93
|
+
- Use `core/` as the primary Neat source directory
|
94
|
+
|
95
|
+
### Removed
|
96
|
+
|
97
|
+
- Removed all previous Neat Sass
|
98
|
+
- Mixins
|
99
|
+
- `direction-context` has been removed
|
100
|
+
- `display-context` has been removed
|
101
|
+
- `fill-parent` has been removed
|
102
|
+
- `media` has been removed
|
103
|
+
- `omega` has been removed
|
104
|
+
- `outer-container` has been removed
|
105
|
+
- `pad` has been removed
|
106
|
+
- `row` has been removed
|
107
|
+
- `shift` has been removed
|
108
|
+
- `shift-in-context` has been removed
|
109
|
+
- `span-columns` has been removed
|
110
|
+
- `reset-display` has been removed
|
111
|
+
- `reset-layout-direction` has been removed
|
112
|
+
- `reset-all` has been removed
|
113
|
+
- Functions
|
114
|
+
- `new-breakpoint` has been removed
|
115
|
+
- Variables
|
116
|
+
- `$disable-warnings` has been removed
|
117
|
+
- `$column` has been removed
|
118
|
+
- `$gutter` has been removed
|
119
|
+
- `$grid-columns` has been removed
|
120
|
+
- `$max-width` has been removed
|
121
|
+
- `$border-box-sizing` has been removed
|
122
|
+
- `$default-feature` has been removed
|
123
|
+
- `$default-layout-direction` has been removed
|
124
|
+
- `$visual-grid` has been removed
|
125
|
+
- `$visual-grid-color` has been removed
|
126
|
+
- `$visual-grid-index` has been removed
|
127
|
+
- `$visual-grid-opacity` has been removed
|
128
|
+
|
129
|
+
## [1.9.0] - 2017-06-27
|
130
|
+
|
131
|
+
### Added
|
132
|
+
|
133
|
+
- Add support for complex `nth-child` selectors in `omega()`. ([#340])
|
134
|
+
|
135
|
+
### Changed
|
136
|
+
|
137
|
+
- The background color for visual grid columns now alternates. ([#373])
|
138
|
+
- Update node-sass dependency to 4.1.1. ([#520])
|
139
|
+
|
140
|
+
### Fixed
|
141
|
+
|
142
|
+
- Removed unnecessary deprecation warning when using the `reset-display` mixin.
|
143
|
+
([#456])
|
144
|
+
- The description of the `remove` CLI command now correctly outputs "remove".
|
145
|
+
([#451])
|
146
|
+
|
147
|
+
[#340]: https://github.com/thoughtbot/neat/pull/340
|
148
|
+
[#373]: https://github.com/thoughtbot/neat/pull/373
|
149
|
+
[#451]: https://github.com/thoughtbot/neat/pull/451
|
150
|
+
[#456]: https://github.com/thoughtbot/neat/pull/456
|
151
|
+
[#520]: https://github.com/thoughtbot/neat/pull/520
|
152
|
+
|
153
|
+
## 1.8.0 - 2016-06-21
|
154
|
+
|
155
|
+
### Added
|
156
|
+
|
157
|
+
- Added `--version` and `-v` options to the CLI now has that show the version of
|
158
|
+
Neat you have installed
|
159
|
+
|
160
|
+
### Removed
|
161
|
+
|
162
|
+
- Neat no longer requires Bourbon
|
163
|
+
|
164
|
+
## 1.7.4 - 2016-03-04
|
165
|
+
|
166
|
+
### Added
|
167
|
+
|
168
|
+
- Added an explicit sass requirement
|
169
|
+
|
170
|
+
## 1.7.3 - 2016-02-29
|
171
|
+
|
172
|
+
### Added
|
173
|
+
|
174
|
+
- Added eyeglass support
|
175
|
+
|
176
|
+
### Changed
|
177
|
+
|
178
|
+
- Neat's npm package now includes the proper Sass paths
|
179
|
+
- The default `$max-width` is now `1200px`
|
180
|
+
|
181
|
+
## 1.7.2 - 2015-03-13
|
182
|
+
|
183
|
+
### Added
|
184
|
+
|
185
|
+
- Added Bourbon's updated `modular-scale` function for grid settings
|
186
|
+
|
187
|
+
### Removed
|
188
|
+
|
189
|
+
- Removed prefixes for `box-sizing`
|
190
|
+
|
191
|
+
## 1.7.1 - 2015-01-02
|
192
|
+
|
193
|
+
### Added
|
194
|
+
|
195
|
+
- Added custom `not` function for Libsass 3.0 compatibility
|
196
|
+
|
197
|
+
### Changed
|
198
|
+
|
199
|
+
- Fixed bug related to the `omega`'s query argument
|
200
|
+
|
201
|
+
## 1.7.0 - 2014-10-17
|
202
|
+
|
203
|
+
### Added
|
204
|
+
|
205
|
+
- Full compatibility with Sass 3.4+ and Libsass 3.0+
|
206
|
+
|
207
|
+
### Changed
|
208
|
+
|
209
|
+
- `direction-context` mixin changes the direction inside an entire block.
|
210
|
+
- `display-context` mixin changes the display property inside an entire block.
|
211
|
+
- `outer-container` now takes a max-width argument
|
212
|
+
|
213
|
+
### Removed
|
214
|
+
|
215
|
+
- Removed `reset-direction`
|
216
|
+
- Removed `reset-display`
|
217
|
+
|
218
|
+
## 1.5.1 - 2014-04-06
|
219
|
+
|
220
|
+
### Added
|
221
|
+
|
222
|
+
- Restore compatibility with Sass 3.2.x
|
223
|
+
|
224
|
+
## 1.6.0 - 2014-03-28
|
225
|
+
|
226
|
+
### Added
|
227
|
+
- Added multiple media queries support to the `media` mixin, including queries
|
228
|
+
such as orientation
|
229
|
+
|
230
|
+
### Changed
|
231
|
+
- Updated to Sass 3.3 and silence `!global` variable warnings
|
232
|
+
- Use absolute percentage widths for table displays
|
233
|
+
|
234
|
+
### Removed
|
235
|
+
|
236
|
+
- Passing table no longer adds padding to elements
|
237
|
+
- Omega no longer supports table display
|
238
|
+
|
239
|
+
## 1.6.0.pre2 - 2014-03-21
|
240
|
+
|
241
|
+
### Changed
|
242
|
+
|
243
|
+
- Use Sass 3.3 and silence global variable warnings
|
244
|
+
|
245
|
+
## 1.6.0.pre - 2014-02-10
|
246
|
+
|
247
|
+
### Added
|
248
|
+
|
249
|
+
- Added multiple media queries support to the `media` mixin, including queries
|
250
|
+
such as orientation
|
251
|
+
|
252
|
+
### Changed
|
253
|
+
|
254
|
+
- Use absolute percentage widths for table displays
|
255
|
+
|
256
|
+
### Removed
|
257
|
+
|
258
|
+
- Passing table no longer adds padding to elements
|
259
|
+
- Omega no longer supports table display
|
260
|
+
|
261
|
+
## 1.5.0 - 2013-22-15
|
262
|
+
|
263
|
+
### Added
|
264
|
+
|
265
|
+
- Added the ability for `span-columns` to omit display property from the output
|
266
|
+
- Improved browser support
|
267
|
+
|
268
|
+
### Changed
|
269
|
+
|
270
|
+
- Renamed `span-columns` collapse argument to block-collapse
|
271
|
+
- Made `shift` take parent column argument (useful when other `span-columns`
|
272
|
+
calls override the nesting context)
|
273
|
+
|
274
|
+
## 1.4.0 - 2013-08-28
|
275
|
+
|
276
|
+
### Added
|
277
|
+
|
278
|
+
- Added collapse argument to `span-columns` in order to remove gutter
|
279
|
+
|
280
|
+
### Changed
|
281
|
+
|
282
|
+
- Fixed visual grid overrides by reordering breakpoints
|
283
|
+
- Unified padding across table cells
|
284
|
+
- Specified comma as separator for gradient-stops append for libsass
|
285
|
+
|
286
|
+
### Removed
|
287
|
+
|
288
|
+
## 1.3.0 - 2013-05-03
|
289
|
+
|
290
|
+
### Added
|
291
|
+
|
292
|
+
- Added global RTL layout support
|
293
|
+
- Added row-specific RTL layout support
|
294
|
+
- Added auto-clearing for elements using `omega(nth-child)` (works only with
|
295
|
+
simple `nth-child` arguments due to limited string operations in Sass)
|
296
|
+
|
297
|
+
### Changed
|
298
|
+
|
299
|
+
- `reset-display`, `reset-layout-direction`, and `reset-all` for all your reset needs!
|
300
|
+
|
301
|
+
### Removed
|
302
|
+
|
303
|
+
- The visual grid no longer blocks user interactions
|
304
|
+
- `omega` will no longer take `$direction` in favor of `row($direction)` or
|
305
|
+
`$default-layout-direction`
|
306
|
+
|
307
|
+
|
308
|
+
## 1.2.1 - 2013-04-04
|
309
|
+
|
310
|
+
### Added
|
311
|
+
|
312
|
+
- Added stylesheets path to `Sass.load_paths`
|
313
|
+
- Official Docset
|
314
|
+
|
315
|
+
### Changed
|
316
|
+
|
317
|
+
- Force full-width and fixed table-layout on `row(table)`
|
318
|
+
|
319
|
+
## 1.2.0 - 2013-02-18
|
320
|
+
|
321
|
+
### Added
|
322
|
+
|
323
|
+
- Auto-detect table layout when `span-columns` is called inside `row(table)`
|
324
|
+
|
325
|
+
### Changed
|
326
|
+
|
327
|
+
- Make `shift` reset context after each nested call
|
328
|
+
|
329
|
+
## 1.1.0 - 2013-01-09
|
330
|
+
|
331
|
+
### Added
|
332
|
+
|
333
|
+
- `pad` takes shorthand arguments
|
334
|
+
|
335
|
+
### Changed
|
336
|
+
|
337
|
+
- Merge `omega` and `nth-omega`
|
338
|
+
- Last child in table layouts keeps its right-padding
|
339
|
+
|
340
|
+
## 1.0.2 - 2012-11-19
|
341
|
+
|
342
|
+
### Added
|
343
|
+
|
344
|
+
- Add explicit require to the bourbon gem
|
345
|
+
[#38](https://github.com/thoughtbot/neat/issues/38)
|
346
|
+
|
347
|
+
## 1.0.1 - 2012-11-06
|
348
|
+
|
349
|
+
### Added
|
350
|
+
|
351
|
+
- Relative path imports in Rails
|
352
|
+
|
353
|
+
### Changed
|
354
|
+
|
355
|
+
- Make `em` always return a number
|
356
|
+
|
357
|
+
## 1.0.0 - 2012-10-29
|
358
|
+
|
359
|
+
### Added
|
360
|
+
|
361
|
+
- Added executable for non-Rails projects
|
362
|
+
- Added visual grid
|
363
|
+
- Added `media` and `new-breakpoint` mixins
|
364
|
+
- Added `_neat-helpers.scss` as a public interface for Neat
|
365
|
+
|
366
|
+
### Changed
|
367
|
+
|
368
|
+
- Made `shift` work properly in nested contexts
|
369
|
+
|
370
|
+
### Removed
|
371
|
+
|
372
|
+
- Removed typography mixins and settings
|
373
|
+
|
374
|
+
## 0.4.2 - 2012-08-31
|
375
|
+
|
376
|
+
- Initial release
|
377
|
+
|
378
|
+
[unreleased]: https://github.com/thoughtbot/neat/compare/v4.0.0...HEAD
|
379
|
+
[4.0.0]: https://github.com/thoughtbot/neat/compare/v3.0.1...v4.0.0
|
380
|
+
[3.0.1]: https://github.com/thoughtbot/neat/compare/v3.0.0...v3.0.1
|
381
|
+
[3.0.0]: https://github.com/thoughtbot/neat/compare/v2.1.0...v3.0.0
|
382
|
+
[2.1.0]: https://github.com/thoughtbot/neat/compare/v2.0.0...v2.1.0
|
383
|
+
[2.0.0]: https://github.com/thoughtbot/neat/compare/v2.0.0.beta.2...v2.0.0
|
384
|
+
[2.0.0.beta.2]: https://github.com/thoughtbot/neat/compare/v2.0.0.beta.1...v2.0.0.beta.2
|
385
|
+
[2.0.0.beta.1]: https://github.com/thoughtbot/neat/compare/v2.0.0.alpha.1...v2.0.0.beta.1
|
386
|
+
[2.0.0.alpha.1]: https://github.com/thoughtbot/neat/compare/v2.0.0.alpha.0...v2.0.0.alpha.1
|
387
|
+
[2.0.0.alpha.0]: https://github.com/thoughtbot/neat/compare/v1.8.0...v2.0.0.alpha.0
|
388
|
+
[1.9.0]: https://github.com/thoughtbot/neat/compare/v1.8.0...v1.9.0
|
data/CODE_OF_CONDUCT.md
ADDED
data/CONTRIBUTING.md
CHANGED
@@ -1,4 +1,7 @@
|
|
1
|
-
We love pull requests.
|
1
|
+
We love pull requests from everyone. By participating in this project, you
|
2
|
+
agree to abide by the thoughtbot [code of conduct]. Here’s a quick guide:
|
3
|
+
|
4
|
+
[code of conduct]: https://thoughtbot.com/open-source-code-of-conduct
|
2
5
|
|
3
6
|
1. Fork the repository.
|
4
7
|
2. Make your changes in a topic branch.
|
@@ -33,3 +36,15 @@ Some things that will increase the chance that your pull request is accepted:
|
|
33
36
|
* Declarations within a block should be ordered alphabetically.
|
34
37
|
* Blank lines between rules.
|
35
38
|
* No trailing whitespace. Blank lines should not have any space.
|
39
|
+
|
40
|
+
**Contrib examples**
|
41
|
+
|
42
|
+
For user-facing changes, please provide an example in sample page contained in
|
43
|
+
the `./contrib` folder. Also, please put a screenshot of the changes into the
|
44
|
+
Pull Request.
|
45
|
+
|
46
|
+
To see the `./contrib` example page:
|
47
|
+
|
48
|
+
1. Install node
|
49
|
+
* Run `npm install`
|
50
|
+
* Run `npm run contrib`
|
data/Gemfile
CHANGED
data/Gulpfile.js
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
const browserSync = require('browser-sync').create();
|
2
|
+
const gulp = require('gulp');
|
3
|
+
const sass = require('gulp-sass');
|
4
|
+
|
5
|
+
const paths = {
|
6
|
+
markup: {
|
7
|
+
src: './contrib/**/*.html',
|
8
|
+
},
|
9
|
+
styles: {
|
10
|
+
src: [
|
11
|
+
'./contrib/**/*.scss',
|
12
|
+
'./core/**/*.scss',
|
13
|
+
],
|
14
|
+
dest: './contrib/',
|
15
|
+
}
|
16
|
+
};
|
17
|
+
|
18
|
+
function styles() {
|
19
|
+
return gulp.src(paths.styles.src)
|
20
|
+
.pipe(sass())
|
21
|
+
.pipe(gulp.dest(paths.styles.dest));
|
22
|
+
};
|
23
|
+
|
24
|
+
function serve(done) {
|
25
|
+
browserSync.init({
|
26
|
+
open: false,
|
27
|
+
server: './contrib/',
|
28
|
+
});
|
29
|
+
done();
|
30
|
+
}
|
31
|
+
|
32
|
+
function reload(done) {
|
33
|
+
browserSync.reload();
|
34
|
+
done();
|
35
|
+
}
|
36
|
+
|
37
|
+
function watch() {
|
38
|
+
gulp.watch(paths.markup.src, reload);
|
39
|
+
gulp.watch(paths.styles.src, gulp.series(styles, reload));
|
40
|
+
}
|
41
|
+
|
42
|
+
gulp.task('default', gulp.series(styles, serve, watch));
|
data/{LICENSE → LICENSE.md}
RENAMED
@@ -1,23 +1,21 @@
|
|
1
|
-
|
1
|
+
The MIT License (MIT)
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
Copyright (c) 2012-2014 thoughtbot, inc.
|
3
|
+
Copyright © 2012 [thoughtbot, inc.](http://thoughtbot.com)
|
6
4
|
|
7
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
|
-
of this software and associated documentation files (the
|
6
|
+
of this software and associated documentation files (the “Software”), to deal
|
9
7
|
in the Software without restriction, including without limitation the rights
|
10
8
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
11
9
|
copies of the Software, and to permit persons to whom the Software is
|
12
10
|
furnished to do so, subject to the following conditions:
|
13
11
|
|
14
|
-
The above copyright notice and this permission notice shall be included in
|
15
|
-
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
16
14
|
|
17
|
-
THE SOFTWARE IS PROVIDED
|
15
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
18
16
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
19
17
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
20
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
21
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
22
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
23
|
-
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|