Skip to content

v4.1.0

Compare
Choose a tag to compare
@planktonic planktonic released this 22 Feb 15:51
· 105 commits to main since this release
d633bba

Added

  • New Sass map $bitstyles-shadows-shadows for holding global shadow design tokens as a Sass list, and a shadows.get() function for accessing them in your Sass
  • New helper function shadow.generate() to generate multi-layered “natural” shadows based on the color and distances you give
  • Two functions (shadow.to-box-shadow() and shadow.to-drop-shadow()) for translating those shadows (which are specified in Sass' list format) into either CSS box-shadow format, or CSS filter drop-shadow format. Not necessary for the shadows accessed using shadows.get()
  • New u-shadow and u-drop-shadow utility classes to set box-shadows and drop-shadows respectively
  • The smallscreen version of the Sidebar organism can now be positioned to the left or right side of the screen by overriding $bitstyles-sidebar-small-location (defaults to left)

Fixed

  • u-bg classes will now be output with the correct breakpoint suffix
  • $bitstyles-font-family-breakpoints will now correctly output media-queries

Changed

  • Renames tools/_directional-properties.scss -> tools/_properties.scss, so any imports of those files will need to be updated to reflect that
  • Renames output-properties() -> output()
  • Renames output-directional-properties() -> output-directional()

PRs contained

Full Changelog: v4.0.0...v4.1.0