陈帅
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
1 additions and
35 deletions
-
src/components/NoticeIcon/NoticeList.less
-
src/utils/utils.less
|
|
|
@ -19,7 +19,7 @@ |
|
|
|
|
|
|
|
.avatar { |
|
|
|
margin-top: 4px; |
|
|
|
background: #fff; |
|
|
|
background: @component-background; |
|
|
|
} |
|
|
|
.iconElement { |
|
|
|
font-size: 32px; |
|
|
|
|
|
|
|
@ -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() { |
|
|
|
|