bourbon 4.3.4 → 5.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (260) hide show
  1. checksums.yaml +4 -4
  2. data/.github/ISSUE_TEMPLATE.md +22 -0
  3. data/.github/PULL_REQUEST_TEMPLATE.md +10 -0
  4. data/.npmignore +6 -1
  5. data/.ruby-version +1 -0
  6. data/.scss-lint.yml +100 -8
  7. data/CHANGELOG.md +344 -5
  8. data/CODE_OF_CONDUCT.md +6 -0
  9. data/CONTRIBUTING.md +77 -28
  10. data/Gemfile +1 -1
  11. data/LICENSE.md +1 -1
  12. data/README.md +163 -92
  13. data/RELEASING.md +35 -0
  14. data/Rakefile +0 -2
  15. data/bin/bourbon +1 -2
  16. data/bourbon.gemspec +31 -24
  17. data/bower.json +22 -19
  18. data/circle.yml +8 -2
  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 +249 -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 +24 -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/{app/assets/stylesheets/addons → core/bourbon/library}/_timing-functions.scss +7 -3
  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 +39 -0
  52. data/core/bourbon/utilities/_contrast-ratio.scss +31 -0
  53. data/core/bourbon/utilities/_directional-property.scss +70 -0
  54. data/core/bourbon/utilities/_fetch-bourbon-setting.scss +16 -0
  55. data/core/bourbon/utilities/_font-source-declaration.scss +51 -0
  56. data/core/bourbon/utilities/_gamma.scss +21 -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 -11
  59. data/core/bourbon/validators/_contains-falsy.scss +20 -0
  60. data/core/bourbon/validators/_contains.scss +26 -0
  61. data/core/bourbon/validators/_is-color.scss +13 -0
  62. data/{app/assets/stylesheets/functions → core/bourbon/validators}/_is-length.scss +6 -7
  63. data/core/bourbon/validators/_is-number.scss +15 -0
  64. data/core/bourbon/validators/_is-size.scss +18 -0
  65. data/features/step_definitions/bourbon_steps.rb +7 -1
  66. data/index.js +2 -2
  67. data/lib/bourbon.rb +2 -26
  68. data/lib/bourbon/generator.rb +11 -10
  69. data/lib/bourbon/version.rb +1 -1
  70. data/package.json +18 -17
  71. data/spec/bourbon/{addons → library}/border_color_spec.rb +8 -8
  72. data/spec/bourbon/{addons → library}/border_radius_spec.rb +1 -1
  73. data/spec/bourbon/{addons → library}/border_style_spec.rb +1 -1
  74. data/spec/bourbon/{addons → library}/border_width_spec.rb +1 -1
  75. data/spec/bourbon/{addons → library}/buttons_spec.rb +4 -4
  76. data/spec/bourbon/{addons → library}/clearfix_spec.rb +3 -3
  77. data/spec/bourbon/library/contrast_switch_spec.rb +23 -0
  78. data/spec/bourbon/{addons → library}/ellipsis_spec.rb +1 -1
  79. data/spec/bourbon/library/font_face_spec_1.rb +16 -0
  80. data/spec/bourbon/library/font_face_spec_2.rb +21 -0
  81. data/spec/bourbon/library/font_face_spec_3.rb +16 -0
  82. data/spec/bourbon/library/font_face_spec_4.rb +17 -0
  83. data/spec/bourbon/library/font_stacks_spec.rb +42 -0
  84. data/spec/bourbon/{addons → library}/hide_text_spec.rb +1 -1
  85. data/spec/bourbon/library/hide_visually_spec.rb +37 -0
  86. data/spec/bourbon/{addons → library}/margin_spec.rb +1 -1
  87. data/spec/bourbon/{functions → library}/modular_scale_spec.rb +6 -6
  88. data/spec/bourbon/library/overflow_wrap_spec.rb +27 -0
  89. data/spec/bourbon/{addons → library}/padding_spec.rb +1 -1
  90. data/spec/bourbon/{addons → library}/position_spec.rb +1 -1
  91. data/spec/bourbon/library/prefixer_spec.rb +34 -0
  92. data/spec/bourbon/{functions → library}/shade_spec.rb +1 -1
  93. data/spec/bourbon/{addons → library}/size_spec.rb +1 -1
  94. data/spec/bourbon/{functions/strip_units_spec.rb → library/strip_unit_spec.rb} +2 -2
  95. data/spec/bourbon/{addons → library}/text_inputs_spec.rb +25 -15
  96. data/spec/bourbon/{functions → library}/tint_spec.rb +1 -1
  97. data/spec/bourbon/library/triangle_spec.rb +31 -0
  98. data/spec/bourbon/{functions → utilities}/assign_inputs_spec.rb +8 -8
  99. data/spec/bourbon/utilities/compact_shorthand_spec.rb +30 -0
  100. data/spec/bourbon/utilities/contrast_ratio_spec.rb +23 -0
  101. data/spec/bourbon/utilities/directional_property_spec.rb +28 -0
  102. data/spec/bourbon/utilities/fetch_bourbon_setting_spec.rb +31 -0
  103. data/spec/bourbon/{helpers → utilities}/font_source_declaration_spec.rb +1 -1
  104. data/spec/bourbon/utilities/gamma_spec.rb +23 -0
  105. data/spec/bourbon/utilities/lightness_spec.rb +31 -0
  106. data/spec/bourbon/{functions → utilities}/unpack_spec.rb +1 -1
  107. data/spec/bourbon/{functions → validators}/contains_spec.rb +1 -1
  108. data/spec/bourbon/{functions → validators}/is_length_spec.rb +1 -1
  109. data/spec/bourbon/{functions → validators}/is_number_spec.rb +1 -1
  110. data/spec/bourbon/{functions → validators}/is_size_spec.rb +1 -1
  111. data/spec/fixtures/_setup.scss +1 -1
  112. data/spec/fixtures/{addons → library}/border-color.scss +4 -4
  113. data/spec/fixtures/{addons → library}/border-radius.scss +0 -0
  114. data/spec/fixtures/{addons → library}/border-style.scss +0 -0
  115. data/spec/fixtures/{addons → library}/border-width.scss +0 -0
  116. data/spec/fixtures/{addons → library}/buttons.scss +0 -0
  117. data/spec/fixtures/{addons → library}/clearfix.scss +0 -0
  118. data/spec/fixtures/library/contrast-switch.scss +9 -0
  119. data/spec/fixtures/{addons → library}/ellipsis.scss +0 -0
  120. data/spec/fixtures/library/font-face-1.scss +6 -0
  121. data/spec/fixtures/library/font-face-2.scss +10 -0
  122. data/spec/fixtures/library/font-face-3.scss +8 -0
  123. data/spec/fixtures/library/font-face-4.scss +7 -0
  124. data/spec/fixtures/library/font-stacks.scss +41 -0
  125. data/spec/fixtures/{addons → library}/hide-text.scss +0 -0
  126. data/spec/fixtures/library/hide-visually.scss +9 -0
  127. data/spec/fixtures/{addons → library}/margin.scss +0 -0
  128. data/spec/fixtures/{functions → library}/modular-scale.scss +0 -0
  129. data/spec/fixtures/library/overflow-wrap.scss +9 -0
  130. data/spec/fixtures/{addons → library}/padding.scss +0 -0
  131. data/spec/fixtures/{addons → library}/position.scss +0 -4
  132. data/spec/fixtures/library/prefixer.scss +13 -0
  133. data/spec/fixtures/{functions → library}/shade.scss +1 -1
  134. data/spec/fixtures/{addons → library}/size.scss +2 -2
  135. data/spec/fixtures/library/strip-unit.scss +17 -0
  136. data/spec/fixtures/{addons → library}/text-inputs.scss +4 -0
  137. data/spec/fixtures/{functions → library}/tint.scss +1 -1
  138. data/spec/fixtures/library/triangle.scss +9 -0
  139. data/spec/fixtures/utilities/assign-inputs.scss +19 -0
  140. data/spec/fixtures/utilities/compact-shorthand.scss +21 -0
  141. data/spec/fixtures/utilities/contrast-ratio.scss +9 -0
  142. data/spec/fixtures/utilities/directional-property.scss +17 -0
  143. data/spec/fixtures/utilities/fetch-bourbon-setting.scss +16 -0
  144. data/spec/fixtures/utilities/font-source-declaration.scss +11 -0
  145. data/spec/fixtures/utilities/gamma.scss +9 -0
  146. data/spec/fixtures/utilities/lightness.scss +13 -0
  147. data/spec/fixtures/utilities/unpack.scss +17 -0
  148. data/spec/fixtures/{functions → validators}/contains.scss +1 -1
  149. data/spec/fixtures/{functions → validators}/is-length.scss +1 -1
  150. data/spec/fixtures/{functions → validators}/is-number.scss +1 -1
  151. data/spec/fixtures/{functions → validators}/is-size.scss +1 -1
  152. data/spec/support/matchers/have_value.rb +1 -1
  153. metadata +251 -275
  154. data/app/assets/stylesheets/_bourbon-deprecate.scss +0 -19
  155. data/app/assets/stylesheets/_bourbon-deprecated-upcoming.scss +0 -425
  156. data/app/assets/stylesheets/_bourbon.scss +0 -90
  157. data/app/assets/stylesheets/addons/_border-color.scss +0 -29
  158. data/app/assets/stylesheets/addons/_border-radius.scss +0 -48
  159. data/app/assets/stylesheets/addons/_border-style.scss +0 -28
  160. data/app/assets/stylesheets/addons/_border-width.scss +0 -28
  161. data/app/assets/stylesheets/addons/_buttons.scss +0 -69
  162. data/app/assets/stylesheets/addons/_font-stacks.scss +0 -31
  163. data/app/assets/stylesheets/addons/_hide-text.scss +0 -27
  164. data/app/assets/stylesheets/addons/_margin.scss +0 -29
  165. data/app/assets/stylesheets/addons/_padding.scss +0 -29
  166. data/app/assets/stylesheets/addons/_position.scss +0 -51
  167. data/app/assets/stylesheets/addons/_prefixer.scss +0 -66
  168. data/app/assets/stylesheets/addons/_retina-image.scss +0 -27
  169. data/app/assets/stylesheets/addons/_size.scss +0 -56
  170. data/app/assets/stylesheets/addons/_text-inputs.scss +0 -118
  171. data/app/assets/stylesheets/addons/_triangle.scss +0 -63
  172. data/app/assets/stylesheets/addons/_word-wrap.scss +0 -29
  173. data/app/assets/stylesheets/css3/_animation.scss +0 -61
  174. data/app/assets/stylesheets/css3/_appearance.scss +0 -5
  175. data/app/assets/stylesheets/css3/_backface-visibility.scss +0 -5
  176. data/app/assets/stylesheets/css3/_background-image.scss +0 -44
  177. data/app/assets/stylesheets/css3/_background.scss +0 -57
  178. data/app/assets/stylesheets/css3/_border-image.scss +0 -61
  179. data/app/assets/stylesheets/css3/_calc.scss +0 -6
  180. data/app/assets/stylesheets/css3/_columns.scss +0 -67
  181. data/app/assets/stylesheets/css3/_filter.scss +0 -6
  182. data/app/assets/stylesheets/css3/_flex-box.scss +0 -327
  183. data/app/assets/stylesheets/css3/_font-face.scss +0 -29
  184. data/app/assets/stylesheets/css3/_font-feature-settings.scss +0 -6
  185. data/app/assets/stylesheets/css3/_hidpi-media-query.scss +0 -12
  186. data/app/assets/stylesheets/css3/_hyphens.scss +0 -6
  187. data/app/assets/stylesheets/css3/_image-rendering.scss +0 -15
  188. data/app/assets/stylesheets/css3/_keyframes.scss +0 -38
  189. data/app/assets/stylesheets/css3/_linear-gradient.scss +0 -40
  190. data/app/assets/stylesheets/css3/_perspective.scss +0 -12
  191. data/app/assets/stylesheets/css3/_placeholder.scss +0 -10
  192. data/app/assets/stylesheets/css3/_radial-gradient.scss +0 -40
  193. data/app/assets/stylesheets/css3/_selection.scss +0 -44
  194. data/app/assets/stylesheets/css3/_text-decoration.scss +0 -27
  195. data/app/assets/stylesheets/css3/_transform.scss +0 -21
  196. data/app/assets/stylesheets/css3/_transition.scss +0 -81
  197. data/app/assets/stylesheets/css3/_user-select.scss +0 -5
  198. data/app/assets/stylesheets/functions/_assign-inputs.scss +0 -16
  199. data/app/assets/stylesheets/functions/_contains-falsy.scss +0 -25
  200. data/app/assets/stylesheets/functions/_contains.scss +0 -31
  201. data/app/assets/stylesheets/functions/_is-light.scss +0 -26
  202. data/app/assets/stylesheets/functions/_is-number.scss +0 -16
  203. data/app/assets/stylesheets/functions/_is-size.scss +0 -23
  204. data/app/assets/stylesheets/functions/_modular-scale.scss +0 -74
  205. data/app/assets/stylesheets/functions/_px-to-em.scss +0 -24
  206. data/app/assets/stylesheets/functions/_px-to-rem.scss +0 -26
  207. data/app/assets/stylesheets/functions/_shade.scss +0 -24
  208. data/app/assets/stylesheets/functions/_strip-units.scss +0 -22
  209. data/app/assets/stylesheets/functions/_tint.scss +0 -24
  210. data/app/assets/stylesheets/functions/_transition-property-name.scss +0 -37
  211. data/app/assets/stylesheets/helpers/_convert-units.scss +0 -26
  212. data/app/assets/stylesheets/helpers/_directional-values.scss +0 -108
  213. data/app/assets/stylesheets/helpers/_font-source-declaration.scss +0 -53
  214. data/app/assets/stylesheets/helpers/_gradient-positions-parser.scss +0 -24
  215. data/app/assets/stylesheets/helpers/_linear-angle-parser.scss +0 -35
  216. data/app/assets/stylesheets/helpers/_linear-gradient-parser.scss +0 -51
  217. data/app/assets/stylesheets/helpers/_linear-positions-parser.scss +0 -77
  218. data/app/assets/stylesheets/helpers/_linear-side-corner-parser.scss +0 -41
  219. data/app/assets/stylesheets/helpers/_radial-arg-parser.scss +0 -74
  220. data/app/assets/stylesheets/helpers/_radial-gradient-parser.scss +0 -55
  221. data/app/assets/stylesheets/helpers/_radial-positions-parser.scss +0 -28
  222. data/app/assets/stylesheets/helpers/_render-gradients.scss +0 -31
  223. data/app/assets/stylesheets/helpers/_shape-size-stripper.scss +0 -15
  224. data/app/assets/stylesheets/helpers/_str-to-num.scss +0 -55
  225. data/app/assets/stylesheets/settings/_asset-pipeline.scss +0 -7
  226. data/app/assets/stylesheets/settings/_deprecation-warnings.scss +0 -8
  227. data/app/assets/stylesheets/settings/_prefixer.scss +0 -9
  228. data/app/assets/stylesheets/settings/_px-to-em.scss +0 -1
  229. data/lib/bourbon/engine.rb +0 -5
  230. data/lib/tasks/install.rake +0 -20
  231. data/sache.json +0 -5
  232. data/spec/bourbon/addons/font_stacks_spec.rb +0 -25
  233. data/spec/bourbon/addons/retina_image_spec.rb +0 -57
  234. data/spec/bourbon/addons/triangle_spec.rb +0 -32
  235. data/spec/bourbon/addons/word_wrap_spec.rb +0 -29
  236. data/spec/bourbon/css3/font_face_spec.rb +0 -45
  237. data/spec/bourbon/css3/hidpi_media_query_spec.rb +0 -23
  238. data/spec/bourbon/functions/is_light_spec.rb +0 -37
  239. data/spec/bourbon/functions/px_to_em_spec.rb +0 -31
  240. data/spec/bourbon/functions/px_to_rem_spec.rb +0 -25
  241. data/spec/bourbon/helpers/convert_units_spec.rb +0 -31
  242. data/spec/bourbon/helpers/directional_values_spec.rb +0 -39
  243. data/spec/bourbon/helpers/str_to_num_spec.rb +0 -25
  244. data/spec/fixtures/addons/font-stacks.scss +0 -21
  245. data/spec/fixtures/addons/retina-image.scss +0 -21
  246. data/spec/fixtures/addons/triangle.scss +0 -9
  247. data/spec/fixtures/addons/word-wrap.scss +0 -9
  248. data/spec/fixtures/css3/font-face.scss +0 -6
  249. data/spec/fixtures/css3/hidpi-media-query.scss +0 -13
  250. data/spec/fixtures/functions/assign-inputs.scss +0 -19
  251. data/spec/fixtures/functions/is-light.scss +0 -29
  252. data/spec/fixtures/functions/px-to-em.scss +0 -17
  253. data/spec/fixtures/functions/px-to-rem.scss +0 -15
  254. data/spec/fixtures/functions/strip-units.scss +0 -17
  255. data/spec/fixtures/functions/unpack.scss +0 -17
  256. data/spec/fixtures/helpers/convert-units.scss +0 -17
  257. data/spec/fixtures/helpers/directional-values.scss +0 -29
  258. data/spec/fixtures/helpers/font-source-declaration.scss +0 -10
  259. data/spec/fixtures/helpers/str-to-num.scss +0 -13
  260. data/spec/support/matchers/be_contained_in.rb +0 -10
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4ef6ee45b54f96a49f9efeff2b37dc73297b1c28
4
- data.tar.gz: 1755915841bdfb3100093e7ef80d4c8fb8d8a45e
3
+ metadata.gz: 1584e80e0ac32e8bd3cb84b83ba12c55a6be1923
4
+ data.tar.gz: f64c1bc64288b6618eaaf0b0e8cd126a57590f27
5
5
  SHA512:
