Skip to content

Releases: sass-mq/sass-mq

Automated tests & improved documentation

11 Dec 15:12
Compare
Choose a tag to compare
  • [removed] function mq-add-breakpoint. Becomes a mixin (see below)
  • [new] mixin mq-add-breakpoint: @include mq-add-breakpoint
  • [new] Test compilation with Ruby Sass and Libsass in Travis-CI
  • [new] Sass documentation written with SassDoc

Upgrade path from older versions:

// Adding breakpoints:
// 1. Search for:
$mq-breakpoints: mq-add-breakpoint(

// 2. Replace with:
@include mq-add-breakpoint(


// $to becomes $until:
// 1. Search for
@include mq(…$to: [mobile|tablet…]) {}

// 2. Replace with
@include mq(…$until: [mobile|tablet…]) {}

Support libsass 3

18 Oct 15:03
Compare
Choose a tag to compare

Updates to support libsass 3.0.

v2.1.1: Make $mq-show-breakpoints fixed so always shown in viewport

12 Sep 17:08
Compare
Choose a tag to compare
Merge pull request #15 from guardian/fixed-position-for-show-breakpoints

Make $mq-show-breakpoints fixed so always shown in viewport

Deprecate $to for $until

01 Sep 13:24
Compare
Choose a tag to compare

The $to keyword argument is slightly ambiguous, insofar as it can mean both ‘up to’ and ‘up to and including’.

This release deprecates its use in favour of a hopefully clearer $until.

v2.0.1 - Unicode fix

23 Jul 09:27
Compare
Choose a tag to compare

Fixes a bug where the Sass compiler would throw an error "Syntax error: Invalid US-ASCII character "\xE2" if the system locale was confusing for Ruby. Find the full bug resolution discussion in #10.

Thanks to @ArekBartnik for his contribution.

v2.0.0: Sass 3.3.0!

08 Mar 12:33
Compare
Choose a tag to compare
  • [new] Requires Sass 3.3.x
  • [new] Use Sass maps for breakpoints configuration
  • [change] Renamed function mq-retrieve-breakpoint-width into mq-get-breakpoint-width
  • [new] During development, display the active breakpoint in the top corner of the viewport.

show-breakpoints

Upgrading from v1.x.x to v2.x.x

This release works with previous configuration conventions, but you can update your $mq-breakpoints config to use Sass 3.3 maps:

$mq-breakpoints: (
    (mobile  320px)
    (tablet  740px)
    (desktop 980px)
    (wide    1300px)

    // Tweakpoints
    (desktopAd 810px)
    (mobileLandscape 480px)
);

Becomes:

$mq-breakpoints: (
    mobile:  320px,
    tablet:  740px,
    desktop: 980px,
    wide:    1300px,

    // Tweakpoints
    desktopAd: 810px,
    mobileLandscape: 480px
);

Acknowledgements

Thanks to @bewildergeist and @hugogiraudel for contributing to this release.

v2.0.0 RC3: use Guardian Next Gen default breakpoints

25 Feb 10:14
Compare
Choose a tag to compare

This release makes it quicker to set up a Guardian application with the correct main breakpoints:

  • mobile: 320px
  • tablet: 740px
  • desktop: 980px
  • wide: 1300px

v2.0.0 RC2: Ability to show active breakpoint in corner of viewport

09 Dec 14:32
Compare
Choose a tag to compare
  • [New] To make development easier, this version introduces the ability to display the currently active breakpoint in the top corner of the browser.

Thanks to @bewildergeist for developing this feature (and @hugogiraudel for his help with Sass lists).

Ported in Sass 3.3 (maps instead of lists) by yours truly.

show-breakpoints

v1.4.0: Ability to show active breakpoint in corner of viewport

09 Dec 14:30
Compare
Choose a tag to compare
  • [New] To make development easier, this version introduces the ability to display the currently active breakpoint in the top corner of the browser.

Thanks to @bewildergeist for developing this feature (and @hugogiraudel for his help with Sass lists).

show-breakpoints

v2.0.0 RC1

06 Nov 12:32
Compare
Choose a tag to compare
v2.0.0 RC1 Pre-release
Pre-release

This release breaks with the previous configuration conventions (see below).

  • [new] Use new awesome Sass maps for breakpoints configuration
  • [change] Renamed function mq-retrieve-breakpoint-width into mq-get-breakpoint-width

How to upgrade

To upgrade from v1.x.x to v2.x.x, simply change the syntax of the breakpoint list into a map:

$mq-breakpoints: (
    (mobile  300px)
    (tablet  600px)
    (desktop 900px)
    (wide    1260px)

    // Tweakpoints
    (desktopAd 810px)
    (mobileLandscape 480px)
);

Becomes:

$mq-breakpoints: (
    mobile:  300px,
    tablet:  600px,
    desktop: 900px,
    wide:    1260px,

    // Tweakpoints
    desktopAd: 810px,
    mobileLandscape: 480px
);