이 문서는 UI 프레임워크 중 그리드 레이아웃에 관련된 내용을 다룹니다.
scss/layout/_grid.scss 파일을 @import 하여 사용 및 수정할 수 있습니다.
기본적인 칼럼 사용 방법입니다.
<div class="column-xs-12">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-1">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-11">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-2">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-10">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-3">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-9">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-4">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-8">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-5">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-7">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-6">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-6">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-7">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-5">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-8">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-4">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-9">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-3">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-10">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-2">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-11">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-1">
<div class="item narrow text-white"></div>
</div>
칼럼에 일정 간격의 오프셋을 추가할 수 있습니다. offset은 항상 column과 한 쌍이어야 합니다.
<div class="column-xs-12">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-11 offset-xs-1">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-10 offset-xs-2">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-9 offset-xs-3">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-8 offset-xs-4">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-7 offset-xs-5">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-6 offset-xs-6">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-5 offset-xs-7">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-4 offset-xs-8">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-3 offset-xs-9">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-2 offset-xs-10">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-1 offset-xs-11">
<div class="item narrow text-white"></div>
</div>
offset-{{namespace}}-reset을 사용하여 칼럼에 추가된 오프셋을 무시할 수 있습니다.
<div class="column-xs-12">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-1 offset-xs-11 offset-sm-reset">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-11 offset-xs-1 offset-sm-reset">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-2 offset-xs-10 offset-sm-reset">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-10 offset-xs-2 offset-sm-reset">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-3 offset-xs-9 offset-md-reset">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-9 offset-xs-3 offset-md-reset">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-4 offset-xs-8 offset-md-reset">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-8 offset-xs-4 offset-md-reset">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-5 offset-xs-7 offset-lg-reset">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-7 offset-xs-5 offset-lg-reset">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-6 offset-xs-6 offset-lg-reset">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-6 offset-xs-6 offset-lg-reset">
<div class="item narrow text-white"></div>
</div>
한 div에 여러개의 칼럼 클래스를 추가하여 반응형 레이아웃을 작성할 수 있습니다.
<div class="column-xs-6 column-sm-4 column-md-3 column-lg-1">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-6 column-sm-4 column-md-3 column-lg-1">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-6 column-sm-4 column-md-3 column-lg-1">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-6 column-sm-4 column-md-3 column-lg-1">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-6 column-sm-4 column-md-3 column-lg-1">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-6 column-sm-4 column-md-3 column-lg-1">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-6 column-sm-4 column-md-3 column-lg-1">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-6 column-sm-4 column-md-3 column-lg-1">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-6 column-sm-4 column-md-3 column-lg-1">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-6 column-sm-4 column-md-3 column-lg-1">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-6 column-sm-4 column-md-3 column-lg-1">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-6 column-sm-4 column-md-3 column-lg-1">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-6 column-sm-4 column-md-3 column-lg-1">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-6 column-sm-4 column-md-3 column-lg-1">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-6 column-sm-4 column-md-3 column-lg-1">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-6 column-sm-4 column-md-3 column-lg-1">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-6 column-sm-4 column-md-3 column-lg-1">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-6 column-sm-4 column-md-3 column-lg-1">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-6 column-sm-4 column-md-3 column-lg-1">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-6 column-sm-4 column-md-3 column-lg-1">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-6 column-sm-4 column-md-3 column-lg-1">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-6 column-sm-4 column-md-3 column-lg-1">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-6 column-sm-4 column-md-3 column-lg-1">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-6 column-sm-4 column-md-3 column-lg-1">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-6 column-sm-4 column-md-3 column-lg-1">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-6 column-sm-4 column-md-3 column-lg-1">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-6 column-sm-4 column-md-3 column-lg-1">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-6 column-sm-4 column-md-3 column-lg-1">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-6 column-sm-4 column-md-3 column-lg-1">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-6 column-sm-4 column-md-3 column-lg-1">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-6 column-sm-4 column-md-3 column-lg-1">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-6 column-sm-4 column-md-3 column-lg-1">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-6 column-sm-4 column-md-3 column-lg-1">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-6 column-sm-4 column-md-3 column-lg-1">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-6 column-sm-4 column-md-3 column-lg-1">
<div class="item narrow text-white"></div>
</div>
<div class="column-xs-6 column-sm-4 column-md-3 column-lg-1">
<div class="item narrow text-white"></div>
</div>
해당 페이지에 대한 문의 및 요청 사항은 https://github.com/partnerlabs/grap-ui-framework 의 issue에 남겨주세요.