Skip to content

Instantly share code, notes, and snippets.

@mwiemarc
Created July 17, 2017 15:15
Show Gist options
  • Save mwiemarc/a59c64089740a1c7a2cf1cba67c9fdb1 to your computer and use it in GitHub Desktop.
Save mwiemarc/a59c64089740a1c7a2cf1cba67c9fdb1 to your computer and use it in GitHub Desktop.
.row {
display: flex;
flex-wrap: wrap;
margin-left: 0;
margin-right: 0;
}
.row.row-gapless {
margin-left: 0;
margin-right: 0;
}
.row.row-gapless .column {
padding-left: 0;
padding-right: 0;
}
.row.row-oneline {
flex-wrap: nowrap;
overflow-x: auto;
}
.row .column {
flex: 1;
padding: 10px;
}
.row .column.col-12,
.row .column.col-11,
.row .column.col-10,
.row .column.col-9,
.row .column.col-8,
.row .column.col-7,
.row .column.col-6,
.row .column.col-5,
.row .column.col-4,
.row .column.col-3,
.row .column.col-2,
.row .column.col-1 {
flex: none;
}
.row .column.col-12 {
width: 100%;
}
.row .column.col-11 {
width: 91.66666667%;
}
.row .column.col-10 {
width: 83.33333333%;
}
.row .column.col-9 {
width: 75%;
}
.row .column.col-8 {
width: 66.66666667%;
}
.row .column.col-7 {
width: 58.33333333%;
}
.row .column.col-6 {
width: 50%;
}
.row .column.col-5 {
width: 41.66666667%;
}
.row .column.col-4 {
width: 33.33333333%;
}
.row .column.col-3 {
width: 25%;
}
.row .column.col-2 {
width: 16.66666667%;
}
.row .column.col-1 {
width: 8.33333333%;
}
@media screen and (max-width: 1280px) {
.hide-xl {
display: none !important;
}
.column.col-xl-12 {
flex: none !important;
width: 100% !important;
}
.column.col-xl-11 {
flex: none !important;
width: 91.66666667% !important;
}
.column.col-xl-10 {
flex: none !important;
width: 83.33333333% !important;
}
.column.col-xl-9 {
flex: none !important;
width: 75% !important;
}
.column.col-xl-8 {
flex: none !important;
width: 66.66666667% !important;
}
.column.col-xl-7 {
flex: none !important;
width: 58.33333333% !important;
}
.column.col-xl-6 {
flex: none !important;
width: 50% !important;
}
.column.col-xl-5 {
flex: none !important;
width: 41.66666667% !important;
}
.column.col-xl-4 {
flex: none !important;
width: 33.33333333% !important;
}
.column.col-xl-3 {
flex: none !important;
width: 25% !important;
}
.column.col-xl-2 {
flex: none !important;
width: 16.66666667% !important;
}
.column.col-xl-1 {
flex: none !important;
width: 8.33333333% !important;
}
}
@media screen and (max-width: 1024px) {
.hide-lg {
display: none !important;
}
.column.col-lg-12 {
flex: none !important;
width: 100% !important;
}
.column.col-lg-11 {
flex: none !important;
width: 91.66666667% !important;
}
.column.col-lg-10 {
flex: none !important;
width: 83.33333333% !important;
}
.column.col-lg-9 {
flex: none !important;
width: 75% !important;
}
.column.col-lg-8 {
flex: none !important;
width: 66.66666667% !important;
}
.column.col-lg-7 {
flex: none !important;
width: 58.33333333% !important;
}
.column.col-lg-6 {
flex: none !important;
width: 50% !important;
}
.column.col-lg-5 {
flex: none !important;
width: 41.66666667% !important;
}
.column.col-lg-4 {
flex: none !important;
width: 33.33333333% !important;
}
.column.col-lg-3 {
flex: none !important;
width: 25% !important;
}
.column.col-lg-2 {
flex: none !important;
width: 16.66666667% !important;
}
.column.col-lg-1 {
flex: none !important;
width: 8.33333333% !important;
}
}
@media screen and (max-width: 800px) {
.hide-md {
display: none !important;
}
.column.col-md-12 {
flex: none !important;
width: 100% !important;
}
.column.col-md-11 {
flex: none !important;
width: 91.66666667% !important;
}
.column.col-md-10 {
flex: none !important;
width: 83.33333333% !important;
}
.column.col-md-9 {
flex: none !important;
width: 75% !important;
}
.column.col-md-8 {
flex: none !important;
width: 66.66666667% !important;
}
.column.col-md-7 {
flex: none !important;
width: 58.33333333% !important;
}
.column.col-md-6 {
flex: none !important;
width: 50% !important;
}
.column.col-md-5 {
flex: none !important;
width: 41.66666667% !important;
}
.column.col-md-4 {
flex: none !important;
width: 33.33333333% !important;
}
.column.col-md-3 {
flex: none !important;
width: 25% !important;
}
.column.col-md-2 {
flex: none !important;
width: 16.66666667% !important;
}
.column.col-md-1 {
flex: none !important;
width: 8.33333333% !important;
}
}
@media screen and (max-width: 640px) {
.hide-sm {
display: none !important;
}
.column.col-sm-12 {
flex: none !important;
width: 100% !important;
}
.column.col-sm-11 {
flex: none !important;
width: 91.66666667% !important;
}
.column.col-sm-10 {
flex: none !important;
width: 83.33333333% !important;
}
.column.col-sm-9 {
flex: none !important;
width: 75% !important;
}
.column.col-sm-8 {
flex: none !important;
width: 66.66666667% !important;
}
.column.col-sm-7 {
flex: none !important;
width: 58.33333333% !important;
}
.column.col-sm-6 {
flex: none !important;
width: 50% !important;
}
.column.col-sm-5 {
flex: none !important;
width: 41.66666667% !important;
}
.column.col-sm-4 {
flex: none !important;
width: 33.33333333% !important;
}
.column.col-sm-3 {
flex: none !important;
width: 25% !important;
}
.column.col-sm-2 {
flex: none !important;
width: 16.66666667% !important;
}
.column.col-sm-1 {
flex: none !important;
width: 8.33333333% !important;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment