[英]Gutters in Susy remaining intact as spacing between elements. Bonus: wider doesn't work
There's an unwanted space between two blocks in susy. 可疑的两个块之间有一个不需要的空间。 It seems to follow the size of the grid exactly, despite using the
wide
feature. 尽管使用了
wide
功能,但它似乎精确地遵循了网格的大小。
$susy: (
columns: 9,
gutters: 0.454,
debug:(image: show,
output : overlay,)
)
;
#grid{
@include container(9);
@include background-grid;
gutter-width: 0.454;
}
#main_side_img{
@include span(1.75 wide of 9);
}
#main_heading_container{
@include span(4 of 9);
background-image: url(http://i.imgur.com/7Yxm5Sa.jpg);
}
The code above, with #main_side_img
set to 1.75
creates this: 上面的代码将
#main_side_img
设置为1.75
创建了以下代码:
So I set the value of #main_side_img
to 2
and much to my dismay the space between the two boxes remained constant, and the gutter simply moved over! 因此,我将
#main_side_img
的值设置为2
,但令我非常沮丧的是,两个框之间的空间保持不变,并且装订线只是移动了!
The gutter remains constant independent of the value I set for the span argument. 装订线保持恒定,与我为span参数设置的值无关。
Bonus: isn't wider supposed to fill in the gutter on the left and on the right? 奖励:难道不应该在左边和右边填充更大的水槽吗? It is filling in 2 gutter's-widths to the right.
它在右边填充2个装订线的宽度。
Add the no-gutters
keyword to your wide span. 将
no-gutters
关键字添加到您的广泛范围中。 While wide
tells it to add more space to the span width, it does not automatically remove the gutter output. 虽然
wide
告诉它更多的空间增加了跨度,它不会自动删除阴沟输出。
@include span(1.75 wide of 9 no-gutters);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.