Skip to content

Commit

Permalink
Inverted logic due to a bug in libsass, see sass/libsass#920 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Dix committed Mar 5, 2015
1 parent 17714a6 commit 7c907c7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions _function.z-index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@
// @return [number] | [null]

@function z($layer) {
@if not map-has-key($z-layers, $layer) {
@warn "No z-index found in $z-layers map for `#{$layer}`. Property omitted.";
}

@if map-has-key($z-layers, $layer) {
@return map-get($z-layers, $layer);
}

@warn "No z-index found in $z-layers map for `#{$layer}`. Property omitted.";
@return null;
}

0 comments on commit 7c907c7

Please sign in to comment.