- The
$slices
definition now acceptspx
values and not untiless values. (@betaboon)
- Flag $slices and $media with !default to allow overrides, fixes #27 (@jaradlight)
- Readme fixes (@jaradlight)
Complete rewrite!
Breakpoint Slicer had been evolving, improving its ergonomics while maintaining compatibility with old versions and supporting now obsolete libraries.
It's time to shed the legacy practices and redesign Breakpoint Slicer with simplicity and leveraging new Sass features such as modules and maps.
- New syntax for defining slices as a map rather than two arrays.
- New default slice definitions, every 200px, up to 1400px, xxs—xxxxl.
- New variable names. With the new Sass module system, namespacing is no longer necessary.
- Addressing slices by indices is not supported.
- Iterating slices hasn't been reimplemented (now that float-based grid systems have given way to flexbox and css-grid, iteration is no logner necessary).
- Fallback is no longer supported (I was there, Gandalf. I was there, 3000 years ago, when we had to support browsers incapable of media queries.).
- Removed Ruby/Compass support. Breakpoint Slicer is now distributed only as an npm/Eyeglass module.
- Overlapping correction is now limited to
-1
on the right side of a slice.+1
on the left side is no longer supported.
breakpoint
is no longer imported implicitly. Manual@import breakpoint
required.
- Project published on npm and Eyeglass.
- Project published on Bower.
- Added
prev-slice()
andnext-slice()
helper functions.
- Removed support for slices names from the
bp()
function. It made no sense. - Fixed a bug with
lpm()
callingright-bp-of-slice()
.
- Fixed a typo in an error message, brushed up comments.
- Added
lbp()
andrbp()
shortcuts for theleft-bp-of-slice()
andright-bp-of-slice()
functions.
- Added support for slice names to helper functions.
- Fixed bug: Breakpoint Slicer was failing without
$slicer-breakpoint-names
defined.
- Introduced
$slicer-breakpoint-names
to call slices by name rather than number.
- Introduced
$slicer-anti-overlap-corrections
to prevent slices from overlapping.
- Fixed
to
andfrom
being swapped. (-_-')
- Refactored for DRY.
- Added support for the Breakpoint's no-query fallback.
Initial release