Skip to content

Instantly share code, notes, and snippets.

@imevro
Last active May 17, 2020 13:00
Show Gist options
  • Save imevro/868f65724b92b834e860ba2fb53a4c38 to your computer and use it in GitHub Desktop.
Save imevro/868f65724b92b834e860ba2fb53a4c38 to your computer and use it in GitHub Desktop.
.row {
box-sizing: border-box;
display: flex;
margin-right: -15px;
margin-left: -15px;
}
[class*="col-xs-"] {
box-sizing: border-box;
padding-right: 15px;
padding-left: 15px;
}
.col-xs-1 {
flex-basis: 8.33333333%;
}
.col-xs-2 {
flex-basis: 16.66666667%;
}
.col-xs-3 {
flex-basis: 25%;
}
.col-xs-4 {
flex-basis: 33.33333333%;
}
.col-xs-5 {
flex-basis: 41.66666667%;
}
.col-xs-6 {
flex-basis: 50%;
}
.col-xs-7 {
flex-basis: 58.33333333%;
}
.col-xs-8 {
flex-basis: 66.66666667%;
}
.col-xs-9 {
flex-basis: 75%;
}
.col-xs-10 {
flex-basis: 83.33333333%;
}
.col-xs-11 {
flex-basis: 91.66666667%;
}
.col-xs-12 {
flex-basis: 100%;
}
@media only screen and (min-width: 768px) {
[class*="col-sm-"] {
box-sizing: border-box;
padding-right: 15px;
padding-left: 15px;
}
.col-sm-1 {
flex-basis: 8.33333333%;
}
.col-sm-2 {
flex-basis: 16.66666667%;
}
.col-sm-3 {
flex-basis: 25%;
}
.col-sm-4 {
flex-basis: 33.33333333%;
}
.col-sm-5 {
flex-basis: 41.66666667%;
}
.col-sm-6 {
flex-basis: 50%;
}
.col-sm-7 {
flex-basis: 58.33333333%;
}
.col-sm-8 {
flex-basis: 66.66666667%;
}
.col-sm-9 {
flex-basis: 75%;
}
.col-sm-10 {
flex-basis: 83.33333333%;
}
.col-sm-11 {
flex-basis: 91.66666667%;
}
.col-sm-12 {
flex-basis: 100%;
}
}
@media only screen and (min-width: 992px) {
[class*="col-md-"] {
box-sizing: border-box;
padding-right: 15px;
padding-left: 15px;
}
.col-md-1 {
flex-basis: 8.33333333%;
}
.col-md-2 {
flex-basis: 16.66666667%;
}
.col-md-3 {
flex-basis: 25%;
}
.col-md-4 {
flex-basis: 33.33333333%;
}
.col-md-5 {
flex-basis: 41.66666667%;
}
.col-md-6 {
flex-basis: 50%;
}
.col-md-7 {
flex-basis: 58.33333333%;
}
.col-md-8 {
flex-basis: 66.66666667%;
}
.col-md-9 {
flex-basis: 75%;
}
.col-md-10 {
flex-basis: 83.33333333%;
}
.col-md-11 {
flex-basis: 91.66666667%;
}
.col-md-12 {
flex-basis: 100%;
}
}
@media only screen and (min-width: 1200px) {
[class*="col-lg-"] {
box-sizing: border-box;
padding-right: 15px;
padding-left: 15px;
}
.col-lg-1 {
flex-basis: 8.33333333%;
}
.col-lg-2 {
flex-basis: 16.66666667%;
}
.col-lg-3 {
flex-basis: 25%;
}
.col-lg-4 {
flex-basis: 33.33333333%;
}
.col-lg-5 {
flex-basis: 41.66666667%;
}
.col-lg-6 {
flex-basis: 50%;
}
.col-lg-7 {
flex-basis: 58.33333333%;
}
.col-lg-8 {
flex-basis: 66.66666667%;
}
.col-lg-9 {
flex-basis: 75%;
}
.col-lg-10 {
flex-basis: 83.33333333%;
}
.col-lg-11 {
flex-basis: 91.66666667%;
}
.col-lg-12 {
flex-basis: 100%;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment