@import "./common/var.scss"; @import "./mixins/mixins.scss"; [class*="el-col-"] { float: left; box-sizing: border-box; } [class*="-0"] { display: none; } @for $i from 1 through 24 { .el-col-#{$i} { width: (1 / 24 * $i * 100) * 1%; } .el-col-offset-#{$i} { margin-left: (1 / 24 * $i * 100) * 1%; } .el-col-pull-#{$i} { position: relative; right: (1 / 24 * $i * 100) * 1%; } .el-col-push-#{$i} { position: relative; left: (1 / 24 * $i * 100) * 1%; } } @include res(xs) { @for $i from 1 through 24 { .el-col-xs-#{$i} { width: (1 / 24 * $i * 100) * 1%; } .el-col-xs-offset-#{$i} { margin-left: (1 / 24 * $i * 100) * 1%; } .el-col-xs-pull-#{$i} { position: relative; right: (1 / 24 * $i * 100) * 1%; } .el-col-xs-push-#{$i} { position: relative; left: (1 / 24 * $i * 100) * 1%; } } } @include res(sm) { @for $i from 1 through 24 { .el-col-sm-#{$i} { width: (1 / 24 * $i * 100) * 1%; } .el-col-sm-offset-#{$i} { margin-left: (1 / 24 * $i * 100) * 1%; } .el-col-sm-pull-#{$i} { position: relative; right: (1 / 24 * $i * 100) * 1%; } .el-col-sm-push-#{$i} { position: relative; left: (1 / 24 * $i * 100) * 1%; } } } @include res(md) { @for $i from 1 through 24 { .el-col-md-#{$i} { width: (1 / 24 * $i * 100) * 1%; } .el-col-md-offset-#{$i} { margin-left: (1 / 24 * $i * 100) * 1%; } .el-col-md-pull-#{$i} { position: relative; right: (1 / 24 * $i * 100) * 1%; } .el-col-md-push-#{$i} { position: relative; left: (1 / 24 * $i * 100) * 1%; } } } @include res(lg) { @for $i from 1 through 24 { .el-col-lg-#{$i} { width: (1 / 24 * $i * 100) * 1%; } .el-col-lg-offset-#{$i} { margin-left: (1 / 24 * $i * 100) * 1%; } .el-col-lg-pull-#{$i} { position: relative; right: (1 / 24 * $i * 100) * 1%; } .el-col-lg-push-#{$i} { position: relative; left: (1 / 24 * $i * 100) * 1%; } } }