Susy 1에서 Susy 2.0으로 레이아웃을 변환하고 예상보다 다르게 작동하는 몇 가지 작업을 수행합니다. 내가 여기서 뭔가 잘못하고있는거야? 나는 컨테이너가 페이지 너비를 넓히고 너비의 반을 페이지 중간에 오도록하고 싶다. 그 열의 내부에는 등 간격의 3 개의 열 (빨간색, 흰색 및 파란색)이 있습니다. 스크린 샷에 CSS가 어떻게 컴파일되고 있는지 잘 모르겠습니다. Susy 2.0 응답 격자
header {
.fullheight {
@include backImage('../images/img_hero_brightspace-homepage.png');
@include container(100%);
.hgroup {
padding: 150px 0;
text-align: center;
h3{
@include span(8);
display: block;
font-weight: $light;
}
} //hgroup
section{
@include container;
@include span(6 at 3 of 12);
.serviceBox{
@include span(2 of 6);
width:100%;
height:40px;
background-color: white;
}//serviceBox
.volunteerBox{
@include span(2 of 6);
width:100%;
height:40px;
background-color: blue;
}//volunteerBox
.partnerBox{
@include span(2 of 6);
width:100%;
height:40px;
background-color: red;
}//partnerBox
}
} //fullheight
} //header
내 Susy 템플릿
$susy: (
columns: 12,
container: 60em,
gutters: 1/4,
gutter-position: inside
);
내 HTML
<article class="fullheight">
<div class="hgroup">
<h3>Providing help to residents of Greater Cincinnati when challenges invade their lives</h3>
</div>
<section>
<div class="serviceBox">
</div>
<div class="volunteerBox">
</div>
<div class="partnerBox">
</div>
</section>
</article>