6
- metadata.gz: 5b8f67656224a3c4ecf787c127987d72a8833edf30a57843448334a68b50646366c529a861e530fa49f2e440a4193932a49a76cb6cf6957a3eab79df6a912743
7
- data.tar.gz: bfaea42d9444d693e4ef97c2d8886d1ceaa29b62a1d997cab3d139e4d639dfd11cfbd8e259bf5d35ad98debba656295106a6b61a60929c657fcd2911198bfff2
6
+ metadata.gz: f2f53764c13fe7d31a92e66a4a3df6ded7896c89b73072cd6a2ce854a65f7ad65766a34ac418330c4cdf1411291d0269c30d8e515da0353b08cadd3ee899e44b
7
+ data.tar.gz: 87707bce377b4fa6acb24d09abe4b43cd24e37844c7d739b6c51de80d567bf2c09739e808132a1cb6fe589d78351296659ea81e9067cbdcee3603d851bd9bd5c
@@ -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/.npmignore CHANGED
@@ -1,16 +1,21 @@
1
+ .github/
1
2
  .gitignore
2
3
  .hound.yml
4
+ .ruby-version
3
5
  .sass-cache
4
6
  .scss-lint.yml
5
7
  _site
6
8
  bin/
7
9
  bourbon.gemspec
8
10
  bower.json
