bourbon 5.0.0.beta.3 → 5.0.0.beta.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 892adc9c605ed372f4a2e1ac37dfa872bef688ec
4
- data.tar.gz: b5560719ccd8f5a1a419ff13696ae0b6b78bf912
3
+ metadata.gz: 178580e1dd1d1567bcc3b6cdde059452f740cdf9
4
+ data.tar.gz: 55978441ae0c6251445b8720e524487a3e73dbbc
5
5
  SHA512:
6
- metadata.gz: eadf5b22da4fd1123dfb06f3a676f77ec698b7cb11da936b1ad601dc9ac38bb7e676a1c4112333f9c1e5a9006aacb8291a2b0ebf9aac48d1a4ee2b5a0295cb71
7
- data.tar.gz: a8711c2b20d6a15564f8ad2184bce22210bcd02b37dfeeb58855faeca1399a000f79df8d03ac1b61038658bf1716671f4d9c10fc8c3ab6add05adae287d76a81
6
+ metadata.gz: 7e910047d448437ce4b80bdf6af9cf9cba77dcb359617ade8ef3b0507a6145be30699b0d360e72cd36ad498b7286375010c0bd8afbfc8649210530e32c275094
7
+ data.tar.gz: 0535edd5b7f1329ceb49f66060b2c4ef418b1a961dc77e23fb53aad912be57d7656798094bab3913a6285d9bad5150ee52d329b34f368e3f65277c6da593a1e1
data/.npmignore CHANGED
@@ -6,6 +6,7 @@ _site
6
6
  bin/
7
7
  bourbon.gemspec
8
8
  bower.json
9
+ circle.yml
9
10
  features/
10
11
  Gemfile
11
12
  Gemfile.lock
