简体   繁体   English

Sass Susy画廊:跨越两列的元素

[英]Sass Susy gallery: element that spans two columns

伊姆古尔 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. 我需要使susy的gallery mixin的某些元素跨越两列,问题是如图所示,即使我尝试手动执行此操作,它也不会推动其他元素。 How could this be done. 这怎么做。 The link to the code https://github.com/iyedg/IGBlogTheme 指向代码的链接https://github.com/iyedg/IGBlogTheme

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 主要要点是:您无法使用gallery() mixin实现此目的,但是通过span() mixin可以实现以下目的:

 $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); } } 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM