Commit e9ea178d authored by 杨奕's avatar 杨奕 Committed by GitHub

Layout: iteration starts from 0 (#10347)

parent 430c149d
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
display: none; display: none;
} }
@for $i from 1 through 24 { @for $i from 0 through 24 {
.el-col-#{$i} { .el-col-#{$i} {
width: (1 / 24 * $i * 100) * 1%; width: (1 / 24 * $i * 100) * 1%;
} }
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
.el-col-xs-0 { .el-col-xs-0 {
display: none; display: none;
} }
@for $i from 1 through 24 { @for $i from 0 through 24 {
.el-col-xs-#{$i} { .el-col-xs-#{$i} {
width: (1 / 24 * $i * 100) * 1%; width: (1 / 24 * $i * 100) * 1%;
} }
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
.el-col-sm-0 { .el-col-sm-0 {
display: none; display: none;
} }
@for $i from 1 through 24 { @for $i from 0 through 24 {
.el-col-sm-#{$i} { .el-col-sm-#{$i} {
width: (1 / 24 * $i * 100) * 1%; width: (1 / 24 * $i * 100) * 1%;
} }
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
.el-col-md-0 { .el-col-md-0 {
display: none; display: none;
} }
@for $i from 1 through 24 { @for $i from 0 through 24 {
.el-col-md-#{$i} { .el-col-md-#{$i} {
width: (1 / 24 * $i * 100) * 1%; width: (1 / 24 * $i * 100) * 1%;
} }
...@@ -109,7 +109,7 @@ ...@@ -109,7 +109,7 @@
.el-col-lg-0 { .el-col-lg-0 {
display: none; display: none;
} }
@for $i from 1 through 24 { @for $i from 0 through 24 {
.el-col-lg-#{$i} { .el-col-lg-#{$i} {
width: (1 / 24 * $i * 100) * 1%; width: (1 / 24 * $i * 100) * 1%;
} }
...@@ -134,7 +134,7 @@ ...@@ -134,7 +134,7 @@
.el-col-xl-0 { .el-col-xl-0 {
display: none; display: none;
} }
@for $i from 1 through 24 { @for $i from 0 through 24 {
.el-col-xl-#{$i} { .el-col-xl-#{$i} {
width: (1 / 24 * $i * 100) * 1%; width: (1 / 24 * $i * 100) * 1%;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment