Skip to content

Commit

Permalink
Col: fix a bug when col xs and md/lg/xl exist in the same time, xs's …
Browse files Browse the repository at this point in the history
…display:none would still effect.
  • Loading branch information
llqgit committed Nov 14, 2020
1 parent a2683e9 commit 2dda8c9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/theme-chalk/src/col.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

@for $i from 0 through 24 {
.el-col-#{$i} {
display: inherit;
width: (1 / 24 * $i * 100) * 1%;
}

Expand All @@ -36,6 +37,7 @@
}
@for $i from 0 through 24 {
.el-col-xs-#{$i} {
display: inherit;
width: (1 / 24 * $i * 100) * 1%;
}

Expand All @@ -61,6 +63,7 @@
}
@for $i from 0 through 24 {
.el-col-sm-#{$i} {
display: inherit;
width: (1 / 24 * $i * 100) * 1%;
}

Expand All @@ -86,6 +89,7 @@
}
@for $i from 0 through 24 {
.el-col-md-#{$i} {
display: inherit;
width: (1 / 24 * $i * 100) * 1%;
}

Expand All @@ -111,6 +115,7 @@
}
@for $i from 0 through 24 {
.el-col-lg-#{$i} {
display: inherit;
width: (1 / 24 * $i * 100) * 1%;
}

Expand All @@ -136,6 +141,7 @@
}
@for $i from 0 through 24 {
.el-col-xl-#{$i} {
display: inherit;
width: (1 / 24 * $i * 100) * 1%;
}

Expand Down

0 comments on commit 2dda8c9

Please sign in to comment.