diff --git a/DashboardWorkplace/src/style.less b/DashboardWorkplace/src/style.less index f2e1640bbf042275b85d58c4a03d8c6051283f74..3306e0afaa2f4e3d55b13c4de607e0fa6e81b151 100644 --- a/DashboardWorkplace/src/style.less +++ b/DashboardWorkplace/src/style.less @@ -1,5 +1,28 @@ @import '~antd/lib/style/themes/default.less'; -@import './utils.less'; + +.textOverflow() { + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + word-break: break-all; +} + +// mixins for clearfix +// ------------------------ +.clearfix() { + zoom: 1; + &::before, + &::after { + display: table; + content: ' '; + } + &::after { + clear: both; + height: 0; + font-size: 0; + visibility: hidden; + } +} .activitiesList { padding: 0 24px 8px 24px; diff --git a/DashboardWorkplace/src/utils.less b/DashboardWorkplace/src/utils.less deleted file mode 100644 index de1aa64222b6f14328d3a9e3c262ac5a31cce5af..0000000000000000000000000000000000000000 --- a/DashboardWorkplace/src/utils.less +++ /dev/null @@ -1,50 +0,0 @@ -.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() { - zoom: 1; - &::before, - &::after { - display: table; - content: ' '; - } - &::after { - clear: both; - height: 0; - font-size: 0; - visibility: hidden; - } -}