From a89b3a52cbc5e58b2c1cc77103a178a52b88b592 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Fri, 8 Sep 2017 17:26:46 +0800 Subject: [PATCH] =?UTF-8?q?label=E5=8A=A01?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bi/base.css | 8 ++++++++ dist/base.css | 8 ++++++++ dist/bundle.css | 8 ++++++++ src/css/base/single/label.css | 7 +++++++ src/css/base/single/text.css | 1 + src/less/base/single/label.less | 6 ++++++ src/less/base/single/text.less | 1 + 7 files changed, 39 insertions(+) create mode 100644 src/css/base/single/label.css create mode 100644 src/less/base/single/label.less diff --git a/bi/base.css b/bi/base.css index 1e6e4b8f4..8428d8058 100644 --- a/bi/base.css +++ b/bi/base.css @@ -866,6 +866,13 @@ li.CodeMirror-hint-active { border: none; color: #e85050 !important; } +.bi-label { + text-overflow: ellipsis; + overflow-x: hidden; + overflow-y: hidden; + white-space: nowrap; + word-break: break-all; +} /****** common color(常用颜色,可用于普遍场景) *****/ /**** custom color(自定义颜色,用于特定场景) ****/ .bi-text { @@ -881,6 +888,7 @@ li.CodeMirror-hint-active { /*IE8*/ box-sizing: border-box; /*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/ + word-wrap: break-word; word-break: break-word; } .bi-bubble { diff --git a/dist/base.css b/dist/base.css index 1e6e4b8f4..8428d8058 100644 --- a/dist/base.css +++ b/dist/base.css @@ -866,6 +866,13 @@ li.CodeMirror-hint-active { border: none; color: #e85050 !important; } +.bi-label { + text-overflow: ellipsis; + overflow-x: hidden; + overflow-y: hidden; + white-space: nowrap; + word-break: break-all; +} /****** common color(常用颜色,可用于普遍场景) *****/ /**** custom color(自定义颜色,用于特定场景) ****/ .bi-text { @@ -881,6 +888,7 @@ li.CodeMirror-hint-active { /*IE8*/ box-sizing: border-box; /*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/ + word-wrap: break-word; word-break: break-word; } .bi-bubble { diff --git a/dist/bundle.css b/dist/bundle.css index 236f703ba..953ead34a 100644 --- a/dist/bundle.css +++ b/dist/bundle.css @@ -2387,6 +2387,13 @@ li.CodeMirror-hint-active { border: none; color: #e85050 !important; } +.bi-label { + text-overflow: ellipsis; + overflow-x: hidden; + overflow-y: hidden; + white-space: nowrap; + word-break: break-all; +} /****** common color(常用颜色,可用于普遍场景) *****/ /**** custom color(自定义颜色,用于特定场景) ****/ .bi-text { @@ -2402,6 +2409,7 @@ li.CodeMirror-hint-active { /*IE8*/ box-sizing: border-box; /*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/ + word-wrap: break-word; word-break: break-word; } .bi-bubble { diff --git a/src/css/base/single/label.css b/src/css/base/single/label.css new file mode 100644 index 000000000..bbe9bfebe --- /dev/null +++ b/src/css/base/single/label.css @@ -0,0 +1,7 @@ +.bi-label { + text-overflow: ellipsis; + overflow-x: hidden; + overflow-y: hidden; + white-space: nowrap; + word-break: break-all; +} diff --git a/src/css/base/single/text.css b/src/css/base/single/text.css index b8bc83e73..f4b27f3cd 100644 --- a/src/css/base/single/text.css +++ b/src/css/base/single/text.css @@ -11,5 +11,6 @@ /*IE8*/ box-sizing: border-box; /*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/ + word-wrap: break-word; word-break: break-word; } diff --git a/src/less/base/single/label.less b/src/less/base/single/label.less new file mode 100644 index 000000000..1b5675247 --- /dev/null +++ b/src/less/base/single/label.less @@ -0,0 +1,6 @@ +@import "../../bibase"; + +.bi-label { + .overflow-dot(); + word-break: break-all; +} \ No newline at end of file diff --git a/src/less/base/single/text.less b/src/less/base/single/text.less index fa6594810..2174e2756 100644 --- a/src/less/base/single/text.less +++ b/src/less/base/single/text.less @@ -3,5 +3,6 @@ .bi-text { .overflow-dot(); .box-sizing(border-box); + word-wrap: break-word; word-break: break-word; } \ No newline at end of file