Skip to content

Commit

Permalink
renaming -selector variable to and moving the option before as sugges…
Browse files Browse the repository at this point in the history
…ted in #171 (comment)
  • Loading branch information
barraq committed Apr 4, 2013
1 parent 2f16b19 commit a82d31c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/source/guides/reference.html.md
Expand Up @@ -356,18 +356,18 @@ Provide the column-width of each element,
and Susy will determine the positioning for you. and Susy will determine the positioning for you.


:::scss :::scss
// isolate-grid(<$columns> [, <$context>, <$from>, <$nth-selector>, <$style>]) // isolate-grid(<$columns> [, <$context>, <$selector>, <$from>, <$style>])
.gallery-item { .gallery-item {
@include isolate-grid(3); @include isolate-grid(3);
} }


- `<$columns>`: The number of _Columns_ for each item to span. - `<$columns>`: The number of _Columns_ for each item to span.
- `<$context>`: Current nesting _Context_. - `<$context>`: Current nesting _Context_.
Default: `$total-columns`. Default: `$total-columns`.
- `<$selector>`: either 'child' or 'of-type'.
Default: `child`.
- `<$from>`: The origin direction of your document flow. - `<$from>`: The origin direction of your document flow.
Default: `$from-direction`. Default: `$from-direction`.
- `<$nth-selector>`: either 'child' or 'of-type'.
Default: `child`.
- `<$style>`: Optionally return `static` lengths for grid calculations. - `<$style>`: Optionally return `static` lengths for grid calculations.
Default: `$container-style`. Default: `$container-style`.


Expand Down
6 changes: 3 additions & 3 deletions sass/susy/_isolation.scss
Expand Up @@ -21,13 +21,13 @@
// //
// $columns : The column-width of each item on the grid; // $columns : The column-width of each item on the grid;
// $context : [optional] The context (columns spanned by parent). // $context : [optional] The context (columns spanned by parent).
// $selector : [child | of-type | last-of-type ] (default is 'child')
// $from : The start direction of your layout (e.g. 'left' for ltr languages) // $from : The start direction of your layout (e.g. 'left' for ltr languages)
// $nth-selector : [optional] change between 'child' or 'of-type' (default is 'child')
@mixin isolate-grid( @mixin isolate-grid(
$columns, $columns,
$context: $total-columns, $context: $total-columns,
$selector: 'child',
$from: $from-direction, $from: $from-direction,
$nth-selector: 'child',
$style: fix-static-misalignment() $style: fix-static-misalignment()
) { ) {
$to: opposite-position($from); $to: opposite-position($from);
Expand All @@ -39,7 +39,7 @@


@for $item from 1 through $line { @for $item from 1 through $line {
$nth: '#{$line}n + #{$item}'; $nth: '#{$line}n + #{$item}';
&:nth-#{$nth-selector}(#{$nth}) { &:#{format-nth($nth,$selector)} {
margin-#{$from}: space($location - 1, $context, $style); margin-#{$from}: space($location - 1, $context, $style);
@if $location == 1 { clear: $from; } @if $location == 1 { clear: $from; }


Expand Down

0 comments on commit a82d31c

Please sign in to comment.