I like the idea of flex-grid
and was wondering if I'm using it correctly. I started a build using Foundation 6 / SASS and did @include foundation-flex-grid;
While building a basic page I noticed in my DevTools that certain items from the Kitchen sink are using styles on items that have their displays set to block
and float
on them.
Example: .title-bar
<div class="title-bar">
<div class="title-bar-left">
<button class="menu-icon" type="button"></button>
<span class="title-bar-title">Foundation</span>
</div>
<div class="title-bar-right">
<button class="menu-icon" type="button"></button>
</div>
</div>
The elements .title-bar-left
and .title-bar-right
have corresponding floats on them. I know that floats are unnecessary in flex-grid.
My question(s):
Should I keep building away using
flex-grid
or should I be doing something extra to remove/replace those styles ahead of time?It seems to me that the Kitchen Sink on the Foundation Site is tailored for the normal grid, is it safe to use these elements in
flex-grid
with little modification, or will it require lots of rewriting of SASS/CSS?