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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 4896438f8133a1bf16d1025c5b9301132f14441e167a94d838e2d0f42dc29afb
|
4
|
+
data.tar.gz: bc1b1abcd98d9b19439f7664b567bb38602126f192b5af97b6ff5e64d6186aa5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4caff65ed0bf93115ac5871f4a65d46cd807f39cb8721c3ad71c7ca4e9c3b4a7146f2864e40422ca27319035ad1b63a6a759a737cdabe75f643496116189de29
|
7
|
+
data.tar.gz: ddeae2cd56d4a76bcb2d7a89bf6ec49379e827a2e2a0fefc1062bd7a5322be6397ee88d5d81cd4d86877e0d027c4694ec78326c44cb31d4981e83090238b32b7
|
@@ -0,0 +1,34 @@
|
|
1
|
+
version: 2
|
2
|
+
|
3
|
+
jobs:
|
4
|
+
build:
|
5
|
+
docker:
|
6
|
+
- image: circleci/ruby:2.6.3-node
|
7
|
+
|
8
|
+
steps:
|
9
|
+
- checkout
|
10
|
+
|
11
|
+
- restore_cache:
|
12
|
+
keys:
|
13
|
+
- neat-{{ arch }}-{{ checksum "neat.gemspec" }}
|
14
|
+
|
15
|
+
- run:
|
16
|
+
name: Install Ruby dependencies
|
17
|
+
command: bundle install --path vendor/bundle
|
18
|
+
|
19
|
+
- run:
|
20
|
+
name: Install SassDoc
|
21
|
+
command: sudo npm install -g sassdoc@2.5.0
|
22
|
+
|
23
|
+
- save_cache:
|
24
|
+
key: neat-{{ arch }}-{{ checksum "neat.gemspec" }}
|
25
|
+
paths:
|
26
|
+
- vendor/bundle
|
27
|
+
|
28
|
+
- run:
|
29
|
+
name: Run the tests
|
30
|
+
command: bundle exec rake
|
31
|
+
|
32
|
+
- run:
|
33
|
+
name: Parse SassDoc comments
|
34
|
+
command: sassdoc core/ --parse --verbose --strict
|
@@ -0,0 +1,22 @@
|
|
1
|
+
Welcome to Neat! 👋🎉
|
2
|
+
|
3
|
+
Do you need help or have a question? Please check out Neat on [Stack Overflow]. Got an idea for a new feature or found a bug? Please fill out the sections below... thank you 👍
|
4
|
+
|
5
|
+
[Stack Overflow]: https://stackoverflow.com/questions/tagged/neat
|
6
|
+
|
7
|
+
### Issue Summary
|
8
|
+
|
9
|
+
A summary of the issue and the browser/OS environment in which it occurs.
|
10
|
+
|
11
|
+
### Steps to Reproduce
|
12
|
+
|
13
|
+
1. This is the first step
|
14
|
+
2. This is the second step, etc.
|
15
|
+
|
16
|
+
Any other info, for example, why you consider this to be a bug? What did you expect to happen instead?
|
17
|
+
|
18
|
+
### Technical details:
|
19
|
+
|
20
|
+
- Neat Version:
|
21
|
+
- Build Tool or Environment:
|
22
|
+
- Browser/OS:
|
@@ -0,0 +1,8 @@
|
|
1
|
+
Got some code for us? Awesome 🎊!
|
2
|
+
|
3
|
+
Please include a description of your change and the problem it solves. Then check your PR against this list. Thanks!
|
4
|
+
- [ ] Commit message has a short title & issue references
|
5
|
+
- [ ] Commits are squashed
|
6
|
+
- [ ] The build will pass (run `bundle exec rake`).
|
7
|
+
|
8
|
+
More info can be found by clicking the "guidelines for contributing" link above.
|
data/.gitignore
CHANGED
data/.hound.yml
ADDED
data/.npmignore
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
.github/
|
2
|
+
.gitignore
|
3
|
+
.hound.yml
|
4
|
+
.ruby-version
|
5
|
+
.sass-cache
|
6
|
+
.scss-lint.yml
|
7
|
+
bin/
|
8
|
+
circle.yml
|
9
|
+
CODE_OF_CONDUCT.md
|
10
|
+
contrib/
|
11
|
+
CONTRIBUTING.md
|
12
|
+
Gemfile
|
13
|
+
Gemfile.lock
|
14
|
+
Gulpfile.js
|
15
|
+
lib/
|
16
|
+
neat.gemspec
|
17
|
+
pkg/
|
18
|
+
Rakefile
|
19
|
+
RELEASING.md
|
20
|
+
spec/
|
data/.scss-lint.yml
ADDED
@@ -0,0 +1,239 @@
|
|
1
|
+
scss_files: "**/*.scss"
|
2
|
+
|
3
|
+
severity: warning
|
4
|
+
|
5
|
+
linters:
|
6
|
+
BangFormat:
|
7
|
+
enabled: true
|
8
|
+
space_before_bang: true
|
9
|
+
space_after_bang: false
|
10
|
+
|
11
|
+
BemDepth:
|
12
|
+
enabled: false
|
13
|
+
|
14
|
+
BorderZero:
|
15
|
+
enabled: true
|
16
|
+
convention: zero
|
17
|
+
|
18
|
+
ChainedClasses:
|
19
|
+
enabled: false
|
20
|
+
|
21
|
+
ColorKeyword:
|
22
|
+
enabled: true
|
23
|
+
|
24
|
+
ColorVariable:
|
25
|
+
enabled: false
|
26
|
+
|
27
|
+
Comment:
|
28
|
+
enabled: true
|
29
|
+
style: silent
|
30
|
+
|
31
|
+
DebugStatement:
|
32
|
+
enabled: true
|
33
|
+
|
34
|
+
DeclarationOrder:
|
35
|
+
enabled: true
|
36
|
+
|
37
|
+
DisableLinterReason:
|
38
|
+
enabled: false
|
39
|
+
|
40
|
+
DuplicateProperty:
|
41
|
+
enabled: true
|
42
|
+
|
43
|
+
ElsePlacement:
|
44
|
+
enabled: true
|
45
|
+
style: same_line
|
46
|
+
|
47
|
+
EmptyLineBetweenBlocks:
|
48
|
+
enabled: true
|
49
|
+
ignore_single_line_blocks: true
|
50
|
+
|
51
|
+
EmptyRule:
|
52
|
+
enabled: true
|
53
|
+
|
54
|
+
ExtendDirective:
|
55
|
+
enabled: false
|
56
|
+
|
57
|
+
FinalNewline:
|
58
|
+
enabled: true
|
59
|
+
present: true
|
60
|
+
|
61
|
+
HexLength:
|
62
|
+
enabled: true
|
63
|
+
style: short
|
64
|
+
|
65
|
+
HexNotation:
|
66
|
+
enabled: true
|
67
|
+
style: lowercase
|
68
|
+
|
69
|
+
HexValidation:
|
70
|
+
enabled: true
|
71
|
+
|
72
|
+
IdSelector:
|
73
|
+
enabled: true
|
74
|
+
|
75
|
+
ImportantRule:
|
76
|
+
enabled: true
|
77
|
+
|
78
|
+
ImportPath:
|
79
|
+
enabled: true
|
80
|
+
leading_underscore: false
|
81
|
+
filename_extension: false
|
82
|
+
|
83
|
+
Indentation:
|
84
|
+
enabled: true
|
85
|
+
allow_non_nested_indentation: false
|
86
|
+
character: space
|
87
|
+
width: 2
|
88
|
+
|
89
|
+
LeadingZero:
|
90
|
+
enabled: true
|
91
|
+
style: include_zero
|
92
|
+
|
93
|
+
MergeableSelector:
|
94
|
+
enabled: true
|
95
|
+
force_nesting: true
|
96
|
+
|
97
|
+
NameFormat:
|
98
|
+
enabled: true
|
99
|
+
allow_leading_underscore: true
|
100
|
+
convention: hyphenated_lowercase
|
101
|
+
|
102
|
+
NestingDepth:
|
103
|
+
enabled: true
|
104
|
+
max_depth: 3
|
105
|
+
ignore_parent_selectors: false
|
106
|
+
|
107
|
+
PlaceholderInExtend:
|
108
|
+
enabled: true
|
109
|
+
|
110
|
+
PropertyCount:
|
111
|
+
enabled: false
|
112
|
+
|
113
|
+
PropertySortOrder:
|
114
|
+
enabled: true
|
115
|
+
ignore_unspecified: false
|
116
|
+
min_properties: 2
|
117
|
+
separate_groups: false
|
118
|
+
|
119
|
+
PropertySpelling:
|
120
|
+
enabled: true
|
121
|
+
extra_properties: []
|
122
|
+
disabled_properties: []
|
123
|
+
|
124
|
+
PropertyUnits:
|
125
|
+
enabled: true
|
126
|
+
global: [
|
127
|
+
'ch', 'em', 'ex', 'rem',
|
128
|
+
'cm', 'in', 'mm', 'pc', 'pt', 'px', 'q',
|
129
|
+
'vh', 'vw', 'vmin', 'vmax',
|
130
|
+
'deg', 'grad', 'rad', 'turn',
|
131
|
+
'ms', 's',
|
132
|
+
'Hz', 'kHz',
|
133
|
+
'dpi', 'dpcm', 'dppx',
|
134
|
+
'%']
|
135
|
+
properties:
|
136
|
+
line-height: []
|
137
|
+
|
138
|
+
PseudoElement:
|
139
|
+
enabled: true
|
140
|
+
|
141
|
+
QualifyingElement:
|
142
|
+
enabled: true
|
143
|
+
allow_element_with_attribute: false
|
144
|
+
allow_element_with_class: false
|
145
|
+
allow_element_with_id: false
|
146
|
+
|
147
|
+
SelectorDepth:
|
148
|
+
enabled: true
|
149
|
+
max_depth: 2
|
150
|
+
|
151
|
+
SelectorFormat:
|
152
|
+
enabled: true
|
153
|
+
convention: hyphenated_BEM
|
154
|
+
|
155
|
+
Shorthand:
|
156
|
+
enabled: true
|
157
|
+
allowed_shorthands: [1, 2, 3]
|
158
|
+
|
159
|
+
SingleLinePerProperty:
|
160
|
+
enabled: true
|
161
|
+
allow_single_line_rule_sets: true
|
162
|
+
|
163
|
+
SingleLinePerSelector:
|
164
|
+
enabled: true
|
165
|
+
|
166
|
+
SpaceAfterComma:
|
167
|
+
enabled: true
|
168
|
+
style: one_space
|
169
|
+
|
170
|
+
SpaceAfterComment:
|
171
|
+
enabled: false
|
172
|
+
allow_empty_comments: true
|
173
|
+
|
174
|
+
SpaceAfterPropertyColon:
|
175
|
+
enabled: true
|
176
|
+
style: one_space
|
177
|
+
|
178
|
+
SpaceAfterPropertyName:
|
179
|
+
enabled: true
|
180
|
+
|
181
|
+
SpaceAfterVariableName:
|
182
|
+
enabled: true
|
183
|
+
|
184
|
+
SpaceAroundOperator:
|
185
|
+
enabled: true
|
186
|
+
style: one_space
|
187
|
+
|
188
|
+
SpaceBeforeBrace:
|
189
|
+
enabled: true
|
190
|
+
style: space
|
191
|
+
allow_single_line_padding: true
|
192
|
+
|
193
|
+
SpaceBetweenParens:
|
194
|
+
enabled: true
|
195
|
+
spaces: 0
|
196
|
+
|
197
|
+
StringQuotes:
|
198
|
+
enabled: true
|
199
|
+
style: double_quotes
|
200
|
+
|
201
|
+
TrailingSemicolon:
|
202
|
+
enabled: true
|
203
|
+
|
204
|
+
TrailingWhitespace:
|
205
|
+
enabled: true
|
206
|
+
|
207
|
+
TrailingZero:
|
208
|
+
enabled: true
|
209
|
+
|
210
|
+
TransitionAll:
|
211
|
+
enabled: true
|
212
|
+
|
213
|
+
UnnecessaryMantissa:
|
214
|
+
enabled: true
|
215
|
+
|
216
|
+
UnnecessaryParentReference:
|
217
|
+
enabled: true
|
218
|
+
|
219
|
+
UrlFormat:
|
220
|
+
enabled: true
|
221
|
+
|
222
|
+
UrlQuotes:
|
223
|
+
enabled: true
|
224
|
+
|
225
|
+
VariableForProperty:
|
226
|
+
enabled: false
|
227
|
+
properties: []
|
228
|
+
|
229
|
+
VendorPrefix:
|
230
|
+
enabled: true
|
231
|
+
identifier_list: base
|
232
|
+
additional_identifiers: []
|
233
|
+
excluded_identifiers: []
|
234
|
+
|
235
|
+
ZeroUnit:
|
236
|
+
enabled: true
|
237
|
+
|
238
|
+
Compass::*:
|
239
|
+
enabled: false
|
data/.tool-versions
ADDED