11
+ circle.yml
12
+ CODE_OF_CONDUCT.md
13
+ CONTRIBUTING.md
9
14
  features/
10
15
  Gemfile
11
16
  Gemfile.lock
12
17
  lib/
13
18
  pkg/
14
19
  Rakefile
15
- sache.json
20
+ RELEASING.md
16
21
  spec/
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.3.1
data/.scss-lint.yml CHANGED
@@ -1,155 +1,247 @@
1
- scss_files: "app/assets/stylesheets/**/*.scss"
1
+ scss_files: "**/*.scss"
2
+
3
+ severity: warning
4
+
2
5
  linters:
3
6
  BangFormat:
4
7
  enabled: true
5
8
  space_before_bang: true
6
9
  space_after_bang: false
10
+
7
11
  BemDepth:
8
12
  enabled: false
13
+
9
14
  BorderZero:
10
15
  enabled: true
11
16
  convention: zero
17
+
18
+ ChainedClasses:
19
+ enabled: false
20
+
12
21
  ColorKeyword:
13
22
  enabled: true
23
+
14
24
  ColorVariable:
15
25
  enabled: false
26
+
16
27
  Comment:
17
28
  enabled: true
29
+ style: silent
30
+
18
31
  DebugStatement:
19
32
  enabled: true
