All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
- Update initializers so they only include assets for >=Rails 5. https://github.com/thoughtbot/bourbon/pull/1109/
7.2.0 - 2022-02-22
- Revert "Replace
/withmath.divper Dart Sass 2.0.0 updates."
7.1.0 - 2022-02-22
- Replace
/withmath.divper Dart Sass 2.0.0 updates.
7.0.0 - 2020-03-09
- Improved error handling of unsupported font file formats in the
font-facemixin (supported formats arewoff2andwoff). - CSS
var()andenv()functions are now accepted as values in thepositionandsizemixins.
- Updated
thorfrom 0.x to 1.x
- The
font-facemixin no longer supportsttf,svg, andeotfont file formats.
6.0.0 - 2019-07-10
- Installation through Bower is no longer supported.
- The sass gem (the deprecated Ruby Sass) is no longer a runtime dependency.
5.1.0 - 2018-07-20
$font-stack-systemnow includes thesystem-uivalue.
- The
_gammafunction will use apowfunction, if available.
5.0.1 - 2018-06-08
- Fixed an issue that would cause Bourbon to not be found when using SassC.
5.0.0 - 2018-01-05
Bourbon 5.0.0 is a major release with lots of changes and removals, which are documented below in each of the alpha and beta releases. There are no changes between v5.0.0-beta.8 and v5.0.0. For information on how to upgrade from v4 to v5, read our migrating guide.
5.0.0-beta.8 - 2017-06-26
- A
styleproperty has been added to ourpackage.json, which makes for easy importing when using npm-sass, sass-module-importer and others.
- The
trianglemixin no longer has default argument values. The order of the arguments also changed:$widthand$heightnow come before$color.
- The
bourbon updateCLI command now works when Bourbon is installed using a custom path. - Fixed an issue that would cause Bourbon to not be found within Rails apps.
5.0.0-beta.7 - 2016-11-03
- Added
white-space: nowrap;to thehide-visuallymixin so that content renders on one line and is correctly pronounced by screen readers. You can read more about this in Jesse Beach’s article “Beware smushed off-screen accessible text.”
- Removed the default values from the
$positionand$coordinatesarguments for thepositionmixin. - Updated
contrast-switchto calculate contrast based on the WCAG 2.0 specification. Please note that it is an approximation and we cannot guarantee full compliance, though all of our manual testing passed. - Renamed the
$coordinatesargument in thepositionmixin to$box-edge-values. - Updated
$font-stack-systemto include Avenir Next, Avenir, Lucida Grande, Helvetica, Noto, Franklin Gothic Medium, Century Gothic, and Liberation Sans. This follows system-fonts by Adam Morse. - The
word-breakproperty was removed from theword-wrapmixin and is no longer output. - Renamed the
word-wrapmixin tooverflow-wrapto align with the name change in the CSS spec.
5.0.0-beta.6 - 2016-06-06
- Added a
value-prefixermixin for generating vendor prefixes on values.
5.0.0-beta.5 - 2016-03-23
- Fixed a Sass load path issue that would intermittently break the importing of Bourbon in Rails apps.
- Swapped the order of the
$file-formatsand$asset-pipelinearguments in thefont-facemixin, so that$asset-pipelineis last (because it has a default and is likely used the least).
5.0.0-beta.4 - 2016-03-11
- We accidentally published
5.0.0.beta.3as a stable release on npm, rather than a prerelease. We’ve unpublished that to go back to4.2.6on the stable channel.
5.0.0-beta.3 - 2016-03-04
- Added
pathnamerequirement to fix install issues.
5.0.0-beta.2 - 2016-03-03
- 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. See 43e5a90.
- Switched argument names in
contrast-switch;$dark-coloris now$light-colorand$light-coloris now$dark-color. - The
is-lightfunction is now private.
- Dropped support for Ruby on Rails versions older than 4.2.
- Dropped support for LibSass versions older than 3.3.
5.0.0-beta.1 - 2016-02-09
- Added a
contrast-switchfunction 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:invalidpseudo-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.
- 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.
- The
$weightand$stylearguments in thefont-facemixin have been removed. 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.
5.0.0.alpha.0 - 2015-08-21
- Added a
$global-font-file-formatssetting to globally set the file formats for thefont-facemixin. The default is("ttf", "woff2", "woff"). - Add
$consolas,$courier-newand$monacovariables (these replace the removed$monospacevariable).
- Removed the type selectors in
$all-text-inputsand$all-buttonsto reduce specificity. - Font stacks have been modernized. See 3cf106a.
- The
strip-unitsfunction is nowstrip-unit. - The
sizemixin now requires a comma-separated argument list, e.g.@include size(1em, 2em);.
- All vendor prefixing mixins have been removed. These include:
align-itemsanimation-delayanimation-directionanimation-durationanimation-fill-modeanimation-iteration-countanimation-nameanimation-play-stateanimation-timing-functionanimationappearancebackface-visibilitybackground-imagebackgroundborder-imagecalccolumn-countcolumn-fillcolumn-gapcolumn-rule-colorcolumn-rule-stylecolumn-rule-widthcolumn-rulecolumn-spancolumn-widthcolumnsdisplayfilterflex-directionflexfont-feature-settingshidpihyphensimage-renderingjustify-contentkeyframeslinear-gradientperspectiveplaceholderradial-gradientselectiontext-decoration-colortext-decoration-linetext-decoration-styletext-decorationtransform-origintransform-styletransformtransition-delaytransition-durationtransition-propertytransition-timing-functiontransitionuser-select- For prefixing, we recommend using a more robust and maintainable solution like Autoprefixer.
- The
$global-prefixessetting has been removed and theprefixermixin has been refactored and no longer uses it. - The
$monospacevariable has been removed. - The
box-sizingmixin has been removed. - The
buttonmixin has been removed. - The
emandremfunctions have been removed. - The
flex-gridfunction has been removed. - The
flex-gutterfunction has been removed. - The
golden-ratiofunction has been removed. - The
grid-widthfunction has been removed. - The
inline-blockmixin has been removed. - The
retina-imagemixin has been removed. - The
trianglemixin has been removed.
4.3.4 - 2017-04-01
- Updated deprecation warning message for
strip-units. (#1016)
4.3.3 - 2017-02-23
- Internal Bourbon deprecation warnings for
is-sizeandis-lengthwill no longer be thrown when using thesizemixin.
4.3.2 - 2017-02-10
- Internal Bourbon deprecation warnings for
unpackandis-lengthwill no longer be thrown when using thepositionmixin. (#1004)
4.3.1 - 2017-02-07
- Internal Bourbon deprecation warnings will no longer be thrown. (#1002)
4.3.0 - 2017-02-03
- Added deprecation warnings for features that will be removed in 5.0.0. Please reference our change log, which includes a list of these changes and removals. (#891)
4.2.7 - 2016-04-15
- Fixed a Sass deprecation warning when using the
backgroundandbackground-imagemixins.
4.2.6 - 2015-10-17
- Fixed a bug with eyeglass support.
4.2.5 - 2015-09-17
- Support for eyeglass.
4.2.4 - 2015-08-21
$all-text-inputsnow accounts forinput’s that don’t have atypeattribute specified, as they default totype="text". (https://github.com/thoughtbot/bourbon/commit/8e7e36e01c47194d83951fb6315c5b26a008f2b7)- The
bourbonnpm package now has a proper load path. (https://github.com/thoughtbot/bourbon/commit/36c2d5576f1fe9dbdfd9543e15064c5a4a16343e)
4.2.3 - 2015-05-18
- Fixed an issue with the
font-facemixin outputting an extraneous commas when using LibSass set to compressed output.
4.2.2 - 2015-04-01
- The
flex-directionmixin now properly outputs box-direction (old syntax) if set to normal.
4.2.1 - 2015-02-23
- Restored the
app/directory for npm.