From debfa5086b7a72f0a370ba82a3e98c67593af02a Mon Sep 17 00:00:00 2001 From: nikogu <644506165@qq.com> Date: Wed, 15 Nov 2017 10:23:35 +0800 Subject: [PATCH] fix babel-plugin-css-modules-transform broken with less function for the moment https://github.com/michalkvasnicak/babel-plugin-css-modules-transform/issues/67 --- package.json | 2 +- src/components/Charts/ChartCard/index.less | 12 ++++-------- src/components/Exception/index.less | 14 ++++++++++++-- 3 files changed, 17 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index 0ffa09c9..0f88f739 100755 --- a/package.json +++ b/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": { diff --git a/src/components/Charts/ChartCard/index.less b/src/components/Charts/ChartCard/index.less index 986cc7d6..da65ef57 100644 --- a/src/components/Charts/ChartCard/index.less +++ b/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; diff --git a/src/components/Exception/index.less b/src/components/Exception/index.less index 22e0c1ee..72ac55df 100644 --- a/src/components/Exception/index.less +++ b/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 { -- GitLab