From e5fc2d92b1036aabf9ffc2c9706ed401bd9735c8 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 09 九月 2021 18:14:29 +0800 Subject: [PATCH] 2021-09-09 --- src/tabviews/zshare/mutilform/checkCard/index.scss | 38 +++++++++++++++++++++++++++++++------- 1 files changed, 31 insertions(+), 7 deletions(-) diff --git a/src/tabviews/zshare/mutilform/checkCard/index.scss b/src/tabviews/zshare/mutilform/checkCard/index.scss index 0887939..ce51901 100644 --- a/src/tabviews/zshare/mutilform/checkCard/index.scss +++ b/src/tabviews/zshare/mutilform/checkCard/index.scss @@ -1,4 +1,4 @@ -.check-card-form-box { +.check-card-search-box { margin-top: 10px; margin-bottom: -10px; .card-cell { @@ -8,20 +8,38 @@ padding: 6px; margin-bottom: 12px; line-height: 1.5; - transition: all 0.3s; cursor: pointer; + transition: all 0.3s; span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; + position: relative; + z-index: 1; + } + .bg-mask { + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + opacity: 0.3; + border-radius: 4px; + background-color: transparent; + transition: opacity 0.3s; } } - .card-cell.active { + .card-cell:not(.bg-control).active { border-color: #1890ff; background: #1890ff; span { color: #ffffff!important; + } + } + .card-cell.bg-control.active { + .bg-mask { + opacity: 1; } } .card-pic-cell { @@ -33,13 +51,14 @@ margin-bottom: 12px; line-height: 1.5; cursor: pointer; + transition: all 0.3s; } .card-pic-cell.active { border-color: #1890ff; box-shadow: 0px 0px 4px #1890ff; } - .card-cell.active::after { + .card-cell:not(.bg-control).active::after { content: ' '; position: absolute; display: table; @@ -53,12 +72,17 @@ transform: rotate(45deg) scale(1) translate(-50%, -50%); } } -.check-card-form-box:not(.readonly) { - .card-cell:hover { +.check-card-search-box:not(.readonly) { + .card-cell:not(.bg-control):hover { border-color: #1890ff; background: #1890ff; span { color: #ffffff!important; + } + } + .card-cell.bg-control:not(.active):hover { + .bg-mask { + opacity: 0.7; } } .card-pic-cell:hover { @@ -66,7 +90,7 @@ box-shadow: 0px 0px 4px #1890ff; } } -.check-card-form-box.readonly { +.check-card-search-box.readonly { .card-cell, .card-pic-cell { cursor: not-allowed; } -- Gitblit v1.8.0