mirror of
https://github.com/twbs/bootstrap.git
synced 2024-11-29 11:24:18 +01:00
add flexbox variation for .card-group
This commit is contained in:
parent
6e3d4331db
commit
e07cebc90e
@ -4,7 +4,6 @@
|
||||
|
||||
.card {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
padding: 1.25rem;
|
||||
margin-bottom: 1.25rem;
|
||||
border: .075rem solid #eee;
|
||||
@ -180,14 +179,21 @@
|
||||
//
|
||||
|
||||
.card-group {
|
||||
display: table;
|
||||
width: 100%;
|
||||
table-layout: fixed;
|
||||
@if $enable-flex {
|
||||
display: flex;
|
||||
flex-flow: row wrap;
|
||||
} @else {
|
||||
display: table;
|
||||
width: 100%;
|
||||
table-layout: fixed;
|
||||
}
|
||||
|
||||
.card {
|
||||
display: table-cell;
|
||||
float: none;
|
||||
max-width: none;
|
||||
@if $enable-flex {
|
||||
flex: 1 0 0;
|
||||
} @else {
|
||||
display: table-cell;
|
||||
}
|
||||
|
||||
+ .card {
|
||||
margin-left: 0;
|
||||
|
Loading…
Reference in New Issue
Block a user