From 6c16e43cd6521460c804391c042348dbb14086fc Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 16 六月 2020 09:44:40 +0800 Subject: [PATCH] 2020-06-16 --- src/templates/sharecomponent/cardcomponent/dragdetail/index.scss | 31 +++++++++++++++++-------------- 1 files changed, 17 insertions(+), 14 deletions(-) diff --git a/src/templates/sharecomponent/cardcomponent/dragdetail/index.scss b/src/templates/sharecomponent/cardcomponent/dragdetail/index.scss index 9e71592..154c98e 100644 --- a/src/templates/sharecomponent/cardcomponent/dragdetail/index.scss +++ b/src/templates/sharecomponent/cardcomponent/dragdetail/index.scss @@ -1,37 +1,40 @@ .line-card-edit-box .ant-card-meta-detail { overflow: visible; - .ant-card-meta-title, .ant-card-meta-description { + .mk-card-meta-item { position: relative; + color: rgba(0, 0, 0, 0.85); overflow: visible; display: inline-block; width: 100%; vertical-align: top; font-size: 14px; + margin-bottom: 2px; + - .content { - max-width: 100%; - display: inline-block; + .content.line1 { overflow: hidden; word-break: break-word; white-space: nowrap; text-overflow: ellipsis; } + .content:not(.line1) { + display: -webkit-box; + -webkit-box-orient: vertical; + overflow: hidden; + } + .content.line2 { + -webkit-line-clamp: 2; + } + .content.line3 { + -webkit-line-clamp: 3; + } } - .helf { - width: 50%; - } - .third { - width: 33.3%; - } .align-center { text-align: center; } .align-right { text-align: right; - } - .ant-card-meta-title:not(:last-child), .ant-card-meta-description:not(:last-child) { - margin-bottom: 0px; } .edit { @@ -49,7 +52,7 @@ color: #ff4d4f; } - .ant-card-meta-title:hover .edit, .ant-card-meta-description:hover .edit { + .mk-card-meta-item:hover .edit { display: inline-block; } } \ No newline at end of file -- Gitblit v1.8.0