app/assets/stylesheets/grid/_omega.scss in neat-1.7.0 vs app/assets/stylesheets/grid/_omega.scss in neat-1.7.1
- old
+ new
@@ -1,5 +1,7 @@
+@charset "UTF-8";
+
/// Removes the element's gutter margin, regardless of its position in the grid hierarchy or display property. It can target a specific element, or every `nth-child` occurrence. Works only with `block` layouts.
///
/// @param {List} $query (block)
/// List of arguments. Supported arguments are `nth-child` selectors (targets a specific pseudo element) and `auto` (targets `last-child`).
///
@@ -55,25 +57,19 @@
}
@else {
@include nth-child($query, $direction);
}
- }
-
- @else if length($query) == 2 {
+ } @else if length($query) == 2 {
@if $auto {
&:last-child {
margin-#{$direction}: 0;
}
- }
-
- @else {
+ } @else {
@include nth-child(nth($query, 1), $direction);
}
- }
-
- @else {
+ } @else {
@include -neat-warn("Too many arguments passed to the omega() mixin.");
}
}
@mixin nth-child($query, $direction) {
@@ -81,10 +77,10 @@
&:nth-child(#{$query}) {
margin-#{$direction}: 0;
}
- @if type-of($query) == number {
+ @if type-of($query) == number and unit($query) == "n" {
&:nth-child(#{$query}+1) {
clear: $opposite-direction;
}
}
}