fix(col): fix col will always be hidden when responsive span is zero (#1532)

fix #1509
This commit is contained in:
神楽坂みずき 2021-03-02 01:09:08 +08:00 committed by GitHub
parent 06e3a7176d
commit f9c9385a9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,6 +48,9 @@
}
@for $i from 0 through 24 {
.#{$namespace}-col-xs-#{$i} {
@if $i != 0 {
display: block;
}
max-width: (1 / 24 * $i * 100) * 1%;
flex: 0 0 (1 / 24 * $i * 100) * 1%;
}
@ -77,6 +80,9 @@
}
@for $i from 0 through 24 {
.#{$namespace}-col-sm-#{$i} {
@if $i != 0 {
display: block;
}
max-width: (1 / 24 * $i * 100) * 1%;
flex: 0 0 (1 / 24 * $i * 100) * 1%;
}
@ -106,6 +112,9 @@
}
@for $i from 0 through 24 {
.#{$namespace}-col-md-#{$i} {
@if $i != 0 {
display: block;
}
max-width: (1 / 24 * $i * 100) * 1%;
flex: 0 0 (1 / 24 * $i * 100) * 1%;
}
@ -135,6 +144,9 @@
}
@for $i from 0 through 24 {
.#{$namespace}-col-lg-#{$i} {
@if $i != 0 {
display: block;
}
max-width: (1 / 24 * $i * 100) * 1%;
flex: 0 0 (1 / 24 * $i * 100) * 1%;
}
@ -164,6 +176,9 @@
}
@for $i from 0 through 24 {
.#{$namespace}-col-xl-#{$i} {
@if $i != 0 {
display: block;
}
max-width: (1 / 24 * $i * 100) * 1%;
flex: 0 0 (1 / 24 * $i * 100) * 1%;
}