bourbon 4.2.4 → 7.3.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 (266) hide show
  1. checksums.yaml +5 -5
  2. data/.circleci/config.yml +42 -0
  3. data/.github/ISSUE_TEMPLATE.md +22 -0
  4. data/.github/PULL_REQUEST_TEMPLATE.md +10 -0
  5. data/.gitignore +1 -1
  6. data/.hound.yml +4 -1
  7. data/.npmignore +7 -4
  8. data/.stylelintrc.json +3 -0
  9. data/CHANGELOG.md +450 -0
  10. data/CODE_OF_CONDUCT.md +6 -0
  11. data/CONTRIBUTING.md +81 -28
  12. data/Gemfile +1 -1
  13. data/LICENSE.md +1 -1
  14. data/README.md +153 -86
  15. data/RELEASING.md +32 -0
  16. data/Rakefile +0 -2
  17. data/bin/bourbon +1 -2
  18. data/bourbon.gemspec +31 -24
  19. data/core/_bourbon.scss +54 -0
  20. data/core/bourbon/helpers/_buttons-list.scss +14 -0
  21. data/core/bourbon/helpers/_scales.scss +27 -0
  22. data/core/bourbon/helpers/_text-inputs-list.scss +26 -0
  23. data/core/bourbon/library/_border-color.scss +26 -0
  24. data/core/bourbon/library/_border-radius.scss +85 -0
  25. data/core/bourbon/library/_border-style.scss +25 -0
  26. data/core/bourbon/library/_border-width.scss +25 -0
  27. data/core/bourbon/library/_buttons.scss +84 -0
  28. data/{app/assets/stylesheets/addons → core/bourbon/library}/_clearfix.scss +5 -5
  29. data/core/bourbon/library/_contrast-switch.scss +81 -0
  30. data/{app/assets/stylesheets/addons → core/bourbon/library}/_ellipsis.scss +12 -6
  31. data/core/bourbon/library/_font-face.scss +65 -0
  32. data/core/bourbon/library/_font-stacks.scss +248 -0
  33. data/core/bourbon/library/_hide-text.scss +24 -0
  34. data/core/bourbon/library/_hide-visually.scss +70 -0
  35. data/core/bourbon/library/_margin.scss +37 -0
  36. data/core/bourbon/library/_modular-scale.scss +120 -0
  37. data/core/bourbon/library/_overflow-wrap.scss +25 -0
  38. data/core/bourbon/library/_padding.scss +36 -0
  39. data/core/bourbon/library/_position.scss +62 -0
  40. data/core/bourbon/library/_prefixer.scss +37 -0
  41. data/core/bourbon/library/_shade.scss +32 -0
  42. data/core/bourbon/library/_size.scss +50 -0
  43. data/core/bourbon/library/_strip-unit.scss +17 -0
  44. data/core/bourbon/library/_text-inputs.scss +163 -0
  45. data/core/bourbon/library/_timing-functions.scss +36 -0
  46. data/core/bourbon/library/_tint.scss +32 -0
  47. data/core/bourbon/library/_triangle.scss +82 -0
  48. data/core/bourbon/library/_value-prefixer.scss +37 -0
  49. data/core/bourbon/settings/_settings.scss +75 -0
  50. data/core/bourbon/utilities/_assign-inputs.scss +28 -0
  51. data/core/bourbon/utilities/_compact-shorthand.scss +42 -0
  52. data/core/bourbon/utilities/_contrast-ratio.scss +31 -0
  53. data/core/bourbon/utilities/_directional-property.scss +68 -0
  54. data/core/bourbon/utilities/_fetch-bourbon-setting.scss +16 -0
  55. data/core/bourbon/utilities/_font-source-declaration.scss +52 -0
  56. data/core/bourbon/utilities/_gamma.scss +24 -0
  57. data/core/bourbon/utilities/_lightness.scss +24 -0
  58. data/{app/assets/stylesheets/functions/_unpack.scss → core/bourbon/utilities/_unpack-shorthand.scss} +8 -6
  59. data/{app/assets/stylesheets/functions → core/bourbon/validators}/_contains-falsy.scss +6 -6
  60. data/{app/assets/stylesheets/functions → core/bourbon/validators}/_contains.scss +8 -8
  61. data/core/bourbon/validators/_is-color.scss +13 -0
  62. data/core/bourbon/validators/_is-length.scss +20 -0
  63. data/core/bourbon/validators/_is-number.scss +15 -0
  64. data/core/bourbon/validators/_is-size.scss +18 -0
  65. data/eyeglass-exports.js +7 -0
  66. data/features/install.feature +0 -1
  67. data/features/step_definitions/bourbon_steps.rb +13 -5
  68. data/features/update.feature +0 -1
  69. data/features/version.feature +0 -2
  70. data/index.js +2 -2
  71. data/lib/bourbon/generator.rb +11 -10
  72. data/lib/bourbon/version.rb +1 -1
  73. data/lib/bourbon.rb +7 -18
  74. data/package-lock.json +6636 -0
  75. data/package.json +26 -13
  76. data/spec/bourbon/{addons → library}/border_color_spec.rb +8 -8
  77. data/spec/bourbon/{addons → library}/border_radius_spec.rb +1 -1
  78. data/spec/bourbon/{addons → library}/border_style_spec.rb +1 -1
  79. data/spec/bourbon/{addons → library}/border_width_spec.rb +1 -1
  80. data/spec/bourbon/{addons → library}/buttons_spec.rb +4 -4
  81. data/spec/bourbon/{addons → library}/clearfix_spec.rb +3 -3
  82. data/spec/bourbon/library/contrast_switch_spec.rb +23 -0
  83. data/spec/bourbon/{addons → library}/ellipsis_spec.rb +1 -1
  84. data/spec/bourbon/library/font_face_spec_1.rb +16 -0
  85. data/spec/bourbon/library/font_face_spec_2.rb +20 -0
  86. data/spec/bourbon/library/font_face_spec_3.rb +16 -0
  87. data/spec/bourbon/library/font_stacks_spec.rb +42 -0
  88. data/spec/bourbon/{addons → library}/hide_text_spec.rb +1 -1
  89. data/spec/bourbon/library/hide_visually_spec.rb +37 -0
  90. data/spec/bourbon/{addons → library}/margin_spec.rb +1 -1
  91. data/spec/bourbon/{functions → library}/modular_scale_spec.rb +6 -6
  92. data/spec/bourbon/library/overflow_wrap_spec.rb +27 -0
  93. data/spec/bourbon/{addons → library}/padding_spec.rb +1 -1
  94. data/spec/bourbon/{addons → library}/position_spec.rb +1 -1
  95. data/spec/bourbon/library/prefixer_spec.rb +34 -0
  96. data/spec/bourbon/{functions → library}/shade_spec.rb +1 -1
  97. data/spec/bourbon/{addons → library}/size_spec.rb +1 -1
  98. data/spec/bourbon/{functions/strip_units_spec.rb → library/strip_unit_spec.rb} +2 -2
  99. data/spec/bourbon/{addons → library}/text_inputs_spec.rb +25 -15
  100. data/spec/bourbon/{functions → library}/tint_spec.rb +1 -1
  101. data/spec/bourbon/library/triangle_spec.rb +31 -0
  102. data/spec/bourbon/{functions → utilities}/assign_inputs_spec.rb +8 -8
  103. data/spec/bourbon/utilities/compact_shorthand_spec.rb +30 -0
  104. data/spec/bourbon/utilities/contrast_ratio_spec.rb +23 -0
  105. data/spec/bourbon/utilities/directional_property_spec.rb +28 -0
  106. data/spec/bourbon/utilities/fetch_bourbon_setting_spec.rb +31 -0
  107. data/spec/bourbon/utilities/font_source_declaration_spec.rb +23 -0
  108. data/spec/bourbon/utilities/gamma_spec.rb +23 -0
  109. data/spec/bourbon/utilities/lightness_spec.rb +31 -0
  110. data/spec/bourbon/{functions → utilities}/unpack_spec.rb +1 -1
  111. data/spec/bourbon/{functions → validators}/contains_spec.rb +1 -1
  112. data/spec/bourbon/{functions → validators}/is_length_spec.rb +13 -1
  113. data/spec/bourbon/{functions → validators}/is_number_spec.rb +1 -1
  114. data/spec/bourbon/{functions → validators}/is_size_spec.rb +1 -1
  115. data/spec/fixtures/_setup.scss +1 -1
  116. data/spec/fixtures/{addons → library}/border-color.scss +4 -4
  117. data/spec/fixtures/library/contrast-switch.scss +9 -0
  118. data/spec/fixtures/library/font-face-1.scss +6 -0
  119. data/spec/fixtures/library/font-face-2.scss +10 -0
  120. data/spec/fixtures/library/font-face-3.scss +8 -0
  121. data/spec/fixtures/library/font-stacks.scss +41 -0
  122. data/spec/fixtures/library/hide-visually.scss +9 -0
  123. data/spec/fixtures/library/overflow-wrap.scss +9 -0
  124. data/spec/fixtures/{addons → library}/position.scss +0 -4
  125. data/spec/fixtures/library/prefixer.scss +13 -0
  126. data/spec/fixtures/{functions → library}/shade.scss +1 -1
  127. data/spec/fixtures/{addons → library}/size.scss +2 -2
  128. data/spec/fixtures/library/strip-unit.scss +17 -0
  129. data/spec/fixtures/{addons → library}/text-inputs.scss +4 -0
  130. data/spec/fixtures/{functions → library}/tint.scss +1 -1
  131. data/spec/fixtures/library/triangle.scss +9 -0
  132. data/spec/fixtures/utilities/assign-inputs.scss +19 -0
  133. data/spec/fixtures/utilities/compact-shorthand.scss +21 -0
  134. data/spec/fixtures/utilities/contrast-ratio.scss +9 -0
  135. data/spec/fixtures/utilities/directional-property.scss +17 -0
  136. data/spec/fixtures/utilities/fetch-bourbon-setting.scss +16 -0
  137. data/spec/fixtures/utilities/font-source-declaration.scss +11 -0
  138. data/spec/fixtures/utilities/gamma.scss +9 -0
  139. data/spec/fixtures/utilities/lightness.scss +13 -0
  140. data/spec/fixtures/utilities/unpack.scss +17 -0
  141. data/spec/fixtures/{functions → validators}/contains.scss +1 -1
  142. data/spec/fixtures/{functions → validators}/is-length.scss +9 -1
  143. data/spec/fixtures/{functions → validators}/is-number.scss +1 -1
  144. data/spec/fixtures/{functions → validators}/is-size.scss +1 -1
  145. data/spec/support/matchers/have_value.rb +1 -1
  146. data/spec/support/sass_support.rb +2 -2
  147. metadata +254 -281
  148. data/.scss-lint.yml +0 -14
  149. data/.travis.yml +0 -8
  150. data/app/assets/stylesheets/_bourbon-deprecated-upcoming.scss +0 -411
  151. data/app/assets/stylesheets/_bourbon.scss +0 -87
  152. data/app/assets/stylesheets/addons/_border-color.scss +0 -26
  153. data/app/assets/stylesheets/addons/_border-radius.scss +0 -48
  154. data/app/assets/stylesheets/addons/_border-style.scss +0 -25
  155. data/app/assets/stylesheets/addons/_border-width.scss +0 -25
  156. data/app/assets/stylesheets/addons/_buttons.scss +0 -64
  157. data/app/assets/stylesheets/addons/_font-stacks.scss +0 -31
  158. data/app/assets/stylesheets/addons/_hide-text.scss +0 -27
  159. data/app/assets/stylesheets/addons/_margin.scss +0 -26
  160. data/app/assets/stylesheets/addons/_padding.scss +0 -26
  161. data/app/assets/stylesheets/addons/_position.scss +0 -48
  162. data/app/assets/stylesheets/addons/_prefixer.scss +0 -66
  163. data/app/assets/stylesheets/addons/_retina-image.scss +0 -25
  164. data/app/assets/stylesheets/addons/_size.scss +0 -51
  165. data/app/assets/stylesheets/addons/_text-inputs.scss +0 -113
  166. data/app/assets/stylesheets/addons/_timing-functions.scss +0 -34
  167. data/app/assets/stylesheets/addons/_triangle.scss +0 -63
  168. data/app/assets/stylesheets/addons/_word-wrap.scss +0 -29
  169. data/app/assets/stylesheets/css3/_animation.scss +0 -43
  170. data/app/assets/stylesheets/css3/_appearance.scss +0 -3
  171. data/app/assets/stylesheets/css3/_backface-visibility.scss +0 -3
  172. data/app/assets/stylesheets/css3/_background-image.scss +0 -42
  173. data/app/assets/stylesheets/css3/_background.scss +0 -55
  174. data/app/assets/stylesheets/css3/_border-image.scss +0 -59
  175. data/app/assets/stylesheets/css3/_calc.scss +0 -4
  176. data/app/assets/stylesheets/css3/_columns.scss +0 -47
  177. data/app/assets/stylesheets/css3/_filter.scss +0 -4
  178. data/app/assets/stylesheets/css3/_flex-box.scss +0 -287
  179. data/app/assets/stylesheets/css3/_font-face.scss +0 -24
  180. data/app/assets/stylesheets/css3/_font-feature-settings.scss +0 -4
  181. data/app/assets/stylesheets/css3/_hidpi-media-query.scss +0 -10
  182. data/app/assets/stylesheets/css3/_hyphens.scss +0 -4
  183. data/app/assets/stylesheets/css3/_image-rendering.scss +0 -14
  184. data/app/assets/stylesheets/css3/_keyframes.scss +0 -36
  185. data/app/assets/stylesheets/css3/_linear-gradient.scss +0 -38
  186. data/app/assets/stylesheets/css3/_perspective.scss +0 -8
  187. data/app/assets/stylesheets/css3/_placeholder.scss +0 -8
  188. data/app/assets/stylesheets/css3/_radial-gradient.scss +0 -39
  189. data/app/assets/stylesheets/css3/_selection.scss +0 -42
  190. data/app/assets/stylesheets/css3/_text-decoration.scss +0 -19
  191. data/app/assets/stylesheets/css3/_transform.scss +0 -15
  192. data/app/assets/stylesheets/css3/_transition.scss +0 -71
  193. data/app/assets/stylesheets/css3/_user-select.scss +0 -3
  194. data/app/assets/stylesheets/functions/_assign-inputs.scss +0 -11
  195. data/app/assets/stylesheets/functions/_is-length.scss +0 -11
  196. data/app/assets/stylesheets/functions/_is-light.scss +0 -21
  197. data/app/assets/stylesheets/functions/_is-number.scss +0 -11
  198. data/app/assets/stylesheets/functions/_is-size.scss +0 -13
  199. data/app/assets/stylesheets/functions/_modular-scale.scss +0 -69
  200. data/app/assets/stylesheets/functions/_px-to-em.scss +0 -13
  201. data/app/assets/stylesheets/functions/_px-to-rem.scss +0 -15
  202. data/app/assets/stylesheets/functions/_shade.scss +0 -24
  203. data/app/assets/stylesheets/functions/_strip-units.scss +0 -17
  204. data/app/assets/stylesheets/functions/_tint.scss +0 -24
  205. data/app/assets/stylesheets/functions/_transition-property-name.scss +0 -22
  206. data/app/assets/stylesheets/helpers/_convert-units.scss +0 -21
  207. data/app/assets/stylesheets/helpers/_directional-values.scss +0 -96
  208. data/app/assets/stylesheets/helpers/_font-source-declaration.scss +0 -43
  209. data/app/assets/stylesheets/helpers/_gradient-positions-parser.scss +0 -13
  210. data/app/assets/stylesheets/helpers/_linear-angle-parser.scss +0 -25
  211. data/app/assets/stylesheets/helpers/_linear-gradient-parser.scss +0 -41
  212. data/app/assets/stylesheets/helpers/_linear-positions-parser.scss +0 -61
  213. data/app/assets/stylesheets/helpers/_linear-side-corner-parser.scss +0 -31
  214. data/app/assets/stylesheets/helpers/_radial-arg-parser.scss +0 -69
  215. data/app/assets/stylesheets/helpers/_radial-gradient-parser.scss +0 -50
  216. data/app/assets/stylesheets/helpers/_radial-positions-parser.scss +0 -18
  217. data/app/assets/stylesheets/helpers/_render-gradients.scss +0 -26
  218. data/app/assets/stylesheets/helpers/_shape-size-stripper.scss +0 -10
  219. data/app/assets/stylesheets/helpers/_str-to-num.scss +0 -50
  220. data/app/assets/stylesheets/settings/_asset-pipeline.scss +0 -7
  221. data/app/assets/stylesheets/settings/_prefixer.scss +0 -9
  222. data/app/assets/stylesheets/settings/_px-to-em.scss +0 -1
  223. data/bower.json +0 -36
  224. data/lib/bourbon/engine.rb +0 -5
  225. data/lib/tasks/install.rake +0 -20
  226. data/sache.json +0 -5
  227. data/spec/bourbon/addons/font_stacks_spec.rb +0 -25
  228. data/spec/bourbon/addons/retina_image_spec.rb +0 -57
  229. data/spec/bourbon/addons/triangle_spec.rb +0 -32
  230. data/spec/bourbon/addons/word_wrap_spec.rb +0 -29
  231. data/spec/bourbon/css3/font_face_spec.rb +0 -45
  232. data/spec/bourbon/css3/hidpi_media_query_spec.rb +0 -23
  233. data/spec/bourbon/functions/is_light_spec.rb +0 -37
  234. data/spec/bourbon/functions/px_to_em_spec.rb +0 -31
  235. data/spec/bourbon/functions/px_to_rem_spec.rb +0 -25
  236. data/spec/bourbon/helpers/convert_units_spec.rb +0 -31
  237. data/spec/bourbon/helpers/directional_values_spec.rb +0 -39
  238. data/spec/bourbon/helpers/font_source_declaration_spec.rb +0 -29
  239. data/spec/bourbon/helpers/str_to_num_spec.rb +0 -25
  240. data/spec/fixtures/addons/font-stacks.scss +0 -21
  241. data/spec/fixtures/addons/retina-image.scss +0 -21
  242. data/spec/fixtures/addons/triangle.scss +0 -9
  243. data/spec/fixtures/addons/word-wrap.scss +0 -9
  244. data/spec/fixtures/css3/font-face.scss +0 -6
  245. data/spec/fixtures/css3/hidpi-media-query.scss +0 -13
  246. data/spec/fixtures/functions/assign-inputs.scss +0 -19
  247. data/spec/fixtures/functions/is-light.scss +0 -29
  248. data/spec/fixtures/functions/px-to-em.scss +0 -17
  249. data/spec/fixtures/functions/px-to-rem.scss +0 -15
  250. data/spec/fixtures/functions/strip-units.scss +0 -17
  251. data/spec/fixtures/functions/unpack.scss +0 -17
  252. data/spec/fixtures/helpers/convert-units.scss +0 -17
  253. data/spec/fixtures/helpers/directional-values.scss +0 -29
  254. data/spec/fixtures/helpers/font-source-declaration.scss +0 -10
  255. data/spec/fixtures/helpers/str-to-num.scss +0 -13
  256. data/spec/support/matchers/be_contained_in.rb +0 -10
  257. /data/spec/fixtures/{addons → library}/border-radius.scss +0 -0
  258. /data/spec/fixtures/{addons → library}/border-style.scss +0 -0
  259. /data/spec/fixtures/{addons → library}/border-width.scss +0 -0
  260. /data/spec/fixtures/{addons → library}/buttons.scss +0 -0
  261. /data/spec/fixtures/{addons → library}/clearfix.scss +0 -0
  262. /data/spec/fixtures/{addons → library}/ellipsis.scss +0 -0
  263. /data/spec/fixtures/{addons → library}/hide-text.scss +0 -0
  264. /data/spec/fixtures/{addons → library}/margin.scss +0 -0
  265. /data/spec/fixtures/{functions → library}/modular-scale.scss +0 -0
  266. /data/spec/fixtures/{addons → library}/padding.scss +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 5f314dffdd8ed3cfb4a6170d6825614cfa7294e1
