My layout uses flex mode and appears fine in Chrome and Safari, but doesn't look great in Firefox and IE. Here's my HTML code:
<div ng-repeat="section in categorySections" class="row-flex row-flex-wrap">
<div class="flex-col lesson-section col-md-12">
<h2>{{ section.title }}</h2>
<p>{{ section.description }}</p>
</div>
<div ng-repeat="lesson in section.lessons" class="col-md-3">
<div class="panel flex-col">
<div class="panel-title">
<h3>{{ lesson.title }}</h3>
<small>{{ lesson.date }}</small>
</div>
<div class="panel-body flex-grow">
<p>{{ lesson.shortDescription }}</p>
</div>
<div class="panel-footer">
<a href="#/chords/{{ lesson.id }}"><i class="fa fa-angle-right"></i> Continue</a>
</div>
</div>
</div>
</div>
Here is the CSS code:
.row-flex, .row-flex > div[class*='col-'] {
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
flex:1 1 auto;
}
.row-flex-wrap {
-webkit-flex-flow: row wrap;
align-content: flex-start;
flex:0;
}
.row-flex > div[class*='col-'], .container-flex > div[class*='col-'] {
margin:-.2px; /* hack adjust for wrapping */
}
.container-flex > div[class*='col-'] div, .row-flex > div[class*='col-'] div {
width:100%;
}
.flex-col {
display: flex;
display: -webkit-flex;
flex: 1 100%;
flex-flow: column nowrap;
}
.flex-grow {
display: flex;
-webkit-flex: 2;
flex: 2;
}
In Firefox, the cards appear on the right side of the page instead of under the title. You can see a screenshot here.
I'm looking for assistance to understand what I might be doing wrong.