[英]Sass Susy gallery: element that spans two columns
我需要使susy的gallery mixin的某些元素跨越两列,问题是如图所示,即使我尝试手动执行此操作,它也不会推动其他元素。 这怎么做。 指向代码的链接https://github.com/iyedg/IGBlogTheme
这是有关具有不同尺寸项目的画廊的完美教程。
主要要点是:您无法使用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.