mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-12 08:34:08 +02:00
add flexbox variation for .card-group
This commit is contained in:
@@ -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 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
.card-group {
|
.card-group {
|
||||||
display: table;
|
@if $enable-flex {
|
||||||
width: 100%;
|
display: flex;
|
||||||
table-layout: fixed;
|
flex-flow: row wrap;
|
||||||
|
} @else {
|
||||||
|
display: table;
|
||||||
|
width: 100%;
|
||||||
|
table-layout: fixed;
|
||||||
|
}
|
||||||
|
|
||||||
.card {
|
.card {
|
||||||
display: table-cell;
|
@if $enable-flex {
|
||||||
float: none;
|
flex: 1 0 0;
|
||||||
max-width: none;
|
} @else {
|
||||||
|
display: table-cell;
|
||||||
|
}
|
||||||
|
|
||||||
+ .card {
|
+ .card {
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
|
Reference in New Issue
Block a user