Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

Releases: thoughtbot/bourbon

v5.0.0.beta.2

04 Mar 15:53
Compare
Choose a tag to compare
v5.0.0.beta.2 Pre-release
Pre-release

Added

  • Added global settings for the contrast-switch mixin:
    contrast-switch-dark-color & contrast-switch-light-color.
  • Added the triangle mixin back, but note that it’s been refactored and the
    arguments have changed.

Changed

  • Swapped argument names contrast-switch; what was $dark-color is now
    $light-color and what was $light-color is 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-light function is now private.

Full Changelog

v5.0.0.beta.1

10 Feb 03:03
Compare
Choose a tag to compare
v5.0.0.beta.1 Pre-release
Pre-release

Added

  • Added a contrast-switch mixin that switches between two colors based on the
    lightness of a another color. Great for building button styles.
  • Added an $all-text-inputs-invalid variable to target the :invalid
    pseudo-class on all text-based inputs.
  • The ellipsis mixin now takes a $display argument.
  • Added a font stack for system fonts: $font-stack-system.
  • Added a hide-visually mixin that hides an element visually while still
    allowing the content to be accessible to assistive technology,
    e.g. screen readers.
  • The font-face mixin now allows additional CSS properties to be included in
    its block, which will output as part of the @font-face declaration.
    See 2356719.

Changed

  • The global default for the modular-scale ratio 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 $bourbon map, instead of variables.
    See 4e43c2d.
  • The clearfix mixin now uses block display, instead of table.

Removed

  • The $weight and $style arguments in the font-face mixin 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-face declaration.

Full Changelog

v4.2.6

01 Nov 17:49
Compare
Choose a tag to compare

Fixed

  • Fixed a bug with eyeglass support.

v4.2.5

17 Sep 14:23
Compare
Choose a tag to compare

Added

v5.0.0.alpha.0

21 Aug 18:21
Compare
Choose a tag to compare
v5.0.0.alpha.0 Pre-release
Pre-release

⚠️ The changes mentioned below may not be complete, but should cover most of the deprecations and changes.

New features

  • A new $global-font-file-formats setting has been added, allowing you to globally set the font file formats you want the font-face mixin to use. The default is ttf woff2 woff.

Improvements

  • Removed the type selectors in $all-text-inputs and $all-buttons to reduce specificity.
  • Font stack variables have been modernized.
  • The prefixer mixin has been refactored and no-longer uses the $global-prefixes setting.

Deprecations

  • All vendor prefixing mixins have been removed. We recommend using a more robust and maintainable solution like Autoprefixer.
  • The em() and rem() mixins have been deprecated.
  • The $monospace font stack variable has been deprecated in favor of new $consolas, $courier-new and $monaco variables.
  • The triangle() mixin has been deprecated.

Maintenance

  • The strip-units function is now strip-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 a bourbon/ 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

21 Aug 15:36
Compare
Choose a tag to compare

Improvements

  • $all-text-inputs now accounts for input’s that don’t have a type attribute specified, as they default to type="text". (8e7e36e)

Maintenance

v4.2.3

08 May 19:26
Compare
Choose a tag to compare

Bug fixes

  • Fixed an issue with the font-face mixin outputting an extraneous commas when using LibSass set to compressed output

v4.2.2

01 Apr 13:33
Compare
Choose a tag to compare

Bug fixes

  • The flex-direction mixin now properly outputs box-direction (old syntax) if set to normal.

v4.2.1

23 Feb 14:36
Compare
Choose a tag to compare

Restore app directory for npm

v4.2.0 - Woodford Reserve

13 Feb 14:57
Compare
Choose a tag to compare

🎉 Bourbon is now compatible with LibSass 3.1+!

Improvements

  • $all-button-inputs is now simply $all-buttons ($all-button-inputs will continue to work until v5.0).
  • $all-buttons also now includes the button element.
  • $all-text-inputs now includes the textarea element.

Bug fixes

  • selection is now compatible with LibSass and we fixed a bug which caused errors in certain versions of Ruby Sass.
  • Fixed a bug with hide-text which caused some typefaces to extend into the visible area. It also no longer requires a height.

Deprecations

  • box-sizing has been deprecated and will be removed in v5.0.

Maintenance

  • Bourbon now requires Sass 3.4.
  • We are now bourbon on 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.