4
- data.tar.gz: 95dbacf29f1be76e148f10eb49093ee1e3f7d772
2
+ SHA256:
3
+ metadata.gz: e8b1bb739922d66275ca7d386952f6225db7ac7bbb382cf107d55c4517478d35
4
+ data.tar.gz: e111c742294460bf8bf934fe40c3a2e80d1a1a7ac0a7bb9d35d932823c54fe11
5
5
  SHA512:
6
- metadata.gz: cdd828376b51a33ae123103766571cf8d02a5e257426016b18d90aa50bcaca85154bbdee6750b6187756cbd34b5d3bd4b68b98e1ddc7eca36fa30dd4052eff3a
7
- data.tar.gz: c554ba1b34e8e340174e9444a43c3ddb53828e5c3012a2ff1df9066dcaae3d711ad740c2e4e087302d85dda5876767ae54a5b3742325767f96a265feeb298af7
6
+ metadata.gz: 864c62b0d5a67b196ddaef3b5f4f5d6892ce84de42bb563071a27170ced0c452938426ceb1293b34ca6d926240fedd82dd784c5c848a7641d93c59cffb2fc50c
7
+ data.tar.gz: a002231748d4a66b84b5d3dd5a67f0068c23fc1982ef7a44929312a1c11a8566b5e1f521dc4203f8c6a88c117e216eacf8ab057d0a608c31842954defaa50943
@@ -0,0 +1,42 @@
1
+ version: 2.1
2
+
3
+ orbs:
4
+ # orbs are basically bundles of pre-written build scripts that work for common cases
5
+ # https://github.com/CircleCI-Public/ruby-orb
6
+ ruby: circleci/ruby@1.1
7
+
8
+ jobs:
9
+ test:
10
+ parameters:
11
+ ruby-version:
12
+ type: string
13
+ docker:
14
+ - image: cimg/ruby:<< parameters.ruby-version >>-node
15
+ steps:
16
+ - checkout
17
+ - restore_cache:
18
+ keys:
19
+ - bourbon-bundle-v1-{{ checksum "bourbon.gemspec" }}
20
+ - bourbon-bundle-v1-
21
+ - run:
22
+ name: Run Bundler
23
+ command: bundle install --path vendor/bundle
24
+ - save_cache:
25
+ key: bourbon-bundle-v1-{{ checksum "bourbon.gemspec" }}
26
+ paths:
27
+ - vendor/bundle
28
+ - run:
29
+ name: Run the tests
30
+ command: bundle exec rake
31
+ - run:
32
+ name: Parse SassDoc comments
33
+ command: npm run sassdoc
34
+ workflows:
35
+ build_and_test:
36
+ jobs:
37
+ - test:
38
+ matrix:
39
+ parameters:
40
+ # https://github.com/CircleCI-Public/cimg-ruby
41
+ # only supports the last three ruby versions
42
+ ruby-version: ["2.7", "3.0", "3.1", "3.2"]
@@ -0,0 +1,22 @@
1
+ <!-- Feel free to remove any part of this issue template that is not relevant -->
2
+ <!-- Providing context helps us come up with a useful solution -->
3
+
4
+ ## Description
5
+
6
+ <!-- What did you expect to happen? What happened instead? Was a specific error thrown? -->
7
+
8
+ ## Steps to Reproduce
9
+
10
+ <!-- If you can reproduce the bug in a CodePen, link to it here -->
11
+
12
+ 1. Step 1…
13
+ 2.
14
+ 3.
15
+
16
+ ## Development Environment
17
+
18
+ <!--- Include as many relevant details about the environment you experienced the bug in -->
19
+
20
+ - Bourbon version:
21
+ - Platform:
22
+ - Link to the code repository:
@@ -0,0 +1,10 @@
1
+ <!-- Feel free to remove any part of this pull request template that is not relevant -->
2
+
3
+ ## Description
4
+
5
+ <!-- What do your changes do or fix? -->
6
+
7
+ ## Additional Information
8
+
9
+ <!-- Links to demos, e.g. CodePen, can be helpful, as are research and support documents -->
10
+ <!-- If this fixes or is related to an existing issue, link to it here (and in the commit message) -->
data/.gitignore CHANGED
@@ -5,4 +5,4 @@
5
5
  _site
