Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gallery Grid no gutters #459

Closed
miguelsmuller opened this issue Mar 20, 2015 · 5 comments
Closed

Gallery Grid no gutters #459

miguelsmuller opened this issue Mar 20, 2015 · 5 comments
Labels

Comments

@miguelsmuller
Copy link

I would like to create a gallery grid without gutters. Even with all the attempts did not succeed.

$map-portifolio: (
  gutters: 0
);
@include with-layout($map-portifolio) {
  .portfolio-item{
    @include gallery(3 of 12);
    overflow: hidden;
    padding: 0px;
    position: relative;
  }
}
@zellwk
Copy link
Contributor

zellwk commented Mar 20, 2015

Just this would have worked.

$map-portifolio: (
  gutters: 0
);

@include with-layout($map-portifolio) {
  .portfolio-item{
    @include gallery(3 of 12);
  }
}

Can you put it up on Codepen or Sassmeister for me to take a closer look?

@miguelsmuller
Copy link
Author

when I compile the way mentioned the following error appears:

error assets/sass/style.scss (Line 72 of /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/susy-2.2.2/sass/susy/language/susy/_isolate.scss: Invalid null operation: "25% plus null".)
Compilation failed in 1 files.

@zellwk
Copy link
Contributor

zellwk commented Mar 20, 2015

That's interesting. An exact replica of the code works.

http://sassmeister.com/gist/589c84a84954c01e9347

@ericam any ideas?

@mirisuzanne
Copy link
Member

Seems to be a bug specifically related to split gutters — from these lines in Susy:

  @if susy-get(gutter-position, $input) == split {
    $width: if($width == null, gutters($input), $width + gutters($input));
  }

Clearly a bug we need to fix. In the meantime, you can use gallery(3 of 12 inside); (or add inside to your layout map) to get around the problem. Since there are no gutters, their position won't matter.

@miguelsmuller
Copy link
Author

OK. Is clearly not the ideal situation more solved my problem.
Could mark this issues with the label bug ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants