From c5b6f6cb5bba7268aaa2496bbf21bf2965277f8b Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 01 七月 2022 13:29:03 +0800 Subject: [PATCH] 2022-07-01 --- src/templates/modalconfig/checkCard/index.scss | 47 ++++++++++++++++++++++++++++++++++++++--------- 1 files changed, 38 insertions(+), 9 deletions(-) diff --git a/src/templates/modalconfig/checkCard/index.scss b/src/templates/modalconfig/checkCard/index.scss index 230aa8d..52cb625 100644 --- a/src/templates/modalconfig/checkCard/index.scss +++ b/src/templates/modalconfig/checkCard/index.scss @@ -9,14 +9,7 @@ border-radius: 4px; padding: 6px; margin-bottom: 12px; - span { - display: block; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - position: relative; - z-index: 1; - } + .bg-mask { position: absolute; top: 0; @@ -29,10 +22,46 @@ } } .card-pic-cell { - border: 1px solid #bcbcbc; + position: relative; + border: 1px solid #e8e8e8; border-radius: 4px; background-size: cover; background-position: center; margin-bottom: 12px; + overflow: hidden; + + .content-wrap { + position: absolute; + top: 6px; + left: 6px; + right: 6px; + bottom: 6px; + .content-center { + position: relative; + top: 50%; + transform: translate(0px, -50%); + } + } + } + .card-color-cell { + border: 1px solid transparent; + border-radius: 4px; + padding: 6px; + background-size: cover; + background-position: center; + margin-bottom: 12px; + min-height: 35px; + } + + .content-line { + display: block; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + position: relative; + z-index: 1; + } + .no-margin-bottom { + margin-bottom: 2px; } } \ No newline at end of file -- Gitblit v1.8.0