Commit e07cebc9 authored by Mark Otto's avatar Mark Otto

add flexbox variation for .card-group

parent 6e3d4331
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
.card { .card {
position: relative; position: relative;
display: inline-block;
padding: 1.25rem; padding: 1.25rem;
margin-bottom: 1.25rem; margin-bottom: 1.25rem;
border: .075rem solid #eee; border: .075rem solid #eee;
...@@ -180,14 +179,21 @@ ...@@ -180,14 +179,21 @@
// //
.card-group { .card-group {
@if $enable-flex {
display: flex;
flex-flow: row wrap;
} @else {
display: table; display: table;
width: 100%; width: 100%;
table-layout: fixed; table-layout: fixed;
}
.card { .card {
@if $enable-flex {
flex: 1 0 0;
} @else {
display: table-cell; display: table-cell;
float: none; }
max-width: none;
+ .card { + .card {
margin-left: 0; margin-left: 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment