summaryrefslogtreecommitdiffstats
path: root/debian/missing-sources/wyrm/sass/wyrm_core/_neat_extra.sass
diff options
context:
space:
mode:
Diffstat (limited to 'debian/missing-sources/wyrm/sass/wyrm_core/_neat_extra.sass')
-rw-r--r--debian/missing-sources/wyrm/sass/wyrm_core/_neat_extra.sass43
1 files changed, 43 insertions, 0 deletions
diff --git a/debian/missing-sources/wyrm/sass/wyrm_core/_neat_extra.sass b/debian/missing-sources/wyrm/sass/wyrm_core/_neat_extra.sass
new file mode 100644
index 0000000..e6cf987
--- /dev/null
+++ b/debian/missing-sources/wyrm/sass/wyrm_core/_neat_extra.sass
@@ -0,0 +1,43 @@
+// Remove last element gutter
+=omega-type($query: block, $direction: default)
+ $table: if(belongs-to(table, $query), true, false)
+ $auto: if(belongs-to(auto, $query), true, false)
+ @if $direction != default
+ @warn "The omega mixin will no longer take a $direction argument. To change the layout direction, use row($direction) or set $default-layout-direction instead."
+ @else
+ $direction: get-direction($layout-direction, $default-layout-direction)
+ @if length($query) == 1
+ @if $auto
+ &:last-child
+ margin-#{$direction}: 0
+ @else if contains-display-value($query)
+ @if $table
+ padding-#{$direction}: 0
+ @else
+ margin-#{$direction}: 0
+ @else
+ +nth-of-type($query, $direction)
+ @else if length($query) == 2
+ @if $table
+ @if $auto
+ &:last-child
+ padding-#{$direction}: 0
+ @else
+ &:nth-of-type(#{nth($query, 1)})
+ padding-#{$direction}: 0
+ @else
+ @if $auto
+ &:last-child
+ margin-#{$direction}: 0
+ @else
+ +nth-of-type(nth($query, 1), $direction)
+ @else
+ @warn "Too many arguments passed to the omega() mixin."
+
+=nth-of-type($query, $direction)
+ $opposite-direction: get-opposite-direction($direction)
+ &:nth-of-type(#{$query})
+ margin-#{$direction}: 0
+ @if type-of($query) == number
+ &:nth-of-type(#{$query}+1)
+ clear: $opposite-direction