From 44ee16c87babafdb4c394cce1b498d4d350e55ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Thu, 26 Mar 2020 15:32:28 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20clean:=20remove=20=20unuse=20les?= =?UTF-8?q?s=20(#6214)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/NoticeIcon/NoticeList.less | 2 +- src/utils/utils.less | 34 ----------------------- 2 files changed, 1 insertion(+), 35 deletions(-) diff --git a/src/components/NoticeIcon/NoticeList.less b/src/components/NoticeIcon/NoticeList.less index 1aba6109..65e0c407 100755 --- a/src/components/NoticeIcon/NoticeList.less +++ b/src/components/NoticeIcon/NoticeList.less @@ -19,7 +19,7 @@ .avatar { margin-top: 4px; - background: #fff; + background: @component-background; } .iconElement { font-size: 32px; diff --git a/src/utils/utils.less b/src/utils/utils.less index de1aa642..e9dfd5cc 100644 --- a/src/utils/utils.less +++ b/src/utils/utils.less @@ -1,37 +1,3 @@ -.textOverflow() { - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - word-break: break-all; -} - -.textOverflowMulti(@line: 3, @bg: #fff) { - position: relative; - max-height: @line * 1.5em; - margin-right: -1em; - padding-right: 1em; - overflow: hidden; - line-height: 1.5em; - text-align: justify; - &::before { - position: absolute; - right: 14px; - bottom: 0; - padding: 0 1px; - background: @bg; - content: '...'; - } - &::after { - position: absolute; - right: 14px; - width: 1em; - height: 1em; - margin-top: 0.2em; - background: white; - content: ''; - } -} - // mixins for clearfix // ------------------------ .clearfix() {