Skip to content

Instantly share code, notes, and snippets.

@kirandash
Created April 28, 2017 05:38
Show Gist options
  • Save kirandash/d6a6b239e3fe6603e93554727ee6a248 to your computer and use it in GitHub Desktop.
Save kirandash/d6a6b239e3fe6603e93554727ee6a248 to your computer and use it in GitHub Desktop.
Flex Bootstrap columns
/*--------------------------------------------------------------
# Modernizr
--------------------------------------------------------------*/
/* Flexbox */
.no-flexbox .nc_socialPanel {
display: block;
text-align: center;
}
.no-flexbox div.nc_socialPanel .nc_tweetContainer {
float: none;
display: inline-block;
vertical-align: middle;
}
.flexbox .flex-row {
text-align: center;
display: flex;
display: -webkit-flex;
flex-wrap:wrap;
-webkit-flex-wrap: wrap;
-webkit-justify-content: center;
justify-content: center;
}
.flexbox .flex-row:before, .flex-row:after{
display: none;
}
.grid {
display: flex;
flex-wrap: wrap;
}
.grid-item {
flex-grow: 1;
min-width: 25%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment