Skip to content

Commit

Permalink
Merge pull request #34 from asimov/feat/responsive-property-important
Browse files Browse the repository at this point in the history
feat(responsive-property): add an `$important` flag
  • Loading branch information
xzyfer committed Feb 4, 2016
2 parents d7d6a1d + 8fa7892 commit 0fa691a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions _mixin.scss
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@

@mixin responsive-property($key, $property) {
@mixin responsive-property($key, $property, $important: false) {
$map: get($key);

@if type-of($map) != map {
#{$property}: $map;
#{$property}: $map #{if($important, "!important", "")};
} @else {
@each $bp, $value in $map {
$value: if(is-lazy($value), exec-lazy($value), $value);

@if $bp == "all" {
#{$property}: $value;
#{$property}: $value #{if($important, "!important", "")};
} @else {
@include breakpoint(get("breakpoint/#{$bp}")) {
#{$property}: $value;
#{$property}: $value #{if($important, "!important", "")};
}
}
}
Expand Down

0 comments on commit 0fa691a

Please sign in to comment.