Quellcode durchsuchen

fix babel-plugin-css-modules-transform broken with less function for the moment
https://github.com/michalkvasnicak/babel-plugin-css-modules-transform/issues/67

nikogu vor 8 Jahren
Ursprung
Commit
debfa5086b
3 geänderte Dateien mit 17 neuen und 11 gelöschten Zeilen
  1. 1 1
      package.json
  2. 4 8
      src/components/Charts/ChartCard/index.less
  3. 12 2
      src/components/Exception/index.less

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "ant-design-pro",
-  "version": "0.2.3-rc.0",
+  "version": "0.2.3-rc.1",
   "description": "An out-of-box UI solution for enterprise applications",
   "private": true,
   "scripts": {

+ 4 - 8
src/components/Charts/ChartCard/index.less

@@ -1,12 +1,5 @@
 @import "~antd/lib/style/themes/default.less";
 
-.textOverflow() {
-  overflow: hidden;
-  text-overflow: ellipsis;
-  word-break: break-all;
-  white-space: nowrap;
-}
-
 .chartCard {
   position: relative;
   .meta {
@@ -23,7 +16,10 @@
     right: 0;
   }
   .total {
-    .textOverflow();
+    overflow: hidden;
+    text-overflow: ellipsis;
+    word-break: break-all;
+    white-space: nowrap;
     color: @heading-color;
     margin-top: 4px;
     margin-bottom: 0;

+ 12 - 2
src/components/Exception/index.less

@@ -1,5 +1,4 @@
 @import "~antd/lib/style/themes/default.less";
-@import "~antd/lib/style/mixins/clearfix.less";
 
 .exception {
   display: flex;
@@ -10,7 +9,18 @@
     flex: 0 0 62.5%;
     width: 62.5%;
     padding-right: 152px;
-    .clearfix();
+    zoom: 1;
+    &:before,
+    &:after {
+      content: " ";
+      display: table;
+    }
+    &:after {
+      clear: both;
+      visibility: hidden;
+      font-size: 0;
+      height: 0;
+    }
   }
 
   .imgEle {