Skip to content

v4.0.0

Compare
Choose a tag to compare
@kaelig kaelig released this 13 Jan 18:10
· 64 commits to main since this release

⭐️ Upgrading to v4.0.0 is recommended ⭐️
(for most projects, upgrading sass-mq should not cause any changes in output)

New breakpoints added via mq-add-breakpoint() keeps $mq-breakpoints ordered from the smallest to the largest breakpoint:

$mq-breakpoints: (
    mobile: 300px,
    tablet: 620px
);

@import 'mq';

@include mq-add-breakpoint(tiny, 160px);
@include mq-add-breakpoint(medium, 500px);

// Results in:
// $mq-breakpoints: (
//     tiny:   160px,
//     mobile: 300px,
//     medium: 500px,
//     tablet: 620px
// );

See #103 for details