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