0
Singularity 1.x로 축소판 눈금을 만들려고합니다.Singularty 1.x로 축소판 눈금 만들기, 두 번째 눈금에 여백이 없습니다.
$cols: 3
$grids: $cols
$gutters: 0.2
.element
@for $i from 1 through $cols
&:nth-child(#{$cols}n+#{$i})
+grid-span(1,$i, $output-style: 'float')
문제는 두 번째 요소 (grid-span(1,2)
를 수신 한)는 거터 (margin-right
)를 결여이다 : 여기 코드이다.
스크린 :
내가 열 $cols
의 수를 변경했는데, 그 결과는 동일하다 : 모든 요소는 두 번째를 제외하고 정확한 마진을받을 .
두 번째 요소가 다른 요소와 마찬가지로 올바른 여백을 갖게하려면 어떻게해야합니까?
참고 용 Singularity issue queue 티켓 : https://github.com/Team-Sass/Singularity/issues/88 –