Skip to content

Commit

Permalink
Merge branch 'v1-6-1'
Browse files Browse the repository at this point in the history
  • Loading branch information
rafalbromirski committed Sep 20, 2015
2 parents 30e7653 + 8f42bbc commit 62fa351
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
11 changes: 9 additions & 2 deletions _media-queries.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,21 @@
// Licensed under a MIT License
//
// Version:
// 1.6.0
// 1.6.1

// --- generator ---------------------------------------------------------------

@mixin mq($media-type: 'only screen', $args...) {
@mixin mq($args...) {
$media-type: 'only screen';
$media-type-key: 'media-type';
$args: keywords($args);
$expr: '';

@if map-has-key($args, $media-type-key) {
$media-type: map-get($args, $media-type-key);
$args: map-remove($args, $media-type-key);
}

@each $key, $value in $args {
@if $value {
$expr: "#{$expr} and (#{$key}: #{$value})";
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sass-mediaqueries",
"version": "1.6.0",
"version": "1.6.1",
"homepage": "https://github.com/paranoida/sass-mediaqueries",
"authors": [
"Rafal Bromirski <rafal.bromirski@gmail.com>"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sass-mediaqueries",
"version": "1.6.0",
"version": "1.6.1",
"homepage": "https://github.com/paranoida/sass-mediaqueries",
"author": {
"name": "Rafal Bromirski",
Expand Down

0 comments on commit 62fa351

Please sign in to comment.