This repository was archived by the owner on Sep 13, 2024. It is now read-only.
Releases: thoughtbot/bourbon
Releases · thoughtbot/bourbon
v5.0.0.beta.2
Added
- Added global settings for the
contrast-switchmixin:
contrast-switch-dark-color&contrast-switch-light-color. - Added the
trianglemixin back, but note that it’s been refactored and the
arguments have changed.
Changed
- Swapped argument names
contrast-switch; what was$dark-coloris now
$light-colorand what was$light-coloris now$dark-color.
Removed
- Dropped support for Ruby on Rails versions older than 4.2.
- Dropped support for LibSass versions older than 3.3.
- The
is-lightfunction is now private.
v5.0.0.beta.1
Added
- Added a
contrast-switchmixin that switches between two colors based on the
lightness of a another color. Great for building button styles. - Added an
$all-text-inputs-invalidvariable to target the:invalid
pseudo-class on all text-based inputs. - The
ellipsismixin now takes a$displayargument. - Added a font stack for system fonts:
$font-stack-system. - Added a
hide-visuallymixin that hides an element visually while still
allowing the content to be accessible to assistive technology,
e.g. screen readers. - The
font-facemixin now allows additional CSS properties to be included in
its block, which will output as part of the@font-facedeclaration.
See 2356719.
Changed
- The global default for the
modular-scaleratio is now set to
$major-third(1.25), instead of$perfect-fourth(1.333). - All font stack variables are now prefixed with
$font-stack-,
e.g.$font-stack-helvetica. - Global settings are now set via a
$bourbonmap, instead of variables.
See 4e43c2d. - The
clearfixmixin now usesblockdisplay, instead oftable.
Removed
- The
$weightand$stylearguments in thefont-facemixin have been
deprecated. Instead, you can now include these—along with other CSS
properties—within the mixin block and they’ll be output as part of the
@font-facedeclaration.
v4.2.6
v4.2.5
v5.0.0.alpha.0
New features
- A new
$global-font-file-formatssetting has been added, allowing you to globally set the font file formats you want thefont-facemixin to use. The default isttf woff2 woff.
Improvements
- Removed the type selectors in
$all-text-inputsand$all-buttonsto reduce specificity. - Font stack variables have been modernized.
- The
prefixermixin has been refactored and no-longer uses the$global-prefixessetting.
Deprecations
- All vendor prefixing mixins have been removed. We recommend using a more robust and maintainable solution like Autoprefixer.
- The
em()andrem()mixins have been deprecated. - The
$monospacefont stack variable has been deprecated in favor of new$consolas,$courier-newand$monacovariables. - The
triangle()mixin has been deprecated.
Maintenance
- The
strip-unitsfunction is nowstrip-unit. - The
size()mixin now requires a comma-separated argument list:@include size(1em, 2em);. - We restructured Bourbon’s directory tree to be more succinct and reduce possible conflicts. The full library now lives in a
core/directory and all of the Sass partials are within abourbon/directory to avoid polluting imports paths. This will affect load paths if you use Bower.
Compatibility with Neat, Bitters & Refills
This alpha should be fully compatible with the latest version of Neat (1.7.2). Bitters 1.0 is not compatible, however the master branch is. We’ll get 1.1 out ASAP. At this time, most of Refills will not be compatible.
If you have comments or come across a bug, please open an issue here on GitHub.
v4.2.4
v4.2.3
v4.2.2
v4.2.1
v4.2.0 - Woodford Reserve
🎉 Bourbon is now compatible with LibSass 3.1+!
Improvements
$all-button-inputsis now simply$all-buttons($all-button-inputswill continue to work until v5.0).$all-buttonsalso now includes thebuttonelement.$all-text-inputsnow includes thetextareaelement.
Bug fixes
selectionis now compatible with LibSass and we fixed a bug which caused errors in certain versions of Ruby Sass.- Fixed a bug with
hide-textwhich caused some typefaces to extend into the visible area. It also no longer requires aheight.
Deprecations
box-sizinghas been deprecated and will be removed in v5.0.
Maintenance
- Bourbon now requires Sass 3.4.
- We are now
bourbonon npm. - We are now using SCSS-Lint with Hound to help us keep our Sass in tip-top shape.
- We’ve begun porting our documentation over to SassDoc, which will allow them to be versioned and make updating easier.
- We’ve updated our browser support.