我最近更新到 SingularityGS 1.4.0 并且在使用现在包含一个属性 .container
的类时遇到了问题。@include clearfix;
overflow:hidden
对于幻灯片组件,我使用负/正边距来显示与外部箭头重叠的箭头.container
:
.container { //Container for the grid system
background: $background-color;
max-width: $site-width;
margin: 0 auto;
position: relative;
@include clearfix;
@include breakpoint($large-break) {
border-left: 20px solid #fff;
border-right: 20px solid #fff;
width: $site-width;
}
.container {
border: 0px;
margin: 0px;
clear: both;
}
}
.left-arrow, .right-arrow {
position: absolute;
cursor: pointer;
margin-top: -20px;
font-size: 0.8em;
width: 41px;
height: 41px;
top: 50%;
}
.left-arrow {
left: -10px;
background: url(/images/icons.png) no-repeat -153px -146px;
}
.right-arrow {
right: -10px;
background: url(/images/icons.png) no-repeat -197px -146px;
}
这是问题的屏幕截图:
https://www.dropbox.com/s/yl4ch4yowe61kz7/Screenshot%202014-09-03%2010.06.50.png?dl=0
我应该在容器中使用 clearfix mixin 以外的东西吗?