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/README.md
CHANGED
@@ -1,282 +1,206 @@
|
|
1
|
-
<img src="http://
|
1
|
+
[<img src="http://images.thoughtbot.com/bourbon/neat-logo-v2.svg" width="200" alt="Neat logo">][Neat]
|
2
2
|
|
3
|
-
[](https://codeclimate.com/github/thoughtbot/neat)
|
5
|
-
[](#)
|
6
|
-
[](http://stackoverflow.com/questions/tagged/neat)
|
3
|
+
[](https://houndci.com)
|
7
4
|
|
8
|
-
|
5
|
+
## A lightweight and flexible Sass grid
|
9
6
|
|
10
|
-
|
7
|
+
[Neat] is a fluid grid framework with the aim of being easy enough to
|
8
|
+
use out of the box and flexible enough to customize down the road.
|
11
9
|
|
12
|
-
Neat
|
10
|
+
[Neat]: https://neat.bourbon.io/
|
13
11
|
|
14
|
-
|
12
|
+
### Helpful Links
|
15
13
|
|
16
|
-
|
14
|
+
- [Demos](https://neat.bourbon.io/examples/)
|
15
|
+
- [Documentation](https://neat.bourbon.io/docs/latest/)
|
16
|
+
- [Change log](CHANGELOG.md)
|
17
|
+
- [Twitter](https://twitter.com/bourbonsass)
|
18
|
+
- [Stack Overflow](https://stackoverflow.com/questions/tagged/neat)
|
19
|
+
- [Neat 2.0 Building the future of floated Sass grids](https://robots.thoughtbot.com/building-the-future-of-floated-css-grids) by [@whmii](http://social.mcmahan.me)
|
20
|
+
- [Getting started with Neat 2.0, a lightweight and flexible Sass grid](https://robots.thoughtbot.com/the-release-of-neat-2-0-a-lightweight-and-flexible-sass-grid) by [@whmii](http://social.mcmahan.me)
|
17
21
|
|
18
|
-
##
|
19
|
-
|
20
|
-
- [Sass](https://github.com/sass/sass) 3.3+ ([Use Neat
|
21
|
-
1.5.1](#installing-older-versions-of-neat) if you are still tied to Sass 3.2)
|
22
|
-
- [Bourbon](https://github.com/thoughtbot/bourbon) 3.1+
|
23
|
-
|
24
|
-
## Installation
|
25
|
-
|
26
|
-
Neat uses the [RubyGems](https://rubygems.org) package manager to easily generate a `neat` directory with all of the necessary files.
|
27
|
-
|
28
|
-
1. Install the Neat gem:
|
29
|
-
|
30
|
-
```bash
|
31
|
-
gem install neat
|
32
|
-
```
|
33
|
-
|
34
|
-
2. Install or update Neat’s dependencies:
|
35
|
-
|
36
|
-
```bash
|
37
|
-
gem install sass # or gem update sass
|
38
|
-
```
|
39
|
-
```bash
|
40
|
-
gem install bourbon # or gem update bourbon
|
41
|
-
```
|
42
|
-
|
43
|
-
3. Install the Neat library into the current directory:
|
22
|
+
## Table of Contents
|
44
23
|
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
24
|
+
- [Requirements](#requirements)
|
25
|
+
- [Installation](#installation)
|
26
|
+
- [Command Line Interface](#command-line-interface)
|
27
|
+
- [The Bourbon Family](#the-bourbon-family)
|
28
|
+
- [Contributing](#contributing)
|
29
|
+
- [License](#license)
|
30
|
+
- [About](#about)
|
51
31
|
|
52
|
-
|
53
|
-
|
54
|
-
```scss
|
55
|
-
@import "bourbon/bourbon";
|
56
|
-
@import "neat/neat";
|
57
|
-
```
|
58
|
-
|
59
|
-
It’s not recommended to add or modify the Neat files so that you can update them easily.
|
60
|
-
|
61
|
-
## Installation for Ruby on Rails
|
62
|
-
|
63
|
-
1. Add Neat to your Gemfile:
|
64
|
-
|
65
|
-
```ruby
|
66
|
-
gem 'neat'
|
67
|
-
```
|
68
|
-
|
69
|
-
2. Then run:
|
70
|
-
|
71
|
-
```bash
|
72
|
-
bundle install
|
73
|
-
```
|
32
|
+
## Requirements
|
74
33
|
|
75
|
-
|
34
|
+
- [Sass] 3.4+ or [LibSass] 3.3+
|
76
35
|
|
77
|
-
|
78
|
-
|
79
|
-
```
|
36
|
+
[Sass]: https://github.com/sass/sass
|
37
|
+
[LibSass]: https://github.com/sass/libsass
|
80
38
|
|
81
|
-
|
39
|
+
## Installation
|
82
40
|
|
83
|
-
|
84
|
-
@import "bourbon";
|
85
|
-
@import "neat";
|
86
|
-
```
|
41
|
+
1. Install the Neat gem using the [RubyGems] package manager:
|
87
42
|
|
88
|
-
|
43
|
+
```bash
|
44
|
+
gem install neat
|
45
|
+
```
|
89
46
|
|
90
|
-
1.
|
47
|
+
1. Install or update Neat’s dependencies:
|
91
48
|
|
92
|
-
|
93
|
-
|
94
|
-
|
49
|
+
```bash
|
50
|
+
gem install sass # or gem update sass
|
51
|
+
```
|
95
52
|
|
96
|
-
|
53
|
+
**Pro Tip:** You can target installation into a specific directory using the
|
54
|
+
`path` flag:
|
97
55
|
|
98
|
-
|
99
|
-
|
100
|
-
|
56
|
+
```bash
|
57
|
+
neat install --path my/custom/path/
|
58
|
+
```
|
101
59
|
|
102
|
-
|
60
|
+
1. Install the Neat library into the current directory:
|
103
61
|
|
104
|
-
|
62
|
+
```bash
|
63
|
+
neat install
|
64
|
+
```
|
105
65
|
|
106
|
-
|
107
|
-
neat install
|
108
|
-
neat update
|
109
|
-
neat remove
|
110
|
-
```
|
66
|
+
1. Import Neat in your stylesheet:
|
111
67
|
|
112
|
-
|
68
|
+
```scss
|
69
|
+
@import "neat/neat";
|
70
|
+
```
|
113
71
|
|
114
|
-
|
72
|
+
It’s not recommended to add or modify the Neat files so that you can update
|
73
|
+
them easily.
|
115
74
|
|
116
|
-
|
75
|
+
[RubyGems]: https://rubygems.org
|
117
76
|
|
118
|
-
|
119
|
-
@import "bourbon/bourbon"; // or "bourbon" when in Rails
|
120
|
-
@import "grid-settings";
|
121
|
-
@import "neat/neat"; // or "neat" when in Rails
|
122
|
-
```
|
77
|
+
### Installation for Ruby on Rails 4.2+
|
123
78
|
|
124
|
-
|
79
|
+
1. Add Neat to your Gemfile:
|
125
80
|
|
126
|
-
```
|
127
|
-
|
81
|
+
```ruby
|
82
|
+
gem "neat"
|
83
|
+
```
|
128
84
|
|
129
|
-
|
130
|
-
$column: 90px;
|
131
|
-
$gutter: 30px;
|
132
|
-
$grid-columns: 10;
|
133
|
-
$max-width: em(1088);
|
85
|
+
1. Then run:
|
134
86
|
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
```
|
87
|
+
```bash
|
88
|
+
bundle install
|
89
|
+
```
|
139
90
|
|
140
|
-
|
91
|
+
If you see the error `Bundler could not find compatible versions for gem
|
92
|
+
"sass"`, run:
|
141
93
|
|
142
|
-
|
94
|
+
```bash
|
95
|
+
bundle update sass
|
96
|
+
```
|
143
97
|
|
144
|
-
|
145
|
-
div.container {
|
146
|
-
@include outer-container;
|
147
|
-
}
|
148
|
-
```
|
98
|
+
1. Import Neat in your `application.scss`:
|
149
99
|
|
150
|
-
|
100
|
+
```scss
|
101
|
+
@import "neat";
|
102
|
+
```
|
151
103
|
|
152
|
-
|
153
|
-
|
154
|
-
@include span-columns(6);
|
155
|
-
}
|
156
|
-
```
|
104
|
+
It should be noted that `@import` rules are not compatible with Sprockets
|
105
|
+
directives. You need to use one or the other.
|
157
106
|
|
158
|
-
|
107
|
+
### Installing with npm and using a Node-based asset pipeline
|
159
108
|
|
160
|
-
|
161
|
-
div.container {
|
162
|
-
@include outer-container;
|
109
|
+
1. Add Neat as a dependency:
|
163
110
|
|
164
|
-
|
165
|
-
|
111
|
+
```bash
|
112
|
+
npm install --save bourbon-neat
|
113
|
+
```
|
166
114
|
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
```
|
115
|
+
1. If you’re using [eyeglass], skip to Step 3. Otherwise, you’ll need to add
|
116
|
+
Neat to your node-sass `includePaths` option.
|
117
|
+
`require("bourbon-neat").includePaths` is an array of directories that you
|
118
|
+
should pass to node-sass. How you do this depends on how node-sass is
|
119
|
+
integrated into your project.
|
173
120
|
|
174
|
-
|
175
|
-
|
176
|
-
```scss
|
177
|
-
.my-class {
|
178
|
-
@include media($mobile) { // As defined in _grid-settings.scss
|
179
|
-
@include span-columns(2);
|
180
|
-
}
|
181
|
-
}
|
182
|
-
|
183
|
-
// Compiled CSS
|
184
|
-
@media screen and (max-width: 480px) {
|
185
|
-
.my-class {
|
186
|
-
display: block;
|
187
|
-
float: left;
|
188
|
-
margin-right: 7.42297%;
|
189
|
-
width: 46.28851%; // 2 columns of the total 4 in this media context
|
190
|
-
}
|
191
|
-
.my-class:last-child {
|
192
|
-
margin-right: 0;
|
193
|
-
}
|
194
|
-
}
|
195
|
-
```
|
121
|
+
1. Import Neat into your Sass files:
|
196
122
|
|
197
|
-
|
123
|
+
```scss
|
124
|
+
@import "neat";
|
125
|
+
```
|
198
126
|
|
199
|
-
|
127
|
+
[eyeglass]: http://eyeglass.rocks
|
200
128
|
|
201
|
-
|
129
|
+
### Installing older versions of Neat
|
202
130
|
|
203
|
-
|
131
|
+
1. Uninstall any Neat gem versions you already have:
|
204
132
|
|
205
|
-
|
206
|
-
|
133
|
+
```bash
|
134
|
+
gem uninstall neat
|
135
|
+
```
|
207
136
|
|
208
|
-
|
209
|
-
often the most suggested solution, it is also a lazy hack that outputs ugly code and can quickly get out of hand in complex layouts. As a general rule, having to *undo* CSS styles is a sign of poor stylesheet architecture (more about [CSS code smells](http://csswizardry.com/2012/11/code-smells-in-css/)).
|
137
|
+
1. Reinstall the Neat gem, using the `-v` flag to specify the version you need:
|
210
138
|
|
211
|
-
|
212
|
-
|
139
|
+
```bash
|
140
|
+
gem install neat -v 1.8.1
|
141
|
+
```
|
213
142
|
|
214
|
-
|
215
|
-
|
216
|
-
$second-breakpoint-value: 700px;
|
217
|
-
$medium-viewport: new-breakpoint(min-width em($first-breakpoint-value) max-width em($second-breakpoint-value));
|
218
|
-
$large-viewport: new-breakpoint(min-width em($second-breakpoint-value + 1));
|
143
|
+
1. Follow the [instructions above](#installation) to install Neat into your
|
144
|
+
project.
|
219
145
|
|
220
|
-
|
221
|
-
@include media($medium-viewport) {
|
222
|
-
@include span-columns(6);
|
223
|
-
@include omega(2n);
|
224
|
-
}
|
146
|
+
## Command Line Interface
|
225
147
|
|
226
|
-
|
227
|
-
|
228
|
-
@include omega(3n);
|
229
|
-
}
|
230
|
-
}
|
148
|
+
```bash
|
149
|
+
neat [options]
|
231
150
|
```
|
232
151
|
|
233
|
-
|
234
|
-
|
235
|
-
#### Why are the elements not properly aligned with the visual grid?
|
236
|
-
|
237
|
-
The visual grid is built using CSS gradients whose stops might contain decimal values depending on the default settings of your grid. In order to render the gradient, browsers round the pixel values since they can’t deal with pixel fractions.
|
152
|
+
### Options
|
238
153
|
|
239
|
-
|
154
|
+
| Option | Description |
|
155
|
+
| :---------------- | :------------------------ |
|
156
|
+
| `-h`, `--help` | Show help |
|
157
|
+
| `-v`, `--version` | Show the version number |
|
158
|
+
| `--path` | Specify a custom path |
|
159
|
+
| `--force` | Force install (overwrite) |
|
240
160
|
|
241
|
-
|
161
|
+
### Commands
|
242
162
|
|
243
|
-
|
163
|
+
| Command | Description |
|
164
|
+
| :------------- | :------------------------------------------------- |
|
165
|
+
| `neat install` | Install Neat into the current directory |
|
166
|
+
| `neat update` | Overwrite and update Neat in the current directory |
|
167
|
+
| `neat remove` | Removes Neat from the current directory |
|
168
|
+
| `neat help` | Show help |
|
169
|
+
| `neat version` | Show the version number |
|
244
170
|
|
245
|
-
|
171
|
+
## The Bourbon family
|
246
172
|
|
247
|
-
|
173
|
+
- [Bourbon]: A lightweight Sass tool set
|
174
|
+
- [Bitters]: Scaffold styles, variables and structure for Bourbon projects
|
248
175
|
|
249
|
-
|
250
|
-
|
176
|
+
[Bourbon]: https://github.com/thoughtbot/bourbon
|
177
|
+
[Bitters]: https://github.com/thoughtbot/bitters
|
251
178
|
|
252
|
-
##
|
179
|
+
## Contributing
|
253
180
|
|
254
|
-
|
255
|
-
- Suggest features or file bugs in [Issues](https://github.com/thoughtbot/neat/issues).
|
256
|
-
- Join `#bourbon-neat` on `irc.freenode.net`.
|
181
|
+
See the [contributing] document. Thank you, [contributors]!
|
257
182
|
|
258
|
-
|
183
|
+
[contributing]: CONTRIBUTING.md
|
184
|
+
[contributors]: https://github.com/thoughtbot/neat/graphs/contributors
|
259
185
|
|
260
|
-
|
261
|
-
- Firefox 3.5+
|
262
|
-
- Internet Explorer 9+ (visual grid is IE 10 only)
|
263
|
-
- Internet Explorer 8 with [selectivizr](http://selectivizr.com) (no `media()` support)
|
264
|
-
- Opera 9.5+
|
265
|
-
- Safari 4.0+
|
186
|
+
## License
|
266
187
|
|
267
|
-
|
188
|
+
Neat is copyright © 2012 [thoughtbot, inc.][thoughtbot] It is free software, and
|
189
|
+
may be redistributed under the terms specified in the [license].
|
268
190
|
|
269
|
-
|
270
|
-
- [Neat](http://neat.bourbon.io): A lightweight semantic grid framework for Sass and Bourbon
|
271
|
-
- [Bitters](http://bitters.bourbon.io): Scaffold styles, variables and structure for Bourbon projects
|
272
|
-
- [Refills](http://refills.bourbon.io): Prepackaged patterns and components, built on top of Bourbon, Bitters & Neat
|
191
|
+
[license]: LICENSE.md
|
273
192
|
|
274
|
-
##
|
193
|
+
## About
|
275
194
|
|
276
|
-
|
195
|
+
Neat is maintained by the thoughtbot design team. It is funded by
|
196
|
+
[thoughtbot, inc.][thoughtbot] and the names and logos for thoughtbot are
|
197
|
+
trademarks of thoughtbot, inc.
|
277
198
|
|
278
|
-
|
199
|
+
[][thoughtbot]
|
279
200
|
|
280
|
-
|
201
|
+
We love open-source software! See [our other projects][community] or
|
202
|
+
[hire us][hire] to design, develop, and grow your product.
|
281
203
|
|
282
|
-
|
204
|
+
[thoughtbot]: https://thoughtbot.com?utm_source=github
|
205
|
+
[community]: https://thoughtbot.com/community?utm_source=github
|
206
|
+
[hire]: https://thoughtbot.com/hire-us?utm_source=github
|
data/RELEASING.md
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
# Releasing
|
2
|
+
|
3
|
+
1. Update the version number in these places:
|
4
|
+
- `lib/neat/version.rb`
|
5
|
+
- `core/_neat.scss`
|
6
|
+
- `package.json`
|
7
|
+
|
8
|
+
1. Update `CHANGELOG.md`
|
9
|
+
|
10
|
+
1. Commit changes. Use the convention “Neat vX.X.X” in your commit message.
|
11
|
+
There shouldn’t be code changes, and thus CI doesn’t need to run.
|
12
|
+
|
13
|
+
1. Run `bundle exec rake release`, which tags the release, pushes the tag to GitHub, and
|
14
|
+
pushes the gem to RubyGems.org.
|
15
|
+
|
16
|
+
1. Run `npm publish`, which pushes the new version to npm’s registry (if
|
17
|
+
releasing a pre-release, run `npm publish --tag beta`).
|
18
|
+
|
19
|
+
1. Draft a [new GitHub release].
|
20
|
+
|
21
|
+
1. Re-generate and publish the [documentation website].
|
22
|
+
|
23
|
+
1. Announce the new release, making sure to say “thank you” to the contributors
|
24
|
+
who helped shape this version!
|
25
|
+
|
26
|
+
[new GitHub release]: https://github.com/thoughtbot/neat/releases/new
|
27
|
+
[documentation website]: https://github.com/thoughtbot/neat.bourbon.io
|
data/Rakefile
CHANGED
@@ -1,22 +1,8 @@
|
|
1
|
-
require
|
2
|
-
require
|
3
|
-
|
1
|
+
require "bundler"
|
2
|
+
require "rspec/core/rake_task"
|
3
|
+
|
4
4
|
Bundler::GemHelper.install_tasks
|
5
5
|
|
6
6
|
RSpec::Core::RakeTask.new(:spec)
|
7
7
|
|
8
8
|
task :default => :spec
|
9
|
-
|
10
|
-
task :test do
|
11
|
-
puts "Creating a Bourbon directory..."
|
12
|
-
`bourbon install --path test`
|
13
|
-
puts "Generating CSS..."
|
14
|
-
`sass -I . --watch test:css/ --style expanded`
|
15
|
-
end
|
16
|
-
|
17
|
-
task :clean do
|
18
|
-
puts "Deleting Bourbon directory..."
|
19
|
-
`rm -rf test/bourbon`
|
20
|
-
puts "Deleting generated CSS..."
|
21
|
-
`rm -rf css/`
|
22
|
-
end
|
data/bin/neat
CHANGED
data/contrib/index.html
ADDED
@@ -0,0 +1,90 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
6
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
7
|
+
<title>Have fun ❤︎</title>
|
8
|
+
<link rel="stylesheet" href="styles.css">
|
9
|
+
</head>
|
10
|
+
<body>
|
11
|
+
<header role="banner">
|
12
|
+
<h1>
|
13
|
+
Hey there! Thanks for contributing to
|
14
|
+
<a href="http://neat.bourbon.io">Neat</a>.
|
15
|
+
</h1>
|
16
|
+
<p>
|
17
|
+
The purpose of this page is to help contributors view and test
|
18
|
+
changes to Neat.
|
19
|
+
</p>
|
20
|
+
</header>
|
21
|
+
<main role="main">
|
22
|
+
<div class="grid grid-visual">
|
23
|
+
<div class="grid__column--full">
|
24
|
+
<h3>Basic Floated Grid</h3>
|
25
|
+
</div>
|
26
|
+
<div class="grid__column box"></div>
|
27
|
+
<div class="grid__column box"></div>
|
28
|
+
<div class="grid__column box"></div>
|
29
|
+
<div class="grid__column box"></div>
|
30
|
+
<div class="grid__column box"></div>
|
31
|
+
<div class="grid__column box"></div>
|
32
|
+
<div class="grid__column box"></div>
|
33
|
+
<div class="grid__column box"></div>
|
34
|
+
<div class="grid__column box"></div>
|
35
|
+
<div class="grid__column box"></div>
|
36
|
+
<div class="grid__column box"></div>
|
37
|
+
<div class="grid__column box"></div>
|
38
|
+
<div class="grid__column--full">
|
39
|
+
<h3>RTL Grid</h3>
|
40
|
+
</div>
|
41
|
+
<div class="grid--rtl__column--thirds box"> First</div>
|
42
|
+
<div class="grid--rtl__column--thirds box"> Second</div>
|
43
|
+
<div class="grid--rtl__column--thirds box"> Third</div>
|
44
|
+
<div class="grid__column--full">
|
45
|
+
<h3>Nested Grid</h3>
|
46
|
+
</div>
|
47
|
+
<div class="grid__column--thirds grid--nested">
|
48
|
+
<div class="grid--nested__column box--alt"></div>
|
49
|
+
<div class="grid--nested__column box--alt"></div>
|
50
|
+
<div class="grid--nested__column box--alt"></div>
|
51
|
+
</div>
|
52
|
+
<div class="grid__column--thirds box"></div>
|
53
|
+
<div class="grid__column--thirds box"></div>
|
54
|
+
<div class="grid__column--full">
|
55
|
+
<h3>Push Grid</h3>
|
56
|
+
</div>
|
57
|
+
<div class="grid__column--thirds grid-push--3 box"></div>
|
58
|
+
<div class="grid__column box"></div>
|
59
|
+
<div class="grid__column--thirds box"></div>
|
60
|
+
<div class="grid__column--full">
|
61
|
+
<h3>Shift Grid</h3>
|
62
|
+
</div>
|
63
|
+
<div class="grid__column--8 grid-shift--4 box"> First</div>
|
64
|
+
<div class="grid__column--4 grid-shift--neg-8 box"> Second</div>
|
65
|
+
<div class="grid__column--full">
|
66
|
+
<h3>Shorthand Sub-Grid</h3>
|
67
|
+
</div>
|
68
|
+
<div class="grid__column--3-of-5 box"></div>
|
69
|
+
<div class="grid__column--2-of-5 box"></div>
|
70
|
+
<div class="grid__column--3-of-5 box grid-push--2-of-5"></div>
|
71
|
+
<div class="grid__column--full">
|
72
|
+
<h3>Grid Media Queries</h3>
|
73
|
+
</div>
|
74
|
+
<div class="grid-column--media-3-to-6 box"></div>
|
75
|
+
<div class="grid__column--full">
|
76
|
+
<h3>Grid collapse</h3>
|
77
|
+
</div>
|
78
|
+
<div class="grid__column--thirds box"></div>
|
79
|
+
<div class="grid__column--thirds">
|
80
|
+
<div class="grid-collapse">
|
81
|
+
<div class="grid__column--thirds box"></div>
|
82
|
+
<div class="grid__column--thirds box"></div>
|
83
|
+
<div class="grid__column--thirds box"></div>
|
84
|
+
</div>
|
85
|
+
</div>
|
86
|
+
<div class="grid__column--thirds box"></div>
|
87
|
+
</div>
|
88
|
+
</main>
|
89
|
+
</body>
|
90
|
+
</html>
|
@@ -0,0 +1,32 @@
|
|
1
|
+
*,
|
2
|
+
*::before,
|
3
|
+
*::after {
|
4
|
+
box-sizing: border-box;
|
5
|
+
font-family:
|
6
|
+
-apple-system,
|
7
|
+
BlinkMacSystemFont,
|
8
|
+
"Avenir Next",
|
9
|
+
"Avenir",
|
10
|
+
"Segoe UI",
|
11
|
+
"Lucida Grande",
|
12
|
+
"Helvetica Neue",
|
13
|
+
"Helvetica",
|
14
|
+
"Fira Sans",
|
15
|
+
"Roboto",
|
16
|
+
"Noto",
|
17
|
+
"Droid Sans",
|
18
|
+
"Cantarell",
|
19
|
+
"Oxygen",
|
20
|
+
"Ubuntu",
|
21
|
+
"Franklin Gothic Medium",
|
22
|
+
"Century Gothic",
|
23
|
+
"Liberation Sans",
|
24
|
+
sans-serif;
|
25
|
+
}
|
26
|
+
|
27
|
+
h1,
|
28
|
+
h2,
|
29
|
+
h3,
|
30
|
+
h4 {
|
31
|
+
font-weight: 400;
|
32
|
+
}
|