I love flexbox and I love bootstrap also. But looks like flexbox features is kind of useless with bootstrap flex for some frequent cases and a lot of custom tweaking is required
For example I use .col-**-*
to make grid and add child classes for custom styles, like background
My common problem with nested child is that child doesn't behave as flex child and do not fill the container.
I have to add .child block do .col-**-*
to make background and tweak margin/paddings, which is not very handy. Are there any better ways to do so?
http://codepen.io/dpmango/pen/VPKKMw
body
.row
.col-sm-6
.child.child--red
p This block is bigger than sibling! This block is bigger than sibling! This block is bigger than sibling! This block is bigger than sibling! This block is bigger than sibling!
.col-sm-6
.child.child--blue
p I want to grow :-
CSS
// demo .col-sm-6 padding-top: 20px padding-bottom: 20px background: black border: 1px solid red // OK - it's same height and stretched
.child
color: white
padding: 30px
&--red
background: tomato
&--blue
background: blue
//this one is not same height