Bourbon Neat을 테스트하고 있는데, 바깥 쪽 컨테이너 안에 두 개의 열이 있고, 열이 동일한 높이가되도록 (가장 큰 열만큼 키가 크도록) 싶습니다. 짧은 열에 @include fill-parent를 사용하면 작동하지 않고 외부 컨테이너만큼 넓게 만듭니다. 내가 자바 스크립트에서 할 수있는,하지만 깔끔한이 처리합니까? 여기Bourbon Neat : 외부 컨테이너와 일치하도록 열을 확장하는 방법?
<section class="blog">
<article>
<h1>How to set up Bourbon Neat</h1>
<h2>Installing and using Bourbon</h2>
<p>Install bourbon by going to your users directory in git bash, and typing: gem install bourbon</p>
<p>Then change directory to your style folder and type in git bash: bourbon install</p>
<p>Then, import the mixins at the top of your stylesheet(s): @import 'bourbon/bourbon'</p>
<h2>Installing and using Neat</h2>
<p>Install neat by going to your users directory in git bash, and typing: gem install neat</p>
<p>Then change directory to your style folder and type in git bash: install neat</p>
<p>Then, import the mixins at the top of your stylesheet(s): @import 'bourbon/bourbon'</p>
</article>
<aside>
<!--<img src="style/images/cupman.gif" alt="It's bidness time">-->
<p>It's bidness time</p>
</aside>
그리고 내 SASS는 다음과 같습니다 : 읽기`
$visual_grid: true
$visual-grid-color: blue
$visual-grid-index: front
$visual-grid-opacity: 0.1
@import 'bourbon/bourbon'
@import 'neat/neat'
@import 'variables'
///////////////////////////
html
@include linear-gradient(black, gray)
height: 100%
body
background-color: $baseColor
font-family: $type
body *
-webkit-box-sizing: border-box
-moz-box-sizing: border-box
box-sizing: border-box
//////////////////////////////
.blog
@include outer-container
aside
@include span-columns(4)
background: $thirdColor
//height: 100%
//@include fill-parent()
article
@include span-columns(8)
background-color: $fourthColor
padding: 5px
margin-top: 40px
background-color: $secondColor
`
감사
여기 내 HTML입니다.
EDIT : 지금은 jQuery를 사용하여 수동으로 열 크기를 균등하게 조정할 예정이지만 더 자세한 정보가 필요하면 알려 주시기 바랍니다.
네가 원하는 결과를 얻는 유일한 방법은 jQuery를 사용하는 것입니다. 나는 똑같은 일을하려하고 jQuery 부가 기능을 사용했다. – ultraloveninja