This repository has been 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-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.
v5.0.0.beta.1
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 usesblock
display, instead oftable
.
Removed
- The
$weight
and$style
arguments in thefont-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.
v4.2.6
v4.2.5
v5.0.0.alpha.0
New features
- A new
$global-font-file-formats
setting has been added, allowing you to globally set the font file formats you want thefont-face
mixin to use. The default isttf 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()
andrem()
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 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-inputs
is now simply$all-buttons
($all-button-inputs
will continue to work until v5.0).$all-buttons
also now includes thebutton
element.$all-text-inputs
now includes thetextarea
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 aheight
.
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.