6
6
  Gemfile.lock
7
7
  npm-debug.log
8
- tmp
8
+ tmp/
data/.hound.yml CHANGED
@@ -1,5 +1,8 @@
1
1
  ruby:
2
2
  enabled: true
3
3
  scss:
4
- config_file: .scss-lint.yml
4
+ enabled: false
5
+ stylelint:
6
+ config_file: .stylelintrc.json
5
7
  enabled: true
8
+ # version: 10.1.0
data/.npmignore CHANGED
@@ -1,17 +1,20 @@
1
+ .circleci/
2
+ .github/
1
3
  .gitignore
2
4
  .hound.yml
5
+ .ruby-version
3
6
  .sass-cache
4
- .scss-lint.yml
5
- .travis.yml
7
+ .stylelintrc.json
6
8
  _site
7
9
  bin/
8
10
  bourbon.gemspec
9
- bower.json
11
+ CODE_OF_CONDUCT.md
12
+ CONTRIBUTING.md
10
13
  features/
11
14
  Gemfile
12
15
  Gemfile.lock
13
16
  lib/
14
17
  pkg/
15
18
  Rakefile
16
- sache.json
19
+ RELEASING.md
17
20
  spec/
data/.stylelintrc.json ADDED
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": "@thoughtbot/stylelint-config"
3
+ }
data/CHANGELOG.md ADDED
@@ -0,0 +1,450 @@
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
+ ## [7.3.0] - 2023-01-20
7
+
8
+ ## Changed
9
+ - Update initializers so they only include assets for >=Rails 5. [https://github.com/thoughtbot/bourbon/pull/1109/](https://github.com/thoughtbot/bourbon/pull/1109/files)
10
+
11
+ ## [7.2.0] - 2022-02-22
12
+
13
+ ### Changed
14
+
15
+ - Revert "Replace `/` with `math.div` per Dart Sass 2.0.0 updates."
16
+
17
+ [7.2.0]: https://github.com/thoughtbot/bourbon/compare/v7.1.0...v7.2.0
18
+
19
+ ## [7.1.0] - 2022-02-22
20
+
21
+ ### Changed
22
+
23
+ - Replace `/` with `math.div` per Dart Sass 2.0.0 updates.
24
+
25
+ [7.1.0]: https://github.com/thoughtbot/bourbon/compare/v7.0.0...v7.1.0
26
+
27
+ ## [7.0.0] - 2020-03-09
28
+
29
+ ### Added
30
+
31
+ - Improved error handling of unsupported font file formats in the `font-face`
32
+ mixin (supported formats are `woff2` and `woff`).
33
+ - CSS `var()` and `env()` functions are now accepted as values in the
34
+ `position` and `size` mixins.
35
+
36
+ ### Changed
37
+
38
+ - Updated `thor` from 0.x to 1.x
39
+
40
+ ### Removed
41
+
42
+ - The `font-face` mixin no longer supports `ttf`, `svg`, and `eot`
43
+ font file formats.
44
+
45
+ [7.0.0]: https://github.com/thoughtbot/bourbon/compare/v6.0.0...v7.0.0
46
+
47
+ ## [6.0.0] - 2019-07-10
48
+
49
+ ### Removed
50
+
51
+ - Installation through Bower is no longer supported.
52
+ - The sass gem (the deprecated Ruby Sass) is no longer a runtime dependency.
53
+
54
+ [6.0.0]: https://github.com/thoughtbot/bourbon/compare/v5.1.0...v6.0.0
55
+
56
+ ## [5.1.0] - 2018-07-20
57
+
58
+ ### Added
59
+
60
+ - `$font-stack-system` now includes the `system-ui` value.
61
+
62
+ ### Changed
63
+
64
+ - The `_gamma` function will use a `pow` function, if available.
65
+
66
+ [5.1.0]: https://github.com/thoughtbot/bourbon/compare/v5.0.1...v5.1.0
67
+
68
+ ## [5.0.1] - 2018-06-08
69
+
70
+ ### Fixed
71
+
72
+ - Fixed an issue that would cause Bourbon to not be found when using SassC.
73
+
74
+ [5.0.1]: https://github.com/thoughtbot/bourbon/compare/v5.0.0...v5.0.1
75
+
76
+ ## [5.0.0] - 2018-01-05
77
+
78
+ Bourbon 5.0.0 is a major release with lots of changes and removals, which are
79
+ documented below in each of the alpha and beta releases. There are no changes
80
+ between v5.0.0-beta.8 and v5.0.0. For information on how to upgrade from v4 to
81
+ v5, read our [migrating guide][migrating-guide].
82
+
83
+ [5.0.0]: https://github.com/thoughtbot/bourbon/compare/v5.0.0.beta.8...v5.0.0
84
+ [migrating-guide]: https://www.bourbon.io/docs/migrating-from-v4-to-v5/
85
+
86
+ ## [5.0.0-beta.8] - 2017-06-26
87
+
88
+ ### Added
89
+
90
+ - A `style` property has been added to our `package.json`, which makes for easy
91
+ importing when using npm-sass, sass-module-importer and others.
92
+
93
+ ### Changed
94
+
95
+ - The `triangle` mixin no longer has default argument values. The order of the
96
+ arguments also changed: `$width` and `$height` now come before `$color`.
97
+
98
+ ### Fixed
99
+
100
+ - The `bourbon update` CLI command now works when Bourbon is installed using a
101
+ custom path.
102
+ - Fixed an issue that would cause Bourbon to not be found within Rails apps.
103
+
104
+ [5.0.0-beta.8]: https://github.com/thoughtbot/bourbon/compare/v5.0.0.beta.7...v5.0.0.beta.8
105
+
106
+ ## [5.0.0-beta.7] - 2016-11-03
107
+
108
+ ### Added
109
+
110
+ - Added `white-space: nowrap;` to the `hide-visually` mixin so that content
111
+ renders on one line and is correctly pronounced by screen readers. You can
112
+ read more about this in Jesse Beach’s article “[Beware smushed off-screen
113
+ accessible text][smushed-text-article].”
114
+
115
+ ### Changed
116
+
117
+ - Removed the default values from the `$position` and `$coordinates` arguments
118
+ for the `position` mixin.
119
+ - Updated `contrast-switch` to calculate contrast based on the WCAG 2.0
120
+ specification. Please note that it is an approximation and we cannot guarantee
121
+ full compliance, though all of our manual testing passed.
122
+ - Renamed the `$coordinates` argument in the `position` mixin
123
+ to `$box-edge-values`.
124
+ - Updated `$font-stack-system` to include Avenir Next, Avenir, Lucida
125
+ Grande, Helvetica, Noto, Franklin Gothic Medium, Century Gothic, and
126
+ Liberation Sans. This follows [system-fonts] by Adam Morse.
127
+ - The `word-break` property was removed from the `word-wrap` mixin and
128
+ is no longer output.
129
+ - Renamed the `word-wrap` mixin to `overflow-wrap` to align with the
130
+ name change in the [CSS spec].
131
+
132
+ [smushed-text-article]: https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe#.l4hkljiza
133
+ [system-fonts]: https://github.com/mrmrs/css-system-fonts
134
+ [CSS spec]: https://drafts.csswg.org/css-text-3/#propdef-overflow-wrap
135
+
136
+ [5.0.0-beta.7]: https://github.com/thoughtbot/bourbon/compare/v5.0.0.beta.6...v5.0.0.beta.7
137
+
138
+ ## [5.0.0-beta.6] - 2016-06-06
139
+
140
+ ### Added
141
+
142
+ - Added a `value-prefixer` mixin for generating vendor prefixes on values.
143
+
144
+ [5.0.0-beta.6]: https://github.com/thoughtbot/bourbon/compare/v5.0.0.beta.5...v5.0.0.beta.6
145
+
146
+ ## [5.0.0-beta.5] - 2016-03-23
147
+
148
+ ### Fixed
149
+
150
+ - Fixed a Sass load path issue that would intermittently break the importing of
151
+ Bourbon in Rails apps.
152
+
153
+ ### Changed
154
+
155
+ - Swapped the order of the `$file-formats` and `$asset-pipeline` arguments in
156
+ the `font-face` mixin, so that `$asset-pipeline` is last (because it has a
157
+ default and is likely used the least).
158
+
159
+ [5.0.0-beta.5]: https://github.com/thoughtbot/bourbon/compare/v5.0.0.beta.4...v5.0.0.beta.5
160
+
161
+ ## [5.0.0-beta.4] - 2016-03-11
162
+
163
+ ### Fixed
164
+
165
+ - We accidentally published `5.0.0.beta.3` as a stable release on npm, rather
166
+ than a prerelease. We’ve unpublished that to go back to `4.2.6` on the stable
167
+ channel.
168
+
169
+ [5.0.0-beta.4]: https://github.com/thoughtbot/bourbon/compare/v5.0.0.beta.3...v5.0.0.beta.4
170
+
171
+ ## [5.0.0-beta.3] - 2016-03-04
172
+
173
+ ### Fixed
174
+
175
+ - Added `pathname` requirement to fix install issues.
176
+
177
+ [5.0.0-beta.3]: https://github.com/thoughtbot/bourbon/compare/v5.0.0.beta.2...v5.0.0.beta.3
178
+
179
+ ## [5.0.0-beta.2] - 2016-03-03
180
+
181
+ ### Added
182
+
183
+ - Added global settings for the `contrast-switch` mixin:
184
+ `contrast-switch-dark-color` & `contrast-switch-light-color`.
185
+ - Added the `triangle` mixin back, but note that it’s been refactored and the
186
+ arguments have changed. See [43e5a90].
187
+
188
+ ### Changed
189
+
190
+ - Switched argument names in `contrast-switch`; `$dark-color` is now
191
+ `$light-color` and `$light-color` is now `$dark-color`.
192
+ - The `is-light` function is now private.
193
+
194
+ ### Removed
195
+
196
+ - Dropped support for Ruby on Rails versions older than 4.2.
197
+ - Dropped support for LibSass versions older than 3.3.
198
+
199
+ [5.0.0-beta.2]: https://github.com/thoughtbot/bourbon/compare/v5.0.0.beta.1...v5.0.0.beta.2
200
+ [43e5a90]: https://github.com/thoughtbot/bourbon/commit/43e5a90e7e624d2977731030ccdb36b3c2e460d9
201
+
202
+ ## [5.0.0-beta.1] - 2016-02-09
203
+
204
+ ### Added
205
+
206
+ - Added a `contrast-switch` function that switches between two colors based on the
207
+ lightness of a another color. Great for building button styles.
208
+ - Added an `$all-text-inputs-invalid` variable to target the `:invalid`
209
+ pseudo-class on all text-based inputs.
210
+ - The `ellipsis` mixin now takes a `$display` argument.
211
+ - Added a font stack for system fonts: `$font-stack-system`.
212
+ - Added a `hide-visually` mixin that hides an element visually while still
213
+ allowing the content to be accessible to assistive technology,
214
+ e.g. screen readers.
215
+ - The `font-face` mixin now allows additional CSS properties to be included in
216
+ its block, which will output as part of the `@font-face` declaration.
217
+ See [2356719].
218
+
219
+ ### Changed
220
+
221
+ - The global default for the `modular-scale` ratio is now set to
222
+ `$major-third` (`1.25`), instead of `$perfect-fourth` (`1.333`).
223
+ - All font stack variables are now prefixed with `$font-stack-`,
224
+ e.g. `$font-stack-helvetica`.
225
+ - Global settings are now set via a `$bourbon` map, instead of variables.
226
+ See [4e43c2d].
227
+ - The `clearfix` mixin now uses `block` display, instead of `table`.
228
+
229
+ ### Removed
230
+
231
+ - The `$weight` and `$style` arguments in the `font-face` mixin have been
232
+ removed. Instead, you can now include these—along with other CSS
233
+ properties—within the mixin block and they’ll be output as part of the
234
+ `@font-face` declaration.
235
+
236
+ [5.0.0-beta.1]: https://github.com/thoughtbot/bourbon/compare/da4451e...v5.0.0.beta.1
237
+ [2356719]: https://github.com/thoughtbot/bourbon/commit/235671948ef3a9c343c4391d250082a0373c8d83
238
+ [4e43c2d]: https://github.com/thoughtbot/bourbon/commit/4e43c2d7507999b539771bdc1b3733b18b3c1883
239
+
240
+ ## [5.0.0.alpha.0] - 2015-08-21
241
+
242
+ ### Added
243
+
244
+ - Added a `$global-font-file-formats` setting to globally set the file formats
245
+ for the `font-face` mixin. The default is `("ttf", "woff2", "woff")`.
246
+ - Add `$consolas`, `$courier-new` and `$monaco` variables (these replace the
247
+ removed `$monospace` variable).
248
+
249
+ ### Changed
250
+
251
+ - Removed the type selectors in `$all-text-inputs` and `$all-buttons` to
252
+ reduce specificity.
253
+ - Font stacks have been modernized. See [3cf106a].
254
+ - The `strip-units` function is now `strip-unit`.
255
+ - The `size` mixin now requires a comma-separated argument list,
256
+ e.g. `@include size(1em, 2em);`.
257
+
258
+ ### Removed
259
+
260
+ - All vendor prefixing mixins have been removed. These include:
261
+ - `align-items`
262
+ - `animation-delay`
263
+ - `animation-direction`
264
+ - `animation-duration`
265
+ - `animation-fill-mode`
266
+ - `animation-iteration-count`
267
+ - `animation-name`
268
+ - `animation-play-state`
269
+ - `animation-timing-function`
270
+ - `animation`
271
+ - `appearance`
272
+ - `backface-visibility`
273
+ - `background-image`
274
+ - `background`
275
+ - `border-image`
276
+ - `calc`
277
+ - `column-count`
278
+ - `column-fill`
279
+ - `column-gap`
280
+ - `column-rule-color`
281
+ - `column-rule-style`
282
+ - `column-rule-width`
283
+ - `column-rule`
284
+ - `column-span`
285
+ - `column-width`
286
+ - `columns`
287
+ - `display`
288
+ - `filter`
289
+ - `flex-direction`
290
+ - `flex`
291
+ - `font-feature-settings`
292
+ - `hidpi`
293
+ - `hyphens`
294
+ - `image-rendering`
295
+ - `justify-content`
296
+ - `keyframes`
297
+ - `linear-gradient`
298
+ - `perspective`
299
+ - `placeholder`
300
+ - `radial-gradient`
301
+ - `selection`
302
+ - `text-decoration-color`
303
+ - `text-decoration-line`
304
+ - `text-decoration-style`
305
+ - `text-decoration`
306
+ - `transform-origin`
307
+ - `transform-style`
308
+ - `transform`
309
+ - `transition-delay`
310
+ - `transition-duration`
311
+ - `transition-property`
312
+ - `transition-timing-function`
313
+ - `transition`
314
+ - `user-select`
315
+ - For prefixing, we recommend using a more robust and maintainable solution
316
+ like [Autoprefixer].
317
+ - The `$global-prefixes` setting has been removed and the `prefixer` mixin
318
+ has been refactored and no longer uses it.
319
+ - The `$monospace` variable has been removed.
320
+ - The `box-sizing` mixin has been removed.
321
+ - The `button` mixin has been removed.
322
+ - The `em` and `rem` functions have been removed.
323
+ - [See the discussion on why these were removed][em-rem-issue].
324
+ - The `flex-grid` function has been removed.
325
+ - The `flex-gutter` function has been removed.
326
+ - The `golden-ratio` function has been removed.
327
+ - The `grid-width` function has been removed.
328
+ - The `inline-block` mixin has been removed.
329
+ - The `retina-image` mixin has been removed.
330
+ - The `triangle` mixin has been removed.
331
+
332
+ [5.0.0.alpha.0]: https://github.com/thoughtbot/bourbon/compare/v4.3.4...v5.0.0.alpha.0
333
+ [3cf106a]: https://github.com/thoughtbot/bourbon/commit/3cf106a210c1bae7765e6193f62310f95fdee0b7
334
+ [Autoprefixer]: https://github.com/postcss/autoprefixer
335
+ [em-rem-issue]: https://github.com/thoughtbot/bourbon/issues/691
336
+
337
+ ## [4.3.4] - 2017-04-01
338
+
339
+ ### Changed
340
+
341
+ - Updated deprecation warning message for `strip-units`. ([#1016])
342
+
343
+ [4.3.4]: https://github.com/thoughtbot/bourbon/compare/v4.3.3...v4.3.4
344
+ [#1016]: https://github.com/thoughtbot/bourbon/pull/1016
345
+
346
+ ## [4.3.3] - 2017-02-23
347
+
348
+ ### Fixed
349
+
350
+ - Internal Bourbon deprecation warnings for `is-size` and `is-length` will no
351
+ longer be thrown when using the `size` mixin.
352
+
353
+ [4.3.3]: https://github.com/thoughtbot/bourbon/compare/v4.3.2...v4.3.3
354
+
355
+ ## [4.3.2] - 2017-02-10
356
+
357
+ ### Fixed
358
+
359
+ - Internal Bourbon deprecation warnings for `unpack` and `is-length` will no
360
+ longer be thrown when using the `position` mixin. ([#1004])
361
+
362
+ [4.3.2]: https://github.com/thoughtbot/bourbon/compare/v4.3.1...v4.3.2
363
+ [#1004]: https://github.com/thoughtbot/bourbon/pull/1004
364
+
365
+ ## [4.3.1] - 2017-02-07
366
+
367
+ ### Fixed
368
+
369
+ - Internal Bourbon deprecation warnings will no longer be thrown. ([#1002])
370
+
371
+ [4.3.1]: https://github.com/thoughtbot/bourbon/compare/v4.3.0...v4.3.1
372
+ [#1002]: https://github.com/thoughtbot/bourbon/pull/1002
373
+
374
+ ## [4.3.0] - 2017-02-03
375
+
376
+ ### Added
377
+
378
+ - Added deprecation warnings for features that will be removed in 5.0.0. Please
379
+ reference our [change log], which includes a list of these changes and
380
+ removals. ([#891])
381
+
382
+ [4.3.0]: https://github.com/thoughtbot/bourbon/compare/v4.2.7...v4.3.0
383
+ [change log]: https://github.com/thoughtbot/bourbon/blob/master/CHANGELOG.md
384
+ [#891]: https://github.com/thoughtbot/bourbon/pull/891
385
+
386
+ ## [4.2.7] - 2016-04-15
387
+
388
+ ### Fixed
389
+
390
+ - Fixed a Sass deprecation warning when using the `background` and
391
+ `background-image` mixins.
392
+
393
+ [4.2.7]: https://github.com/thoughtbot/bourbon/compare/v4.2.6...v4.2.7
394
+
395
+ ## [4.2.6] - 2015-10-17
396
+
397
+ ### Fixed
398
+
399
+ - Fixed a bug with eyeglass support.
400
+
401
+ [4.2.6]: https://github.com/thoughtbot/bourbon/compare/v4.2.5...v4.2.6
402
+
403
+ ## [4.2.5] - 2015-09-17
404
+
405
+ ## Added
406
+
407
+ - Support for [eyeglass].
408
+
409
+ [4.2.5]: https://github.com/thoughtbot/bourbon/compare/v4.2.4...v4.2.5
410
+ [eyeglass]: http://eyeglass.rocks/
411
+
412
+ ## [4.2.4] - 2015-08-21
413
+
414
+ ## Changed
415
+
416
+ - [`$all-text-inputs`] now accounts for `input`’s that don’t have a `type`
417
+ attribute specified, as they default to `type="text"`.
418
+ (https://github.com/thoughtbot/bourbon/commit/8e7e36e01c47194d83951fb6315c5b26a008f2b7)
419
+ - The [`bourbon` npm package] now has a proper load path.
420
+ (https://github.com/thoughtbot/bourbon/commit/36c2d5576f1fe9dbdfd9543e15064c5a4a16343e)
421
+
422
+ [4.2.4]: https://github.com/thoughtbot/bourbon/compare/v4.2.3...v4.2.4
423
+ [`$all-text-inputs`]: http://bourbon.io/docs/#text-inputs
424
+ [`bourbon` npm package]: https://npmjs.com/package/bourbon
425
+
426
+ ## [4.2.3] - 2015-05-18
427
+
428
+ ## Fixed
429
+
430
+ - Fixed an issue with the `font-face` mixin outputting an extraneous commas when
431
+ using LibSass set to compressed output.
432
+
433
+ [4.2.3]: https://github.com/thoughtbot/bourbon/compare/v4.2.2...v4.2.3
434
+
435
+ ## [4.2.2] - 2015-04-01
436
+
437
+ ## Fixed
438
+
439
+ - The `flex-direction` mixin now properly outputs box-direction (old syntax) if
440
+ set to normal.
441
+
442
+ [4.2.2]: https://github.com/thoughtbot/bourbon/compare/v4.2.1...v4.2.2
443
+
444
+ ## [4.2.1] - 2015-02-23
445
+
446
+ ## Fixed
447
+
448
+ - Restored the `app/` directory for npm.
449
+
450
+ [4.2.1]: https://github.com/thoughtbot/bourbon/compare/v4.2.0...v4.2.1
@@ -0,0 +1,6 @@
1
+ # Code of Conduct
2
+
3
+ By participating in this project, you agree to abide by the
4
+ [thoughtbot code of conduct][tb-coc].
5
+
6
+ [tb-coc]: https://thoughtbot.com/open-source-code-of-conduct