Browse Source

style(col): use math.div

suzigang 4 years ago
parent
commit
dee3fd83df
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/packages/__VUE/col/index.scss

+ 2 - 2
src/packages/__VUE/col/index.scss

@@ -17,10 +17,10 @@
 
 @for $i from 1 through 24 {
   .nut-col-offset-#{$i} {
-    margin-left: 100/ 24 * $i * 1%;
+    margin-left: math.div(100, 24) * $i * 1%;
   }
 
   .nut-col-#{$i} {
-    width: 100/ 24 * $i * 1%;
+    width: math.div(100, 24) * $i * 1%;
   }
 }