v4.0.0
Added
u-bgclasses can now be made available at different breakpoints by overriding the$bitstyles-bg-breakpointsvariableu-fgclasses can now be made available at different breakpoints by overriding the$bitstyles-fg-breakpointsvariable- Default settings for
u-fgclasses now includewhiteas an option u-fontclasses can now be customized by overriding the$bitstyles-font-weight-valuesand$bitstyles-font-style-valuesvariables. They can be made available at different breakpoints by overriding the$bitstyles-font-weight-breakpointsand$bitstyles-font-style-breakpointsvariablesu-textclasses can now be customized by overriding the$bitstyles-text-valuesvariable. They can be made available at different breakpoints by overriding the$bitstyles-text-breakpointsvariableu-overflowclasses are now also available forscroll,hidden, andautoby default, and can be set by overriding$bitstyles-overflow-values- You can now override the font styles for
input-texts,selects, andbuttons. - New
u-fontclasses to specify font-family. Defaults tou-font-headerandu-font-body, which apply the respective font stack as specified insettings/typography. This can be overridden using$bitstyles-font-family-values, and can be made responsive by specifying breakpoints in$bitstyles-font-family-breakpoints - Color & background-color of the
htmlelement can now be specified using$bitstyles-html-colorand$bitstyles-html-background-color, and default to thetextandbackgroundcolors specified in your global color-palette - Default key-name to return when asking for a color without specifying it (e.g.
palette.get('white')) can now be set using$bitstyles-color-palette-default-key - There’s now a helper function
font-size.get($font-size, $breakpoint)which returns font-sizes from the global map
Fixed
- The height of inputs, selects, and
.a-buttons now matches regardless of the border-width - Modals now only show scrollbars (on OSes/configs where scrollbars are shown) when they’re needed
- Typographic scale of base elements is no longer prefixed when a prefix is specified
Changed
- The font-sizes specified in
settings/typography$font-sizesmap should now useremunits instead ofpx. The Sass will still compile if you specify usingpxas before, but the resulting CSS will not follow current best practices (to useremunits for specifying font-size)
Breaking
- All utility classes which had a double dash in their classname (
--) now only have a single dash. You’ll need to rename all these classes to use single dashes e.g..u-bg--brand-1becomes.u-bg-brand-1 - Values for the display classes (
u-block,u-flexetc.) will now need to be set unquoted. If you previously were overriding the$bitstyles-display-valuesvariable, make sure all the values on the right hand side are unquoted CSS values e.g.'block': blockinstead of'block': 'block', as was previously possible - If you were using the
$bitstyles-input-paddingvariable, you’ll now need to set$bitstyles-input-padding-verticaland$bitstyles-input-padding-horizontalseparately - The
u-overflow-xandu-overflow-yclasses were renamed tou-overflow-x-autoandu-overflow-y-auto, respectively - The media-query/breakpoint mixin is no longer called using
media-query.media-query(). You’ll need to update all uses of this tomedia-query.get() - Removes the
unit-conversionsfunctions
PRs
- [#544] Update remaining utility classes to using single-dash naming by @planktonic in #546
- [#576] select remove half the border width from vertical padding by @planktonic in #581
- Updates browserslist & dependencies by @planktonic in #579
- [#574] modal scrollbars when external mouse is connected by @planktonic in #582
- [#575] overflow scroll utilities by @planktonic in #580
- [#583] add utility font family by @planktonic in #584
- [#586] variables to set color background color of html by @planktonic in #589
- [#587] variable to specify default value for palette get by @planktonic in #590
- [#585] get() for font sizes by @planktonic in #594
- Bump version 4.0.0 by @planktonic in #598
Full Changelog: v3.1.0...v4.0.0