@@ -0,0 +1,182 @@
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]
7
+
8
+ [Unreleased]: https://github.com/thoughtbot/bourbon/compare/v5.0.0.beta.4...HEAD
9
+
10
+ ## [5.0.0-beta.4] - 2016-03-11
11
+
12
+ ### Fixed
13
+
14
+ - We accidentally published `5.0.0.beta.3` as a stable release on npm, rather
15
+ than a prerelease. We’ve unpublished that to go back to `4.2.6` on the stable
16
+ channel.
17
+
18
+ [5.0.0-beta.4]: https://github.com/thoughtbot/bourbon/compare/v5.0.0.beta.3...v5.0.0.beta.4
19
+
20
+ ## [5.0.0-beta.3] - 2016-03-04
21
+
22
+ ### Fixed
23
+
24
+ - Added `pathname` requirement to fix install issues.
25
+
26
+ [5.0.0-beta.3]: https://github.com/thoughtbot/bourbon/compare/v5.0.0.beta.2...v5.0.0.beta.3
27
+
28
+ ## [5.0.0-beta.2] - 2016-03-03
29
+
30
+ ### Added
31
+
32
+ - Added global settings for the `contrast-switch` mixin:
33
+ `contrast-switch-dark-color` & `contrast-switch-light-color`.
34
+ - Added the `triangle` mixin back, but note that it’s been refactored and the
35
+ arguments have changed. See [43e5a90].
36
+
37
+ ### Changed
38
+
39
+ - Switched argument names in `contrast-switch`; `$dark-color` is now
40
+ `$light-color` and `$light-color` is now `$dark-color`.
41
+ - The `is-light` function is now private.
42
+
43
+ ### Removed
44
+
45
+ - Dropped support for Ruby on Rails versions older than 4.2.
46
+ - Dropped support for LibSass versions older than 3.3.
47
+
48
+ [5.0.0-beta.2]: https://github.com/thoughtbot/bourbon/compare/v5.0.0.beta.1...v5.0.0.beta.2
49
+ [43e5a90]: https://github.com/thoughtbot/bourbon/commit/43e5a90e7e624d2977731030ccdb36b3c2e460d9
50
+
51
+ ## [5.0.0-beta.1] - 2016-02-09
52
+
53
+ ### Added
54
+
55
+ - Added a `contrast-switch` function that switches between two colors based on the
56
+ lightness of a another color. Great for building button styles.
57
+ - Added an `$all-text-inputs-invalid` variable to target the `:invalid`
58
+ pseudo-class on all text-based inputs.
59
+ - The `ellipsis` mixin now takes a `$display` argument.
60
+ - Added a font stack for system fonts: `$font-stack-system`.
61
+ - Added a `hide-visually` mixin that hides an element visually while still
62
+ allowing the content to be accessible to assistive technology,
63
+ e.g. screen readers.
64
+ - The `font-face` mixin now allows additional CSS properties to be included in
65
+ its block, which will output as part of the `@font-face` declaration.
66
+ See [2356719].
67
+
68
+ ### Changed
69
+
70
+ - The global default for the `modular-scale` ratio is now set to
71
+ `$major-third` (`1.25`), instead of `$perfect-fourth` (`1.333`).
72
+ - All font stack variables are now prefixed with `$font-stack-`,
73
+ e.g. `$font-stack-helvetica`.
74
+ - Global settings are now set via a `$bourbon` map, instead of variables.
75
+ See [4e43c2d].
76
+ - The `clearfix` mixin now uses `block` display, instead of `table`.
77
+
78
+ ### Removed
79
+
80
+ - The `$weight` and `$style` arguments in the `font-face` mixin have been
81
+ removed. Instead, you can now include these—along with other CSS
82
+ properties—within the mixin block and they’ll be output as part of the
83
+ `@font-face` declaration.
84
+
85
+ [5.0.0-beta.1]: https://github.com/thoughtbot/bourbon/compare/da4451e...v5.0.0.beta.1
86
+ [2356719]: https://github.com/thoughtbot/bourbon/commit/235671948ef3a9c343c4391d250082a0373c8d83
87
+ [4e43c2d]: https://github.com/thoughtbot/bourbon/commit/4e43c2d7507999b539771bdc1b3733b18b3c1883
88
+
89
+ ## [5.0.0.alpha.0] - 2015-08-21
90
+
91
+ ### Added
92
+
93
+ - Added a `$global-font-file-formats` setting to globally set the file formats
94
+ for the `font-face` mixin. The default is `("ttf", "woff2", "woff")`.
95
+ - Add `$consolas`, `$courier-new` and `$monaco` variables (these replace the
96
+ removed `$monospace` variable).
97
+
98
+ ### Changed
99
+
100
+ - Removed the type selectors in `$all-text-inputs` and `$all-buttons` to
101
+ reduce specificity.
102
+ - Font stacks have been modernized. See [3cf106a].
103
+ - The `strip-units` function is now `strip-unit`.
104
+ - The `size` mixin now requires a comma-separated argument list,
105
+ e.g. `@include size(1em, 2em);`.
106
+
107
+ ### Removed
108
+
109
+ - All vendor prefixing mixins have been removed. These include:
110
+ - `align-items`
111
+ - `animation-delay`
112
+ - `animation-direction`
113
+ - `animation-duration`
114
+ - `animation-fill-mode`
115
+ - `animation-iteration-count`
116
+ - `animation-name`
117
+ - `animation-play-state`
118
+ - `animation-timing-function`
119
+ - `animation`
120
+ - `appearance`
121
+ - `backface-visibility`
122
+ - `background-image`
123
+ - `background`
124
+ - `border-image`
125
+ - `calc`
126
+ - `column-count`
127
+ - `column-fill`
128
+ - `column-gap`
129
+ - `column-rule-color`
130
+ - `column-rule-style`
131
+ - `column-rule-width`
132
+ - `column-rule`
133
+ - `column-span`
134
+ - `column-width`
135
+ - `columns`
136
+ - `display`
137
+ - `filter`
138
+ - `flex-direction`
139
+ - `flex`
140
+ - `font-feature-settings`
141
+ - `hidpi`
142
+ - `hyphens`
143
+ - `image-rendering`
144
+ - `justify-content`
145
+ - `keyframes`
146
+ - `linear-gradient`
147
+ - `perspective`
148
+ - `placeholder`
149
+ - `radial-gradient`
150
+ - `selection`
151
+ - `text-decoration-color`
152
+ - `text-decoration-line`
153
+ - `text-decoration-style`
154
+ - `text-decoration`
155
+ - `transform-origin`
156
+ - `transform-style`
157
+ - `transform`
158
+ - `transition-delay`
159
+ - `transition-duration`
160
+ - `transition-property`
161
+ - `transition-timing-function`
162
+ - `transition`
163
+ - `user-select`
164
+ - For prefixing, we recommend using a more robust and maintainable solution
165
+ like [Autoprefixer].
166
+ - The `$global-prefixes` setting has been removed and the `prefixer` mixin
167
+ has been refactored and no longer uses it.
168
+ - The `$monospace` variable has been removed.
169
+ - The `box-sizing` mixin has been removed.
170
+ - The `button` mixin has been removed.
171
+ - The `em` and `rem` mixins have been removed.
172
+ - The `flex-grid` function has been removed.
173
+ - The `flex-gutter` function has been removed.
174
+ - The `golden-ratio` function has been removed.
175
+ - The `grid-width` function has been removed.
176
+ - The `inline-block` mixin has been removed.
177
+ - The `retina-image` mixin has been removed.
178
+ - The `triangle` mixin has been removed.
179
+
180
+ [5.0.0.alpha.0]: https://github.com/thoughtbot/bourbon/compare/v4.2.6...v5.0.0.alpha.0
181
+ [3cf106a]: https://github.com/thoughtbot/bourbon/commit/3cf106a210c1bae7765e6193f62310f95fdee0b7
182
+ [Autoprefixer]: https://github.com/postcss/autoprefixer
@@ -1,37 +1,63 @@
1
- We love pull requests from everyone. By participating in this project, you
2
- agree to abide by the thoughtbot [code of conduct]. Here’s a quick guide:
3
-
4
- [code of conduct]: https://thoughtbot.com/open-source-code-of-conduct
5
-
6
- 1. Fork the repository.
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.
11
-
12
- At this point you’re waiting on us. We like to at least comment on, if not
13
- accept, pull requests within three business days (and, typically, one business
14
- day). We may suggest some changes or improvements or alternatives.
15
-
16
- Some things that will increase the chance that your pull request is accepted:
17
-
18
- * Fix a bug, refactor code or expand an existing feature.
19
- * Use the right syntax and naming conventions.
20
- * Update parts of the documentation that are affected by your contribution.
21
-
22
- **Git Commit Messages**
23
-
24
- * Capitalize your commit messages.
25
- * Start your message with a verb.
26
- * Use present tense.
27
- * Refer to the issue/PR number in your squashed commit message.
28
-
29
- **SCSS Style Guide**
30
-
31
- * Two spaces, no tabs.
32
- * Dashes instead of underscores or camel case: `linear-gradient` **not** `linear_gradient` or `linearGradient`
33
- * Names should be descriptive and written in full-words: `$all-text-inputs-hover` **not** `$hover` or `$alltxthvr`
34
- * Space between property and value: `width: 20px` **not** `width:20px`
35
- * Declarations within a block should be ordered alphabetically.
36
- * Blank lines between rules.
37
- * No trailing whitespace. Blank lines should not have any space.
1
+ # Contributing
2
+
3
+ By participating in this project, you agree to abide by the thoughtbot
4
+ [code of conduct](https://thoughtbot.com/open-source-code-of-conduct).
5
+
6
+ ## Pull Requests
7
+
8
+ We welcome pull requests from everyone. Here’s a quick guide:
9
+
10
+ 1. [Fork the repository][fork] and clone to your machine.
11
+ 1. Run `bundle install`.
12
+ 1. Make sure the tests pass: `bundle exec rake`.
13
+ 1. Make your change, following our style guide (below). Write tests. Make sure
14
+ the tests pass: `bundle exec rake`.
15
+ 1. Write a [good commit message][commit]. Push to your fork and
16
+ [submit a pull request][pr]. If [Hound] catches style violations, fix them.
17
+ 1. Wait for us. We try to at least comment on pull requests within one week. We
18
+ may suggest changes.
19
+
20
+ [fork]: https://github.com/thoughtbot/bourbon/fork
21
+ [commit]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
22
+ [pr]: https://github.com/thoughtbot/bourbon/compare/
23
+ [hound]: https://houndci.com
24
+
25
+ ### Style Guide
26
+
27
+ Bourbon uses Sass’s SCSS syntax and aligns to
28
+ [thoughtbot’s style guides][sass guide]. High-level notes:
29
+
30
+ - Use two-space indentation (no tabs).
31
+ - Use double quotation marks.
32
+ - Use hyphens when naming things: `hide-visually` rather than `hide_visually` or
33
+ `hideVisually`.
34
+ - Use one space between property and value: `width: 20px` rather than
35
+ `width:20px`.
36
+ - Names should be descriptive and aim for clarity over brevity:
37
+ `$all-text-inputs-hover` rather than `$inputshover` or `$alltxthvr`.
38
+ - Order CSS declarations alphabetically.
39
+ - No trailing whitespace.
40
+
41
+ [sass guide]: https://github.com/thoughtbot/guides
42
+ [SCSS-Lint]: https://github.com/brigade/scss-lint
43
+
44
+ ### Documentation
45
+
46
+ We use [SassDoc] to document Bourbon. [Annotations] should be ordered:
47
+
48
+ - `@link`
49
+ - `@see`
50
+ - `@type`
51
+ - `@argument`
52
+ - `@property`
53
+ - `@return`
54
+ - `@example`
55
+ - `@require`
56
+ - `@access`
57
+ - `@since`
58
+ - `@author`
59
+ - `@deprecated`
60
+ - `@todo`
61
+
62
+ [SassDoc]: http://sassdoc.com
63
+ [Annotations]: http://sassdoc.com/annotations
@@ -2,26 +2,29 @@
2
2
 
3
3
  1. Update the version number in these places:
4
4
  - `lib/bourbon/version.rb`
5
- - `core/bourbon/_bourbon.scss`
5
+ - `core/_bourbon.scss`
6
6
  - `package.json`
7
7
  - `bower.json`
8
8
 
9
- 1. Update `NEWS.md`
9
+ 1. Update `CHANGELOG.md`. We follow the guidelines from [Keep a CHANGELOG].
10
10
 
11
11
  1. Commit changes. Use the convention “Bourbon vX.X.X” in your commit message.
12
12
  There shouldn’t be code changes, and thus CI doesn’t need to run.
13
13
 
14
- 1. Run `rake release`, which tags the release, pushes the tag to GitHub, and
14
+ 1. Run `bundle exec rake release`, which tags the release, pushes the tag to GitHub, and
15
15
  pushes the gem to RubyGems.org.
16
16
 
17
17
  1. Run `npm publish`, which pushes the new version to npm’s registry (if
18
18
  releasing a pre-release, run `npm publish --tag beta`).
19
19
 
20
- 1. Add a [new GitHub release](//github.com/thoughtbot/bourbon/releases/new).
20
+ 1. Add a [new GitHub release][github-release].
21
21
 
22
- 1. Re-generate and publish
23
- the [documentation website](//github.com/thoughtbot/bourbon.io),
24
- using the available Rake tasks.
22
+ 1. Re-generate and publish the [documentation website], using the available
23
+ Rake tasks.
25
24
 
26
25
  1. Announce the new release, making sure to say “thank you” to the contributors
27
26
  who helped shape this version!
27
+
28
+ [Keep a CHANGELOG]: http://keepachangelog.com
29
+ [github-release]: https://github.com/thoughtbot/bourbon/releases/new
30
+ [documentation website]: https://github.com/thoughtbot/bourbon.io
data/bower.json CHANGED
@@ -34,5 +34,5 @@
34
34
  "type": "git",
35
35
  "url": "https://github.com/thoughtbot/bourbon.git"
36
36
  },
37
- "version": "5.0.0-beta.3"
37
+ "version": "5.0.0-beta.4"
38
38
  }
@@ -1,4 +1,4 @@
1
- // Bourbon 5.0.0-beta.3
1
+ // Bourbon 5.0.0-beta.4
2
2
  // http://bourbon.io
3
3
  // Copyright 2011 thoughtbot, inc.
4
4
  // MIT License
@@ -3,9 +3,9 @@
3
3
  ////
4
4
  /// Pre-defined scales for use with the `modular-scale` function.
5
5
  ///
6
- /// @see {function} modular-scale
6
+ /// @type number (unitless)
7
7
  ///
8
- /// @type number
8
+ /// @see {function} modular-scale
9
9
  ////
10
10
 
11
11
  $minor-second: 1.067;
@@ -3,6 +3,8 @@
3
3
  /// Generates variables for all buttons. Please note that you must use
4
4
  /// interpolation on the variable: `#{$all-buttons}`.
5
5
  ///
6
+ /// @type list
7
+ ///
6
8
  /// @example scss
7
9
  /// #{$all-buttons} {
8
10
  /// background-color: #f00;
@@ -44,8 +46,6 @@
44
46
  /// }
45
47
  ///
46
48
  /// @require {function} _assign-inputs
47
- ///
48
- /// @type list
49
49
 
50
50
  $buttons-list: (
51
51
  "button",
@@ -12,6 +12,8 @@
12
12
  /// @argument {color} $light-color [#fff]
13
13
  /// The color to be output when `$base-color` is dark.
14
14
  ///
15
+ /// @return {color}
16
+ ///
15
17
  /// @example scss
16
18
  /// .first-element {
17
19
  /// color: contrast-switch(#bae6e6);
@@ -16,6 +16,8 @@
16
16
  /// @argument {number (unitless)} $ratio [1.25]
17
17
  /// The ratio the scale is built on.
18
18
  ///
19
+ /// @return {number (with unit)}
20
+ ///
19
21
  /// @example scss
20
22
  /// .first-element {
21
23
  /// font-size: modular-scale(2);
@@ -55,8 +57,6 @@
55
57
  /// font-size: 1.728em;
56
58
  /// }
57
59
  ///
58
- /// @return {number (with unit)}
59
- ///
60
60
  /// @require {function} _bourbon-get-setting
61
61
 
62
62
  @function modular-scale(
@@ -7,6 +7,8 @@
7
7
  /// @argument {number (percentage)} $percent
8
8
  /// The amount of black to be mixed in.
9
9
  ///
10
+ /// @return {color}
11
+ ///
10
12
  /// @example scss
11
13
  /// .element {
12
14
  /// background-color: shade(#ffbb52, 60%);
@@ -16,8 +18,6 @@
16
18
  /// .element {
17
19
  /// background-color: #664a20;
18
20
  /// }
19
- ///
20
- /// @return {color}
21
21
 
22
22
  @function shade(
23
23
  $color,
@@ -4,13 +4,13 @@
4
4
  ///
5
5
  /// @argument {number} $value
6
6
  ///
7
+ /// @return {number (unitless)}
8
+ ///
7
9
  /// @example scss
8
10
  /// $dimension: strip-unit(10em);
9
11
  ///
10
12
  /// @example css
11
13
  /// $dimension: 10;
12
- ///
13
- /// @return {number}
14
14
 
15
15
  @function strip-unit($value) {
16
16
  @return ($value / ($value * 0 + 1));
@@ -3,6 +3,8 @@
3
3
  /// Generates variables for all text-based inputs. Please note that you must use
4
4
  /// interpolation on the variable: `#{$all-text-inputs}`.
5
5
  ///
6
+ /// @type list
7
+ ///
6
8
  /// @example scss
7
9
  /// #{$all-text-inputs} {
8
10
  /// border: 1px solid #f00;
@@ -96,8 +98,6 @@
96
98
  /// }
97
99
  ///
98
100
  /// @require {function} _assign-inputs
99
- ///
100
- /// @type list
101
101
 
102
102
  $text-inputs-list: (
103
103
  "[type='color']",
@@ -7,6 +7,8 @@
7
7
  /// @argument {number (percentage)} $percent
8
8
  /// The amount of white to be mixed in.
9
9
  ///
10
+ /// @return {color}
11
+ ///
10
12
  /// @example scss
11
13
  /// .element {
12
14
  /// background-color: tint(#6ecaa6, 40%);
@@ -16,8 +18,6 @@
16
18
  /// .element {
17
19
  /// background-color: #a8dfc9;
18
20
  /// }
19
- ///
20
- /// @return {color}
21
21
 
22
22
  @function tint(
23
23
  $color,
@@ -4,6 +4,8 @@
4
4
  ///
5
5
  /// @argument {string} $setting
6
6
  ///
7
+ /// @return {boolean | color | list | number | string}
8
+ ///
7
9
  /// @example scss
8
10
  /// _bourbon-get-setting(rails-asset-pipeline)
9
11
  ///
@@ -4,6 +4,8 @@
4
4
  ///
5
5
  /// @argument {string} $value
6
6
  ///
7
+ /// @return {boolean}
8
+ ///
7
9
  /// @access private
8
10
 
9
11
  @function _is-length($value) {
@@ -6,11 +6,11 @@
6
6
  ///
7
7
  /// @argument {color (hex)} $hex-color
8
8
  ///
9
+ /// @return {boolean}
10
+ ///
9
11
  /// @example scss
10
12
  /// is-light($color)
11
13
  ///
12
- /// @return {boolean}
13
- ///
14
14
  /// @access private
15
15
 
16
16
  @function _is-light($hex-color) {
@@ -6,6 +6,8 @@
6
6
  ///
7
7
  /// @require {function} _contains
8
8
  ///
9
+ /// @return {boolean}
10
+ ///
9
11
  /// @access private
10
12
 
11
13
  @function _is-number($value) {
@@ -4,6 +4,8 @@
4
4
  ///
5
5
  /// @argument {string} $value
6
6
  ///
7
+ /// @return {boolean}
8
+ ///
7
9
  /// @require {function} _contains
8
10
  ///
9
11
  /// @require {function} _is-length
@@ -1,3 +1,4 @@
1
1
  require "bourbon/generator"
2
+
2
3
  bourbon_path = File.expand_path("../../core", __FILE__)
3
4
  ENV["SASS_PATH"] = File.join([ENV["SASS_PATH"], bourbon_path].compact)
@@ -1,3 +1,3 @@
1
1
  module Bourbon
2
- VERSION = "5.0.0.beta.3"
2
+ VERSION = "5.0.0.beta.4"
3
3
  end
@@ -29,5 +29,5 @@
29
29
  "scripts": {
30
30
  "test": "bundle exec rake"
31
31
  },
32
- "version": "5.0.0-beta.3"
32
+ "version": "5.0.0-beta.4"
33
33
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bourbon
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0.beta.3
4
+ version: 5.0.0.beta.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Reuter
@@ -17,7 +17,7 @@ authors:
17
17
  autorequire:
18
18
  bindir: bin
19
19
  cert_chain: []
20
- date: 2016-03-04 00:00:00.000000000 Z
20
+ date: 2016-03-11 00:00:00.000000000 Z
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  name: aruba
@@ -132,10 +132,10 @@ files:
132
132
  - ".hound.yml"
133
133
  - ".npmignore"
134
134
  - ".scss-lint.yml"
135
+ - CHANGELOG.md
135
136
  - CONTRIBUTING.md
136
137
  - Gemfile
137
138
  - LICENSE.md
138
- - NEWS.md
139
139
  - README.md
140
140
  - RELEASING.md
141
141
  - Rakefile
@@ -388,4 +388,3 @@ test_files:
388
388
  - spec/support/matchers/have_value.rb
389
389
  - spec/support/parser_support.rb
390
390
  - spec/support/sass_support.rb
391
- has_rdoc:
data/NEWS.md DELETED
@@ -1,103 +0,0 @@
1
- # News
2
-
3
- The noteworthy changes for each Bourbon version are included here. For a
4
- complete changelog, see the Git history for each version via the version links.
5
-
6
- ## [5.0.0-beta.3] - March 4, 2016
7
-
8
- ### Added
9
-
10
- - Added `pathname` requirement to resolve install issues.
11
-
12
- [5.0.0-beta.3]: https://github.com/thoughtbot/bourbon/compare/v5.0.0.beta.2...v5.0.0.beta.3
13
-
14
- ## [5.0.0-beta.2] - March 3, 2016
15
-
16
- ### Added
17
-
18
- - Added global settings for the `contrast-switch` mixin:
19
- `contrast-switch-dark-color` & `contrast-switch-light-color`.
20
- - Added the `triangle` mixin back, but note that it’s been refactored and the
21
- arguments have changed.
22
-
23
- ### Changed
24
-
25
- - Swapped argument names `contrast-switch`; what was `$dark-color` is now
26
- `$light-color` and what was `$light-color` is now `$dark-color`.
27
-
28
- ### Removed
29
-
30
- - Dropped support for Ruby on Rails versions older than 4.2.
31
- - Dropped support for LibSass versions older than 3.3.
32
- - The `is-light` function is now private.
33
-
34
- [5.0.0-beta.2]: https://github.com/thoughtbot/bourbon/compare/v5.0.0.beta.1...v5.0.0.beta.2
35
-
36
- ## [5.0.0-beta.1] - February 9, 2016
37
-
38
- ### Added
39
-
40
- - Added a `contrast-switch` mixin that switches between two colors based on the
41
- lightness of a another color. Great for building button styles.
42
- - Added an `$all-text-inputs-invalid` variable to target the `:invalid`
43
- pseudo-class on all text-based inputs.
44
- - The `ellipsis` mixin now takes a `$display` argument.
45
- - Added a font stack for system fonts: `$font-stack-system`.
46
- - Added a `hide-visually` mixin that hides an element visually while still
47
- allowing the content to be accessible to assistive technology,
48
- e.g. screen readers.
49
- - The `font-face` mixin now allows additional CSS properties to be included in
50
- its block, which will output as part of the `@font-face` declaration.
51
- See [2356719].
52
-
53
- ### Changed
54
-
55
- - The global default for the `modular-scale` ratio is now set to
56
- `$major-third` (`1.25`), instead of `$perfect-fourth` (`1.333`).
57
- - All font stack variables are now prefixed with `$font-stack-`,
58
- e.g. `$font-stack-helvetica`.
59
- - Global settings are now set via a `$bourbon` map, instead of variables.
60
- See [4e43c2d].
61
- - The `clearfix` mixin now uses `block` display, instead of `table`.
62
-
63
- ### Removed
64
-
65
- - The `$weight` and `$style` arguments in the `font-face` mixin have been
66
- removed. Instead, you can now include these—along with other CSS
67
- properties—within the mixin block and they’ll be output as part of the
68
- `@font-face` declaration.
69
-
70
- [5.0.0-beta.1]: https://github.com/thoughtbot/bourbon/compare/da4451e...v5.0.0.beta.1
71
- [2356719]: https://github.com/thoughtbot/bourbon/commit/235671948ef3a9c343c4391d250082a0373c8d83
72
- [4e43c2d]: https://github.com/thoughtbot/bourbon/commit/4e43c2d7507999b539771bdc1b3733b18b3c1883
73
-
74
- ## [5.0.0.alpha.0] - August 21, 2015
75
-
76
- ### Added
77
-
78
- - Added a `$global-font-file-formats` setting to globally set the file formats
79
- for the `font-face` mixin. The default is `("ttf", "woff2", "woff")`.
80
-
81
- ### Changed
82
-
83
- - Removed the type selectors in `$all-text-inputs` and `$all-buttons` to
84
- reduce specificity.
85
- - Font stacks have been modernized.
86
- - The `strip-units` function is now `strip-unit`.
87
- - The `size` mixin now requires a comma-separated argument list,
88
- e.g. `@include size(1em, 2em);`.
89
-
90
- ### Removed
91
-
92
- - All vendor prefixing mixins have been removed. We recommend using a more
93
- robust and maintainable solution
94
- like [Autoprefixer](https://github.com/postcss/autoprefixer).
95
- - The `$global-prefixes` setting has been removed and the `prefixer` mixin
96
- has been refactored and no longer uses it.
97
- - The `em` and `rem` mixins have been removed.
98
- - The `$monospace` font stack variable has been removed in favor of new
99
- `$consolas`, `$courier-new` and `$monaco` variables.
100
- - The `triangle` mixin has been removed.
101
- - The `retina-image` mixin has been removed.
102
-
103
- [5.0.0.alpha.0]: https://github.com/thoughtbot/bourbon/compare/v4.2.6...v5.0.0.alpha.0