33
+
20
34
  DeclarationOrder:
21
35
  enabled: true
36
+
22
37
  DisableLinterReason:
23
38
  enabled: false
39
+
24
40
  DuplicateProperty:
25
41
  enabled: true
42
+
26
43
  ElsePlacement:
27
44
  enabled: true
28
45
  style: same_line
46
+
29
47
  EmptyLineBetweenBlocks:
30
48
  enabled: true
31
49
  ignore_single_line_blocks: true
50
+
32
51
  EmptyRule:
33
52
  enabled: true
53
+
34
54
  ExtendDirective:
35
55
  enabled: false
56
+
36
57
  FinalNewline:
37
58
  enabled: true
38
59
  present: true
60
+
39
61
  HexLength:
40
62
  enabled: true
41
63
  style: short
64
+
42
65
  HexNotation:
43
66
  enabled: true
44
67
  style: lowercase
68
+
45
69
  HexValidation:
46
70
  enabled: true
71
+
47
72
  IdSelector:
48
73
  enabled: true
74
+
49
75
  ImportantRule:
50
76
  enabled: true
77
+
51
78
  ImportPath:
52
79
  enabled: true
53
80
  leading_underscore: false
54
81
  filename_extension: false
82
+
55
83
  Indentation:
56
84
  enabled: true
57
85
  allow_non_nested_indentation: false
58
86
  character: space
59
87
  width: 2
88
+
60
89
  LeadingZero:
61
90
  enabled: true
62
91
  style: include_zero
92
+
63
93
  MergeableSelector:
64
94
  enabled: true
65
95
  force_nesting: true
96
+
66
97
  NameFormat:
67
98
  enabled: true
68
99
  allow_leading_underscore: true
69
100
  convention: hyphenated_lowercase
101
+
70
102
  NestingDepth:
71
103
  enabled: true
72
104
  max_depth: 3
73
105
  ignore_parent_selectors: false
106
+
74
107
  PlaceholderInExtend:
75
108
  enabled: true
109
+
110
+ PrivateNamingConvention:
111
+ enabled: false
112
+ prefix: _
113
+
76
114
  PropertyCount:
77
115
  enabled: false
116
+
78
117
  PropertySortOrder:
79
118
  enabled: true
80
119
  ignore_unspecified: false
120
+ min_properties: 2
81
121
  separate_groups: false
122
+
82
123
  PropertySpelling:
83
124
  enabled: true
125
+ extra_properties: []
126
+ disabled_properties: []
127
+
84
128
  PropertyUnits:
85
129
  enabled: true
130
+ global: [
131
+ 'ch', 'em', 'ex', 'rem',
132
+ 'cm', 'in', 'mm', 'pc', 'pt', 'px', 'q',
133
+ 'vh', 'vw', 'vmin', 'vmax',
134
+ 'deg', 'grad', 'rad', 'turn',
135
+ 'ms', 's',
136
+ 'Hz', 'kHz',
137
+ 'dpi', 'dpcm', 'dppx',
138
+ '%']
86
139
  properties:
87
140
  line-height: []
141
+
142
+ PseudoElement:
143
+ enabled: true
144
+
88
145
  QualifyingElement:
89
146
  enabled: true
90
147
  allow_element_with_attribute: false
91
148
  allow_element_with_class: false
92
149
  allow_element_with_id: false
150
+
93
151
  SelectorDepth:
94
152
  enabled: true
95
153
  max_depth: 2
96
- severity: warning
154
+
97
155
  SelectorFormat:
98
- enabled: false
156
+ enabled: true
157
+ convention: hyphenated_BEM
158
+
99
159
  Shorthand:
100
160
  enabled: true
101
161
  allowed_shorthands: [1, 2, 3]
162
+
102
163
  SingleLinePerProperty:
103
164
  enabled: true
104
165
  allow_single_line_rule_sets: true
166
+
105
167
  SingleLinePerSelector:
106
168
  enabled: true
169
+
107
170
  SpaceAfterComma:
108
171
  enabled: true
109
172
  style: one_space
173
+
174
+ SpaceAfterComment:
175
+ enabled: false
176
+ allow_empty_comments: true
177
+
110
178
  SpaceAfterPropertyColon:
111
179
  enabled: true
112
180
  style: one_space
181
+
113
182
  SpaceAfterPropertyName:
114
183
  enabled: true
184
+
185
+ SpaceAfterVariableColon:
186
+ enabled: true
187
+ style: at_least_one_space
188
+
115
189
  SpaceAfterVariableName:
116
190
  enabled: true
191
+
117
192
  SpaceAroundOperator:
118
- enabled: false
193
+ enabled: true
194
+ style: one_space
195
+
119
196
  SpaceBeforeBrace:
120
197
  enabled: true
121
198
  style: space
122
- allow_single_line_padding: false
199
+ allow_single_line_padding: true
200
+
123
201
  SpaceBetweenParens:
124
202
  enabled: true
125
203
  spaces: 0
204
+
126
205
  StringQuotes:
127
206
  enabled: true
128
207
  style: double_quotes
208
+
129
209
  TrailingSemicolon:
130
210
  enabled: true
211
+
131
212
  TrailingWhitespace:
132
213
  enabled: true
214
+
133
215
  TrailingZero:
134
- enabled: false
216
+ enabled: true
217
+
135
218
  TransitionAll:
136
219
  enabled: true
137
- severity: warning
220
+
138
221
  UnnecessaryMantissa:
139
222
  enabled: true
223
+
140
224
  UnnecessaryParentReference:
141
225
  enabled: true
226
+
142
227
  UrlFormat:
143
228
  enabled: true
144
- severity: warning
229
+
145
230
  UrlQuotes:
146
231
  enabled: true
232
+
147
233
  VariableForProperty:
148
234
  enabled: false
235
+ properties: []
236
+
149
237
  VendorPrefix:
150
238
  enabled: true
151
239
  identifier_list: base
240
+ additional_identifiers: []
241
+ excluded_identifiers: []
242
+
152
243
  ZeroUnit:
153
244
  enabled: true
245
+
154
246
  Compass::*:
155
247
  enabled: false
data/CHANGELOG.md CHANGED
@@ -3,39 +3,311 @@
3
3
  All notable changes to this project will be documented in this file. This
4
4
  project adheres to [Semantic Versioning](http://semver.org).
5
5
 
6
- ## 4.3.4 - 2017-04-01
6
+ ## [Unreleased (`master`)][unreleased]
7
+
8
+ Nothing at the moment.
9
+
10
+ [unreleased]: https://github.com/thoughtbot/bourbon/compare/v5.0.0...HEAD
11
+
12
+ ## [5.0.0] - 2018-01-05
13
+
14
+ Bourbon 5.0.0 is a major release with lots of changes and removals, which are
15
+ documented below in each of the alpha and beta releases. There are no changes
16
+ between v5.0.0-beta.8 and v5.0.0. For information on how to upgrade from v4 to
17
+ v5, read our [migrating guide][migrating-guide].
18
+
19
+ [5.0.0]: https://github.com/thoughtbot/bourbon/compare/v5.0.0.beta.8...v5.0.0
20
+ [migrating-guide]: http://www.bourbon.io/docs/migrating-from-v4-to-v5/
21
+
22
+ ## [5.0.0-beta.8] - 2017-06-26
23
+
24
+ ### Added
25
+
26
+ - A `style` property has been added to our `package.json`, which makes for easy
27
+ importing when using npm-sass, sass-module-importer and others.
28
+
29
+ ### Changed
30
+
31
+ - The `triangle` mixin no longer has default argument values. The order of the
32
+ arguments also changed: `$width` and `$height` now come before `$color`.
33
+
34
+ ### Fixed
35
+
36
+ - The `bourbon update` CLI command now works when Bourbon is installed using a
37
+ custom path.
38
+ - Fixed an issue that would cause Bourbon to not be found within Rails apps.
39
+
40
+ [5.0.0-beta.8]: https://github.com/thoughtbot/bourbon/compare/v5.0.0.beta.7...v5.0.0.beta.8
41
+
42
+ ## [5.0.0-beta.7] - 2016-11-03
43
+
44
+ ### Added
45
+
46
+ - Added `white-space: nowrap;` to the `hide-visually` mixin so that content
47
+ renders on one line and is correctly pronounced by screen readers. You can
48
+ read more about this in Jesse Beach’s article “[Beware smushed off-screen
49
+ accessible text][smushed-text-article].”
50
+
51
+ ### Changed
52
+
53
+ - Removed the default values from the `$position` and `$coordinates` arguments
54
+ for the `position` mixin.
55
+ - Updated `contrast-switch` to calculate contrast based on the WCAG 2.0
56
+ specification. Please note that it is an approximation and we cannot guarantee
57
+ full compliance, though all of our manual testing passed.
58
+ - Renamed the `$coordinates` argument in the `position` mixin
59
+ to `$box-edge-values`.
60
+ - Updated `$font-stack-system` to include Avenir Next, Avenir, Lucida
61
+ Grande, Helvetica, Noto, Franklin Gothic Medium, Century Gothic, and
62
+ Liberation Sans. This follows [system-fonts] by Adam Morse.
63
+ - The `word-break` property was removed from the `word-wrap` mixin and
64
+ is no longer output.
65
+ - Renamed the `word-wrap` mixin to `overflow-wrap` to align with the
66
+ name change in the [CSS spec].
67
+
68
+ [smushed-text-article]: https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe#.l4hkljiza
69
+ [system-fonts]: https://github.com/mrmrs/css-system-fonts
70
+ [CSS spec]: https://drafts.csswg.org/css-text-3/#propdef-overflow-wrap
71
+
72
+ [5.0.0-beta.7]: https://github.com/thoughtbot/bourbon/compare/v5.0.0.beta.6...v5.0.0.beta.7
73
+
74
+ ## [5.0.0-beta.6] - 2016-06-06
75
+
76
+ ### Added
77
+
78
+ - Added a `value-prefixer` mixin for generating vendor prefixes on values.
79
+
80
+ [5.0.0-beta.6]: https://github.com/thoughtbot/bourbon/compare/v5.0.0.beta.5...v5.0.0.beta.6
81
+
82
+ ## [5.0.0-beta.5] - 2016-03-23
83
+
84
+ ### Fixed
85
+
86
+ - Fixed a Sass load path issue that would intermittently break the importing of
87
+ Bourbon in Rails apps.
88
+
89
+ ### Changed
90
+
91
+ - Swapped the order of the `$file-formats` and `$asset-pipeline` arguments in
92
+ the `font-face` mixin, so that `$asset-pipeline` is last (because it has a
93
+ default and is likely used the least).
94
+
95
+ [5.0.0-beta.5]: https://github.com/thoughtbot/bourbon/compare/v5.0.0.beta.4...v5.0.0.beta.5
96
+
97
+ ## [5.0.0-beta.4] - 2016-03-11
98
+
99
+ ### Fixed
100
+
101
+ - We accidentally published `5.0.0.beta.3` as a stable release on npm, rather
102
+ than a prerelease. We’ve unpublished that to go back to `4.2.6` on the stable
103
+ channel.
104
+
105
+ [5.0.0-beta.4]: https://github.com/thoughtbot/bourbon/compare/v5.0.0.beta.3...v5.0.0.beta.4
106
+
107
+ ## [5.0.0-beta.3] - 2016-03-04
108
+
109
+ ### Fixed
110
+
111
+ - Added `pathname` requirement to fix install issues.
112
+
113
+ [5.0.0-beta.3]: https://github.com/thoughtbot/bourbon/compare/v5.0.0.beta.2...v5.0.0.beta.3
114
+
115
+ ## [5.0.0-beta.2] - 2016-03-03
116
+
117
+ ### Added
118
+
119
+ - Added global settings for the `contrast-switch` mixin:
120
+ `contrast-switch-dark-color` & `contrast-switch-light-color`.
121
+ - Added the `triangle` mixin back, but note that it’s been refactored and the
122
+ arguments have changed. See [43e5a90].
123
+
124
+ ### Changed
125
+
126
+ - Switched argument names in `contrast-switch`; `$dark-color` is now
127
+ `$light-color` and `$light-color` is now `$dark-color`.
128
+ - The `is-light` function is now private.
129
+
130
+ ### Removed
131
+
132
+ - Dropped support for Ruby on Rails versions older than 4.2.
133
+ - Dropped support for LibSass versions older than 3.3.
134
+
135
+ [5.0.0-beta.2]: https://github.com/thoughtbot/bourbon/compare/v5.0.0.beta.1...v5.0.0.beta.2
136
+ [43e5a90]: https://github.com/thoughtbot/bourbon/commit/43e5a90e7e624d2977731030ccdb36b3c2e460d9
137
+
138
+ ## [5.0.0-beta.1] - 2016-02-09
139
+
140
+ ### Added
141
+
142
+ - Added a `contrast-switch` function that switches between two colors based on the
143
+ lightness of a another color. Great for building button styles.
144
+ - Added an `$all-text-inputs-invalid` variable to target the `:invalid`
145
+ pseudo-class on all text-based inputs.
146
+ - The `ellipsis` mixin now takes a `$display` argument.
147
+ - Added a font stack for system fonts: `$font-stack-system`.
148
+ - Added a `hide-visually` mixin that hides an element visually while still
149
+ allowing the content to be accessible to assistive technology,
150
+ e.g. screen readers.
151
+ - The `font-face` mixin now allows additional CSS properties to be included in
152
+ its block, which will output as part of the `@font-face` declaration.
153
+ See [2356719].
154
+
155
+ ### Changed
156
+
157
+ - The global default for the `modular-scale` ratio is now set to
158
+ `$major-third` (`1.25`), instead of `$perfect-fourth` (`1.333`).
159
+ - All font stack variables are now prefixed with `$font-stack-`,
160
+ e.g. `$font-stack-helvetica`.
161
+ - Global settings are now set via a `$bourbon` map, instead of variables.
162
+ See [4e43c2d].
163
+ - The `clearfix` mixin now uses `block` display, instead of `table`.
164
+
165
+ ### Removed
166
+
167
+ - The `$weight` and `$style` arguments in the `font-face` mixin have been
168
+ removed. Instead, you can now include these—along with other CSS
169
+ properties—within the mixin block and they’ll be output as part of the
170
+ `@font-face` declaration.
171
+
172
+ [5.0.0-beta.1]: https://github.com/thoughtbot/bourbon/compare/da4451e...v5.0.0.beta.1
173
+ [2356719]: https://github.com/thoughtbot/bourbon/commit/235671948ef3a9c343c4391d250082a0373c8d83
174
+ [4e43c2d]: https://github.com/thoughtbot/bourbon/commit/4e43c2d7507999b539771bdc1b3733b18b3c1883
175
+
176
+ ## [5.0.0.alpha.0] - 2015-08-21
177
+
178
+ ### Added
179
+
180
+ - Added a `$global-font-file-formats` setting to globally set the file formats
181
+ for the `font-face` mixin. The default is `("ttf", "woff2", "woff")`.
182
+ - Add `$consolas`, `$courier-new` and `$monaco` variables (these replace the
183
+ removed `$monospace` variable).
184
+
185
+ ### Changed
186
+
187
+ - Removed the type selectors in `$all-text-inputs` and `$all-buttons` to
188
+ reduce specificity.
189
+ - Font stacks have been modernized. See [3cf106a].
190
+ - The `strip-units` function is now `strip-unit`.
191
+ - The `size` mixin now requires a comma-separated argument list,
192
+ e.g. `@include size(1em, 2em);`.
193
+
194
+ ### Removed
195
+
196
+ - All vendor prefixing mixins have been removed. These include:
197
+ - `align-items`
198
+ - `animation-delay`
199
+ - `animation-direction`
200
+ - `animation-duration`
201
+ - `animation-fill-mode`
202
+ - `animation-iteration-count`
203
+ - `animation-name`
204
+ - `animation-play-state`
205
+ - `animation-timing-function`
206
+ - `animation`
207
+ - `appearance`
208
+ - `backface-visibility`
209
+ - `background-image`
210
+ - `background`
211
+ - `border-image`
212
+ - `calc`
213
+ - `column-count`
214
+ - `column-fill`
215
+ - `column-gap`
216
+ - `column-rule-color`
217
+ - `column-rule-style`
218
+ - `column-rule-width`
219
+ - `column-rule`
220
+ - `column-span`
221
+ - `column-width`
222
+ - `columns`
223
+ - `display`
224
+ - `filter`
225
+ - `flex-direction`
226
+ - `flex`
227
+ - `font-feature-settings`
228
+ - `hidpi`
229
+ - `hyphens`
230
+ - `image-rendering`
231
+ - `justify-content`
232
+ - `keyframes`
233
+ - `linear-gradient`
234
+ - `perspective`
235
+ - `placeholder`
236
+ - `radial-gradient`
237
+ - `selection`
238
+ - `text-decoration-color`
239
+ - `text-decoration-line`
240
+ - `text-decoration-style`
241
+ - `text-decoration`
242
+ - `transform-origin`
243
+ - `transform-style`
244
+ - `transform`
245
+ - `transition-delay`
246
+ - `transition-duration`
247
+ - `transition-property`
248
+ - `transition-timing-function`
249
+ - `transition`
250
+ - `user-select`
251
+ - For prefixing, we recommend using a more robust and maintainable solution
252
+ like [Autoprefixer].
253
+ - The `$global-prefixes` setting has been removed and the `prefixer` mixin
254
+ has been refactored and no longer uses it.
255
+ - The `$monospace` variable has been removed.
256
+ - The `box-sizing` mixin has been removed.
257
+ - The `button` mixin has been removed.
258
+ - The `em` and `rem` functions have been removed.
259
+ - [See the discussion on why these were removed][em-rem-issue].
260
+ - The `flex-grid` function has been removed.
261
+ - The `flex-gutter` function has been removed.
262
+ - The `golden-ratio` function has been removed.
263
+ - The `grid-width` function has been removed.
264
+ - The `inline-block` mixin has been removed.
265
+ - The `retina-image` mixin has been removed.
266
+ - The `triangle` mixin has been removed.
267
+
268
+ [5.0.0.alpha.0]: https://github.com/thoughtbot/bourbon/compare/v4.3.4...v5.0.0.alpha.0
269
+ [3cf106a]: https://github.com/thoughtbot/bourbon/commit/3cf106a210c1bae7765e6193f62310f95fdee0b7
270
+ [Autoprefixer]: https://github.com/postcss/autoprefixer
271
+ [em-rem-issue]: https://github.com/thoughtbot/bourbon/issues/691
272
+
273
+ ## [4.3.4] - 2017-04-01
7
274
 
8
275
  ### Changed
9
276
 
10
277
  - Updated deprecation warning message for `strip-units`. ([#1016])
11
278
 
279
+ [4.3.4]: https://github.com/thoughtbot/bourbon/compare/v4.3.3...v4.3.4
12
280
  [#1016]: https://github.com/thoughtbot/bourbon/pull/1016
13
281
 
14
- ## 4.3.3 - 2017-02-23
282
+ ## [4.3.3] - 2017-02-23
15
283
 
16
284
  ### Fixed
17
285
 
18
286
  - Internal Bourbon deprecation warnings for `is-size` and `is-length` will no
19
287
  longer be thrown when using the `size` mixin.
20
288
 
21
- ## 4.3.2 - 2017-02-10
289
+ [4.3.3]: https://github.com/thoughtbot/bourbon/compare/v4.3.2...v4.3.3
290
+
291
+ ## [4.3.2] - 2017-02-10
22
292
 
23
293
  ### Fixed
24
294
 
25
295
  - Internal Bourbon deprecation warnings for `unpack` and `is-length` will no
26
296
  longer be thrown when using the `position` mixin. ([#1004])
27
297
 
298
+ [4.3.2]: https://github.com/thoughtbot/bourbon/compare/v4.3.1...v4.3.2
28
299
  [#1004]: https://github.com/thoughtbot/bourbon/pull/1004
29
300
 
30
- ## 4.3.1 - 2017-02-07
301
+ ## [4.3.1] - 2017-02-07
31
302
 
32
303
  ### Fixed
33
304
 
34
305
  - Internal Bourbon deprecation warnings will no longer be thrown. ([#1002])
35
306
 
307
+ [4.3.1]: https://github.com/thoughtbot/bourbon/compare/v4.3.0...v4.3.1
36
308
  [#1002]: https://github.com/thoughtbot/bourbon/pull/1002
37
309
 
38
- ## 4.3.0 - 2017-02-03
310
+ ## [4.3.0] - 2017-02-03
39
311
 
40
312
  ### Added
41
313
 
@@ -43,5 +315,72 @@ project adheres to [Semantic Versioning](http://semver.org).
43
315
  reference our [change log], which includes a list of these changes and
44
316
  removals. ([#891])
45
317
 
318
+ [4.3.0]: https://github.com/thoughtbot/bourbon/compare/v4.2.7...v4.3.0
46
319
  [change log]: https://github.com/thoughtbot/bourbon/blob/master/CHANGELOG.md
47
320
  [#891]: https://github.com/thoughtbot/bourbon/pull/891
321
+
322
+ ## [4.2.7] - 2016-04-15
323
+
324
+ ### Fixed
325
+
326
+ - Fixed a Sass deprecation warning when using the `background` and
327
+ `background-image` mixins.
328
+
329
+ [4.2.7]: https://github.com/thoughtbot/bourbon/compare/v4.2.6...v4.2.7
330
+
331
+ ## [4.2.6] - 2015-10-17
332
+
333
+ ### Fixed
334
+
335
+ - Fixed a bug with eyeglass support.
336
+
337
+ [4.2.6]: https://github.com/thoughtbot/bourbon/compare/v4.2.5...v4.2.6
338
+
339
+ ## [4.2.5] - 2015-09-17
340
+
341
+ ## Added
342
+
343
+ - Support for [eyeglass].
344
+
345
+ [4.2.5]: https://github.com/thoughtbot/bourbon/compare/v4.2.4...v4.2.5
346
+ [eyeglass]: http://eyeglass.rocks/
347
+
348
+ ## [4.2.4] - 2015-08-21
349
+
350
+ ## Changed
351
+
352
+ - [`$all-text-inputs`] now accounts for `input`’s that don’t have a `type`
353
+ attribute specified, as they default to `type="text"`.
354
+ (https://github.com/thoughtbot/bourbon/commit/8e7e36e01c47194d83951fb6315c5b26a008f2b7)
355
+ - The [`bourbon` npm package] now has a proper load path.
356
+ (https://github.com/thoughtbot/bourbon/commit/36c2d5576f1fe9dbdfd9543e15064c5a4a16343e)
357
+
358
+ [4.2.4]: https://github.com/thoughtbot/bourbon/compare/v4.2.3...v4.2.4
359
+ [`$all-text-inputs`]: http://bourbon.io/docs/#text-inputs
360
+ [`bourbon` npm package]: https://npmjs.com/package/bourbon
361
+
362
+ ## [4.2.3] - 2015-05-18
363
+
364
+ ## Fixed
365
+
366
+ - Fixed an issue with the `font-face` mixin outputting an extraneous commas when
367
+ using LibSass set to compressed output.
368
+
369
+ [4.2.3]: https://github.com/thoughtbot/bourbon/compare/v4.2.2...v4.2.3
370
+
371
+ ## [4.2.2] - 2015-04-01
372
+
373
+ ## Fixed
374
+
375
+ - The `flex-direction` mixin now properly outputs box-direction (old syntax) if
376
+ set to normal.
377
+
378
+ [4.2.2]: https://github.com/thoughtbot/bourbon/compare/v4.2.1...v4.2.2
379
+
380
+ ## [4.2.1] - 2015-02-23
381
+
382
+ ## Fixed
383
+
384
+ - Restored the `app/` directory for npm.
385
+
386
+ [4.2.1]: https://github.com/thoughtbot/bourbon/compare/v4.2.0...v4.2.1