bourbon 4.2.4 → 6.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.circleci/config.yml +34 -0
- data/.github/ISSUE_TEMPLATE.md +22 -0
- data/.github/PULL_REQUEST_TEMPLATE.md +10 -0
- data/.gitignore +1 -1
- data/.hound.yml +3 -1
- data/.npmignore +7 -4
- data/.stylelintrc.json +3 -0
- data/.tool-versions +2 -0
- data/CHANGELOG.md +415 -0
- data/CODE_OF_CONDUCT.md +6 -0
- data/CONTRIBUTING.md +81 -28
- data/Gemfile +1 -1
- data/LICENSE.md +1 -1
- data/README.md +164 -86
- data/RELEASING.md +33 -0
- data/Rakefile +0 -2
- data/bin/bourbon +1 -2
- data/bourbon.gemspec +30 -24
- data/core/_bourbon.scss +54 -0
- data/core/bourbon/helpers/_buttons-list.scss +14 -0
- data/core/bourbon/helpers/_scales.scss +27 -0
- data/core/bourbon/helpers/_text-inputs-list.scss +26 -0
- data/core/bourbon/library/_border-color.scss +26 -0
- data/core/bourbon/library/_border-radius.scss +85 -0
- data/core/bourbon/library/_border-style.scss +25 -0
- data/core/bourbon/library/_border-width.scss +25 -0
- data/core/bourbon/library/_buttons.scss +84 -0
- data/{app/assets/stylesheets/addons → core/bourbon/library}/_clearfix.scss +5 -5
- data/core/bourbon/library/_contrast-switch.scss +81 -0
- data/{app/assets/stylesheets/addons → core/bourbon/library}/_ellipsis.scss +12 -6
- data/core/bourbon/library/_font-face.scss +65 -0
- data/core/bourbon/library/_font-stacks.scss +248 -0
- data/core/bourbon/library/_hide-text.scss +24 -0
- data/core/bourbon/library/_hide-visually.scss +70 -0
- data/core/bourbon/library/_margin.scss +37 -0
- data/core/bourbon/library/_modular-scale.scss +120 -0
- data/core/bourbon/library/_overflow-wrap.scss +28 -0
- data/core/bourbon/library/_padding.scss +36 -0
- data/core/bourbon/library/_position.scss +62 -0
- data/core/bourbon/library/_prefixer.scss +37 -0
- data/core/bourbon/library/_shade.scss +32 -0
- data/core/bourbon/library/_size.scss +50 -0
- data/core/bourbon/library/_strip-unit.scss +17 -0
- data/core/bourbon/library/_text-inputs.scss +163 -0
- data/core/bourbon/library/_timing-functions.scss +36 -0
- data/core/bourbon/library/_tint.scss +32 -0
- data/core/bourbon/library/_triangle.scss +82 -0
- data/core/bourbon/library/_value-prefixer.scss +37 -0
- data/core/bourbon/settings/_settings.scss +75 -0
- data/core/bourbon/utilities/_assign-inputs.scss +28 -0
- data/core/bourbon/utilities/_compact-shorthand.scss +42 -0
- data/core/bourbon/utilities/_contrast-ratio.scss +31 -0
- data/core/bourbon/utilities/_directional-property.scss +68 -0
- data/core/bourbon/utilities/_fetch-bourbon-setting.scss +16 -0
- data/{app/assets/stylesheets/helpers → core/bourbon/utilities}/_font-source-declaration.scss +23 -15
- data/core/bourbon/utilities/_gamma.scss +24 -0
- data/core/bourbon/utilities/_lightness.scss +24 -0
- data/{app/assets/stylesheets/functions/_unpack.scss → core/bourbon/utilities/_unpack-shorthand.scss} +8 -6
- data/{app/assets/stylesheets/functions → core/bourbon/validators}/_contains-falsy.scss +6 -6
- data/{app/assets/stylesheets/functions → core/bourbon/validators}/_contains.scss +8 -8
- data/core/bourbon/validators/_is-color.scss +13 -0
- data/{app/assets/stylesheets/functions → core/bourbon/validators}/_is-length.scss +6 -2
- data/core/bourbon/validators/_is-number.scss +15 -0
- data/core/bourbon/validators/_is-size.scss +18 -0
- data/eyeglass-exports.js +7 -0
- data/features/install.feature +0 -1
- data/features/step_definitions/bourbon_steps.rb +13 -5
- data/features/update.feature +0 -1
- data/features/version.feature +0 -2
- data/index.js +2 -2
- data/lib/bourbon/generator.rb +11 -10
- data/lib/bourbon/version.rb +1 -1
- data/lib/bourbon.rb +6 -19
- data/package-lock.json +3449 -0
- data/package.json +24 -13
- data/spec/bourbon/{addons → library}/border_color_spec.rb +8 -8
- data/spec/bourbon/{addons → library}/border_radius_spec.rb +1 -1
- data/spec/bourbon/{addons → library}/border_style_spec.rb +1 -1
- data/spec/bourbon/{addons → library}/border_width_spec.rb +1 -1
- data/spec/bourbon/{addons → library}/buttons_spec.rb +4 -4
- data/spec/bourbon/{addons → library}/clearfix_spec.rb +3 -3
- data/spec/bourbon/library/contrast_switch_spec.rb +23 -0
- data/spec/bourbon/{addons → library}/ellipsis_spec.rb +1 -1
- data/spec/bourbon/library/font_face_spec_1.rb +16 -0
- data/spec/bourbon/library/font_face_spec_2.rb +21 -0
- data/spec/bourbon/library/font_face_spec_3.rb +16 -0
- data/spec/bourbon/library/font_face_spec_4.rb +17 -0
- data/spec/bourbon/library/font_stacks_spec.rb +42 -0
- data/spec/bourbon/{addons → library}/hide_text_spec.rb +1 -1
- data/spec/bourbon/library/hide_visually_spec.rb +37 -0
- data/spec/bourbon/{addons → library}/margin_spec.rb +1 -1
- data/spec/bourbon/{functions → library}/modular_scale_spec.rb +6 -6
- data/spec/bourbon/library/overflow_wrap_spec.rb +27 -0
- data/spec/bourbon/{addons → library}/padding_spec.rb +1 -1
- data/spec/bourbon/{addons → library}/position_spec.rb +1 -1
- data/spec/bourbon/library/prefixer_spec.rb +34 -0
- data/spec/bourbon/{functions → library}/shade_spec.rb +1 -1
- data/spec/bourbon/{addons → library}/size_spec.rb +1 -1
- data/spec/bourbon/{functions/strip_units_spec.rb → library/strip_unit_spec.rb} +2 -2
- data/spec/bourbon/{addons → library}/text_inputs_spec.rb +25 -15
- data/spec/bourbon/{functions → library}/tint_spec.rb +1 -1
- data/spec/bourbon/library/triangle_spec.rb +31 -0
- data/spec/bourbon/{functions → utilities}/assign_inputs_spec.rb +8 -8
- data/spec/bourbon/utilities/compact_shorthand_spec.rb +30 -0
- data/spec/bourbon/utilities/contrast_ratio_spec.rb +23 -0
- data/spec/bourbon/utilities/directional_property_spec.rb +28 -0
- data/spec/bourbon/utilities/fetch_bourbon_setting_spec.rb +31 -0
- data/spec/bourbon/{helpers → utilities}/font_source_declaration_spec.rb +1 -1
- data/spec/bourbon/utilities/gamma_spec.rb +23 -0
- data/spec/bourbon/utilities/lightness_spec.rb +31 -0
- data/spec/bourbon/{functions → utilities}/unpack_spec.rb +1 -1
- data/spec/bourbon/{functions → validators}/contains_spec.rb +1 -1
- data/spec/bourbon/{functions → validators}/is_length_spec.rb +1 -1
- data/spec/bourbon/{functions → validators}/is_number_spec.rb +1 -1
- data/spec/bourbon/{functions → validators}/is_size_spec.rb +1 -1
- data/spec/fixtures/_setup.scss +1 -1
- data/spec/fixtures/{addons → library}/border-color.scss +4 -4
- data/spec/fixtures/{addons → library}/border-radius.scss +0 -0
- data/spec/fixtures/{addons → library}/border-style.scss +0 -0
- data/spec/fixtures/{addons → library}/border-width.scss +0 -0
- data/spec/fixtures/{addons → library}/buttons.scss +0 -0
- data/spec/fixtures/{addons → library}/clearfix.scss +0 -0
- data/spec/fixtures/library/contrast-switch.scss +9 -0
- data/spec/fixtures/{addons → library}/ellipsis.scss +0 -0
- data/spec/fixtures/library/font-face-1.scss +6 -0
- data/spec/fixtures/library/font-face-2.scss +10 -0
- data/spec/fixtures/library/font-face-3.scss +8 -0
- data/spec/fixtures/library/font-face-4.scss +7 -0
- data/spec/fixtures/library/font-stacks.scss +41 -0
- data/spec/fixtures/{addons → library}/hide-text.scss +0 -0
- data/spec/fixtures/library/hide-visually.scss +9 -0
- data/spec/fixtures/{addons → library}/margin.scss +0 -0
- data/spec/fixtures/{functions → library}/modular-scale.scss +0 -0
- data/spec/fixtures/library/overflow-wrap.scss +9 -0
- data/spec/fixtures/{addons → library}/padding.scss +0 -0
- data/spec/fixtures/{addons → library}/position.scss +0 -4
- data/spec/fixtures/library/prefixer.scss +13 -0
- data/spec/fixtures/{functions → library}/shade.scss +1 -1
- data/spec/fixtures/{addons → library}/size.scss +2 -2
- data/spec/fixtures/library/strip-unit.scss +17 -0
- data/spec/fixtures/{addons → library}/text-inputs.scss +4 -0
- data/spec/fixtures/{functions → library}/tint.scss +1 -1
- data/spec/fixtures/library/triangle.scss +9 -0
- data/spec/fixtures/utilities/assign-inputs.scss +19 -0
- data/spec/fixtures/utilities/compact-shorthand.scss +21 -0
- data/spec/fixtures/utilities/contrast-ratio.scss +9 -0
- data/spec/fixtures/utilities/directional-property.scss +17 -0
- data/spec/fixtures/utilities/fetch-bourbon-setting.scss +16 -0
- data/spec/fixtures/utilities/font-source-declaration.scss +11 -0
- data/spec/fixtures/utilities/gamma.scss +9 -0
- data/spec/fixtures/utilities/lightness.scss +13 -0
- data/spec/fixtures/utilities/unpack.scss +17 -0
- data/spec/fixtures/{functions → validators}/contains.scss +1 -1
- data/spec/fixtures/{functions → validators}/is-length.scss +1 -1
- data/spec/fixtures/{functions → validators}/is-number.scss +1 -1
- data/spec/fixtures/{functions → validators}/is-size.scss +1 -1
- data/spec/support/matchers/have_value.rb +1 -1
- metadata +246 -282
- data/.scss-lint.yml +0 -14
- data/.travis.yml +0 -8
- data/app/assets/stylesheets/_bourbon-deprecated-upcoming.scss +0 -411
- data/app/assets/stylesheets/_bourbon.scss +0 -87
- data/app/assets/stylesheets/addons/_border-color.scss +0 -26
- data/app/assets/stylesheets/addons/_border-radius.scss +0 -48
- data/app/assets/stylesheets/addons/_border-style.scss +0 -25
- data/app/assets/stylesheets/addons/_border-width.scss +0 -25
- data/app/assets/stylesheets/addons/_buttons.scss +0 -64
- data/app/assets/stylesheets/addons/_font-stacks.scss +0 -31
- data/app/assets/stylesheets/addons/_hide-text.scss +0 -27
- data/app/assets/stylesheets/addons/_margin.scss +0 -26
- data/app/assets/stylesheets/addons/_padding.scss +0 -26
- data/app/assets/stylesheets/addons/_position.scss +0 -48
- data/app/assets/stylesheets/addons/_prefixer.scss +0 -66
- data/app/assets/stylesheets/addons/_retina-image.scss +0 -25
- data/app/assets/stylesheets/addons/_size.scss +0 -51
- data/app/assets/stylesheets/addons/_text-inputs.scss +0 -113
- data/app/assets/stylesheets/addons/_timing-functions.scss +0 -34
- data/app/assets/stylesheets/addons/_triangle.scss +0 -63
- data/app/assets/stylesheets/addons/_word-wrap.scss +0 -29
- data/app/assets/stylesheets/css3/_animation.scss +0 -43
- data/app/assets/stylesheets/css3/_appearance.scss +0 -3
- data/app/assets/stylesheets/css3/_backface-visibility.scss +0 -3
- data/app/assets/stylesheets/css3/_background-image.scss +0 -42
- data/app/assets/stylesheets/css3/_background.scss +0 -55
- data/app/assets/stylesheets/css3/_border-image.scss +0 -59
- data/app/assets/stylesheets/css3/_calc.scss +0 -4
- data/app/assets/stylesheets/css3/_columns.scss +0 -47
- data/app/assets/stylesheets/css3/_filter.scss +0 -4
- data/app/assets/stylesheets/css3/_flex-box.scss +0 -287
- data/app/assets/stylesheets/css3/_font-face.scss +0 -24
- data/app/assets/stylesheets/css3/_font-feature-settings.scss +0 -4
- data/app/assets/stylesheets/css3/_hidpi-media-query.scss +0 -10
- data/app/assets/stylesheets/css3/_hyphens.scss +0 -4
- data/app/assets/stylesheets/css3/_image-rendering.scss +0 -14
- data/app/assets/stylesheets/css3/_keyframes.scss +0 -36
- data/app/assets/stylesheets/css3/_linear-gradient.scss +0 -38
- data/app/assets/stylesheets/css3/_perspective.scss +0 -8
- data/app/assets/stylesheets/css3/_placeholder.scss +0 -8
- data/app/assets/stylesheets/css3/_radial-gradient.scss +0 -39
- data/app/assets/stylesheets/css3/_selection.scss +0 -42
- data/app/assets/stylesheets/css3/_text-decoration.scss +0 -19
- data/app/assets/stylesheets/css3/_transform.scss +0 -15
- data/app/assets/stylesheets/css3/_transition.scss +0 -71
- data/app/assets/stylesheets/css3/_user-select.scss +0 -3
- data/app/assets/stylesheets/functions/_assign-inputs.scss +0 -11
- data/app/assets/stylesheets/functions/_is-light.scss +0 -21
- data/app/assets/stylesheets/functions/_is-number.scss +0 -11
- data/app/assets/stylesheets/functions/_is-size.scss +0 -13
- data/app/assets/stylesheets/functions/_modular-scale.scss +0 -69
- data/app/assets/stylesheets/functions/_px-to-em.scss +0 -13
- data/app/assets/stylesheets/functions/_px-to-rem.scss +0 -15
- data/app/assets/stylesheets/functions/_shade.scss +0 -24
- data/app/assets/stylesheets/functions/_strip-units.scss +0 -17
- data/app/assets/stylesheets/functions/_tint.scss +0 -24
- data/app/assets/stylesheets/functions/_transition-property-name.scss +0 -22
- data/app/assets/stylesheets/helpers/_convert-units.scss +0 -21
- data/app/assets/stylesheets/helpers/_directional-values.scss +0 -96
- data/app/assets/stylesheets/helpers/_gradient-positions-parser.scss +0 -13
- data/app/assets/stylesheets/helpers/_linear-angle-parser.scss +0 -25
- data/app/assets/stylesheets/helpers/_linear-gradient-parser.scss +0 -41
- data/app/assets/stylesheets/helpers/_linear-positions-parser.scss +0 -61
- data/app/assets/stylesheets/helpers/_linear-side-corner-parser.scss +0 -31
- data/app/assets/stylesheets/helpers/_radial-arg-parser.scss +0 -69
- data/app/assets/stylesheets/helpers/_radial-gradient-parser.scss +0 -50
- data/app/assets/stylesheets/helpers/_radial-positions-parser.scss +0 -18
- data/app/assets/stylesheets/helpers/_render-gradients.scss +0 -26
- data/app/assets/stylesheets/helpers/_shape-size-stripper.scss +0 -10
- data/app/assets/stylesheets/helpers/_str-to-num.scss +0 -50
- data/app/assets/stylesheets/settings/_asset-pipeline.scss +0 -7
- data/app/assets/stylesheets/settings/_prefixer.scss +0 -9
- data/app/assets/stylesheets/settings/_px-to-em.scss +0 -1
- data/bower.json +0 -36
- data/lib/bourbon/engine.rb +0 -5
- data/lib/tasks/install.rake +0 -20
- data/sache.json +0 -5
- data/spec/bourbon/addons/font_stacks_spec.rb +0 -25
- data/spec/bourbon/addons/retina_image_spec.rb +0 -57
- data/spec/bourbon/addons/triangle_spec.rb +0 -32
- data/spec/bourbon/addons/word_wrap_spec.rb +0 -29
- data/spec/bourbon/css3/font_face_spec.rb +0 -45
- data/spec/bourbon/css3/hidpi_media_query_spec.rb +0 -23
- data/spec/bourbon/functions/is_light_spec.rb +0 -37
- data/spec/bourbon/functions/px_to_em_spec.rb +0 -31
- data/spec/bourbon/functions/px_to_rem_spec.rb +0 -25
- data/spec/bourbon/helpers/convert_units_spec.rb +0 -31
- data/spec/bourbon/helpers/directional_values_spec.rb +0 -39
- data/spec/bourbon/helpers/str_to_num_spec.rb +0 -25
- data/spec/fixtures/addons/font-stacks.scss +0 -21
- data/spec/fixtures/addons/retina-image.scss +0 -21
- data/spec/fixtures/addons/triangle.scss +0 -9
- data/spec/fixtures/addons/word-wrap.scss +0 -9
- data/spec/fixtures/css3/font-face.scss +0 -6
- data/spec/fixtures/css3/hidpi-media-query.scss +0 -13
- data/spec/fixtures/functions/assign-inputs.scss +0 -19
- data/spec/fixtures/functions/is-light.scss +0 -29
- data/spec/fixtures/functions/px-to-em.scss +0 -17
- data/spec/fixtures/functions/px-to-rem.scss +0 -15
- data/spec/fixtures/functions/strip-units.scss +0 -17
- data/spec/fixtures/functions/unpack.scss +0 -17
- data/spec/fixtures/helpers/convert-units.scss +0 -17
- data/spec/fixtures/helpers/directional-values.scss +0 -29
- data/spec/fixtures/helpers/font-source-declaration.scss +0 -10
- data/spec/fixtures/helpers/str-to-num.scss +0 -13
- data/spec/support/matchers/be_contained_in.rb +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: a360bd2567304c4ae49d8e9d97716cd0d3d0abb88a8ede44aa5b68301b479c73
|
4
|
+
data.tar.gz: 485fa493c958cb331bc76eecea565bce515bd36f6290d9c0c92df5baf8e4a343
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc8960becf33315e221f8f71a6ceab0a94c186b92ae6c5b64e019469ba864837fb30e53af6465121fc39d47da848c2d5f2a1e1dedbe38ed02140252205716871
|
7
|
+
data.tar.gz: 6e55d39b9925e3b745a2722b818469e6e8b37a295c833bf82c91c6d986fdb262ecbffb4ebef09b4c8cf55ff489290b12cfc19eef72c9645660db32dbdc88037d
|
@@ -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
|
+
- bourbon-{{ arch }}-{{ checksum "bourbon.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: bourbon-{{ arch }}-{{ checksum "bourbon.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
|
+
<!-- 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
data/.hound.yml
CHANGED
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
|
-
.
|
5
|
-
.travis.yml
|
7
|
+
.stylelintrc.json
|
6
8
|
_site
|
7
9
|
bin/
|
8
10
|
bourbon.gemspec
|
9
|
-
|
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
|
-
|
19
|
+
RELEASING.md
|
17
20
|
spec/
|
data/.stylelintrc.json
ADDED
data/.tool-versions
ADDED
data/CHANGELOG.md
ADDED
@@ -0,0 +1,415 @@
|
|
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
|
+
## [Unreleased (`master`)][unreleased]
|
7
|
+
|
8
|
+
Nothing at the moment.
|
9
|
+
|
10
|
+
[unreleased]: https://github.com/thoughtbot/bourbon/compare/v6.0.0...HEAD
|
11
|
+
|
12
|
+
## [6.0.0] - 2019-07-10
|
13
|
+
|
14
|
+
### Removed
|
15
|
+
|
16
|
+
- Installation through Bower is no longer supported.
|
17
|
+
- The sass gem (the deprecated Ruby Sass) is no longer a runtime dependency.
|
18
|
+
|
19
|
+
[6.0.0]: https://github.com/thoughtbot/bourbon/compare/v5.1.0...v6.0.0
|
20
|
+
|
21
|
+
## [5.1.0] - 2018-07-20
|
22
|
+
|
23
|
+
### Added
|
24
|
+
|
25
|
+
- `$font-stack-system` now includes the `system-ui` value.
|
26
|
+
|
27
|
+
### Changed
|
28
|
+
|
29
|
+
- The `_gamma` function will use a `pow` function, if available.
|
30
|
+
|
31
|
+
[5.1.0]: https://github.com/thoughtbot/bourbon/compare/v5.0.1...v5.1.0
|
32
|
+
|
33
|
+
## [5.0.1] - 2018-06-08
|
34
|
+
|
35
|
+
### Fixed
|
36
|
+
|
37
|
+
- Fixed an issue that would cause Bourbon to not be found when using SassC.
|
38
|
+
|
39
|
+
[5.0.1]: https://github.com/thoughtbot/bourbon/compare/v5.0.0...v5.0.1
|
40
|
+
|
41
|
+
## [5.0.0] - 2018-01-05
|
42
|
+
|
43
|
+
Bourbon 5.0.0 is a major release with lots of changes and removals, which are
|
44
|
+
documented below in each of the alpha and beta releases. There are no changes
|
45
|
+
between v5.0.0-beta.8 and v5.0.0. For information on how to upgrade from v4 to
|
46
|
+
v5, read our [migrating guide][migrating-guide].
|
47
|
+
|
48
|
+
[5.0.0]: https://github.com/thoughtbot/bourbon/compare/v5.0.0.beta.8...v5.0.0
|
49
|
+
[migrating-guide]: https://www.bourbon.io/docs/migrating-from-v4-to-v5/
|
50
|
+
|
51
|
+
## [5.0.0-beta.8] - 2017-06-26
|
52
|
+
|
53
|
+
### Added
|
54
|
+
|
55
|
+
- A `style` property has been added to our `package.json`, which makes for easy
|
56
|
+
importing when using npm-sass, sass-module-importer and others.
|
57
|
+
|
58
|
+
### Changed
|
59
|
+
|
60
|
+
- The `triangle` mixin no longer has default argument values. The order of the
|
61
|
+
arguments also changed: `$width` and `$height` now come before `$color`.
|
62
|
+
|
63
|
+
### Fixed
|
64
|
+
|
65
|
+
- The `bourbon update` CLI command now works when Bourbon is installed using a
|
66
|
+
custom path.
|
67
|
+
- Fixed an issue that would cause Bourbon to not be found within Rails apps.
|
68
|
+
|
69
|
+
[5.0.0-beta.8]: https://github.com/thoughtbot/bourbon/compare/v5.0.0.beta.7...v5.0.0.beta.8
|
70
|
+
|
71
|
+
## [5.0.0-beta.7] - 2016-11-03
|
72
|
+
|
73
|
+
### Added
|
74
|
+
|
75
|
+
- Added `white-space: nowrap;` to the `hide-visually` mixin so that content
|
76
|
+
renders on one line and is correctly pronounced by screen readers. You can
|
77
|
+
read more about this in Jesse Beach’s article “[Beware smushed off-screen
|
78
|
+
accessible text][smushed-text-article].”
|
79
|
+
|
80
|
+
### Changed
|
81
|
+
|
82
|
+
- Removed the default values from the `$position` and `$coordinates` arguments
|
83
|
+
for the `position` mixin.
|
84
|
+
- Updated `contrast-switch` to calculate contrast based on the WCAG 2.0
|
85
|
+
specification. Please note that it is an approximation and we cannot guarantee
|
86
|
+
full compliance, though all of our manual testing passed.
|
87
|
+
- Renamed the `$coordinates` argument in the `position` mixin
|
88
|
+
to `$box-edge-values`.
|
89
|
+
- Updated `$font-stack-system` to include Avenir Next, Avenir, Lucida
|
90
|
+
Grande, Helvetica, Noto, Franklin Gothic Medium, Century Gothic, and
|
91
|
+
Liberation Sans. This follows [system-fonts] by Adam Morse.
|
92
|
+
- The `word-break` property was removed from the `word-wrap` mixin and
|
93
|
+
is no longer output.
|
94
|
+
- Renamed the `word-wrap` mixin to `overflow-wrap` to align with the
|
95
|
+
name change in the [CSS spec].
|
96
|
+
|
97
|
+
[smushed-text-article]: https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe#.l4hkljiza
|
98
|
+
[system-fonts]: https://github.com/mrmrs/css-system-fonts
|
99
|
+
[CSS spec]: https://drafts.csswg.org/css-text-3/#propdef-overflow-wrap
|
100
|
+
|
101
|
+
[5.0.0-beta.7]: https://github.com/thoughtbot/bourbon/compare/v5.0.0.beta.6...v5.0.0.beta.7
|
102
|
+
|
103
|
+
## [5.0.0-beta.6] - 2016-06-06
|
104
|
+
|
105
|
+
### Added
|
106
|
+
|
107
|
+
- Added a `value-prefixer` mixin for generating vendor prefixes on values.
|
108
|
+
|
109
|
+
[5.0.0-beta.6]: https://github.com/thoughtbot/bourbon/compare/v5.0.0.beta.5...v5.0.0.beta.6
|
110
|
+
|
111
|
+
## [5.0.0-beta.5] - 2016-03-23
|
112
|
+
|
113
|
+
### Fixed
|
114
|
+
|
115
|
+
- Fixed a Sass load path issue that would intermittently break the importing of
|
116
|
+
Bourbon in Rails apps.
|
117
|
+
|
118
|
+
### Changed
|
119
|
+
|
120
|
+
- Swapped the order of the `$file-formats` and `$asset-pipeline` arguments in
|
121
|
+
the `font-face` mixin, so that `$asset-pipeline` is last (because it has a
|
122
|
+
default and is likely used the least).
|
123
|
+
|
124
|
+
[5.0.0-beta.5]: https://github.com/thoughtbot/bourbon/compare/v5.0.0.beta.4...v5.0.0.beta.5
|
125
|
+
|
126
|
+
## [5.0.0-beta.4] - 2016-03-11
|
127
|
+
|
128
|
+
### Fixed
|
129
|
+
|
130
|
+
- We accidentally published `5.0.0.beta.3` as a stable release on npm, rather
|
131
|
+
than a prerelease. We’ve unpublished that to go back to `4.2.6` on the stable
|
132
|
+
channel.
|
133
|
+
|
134
|
+
[5.0.0-beta.4]: https://github.com/thoughtbot/bourbon/compare/v5.0.0.beta.3...v5.0.0.beta.4
|
135
|
+
|
136
|
+
## [5.0.0-beta.3] - 2016-03-04
|
137
|
+
|
138
|
+
### Fixed
|
139
|
+
|
140
|
+
- Added `pathname` requirement to fix install issues.
|
141
|
+
|
142
|
+
[5.0.0-beta.3]: https://github.com/thoughtbot/bourbon/compare/v5.0.0.beta.2...v5.0.0.beta.3
|
143
|
+
|
144
|
+
## [5.0.0-beta.2] - 2016-03-03
|
145
|
+
|
146
|
+
### Added
|
147
|
+
|
148
|
+
- Added global settings for the `contrast-switch` mixin:
|
149
|
+
`contrast-switch-dark-color` & `contrast-switch-light-color`.
|
150
|
+
- Added the `triangle` mixin back, but note that it’s been refactored and the
|
151
|
+
arguments have changed. See [43e5a90].
|
152
|
+
|
153
|
+
### Changed
|
154
|
+
|
155
|
+
- Switched argument names in `contrast-switch`; `$dark-color` is now
|
156
|
+
`$light-color` and `$light-color` is now `$dark-color`.
|
157
|
+
- The `is-light` function is now private.
|
158
|
+
|
159
|
+
### Removed
|
160
|
+
|
161
|
+
- Dropped support for Ruby on Rails versions older than 4.2.
|
162
|
+
- Dropped support for LibSass versions older than 3.3.
|
163
|
+
|
164
|
+
[5.0.0-beta.2]: https://github.com/thoughtbot/bourbon/compare/v5.0.0.beta.1...v5.0.0.beta.2
|
165
|
+
[43e5a90]: https://github.com/thoughtbot/bourbon/commit/43e5a90e7e624d2977731030ccdb36b3c2e460d9
|
166
|
+
|
167
|
+
## [5.0.0-beta.1] - 2016-02-09
|
168
|
+
|
169
|
+
### Added
|
170
|
+
|
171
|
+
- Added a `contrast-switch` function that switches between two colors based on the
|
172
|
+
lightness of a another color. Great for building button styles.
|
173
|
+
- Added an `$all-text-inputs-invalid` variable to target the `:invalid`
|
174
|
+
pseudo-class on all text-based inputs.
|
175
|
+
- The `ellipsis` mixin now takes a `$display` argument.
|
176
|
+
- Added a font stack for system fonts: `$font-stack-system`.
|
177
|
+
- Added a `hide-visually` mixin that hides an element visually while still
|
178
|
+
allowing the content to be accessible to assistive technology,
|
179
|
+
e.g. screen readers.
|
180
|
+
- The `font-face` mixin now allows additional CSS properties to be included in
|
181
|
+
its block, which will output as part of the `@font-face` declaration.
|
182
|
+
See [2356719].
|
183
|
+
|
184
|
+
### Changed
|
185
|
+
|
186
|
+
- The global default for the `modular-scale` ratio is now set to
|
187
|
+
`$major-third` (`1.25`), instead of `$perfect-fourth` (`1.333`).
|
188
|
+
- All font stack variables are now prefixed with `$font-stack-`,
|
189
|
+
e.g. `$font-stack-helvetica`.
|
190
|
+
- Global settings are now set via a `$bourbon` map, instead of variables.
|
191
|
+
See [4e43c2d].
|
192
|
+
- The `clearfix` mixin now uses `block` display, instead of `table`.
|
193
|
+
|
194
|
+
### Removed
|
195
|
+
|
196
|
+
- The `$weight` and `$style` arguments in the `font-face` mixin have been
|
197
|
+
removed. Instead, you can now include these—along with other CSS
|
198
|
+
properties—within the mixin block and they’ll be output as part of the
|
199
|
+
`@font-face` declaration.
|
200
|
+
|
201
|
+
[5.0.0-beta.1]: https://github.com/thoughtbot/bourbon/compare/da4451e...v5.0.0.beta.1
|
202
|
+
[2356719]: https://github.com/thoughtbot/bourbon/commit/235671948ef3a9c343c4391d250082a0373c8d83
|
203
|
+
[4e43c2d]: https://github.com/thoughtbot/bourbon/commit/4e43c2d7507999b539771bdc1b3733b18b3c1883
|
204
|
+
|
205
|
+
## [5.0.0.alpha.0] - 2015-08-21
|
206
|
+
|
207
|
+
### Added
|
208
|
+
|
209
|
+
- Added a `$global-font-file-formats` setting to globally set the file formats
|
210
|
+
for the `font-face` mixin. The default is `("ttf", "woff2", "woff")`.
|
211
|
+
- Add `$consolas`, `$courier-new` and `$monaco` variables (these replace the
|
212
|
+
removed `$monospace` variable).
|
213
|
+
|
214
|
+
### Changed
|
215
|
+
|
216
|
+
- Removed the type selectors in `$all-text-inputs` and `$all-buttons` to
|
217
|
+
reduce specificity.
|
218
|
+
- Font stacks have been modernized. See [3cf106a].
|
219
|
+
- The `strip-units` function is now `strip-unit`.
|
220
|
+
- The `size` mixin now requires a comma-separated argument list,
|
221
|
+
e.g. `@include size(1em, 2em);`.
|
222
|
+
|
223
|
+
### Removed
|
224
|
+
|
225
|
+
- All vendor prefixing mixins have been removed. These include:
|
226
|
+
- `align-items`
|
227
|
+
- `animation-delay`
|
228
|
+
- `animation-direction`
|
229
|
+
- `animation-duration`
|
230
|
+
- `animation-fill-mode`
|
231
|
+
- `animation-iteration-count`
|
232
|
+
- `animation-name`
|
233
|
+
- `animation-play-state`
|
234
|
+
- `animation-timing-function`
|
235
|
+
- `animation`
|
236
|
+
- `appearance`
|
237
|
+
- `backface-visibility`
|
238
|
+
- `background-image`
|
239
|
+
- `background`
|
240
|
+
- `border-image`
|
241
|
+
- `calc`
|
242
|
+
- `column-count`
|
243
|
+
- `column-fill`
|
244
|
+
- `column-gap`
|
245
|
+
- `column-rule-color`
|
246
|
+
- `column-rule-style`
|
247
|
+
- `column-rule-width`
|
248
|
+
- `column-rule`
|
249
|
+
- `column-span`
|
250
|
+
- `column-width`
|
251
|
+
- `columns`
|
252
|
+
- `display`
|
253
|
+
- `filter`
|
254
|
+
- `flex-direction`
|
255
|
+
- `flex`
|
256
|
+
- `font-feature-settings`
|
257
|
+
- `hidpi`
|
258
|
+
- `hyphens`
|
259
|
+
- `image-rendering`
|
260
|
+
- `justify-content`
|
261
|
+
- `keyframes`
|
262
|
+
- `linear-gradient`
|
263
|
+
- `perspective`
|
264
|
+
- `placeholder`
|
265
|
+
- `radial-gradient`
|
266
|
+
- `selection`
|
267
|
+
- `text-decoration-color`
|
268
|
+
- `text-decoration-line`
|
269
|
+
- `text-decoration-style`
|
270
|
+
- `text-decoration`
|
271
|
+
- `transform-origin`
|
272
|
+
- `transform-style`
|
273
|
+
- `transform`
|
274
|
+
- `transition-delay`
|
275
|
+
- `transition-duration`
|
276
|
+
- `transition-property`
|
277
|
+
- `transition-timing-function`
|
278
|
+
- `transition`
|
279
|
+
- `user-select`
|
280
|
+
- For prefixing, we recommend using a more robust and maintainable solution
|
281
|
+
like [Autoprefixer].
|
282
|
+
- The `$global-prefixes` setting has been removed and the `prefixer` mixin
|
283
|
+
has been refactored and no longer uses it.
|
284
|
+
- The `$monospace` variable has been removed.
|
285
|
+
- The `box-sizing` mixin has been removed.
|
286
|
+
- The `button` mixin has been removed.
|
287
|
+
- The `em` and `rem` functions have been removed.
|
288
|
+
- [See the discussion on why these were removed][em-rem-issue].
|
289
|
+
- The `flex-grid` function has been removed.
|
290
|
+
- The `flex-gutter` function has been removed.
|
291
|
+
- The `golden-ratio` function has been removed.
|
292
|
+
- The `grid-width` function has been removed.
|
293
|
+
- The `inline-block` mixin has been removed.
|
294
|
+
- The `retina-image` mixin has been removed.
|
295
|
+
- The `triangle` mixin has been removed.
|
296
|
+
|
297
|
+
[5.0.0.alpha.0]: https://github.com/thoughtbot/bourbon/compare/v4.3.4...v5.0.0.alpha.0
|
298
|
+
[3cf106a]: https://github.com/thoughtbot/bourbon/commit/3cf106a210c1bae7765e6193f62310f95fdee0b7
|
299
|
+
[Autoprefixer]: https://github.com/postcss/autoprefixer
|
300
|
+
[em-rem-issue]: https://github.com/thoughtbot/bourbon/issues/691
|
301
|
+
|
302
|
+
## [4.3.4] - 2017-04-01
|
303
|
+
|
304
|
+
### Changed
|
305
|
+
|
306
|
+
- Updated deprecation warning message for `strip-units`. ([#1016])
|
307
|
+
|
308
|
+
[4.3.4]: https://github.com/thoughtbot/bourbon/compare/v4.3.3...v4.3.4
|
309
|
+
[#1016]: https://github.com/thoughtbot/bourbon/pull/1016
|
310
|
+
|
311
|
+
## [4.3.3] - 2017-02-23
|
312
|
+
|
313
|
+
### Fixed
|
314
|
+
|
315
|
+
- Internal Bourbon deprecation warnings for `is-size` and `is-length` will no
|
316
|
+
longer be thrown when using the `size` mixin.
|
317
|
+
|
318
|
+
[4.3.3]: https://github.com/thoughtbot/bourbon/compare/v4.3.2...v4.3.3
|
319
|
+
|
320
|
+
## [4.3.2] - 2017-02-10
|
321
|
+
|
322
|
+
### Fixed
|
323
|
+
|
324
|
+
- Internal Bourbon deprecation warnings for `unpack` and `is-length` will no
|
325
|
+
longer be thrown when using the `position` mixin. ([#1004])
|
326
|
+
|
327
|
+
[4.3.2]: https://github.com/thoughtbot/bourbon/compare/v4.3.1...v4.3.2
|
328
|
+
[#1004]: https://github.com/thoughtbot/bourbon/pull/1004
|
329
|
+
|
330
|
+
## [4.3.1] - 2017-02-07
|
331
|
+
|
332
|
+
### Fixed
|
333
|
+
|
334
|
+
- Internal Bourbon deprecation warnings will no longer be thrown. ([#1002])
|
335
|
+
|
336
|
+
[4.3.1]: https://github.com/thoughtbot/bourbon/compare/v4.3.0...v4.3.1
|
337
|
+
[#1002]: https://github.com/thoughtbot/bourbon/pull/1002
|
338
|
+
|
339
|
+
## [4.3.0] - 2017-02-03
|
340
|
+
|
341
|
+
### Added
|
342
|
+
|
343
|
+
- Added deprecation warnings for features that will be removed in 5.0.0. Please
|
344
|
+
reference our [change log], which includes a list of these changes and
|
345
|
+
removals. ([#891])
|
346
|
+
|
347
|
+
[4.3.0]: https://github.com/thoughtbot/bourbon/compare/v4.2.7...v4.3.0
|
348
|
+
[change log]: https://github.com/thoughtbot/bourbon/blob/master/CHANGELOG.md
|
349
|
+
[#891]: https://github.com/thoughtbot/bourbon/pull/891
|
350
|
+
|
351
|
+
## [4.2.7] - 2016-04-15
|
352
|
+
|
353
|
+
### Fixed
|
354
|
+
|
355
|
+
- Fixed a Sass deprecation warning when using the `background` and
|
356
|
+
`background-image` mixins.
|
357
|
+
|
358
|
+
[4.2.7]: https://github.com/thoughtbot/bourbon/compare/v4.2.6...v4.2.7
|
359
|
+
|
360
|
+
## [4.2.6] - 2015-10-17
|
361
|
+
|
362
|
+
### Fixed
|
363
|
+
|
364
|
+
- Fixed a bug with eyeglass support.
|
365
|
+
|
366
|
+
[4.2.6]: https://github.com/thoughtbot/bourbon/compare/v4.2.5...v4.2.6
|
367
|
+
|
368
|
+
## [4.2.5] - 2015-09-17
|
369
|
+
|
370
|
+
## Added
|
371
|
+
|
372
|
+
- Support for [eyeglass].
|
373
|
+
|
374
|
+
[4.2.5]: https://github.com/thoughtbot/bourbon/compare/v4.2.4...v4.2.5
|
375
|
+
[eyeglass]: http://eyeglass.rocks/
|
376
|
+
|
377
|
+
## [4.2.4] - 2015-08-21
|
378
|
+
|
379
|
+
## Changed
|
380
|
+
|
381
|
+
- [`$all-text-inputs`] now accounts for `input`’s that don’t have a `type`
|
382
|
+
attribute specified, as they default to `type="text"`.
|
383
|
+
(https://github.com/thoughtbot/bourbon/commit/8e7e36e01c47194d83951fb6315c5b26a008f2b7)
|
384
|
+
- The [`bourbon` npm package] now has a proper load path.
|
385
|
+
(https://github.com/thoughtbot/bourbon/commit/36c2d5576f1fe9dbdfd9543e15064c5a4a16343e)
|
386
|
+
|
387
|
+
[4.2.4]: https://github.com/thoughtbot/bourbon/compare/v4.2.3...v4.2.4
|
388
|
+
[`$all-text-inputs`]: http://bourbon.io/docs/#text-inputs
|
389
|
+
[`bourbon` npm package]: https://npmjs.com/package/bourbon
|
390
|
+
|
391
|
+
## [4.2.3] - 2015-05-18
|
392
|
+
|
393
|
+
## Fixed
|
394
|
+
|
395
|
+
- Fixed an issue with the `font-face` mixin outputting an extraneous commas when
|
396
|
+
using LibSass set to compressed output.
|
397
|
+
|
398
|
+
[4.2.3]: https://github.com/thoughtbot/bourbon/compare/v4.2.2...v4.2.3
|
399
|
+
|
400
|
+
## [4.2.2] - 2015-04-01
|
401
|
+
|
402
|
+
## Fixed
|
403
|
+
|
404
|
+
- The `flex-direction` mixin now properly outputs box-direction (old syntax) if
|
405
|
+
set to normal.
|
406
|
+
|
407
|
+
[4.2.2]: https://github.com/thoughtbot/bourbon/compare/v4.2.1...v4.2.2
|
408
|
+
|
409
|
+
## [4.2.1] - 2015-02-23
|
410
|
+
|
411
|
+
## Fixed
|
412
|
+
|
413
|
+
- Restored the `app/` directory for npm.
|
414
|
+
|
415
|
+
[4.2.1]: https://github.com/thoughtbot/bourbon/compare/v4.2.0...v4.2.1
|
data/CODE_OF_CONDUCT.md
ADDED
data/CONTRIBUTING.md
CHANGED
@@ -1,37 +1,90 @@
|
|
1
|
-
|
2
|
-
agree to abide by the thoughtbot [code of conduct]. Here’s a quick guide:
|
1
|
+
# Contributing
|
3
2
|
|
4
|
-
|
3
|
+
## Governance
|
4
|
+
|
5
|
+
We, the maintainers of Bourbon, would like you to know what to expect when
|
6
|
+
interacting with this project's repo.
|
7
|
+
|
8
|
+
As a *user* of Bourbon, you can expect care to be put into official releases.
|
9
|
+
The maintainers cannot guarantee that the `master` branch will have the same
|
10
|
+
API forever.
|
11
|
+
|
12
|
+
If you *review pull requests* or *comment on issues*, you are expected to abide
|
13
|
+
by our [code of conduct].
|
14
|
+
|
15
|
+
As a *contributor*, submitting a pull request or opening an issue, you can
|
16
|
+
expect an initial response from a maintainer within two weeks. The maintainers
|
17
|
+
cannot guarantee that we will accept all feature requests, and may fix bugs in
|
18
|
+
ways other than how the contributor suggests. You are expected to abide by our
|
19
|
+
[code of conduct].
|
20
|
+
|
21
|
+
As a *maintainer*, you can merge pull requests (even your own) at any time.
|
22
|
+
Maintainers are encouraged to request code review from others at thoughtbot or
|
23
|
+
any relevant peers. You are expected to abide by our [code of conduct].
|
24
|
+
|
25
|
+
Only members of thoughtbot may be maintainers.
|
5
26
|
|
6
|
-
|
7
|
-
2. Make your changes in a topic branch.
|
8
|
-
3. Squash your commits into a single one (more on that [here](http://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html)).
|
9
|
-
4. Rebase against `origin/master`, push to your fork and submit a pull request.
|
10
|
-
5. If you are writing a new feature please add documentation for it by making another pull request to the `gh-pages` branch.
|
27
|
+
## Pull Requests
|
11
28
|
|
12
|
-
|
13
|
-
accept, pull requests within three business days (and, typically, one business
|
14
|
-
day). We may suggest some changes or improvements or alternatives.
|
29
|
+
We welcome pull requests from everyone. Here’s a quick guide:
|
15
30
|
|
16
|
-
|
31
|
+
1. [Fork the repository][fork] and clone to your machine.
|
32
|
+
1. Run `bundle install`.
|
33
|
+
1. Make sure the tests pass: `bundle exec rake`.
|
34
|
+
1. Make your change, following our style guide (below). Write tests. Make sure
|
35
|
+
the tests pass: `bundle exec rake`.
|
36
|
+
1. Write a [good commit message][commit]. Push to your fork and
|
37
|
+
[submit a pull request][pr]. If [Hound] catches style violations, fix them.
|
38
|
+
1. Wait for us. We try to at least comment on pull requests within one week. We
|
39
|
+
may suggest changes.
|
17
40
|
|
18
|
-
|
19
|
-
|
20
|
-
|
41
|
+
[fork]: https://github.com/thoughtbot/bourbon/fork
|
42
|
+
[commit]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
|
43
|
+
[pr]: https://github.com/thoughtbot/bourbon/compare/
|
44
|
+
[hound]: https://houndci.com
|
21
45
|
|
22
|
-
|
46
|
+
### Style Guide
|
23
47
|
|
24
|
-
|
25
|
-
|
26
|
-
* Use present tense.
|
27
|
-
* Refer to the issue/PR number in your squashed commit message.
|
48
|
+
Bourbon uses Sass’s SCSS syntax and aligns to
|
49
|
+
[thoughtbot’s style guides][sass guide]. High-level notes:
|
28
50
|
|
29
|
-
|
51
|
+
- Use two-space indentation (no tabs).
|
52
|
+
- Use double quotation marks.
|
53
|
+
- Use hyphens when naming things: `hide-visually` rather than `hide_visually` or
|
54
|
+
`hideVisually`.
|
55
|
+
- Use one space between property and value: `width: 20px` rather than
|
56
|
+
`width:20px`.
|
57
|
+
- Names should be descriptive and aim for clarity over brevity:
|
58
|
+
`$all-text-inputs-hover` rather than `$inputshover` or `$alltxthvr`.
|
59
|
+
- Order CSS declarations alphabetically.
|
60
|
+
- No trailing whitespace.
|
30
61
|
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
62
|
+
We use [stylelint][stylelint] to lint our CSS and Sass. It's configuration can
|
63
|
+
be found in `.stylelintrc.json`. You can run stylelint from the command line via
|
64
|
+
`npm run stylelint`, or integrate it with your text editor.
|
65
|
+
|
66
|
+
[sass guide]: https://github.com/thoughtbot/guides
|
67
|
+
[stylelint]: https://stylelint.io/
|
68
|
+
|
69
|
+
### Documentation
|
70
|
+
|
71
|
+
We use [SassDoc] to document Bourbon. [Annotations] should be ordered:
|
72
|
+
|
73
|
+
- `@link`
|
74
|
+
- `@see`
|
75
|
+
- `@type`
|
76
|
+
- `@argument`
|
77
|
+
- `@content`
|
78
|
+
- `@property`
|
79
|
+
- `@return`
|
80
|
+
- `@example`
|
81
|
+
- `@require`
|
82
|
+
- `@access`
|
83
|
+
- `@since`
|
84
|
+
- `@author`
|
85
|
+
- `@deprecated`
|
86
|
+
- `@todo`
|
87
|
+
|
88
|
+
[SassDoc]: http://sassdoc.com
|
89
|
+
[Annotations]: http://sassdoc.com/annotations
|
90
|
+
[code of conduct]: https://thoughtbot.com/open-source-code-of-conduct
|
data/Gemfile
CHANGED