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.
Files changed (144) hide show
  1. checksums.yaml +5 -5
  2. data/.circleci/config.yml +34 -0
  3. data/.github/ISSUE_TEMPLATE.md +22 -0
  4. data/.github/PULL_REQUEST_TEMPLATE.md +8 -0
  5. data/.gitignore +4 -2
  6. data/.hound.yml +5 -0
  7. data/.npmignore +20 -0
  8. data/.scss-lint.yml +239 -0
  9. data/.tool-versions +2 -0
  10. data/CHANGELOG.md +388 -0
  11. data/CODE_OF_CONDUCT.md +6 -0
  12. data/CONTRIBUTING.md +16 -1
  13. data/Gemfile +1 -2
  14. data/Gulpfile.js +42 -0
  15. data/{LICENSE → LICENSE.md} +8 -10
  16. data/README.md +138 -214
  17. data/RELEASING.md +27 -0
  18. data/Rakefile +3 -17
  19. data/bin/neat +2 -2
  20. data/contrib/base/_variables.scss +8 -0
  21. data/contrib/index.html +90 -0
  22. data/contrib/patterns/_box.scss +11 -0
  23. data/contrib/patterns/_global.scss +32 -0
  24. data/contrib/patterns/_grid-collapse.scss +3 -0
  25. data/contrib/patterns/_grid-media.scss +36 -0
  26. data/contrib/patterns/_grid-nested.scss +12 -0
  27. data/contrib/patterns/_grid-push.scss +7 -0
  28. data/contrib/patterns/_grid-shift.scss +7 -0
  29. data/contrib/patterns/_grid-visual.scss +3 -0
  30. data/contrib/patterns/_grid.scss +39 -0
  31. data/contrib/styles.scss +13 -0
  32. data/core/_neat.scss +26 -0
  33. data/core/neat/functions/_neat-append-grid-visual.scss +21 -0
  34. data/core/neat/functions/_neat-column-default.scss +23 -0
  35. data/core/neat/functions/_neat-column-ratio.scss +24 -0
  36. data/core/neat/functions/_neat-column-width.scss +25 -0
  37. data/core/neat/functions/_neat-float-direction.scss +22 -0
  38. data/core/neat/functions/_neat-merge-defaults.scss +23 -0
  39. data/core/neat/functions/_neat-opposite-direction.scss +22 -0
  40. data/core/neat/functions/_neat-parse-columns.scss +22 -0
  41. data/core/neat/functions/_neat-parse-media.scss +20 -0
  42. data/core/neat/functions/_retrieve-neat-settings.scss +19 -0
  43. data/core/neat/mixins/_grid-collapse.scss +35 -0
  44. data/core/neat/mixins/_grid-column.scss +39 -0
  45. data/core/neat/mixins/_grid-container.scss +31 -0
  46. data/core/neat/mixins/_grid-media.scss +88 -0
  47. data/core/neat/mixins/_grid-push.scss +37 -0
  48. data/core/neat/mixins/_grid-shift.scss +36 -0
  49. data/core/neat/mixins/_grid-visual.scss +41 -0
  50. data/core/neat/settings/_settings.scss +74 -0
  51. data/eyeglass-exports.js +7 -0
  52. data/index.js +7 -0
  53. data/lib/neat/generator.rb +43 -26
  54. data/lib/neat/version.rb +1 -1
  55. data/lib/neat.rb +6 -11
  56. data/neat.gemspec +26 -31
  57. data/package-lock.json +5960 -0
  58. data/package.json +47 -0
  59. data/spec/.keep +0 -0
  60. data/spec/fixtures/_setup.scss +1 -0
  61. data/spec/fixtures/functions/neat-column-default.scss +22 -0
  62. data/spec/fixtures/functions/neat-column-width.scss +30 -0
  63. data/spec/fixtures/functions/neat-float-direction.scss +17 -0
  64. data/spec/fixtures/functions/neat-opposite-direction.scss +17 -0
  65. data/spec/fixtures/functions/neat-parse-media.scss +9 -0
  66. data/spec/fixtures/functions/retrieve-neat-settings.scss +22 -0
  67. data/spec/fixtures/mixins/grid-collapse.scss +14 -0
  68. data/spec/fixtures/mixins/grid-column.scss +57 -0
  69. data/spec/fixtures/mixins/grid-container.scss +5 -0
  70. data/spec/fixtures/mixins/grid-media.scss +45 -0
  71. data/spec/fixtures/mixins/grid-push.scss +38 -0
  72. data/spec/fixtures/mixins/grid-shift.scss +38 -0
  73. data/spec/neat/functions/neat_column_default_spec.rb +35 -0
  74. data/spec/neat/functions/neat_column_width_spec.rb +47 -0
  75. data/spec/neat/functions/neat_float_direction_spec.rb +23 -0
  76. data/spec/neat/functions/neat_opposite_direction_spec.rb +23 -0
  77. data/spec/neat/functions/neat_parse_media_spec.rb +23 -0
  78. data/spec/neat/functions/retrieve_neat_settings_spec.rb +35 -0
  79. data/spec/neat/mixins/grid_collapse_spec.rb +26 -0
  80. data/spec/neat/mixins/grid_column_spec.rb +101 -0
  81. data/spec/neat/mixins/grid_container_spec.rb +17 -0
  82. data/spec/neat/mixins/grid_media_spec.rb +39 -0
  83. data/spec/neat/mixins/grid_push_spec.rb +59 -0
  84. data/spec/neat/mixins/grid_shift_spec.rb +59 -0
  85. data/spec/spec_helper.rb +5 -8
  86. data/spec/support/matchers/be_contained_in.rb +1 -1
  87. data/spec/support/matchers/have_rule.rb +8 -6
  88. data/spec/support/matchers/have_ruleset.rb +20 -0
  89. data/spec/support/matchers/have_value.rb +9 -7
  90. data/spec/support/parser_support.rb +8 -1
  91. data/spec/support/sass_support.rb +3 -3
  92. metadata +98 -148
  93. data/.rspec +0 -2
  94. data/.travis.yml +0 -5
  95. data/NEWS.md +0 -47
  96. data/app/assets/stylesheets/_neat-helpers.scss +0 -8
  97. data/app/assets/stylesheets/_neat.scss +0 -23
  98. data/app/assets/stylesheets/functions/_new-breakpoint.scss +0 -49
  99. data/app/assets/stylesheets/functions/_private.scss +0 -108
  100. data/app/assets/stylesheets/grid/_box-sizing.scss +0 -11
  101. data/app/assets/stylesheets/grid/_direction-context.scss +0 -31
  102. data/app/assets/stylesheets/grid/_display-context.scss +0 -26
  103. data/app/assets/stylesheets/grid/_fill-parent.scss +0 -22
  104. data/app/assets/stylesheets/grid/_media.scss +0 -92
  105. data/app/assets/stylesheets/grid/_omega.scss +0 -91
  106. data/app/assets/stylesheets/grid/_outer-container.scss +0 -36
  107. data/app/assets/stylesheets/grid/_pad.scss +0 -23
  108. data/app/assets/stylesheets/grid/_private.scss +0 -35
  109. data/app/assets/stylesheets/grid/_row.scss +0 -53
  110. data/app/assets/stylesheets/grid/_shift.scss +0 -48
  111. data/app/assets/stylesheets/grid/_span-columns.scss +0 -90
  112. data/app/assets/stylesheets/grid/_to-deprecate.scss +0 -105
  113. data/app/assets/stylesheets/grid/_visual-grid.scss +0 -40
  114. data/app/assets/stylesheets/settings/_disable-warnings.scss +0 -11
  115. data/app/assets/stylesheets/settings/_grid.scss +0 -53
  116. data/app/assets/stylesheets/settings/_visual-grid.scss +0 -25
  117. data/bower.json +0 -22
  118. data/lib/neat/engine.rb +0 -5
  119. data/lib/tasks/install.rake +0 -21
  120. data/sache.json +0 -5
  121. data/spec/neat/columns_spec.rb +0 -73
  122. data/spec/neat/container_spec.rb +0 -21
  123. data/spec/neat/default_spec.rb +0 -15
  124. data/spec/neat/direction_spec.rb +0 -19
  125. data/spec/neat/display_spec.rb +0 -19
  126. data/spec/neat/media_spec.rb +0 -55
  127. data/spec/neat/new_breakpoint_spec.rb +0 -17
  128. data/spec/neat/omega_spec.rb +0 -43
  129. data/spec/neat/pad_spec.rb +0 -32
  130. data/spec/neat/row_spec.rb +0 -39
  131. data/spec/neat/shift_spec.rb +0 -41
  132. data/spec/support/bourbon_support.rb +0 -9
  133. data/test/_setup.scss +0 -3
  134. data/test/default.scss +0 -1
  135. data/test/direction-context.scss +0 -13
  136. data/test/display-context.scss +0 -15
  137. data/test/media.scss +0 -39
  138. data/test/new-breakpoint.scss +0 -13
  139. data/test/omega.scss +0 -25
  140. data/test/outer-container.scss +0 -11
  141. data/test/pad.scss +0 -17
  142. data/test/row.scss +0 -26
  143. data/test/shift.scss +0 -36
  144. data/test/span-columns.scss +0 -21
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: db2a532bbbdb4620bed5cec00f5cd12415dba74c
4
- data.tar.gz: ef585a637c353915fc522398898eb8405972c650
2
+ SHA256:
3
+ metadata.gz: 4896438f8133a1bf16d1025c5b9301132f14441e167a94d838e2d0f42dc29afb
4
+ data.tar.gz: bc1b1abcd98d9b19439f7664b567bb38602126f192b5af97b6ff5e64d6186aa5
5
5
  SHA512:
6
- metadata.gz: fed84c2941a6d114a2c9465fcdfb154a48ba720ff1730d8f26a6965b423e60bdfd67c7f29f02d1aabedda9faa1d5db855715a7b4cc0cdfed957831b9b8c1b010
7
- data.tar.gz: 8312d8b07774daad044001744440db8136c8f567cb272535ea1402107bbb4b7797d64867952199ed15d1036f5e6b9c146d937ce4ca754150b1a97ee50c64ce24
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
@@ -1,7 +1,9 @@
1
- .DS_store
2
- .sass-cache
3
1
  *gem
4
2
  *swp
3
+ .DS_store
4
+ .sass-cache
5
+ contrib/*.css
5
6
  Gemfile.lock
7
+ node_modules
6
8
  public
7
9
  tmp
data/.hound.yml ADDED
@@ -0,0 +1,5 @@
1
+ ruby:
2
+ enabled: true
3
+ scss:
4
+ config_file: .scss-lint.yml
5
+ enabled: true
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
@@ -0,0 +1,2 @@
1
+ ruby 2.6.3
2
+ nodejs 10.16.0