简体   繁体   English

苏西2画廊和装订线

[英]Susy 2 Gallery and Gutter

I'm using the Susy 2 Gallery feature and would like to know how to influence the width of the vertical and horizontal gutters between each image in the gallery. 我正在使用Susy 2 Gallery功能,并且想知道如何影响Gallery中每个图像之间的垂直和水平装订线的宽度。

At the moment, there is not enough width between the images. 目前,图像之间的宽度不足。

The horizontal gutters are controlled with the gutters setting in the $susy map. 水平排水沟控制与gutters中设置$susy的地图。 They are set as a fraction of the column width. 它们设置为列宽的一部分。 See the docs . 请参阅文档 Vertical gutters are handled by you, manually. 垂直排水沟由您手动处理。 Add vertical margins as you like. 根据需要添加垂直边距。 If you want them to match the horizontal gutters, you can use the Susy gutter() function (eg margin-bottom: gutter(); ). 如果希望它们与水平gutter()匹配,则可以使用Susy gutter()函数(例如margin-bottom: gutter(); )。

you can do something like: 您可以执行以下操作:

@include gallery(2 of 12 split);
margin-bottom: gutter(); // the same as gutter(12)

splitting the gutters between images and giving the bottom gutter the width of two split gutters. 在图像之间拆分装订线,并给底部装订线两个拆分装订线的宽度。

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

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