diff --git a/src/css/flexboxgrid.css b/src/css/flexboxgrid.css index c84eb211..576fbf8c 100644 --- a/src/css/flexboxgrid.css +++ b/src/css/flexboxgrid.css @@ -30,50 +30,32 @@ padding-left: var(--outer-margin, 2rem); } -.row { +.row, .col { box-sizing: border-box; display: flex; flex: 0 1 auto; - flex-direction: row; flex-wrap: wrap; margin-right: var(--gutter-compensation, -0.5rem); margin-left: var(--gutter-compensation, -0.5rem); } +.row { + flex-direction: row; +} + .row.reverse { flex-direction: row-reverse; } +.col { + flex-direction: column; +} + .col.reverse { flex-direction: column-reverse; } -.col-xs, -.col-xs-1, -.col-xs-2, -.col-xs-3, -.col-xs-4, -.col-xs-5, -.col-xs-6, -.col-xs-7, -.col-xs-8, -.col-xs-9, -.col-xs-10, -.col-xs-11, -.col-xs-12, -.col-xs-offset-0, -.col-xs-offset-1, -.col-xs-offset-2, -.col-xs-offset-3, -.col-xs-offset-4, -.col-xs-offset-5, -.col-xs-offset-6, -.col-xs-offset-7, -.col-xs-offset-8, -.col-xs-offset-9, -.col-xs-offset-10, -.col-xs-offset-11, -.col-xs-offset-12 { +[class*="col-xs"] { box-sizing: border-box; flex: 0 0 auto; padding-right: var(--half-gutter-width, 0.5rem); @@ -242,32 +224,7 @@ width: var(--container-sm, 46rem); } - .col-sm, - .col-sm-1, - .col-sm-2, - .col-sm-3, - .col-sm-4, - .col-sm-5, - .col-sm-6, - .col-sm-7, - .col-sm-8, - .col-sm-9, - .col-sm-10, - .col-sm-11, - .col-sm-12, - .col-sm-offset-0, - .col-sm-offset-1, - .col-sm-offset-2, - .col-sm-offset-3, - .col-sm-offset-4, - .col-sm-offset-5, - .col-sm-offset-6, - .col-sm-offset-7, - .col-sm-offset-8, - .col-sm-offset-9, - .col-sm-offset-10, - .col-sm-offset-11, - .col-sm-offset-12 { + [class*="col-sm"] { box-sizing: border-box; flex: 0 0 auto; padding-right: var(--half-gutter-width, 0.5rem); @@ -437,32 +394,7 @@ width: var(--container-md, 61rem); } - .col-md, - .col-md-1, - .col-md-2, - .col-md-3, - .col-md-4, - .col-md-5, - .col-md-6, - .col-md-7, - .col-md-8, - .col-md-9, - .col-md-10, - .col-md-11, - .col-md-12, - .col-md-offset-0, - .col-md-offset-1, - .col-md-offset-2, - .col-md-offset-3, - .col-md-offset-4, - .col-md-offset-5, - .col-md-offset-6, - .col-md-offset-7, - .col-md-offset-8, - .col-md-offset-9, - .col-md-offset-10, - .col-md-offset-11, - .col-md-offset-12 { + [class*="col-md"] { box-sizing: border-box; flex: 0 0 auto; padding-right: var(--half-gutter-width, 0.5rem); @@ -632,32 +564,7 @@ width: var(--container-lg, 71rem); } - .col-lg, - .col-lg-1, - .col-lg-2, - .col-lg-3, - .col-lg-4, - .col-lg-5, - .col-lg-6, - .col-lg-7, - .col-lg-8, - .col-lg-9, - .col-lg-10, - .col-lg-11, - .col-lg-12, - .col-lg-offset-0, - .col-lg-offset-1, - .col-lg-offset-2, - .col-lg-offset-3, - .col-lg-offset-4, - .col-lg-offset-5, - .col-lg-offset-6, - .col-lg-offset-7, - .col-lg-offset-8, - .col-lg-offset-9, - .col-lg-offset-10, - .col-lg-offset-11, - .col-lg-offset-12 { + [class*="col-lg"] { box-sizing: border-box; flex: 0 0 auto; padding-right: var(--half-gutter-width, 0.5rem);