Sass Susy gallery: element that spans two columns

扶醉桌前 提交于 2019-12-24 03:59:14

问题


I need to make some elements of susy's gallery mixin span two columns, the problem is as shown in the picture it does not push the other elements after it, even though I tried to do that manually. How could this be done. The link to the code https://github.com/iyedg/IGBlogTheme

回答1:


Here is the perfect tutorial about gallery with different size items.

And the main point is: You can't achieve this with gallery() mixin, but it's possible with span() mixin by something like

$susy: (
  columns: 12, 
  output: isolate
);

// Assuming output is set to isolate
.gallery__item {
  margin-bottom: gutter();
  @include span(4 of 12 split); 

  &:nth-child(4),
  &:nth-child(7), {
    width: span(8 of 12 split);
  }
}


来源:https://stackoverflow.com/questions/25958490/sass-susy-gallery-element-that-spans-two-columns

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!