From 54db481fd84ac12e7ee436864db93b1f6dec3036 Mon Sep 17 00:00:00 2001 From: "DESKTOP-RQ919RC\\Pc" <1300399510@qq.com> Date: Thu, 20 Mar 2025 12:20:03 +0800 Subject: [PATCH] no message --- css/contrastDetails.css | 41 +++++++- css/contrastDetails.less | 42 +++++++- html/contrastDetails.html | 208 ++++++++++++++++++++------------------ js/common.js | 6 +- 4 files changed, 192 insertions(+), 105 deletions(-) diff --git a/css/contrastDetails.css b/css/contrastDetails.css index ab430c2..8fa65cb 100644 --- a/css/contrastDetails.css +++ b/css/contrastDetails.css @@ -91,19 +91,54 @@ height: 5px; margin-left: 4px; } -.body .item .head.options .options-list { - position: absolute; +.body .item .head.options .options-list-mask { + position: fixed; top: 0; left: 0; + width: 100%; + height: 100%; + z-index: 5; +} +.body .item .head.options .options-list { + position: absolute; + top: 26px; + left: 0; width: 200px; - height: 161px; background-color: #e4e8fd; border-radius: 10px; padding-left: 38px; + padding: 6px 0 6px 38px; + z-index: 6; +} +.body .item .head.options .options-list .options-item { + color: #555555; + font-size: 13px; + line-height: 22px; + padding: 8px 0; + position: relative; + cursor: pointer; } .body .item .head.options .options-list .options-item:not(:last-of-type) { border-bottom: 1px dotted #c1c5d4; } +.body .item .head.options .options-list .options-item.pitch { + font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif; + font-weight: 650; + font-style: normal; + color: #000000; +} +.body .item .head.options .options-list .options-item.pitch .icon { + display: block; +} +.body .item .head.options .options-list .options-item .icon { + display: none; + height: 6px; + width: 12px; + position: absolute; + top: 50%; + transform: translateY(-50%) rotate(270deg); + left: -21px; +} .body .item .thead { text-align: center; padding: 20px; diff --git a/css/contrastDetails.less b/css/contrastDetails.less index 8840a64..78b11b9 100644 --- a/css/contrastDetails.less +++ b/css/contrastDetails.less @@ -111,20 +111,56 @@ } } - .options-list { - position: absolute; + .options-list-mask { + position: fixed; top: 0; left: 0; + width: 100%; + height: 100%; + z-index: 5; + } + + .options-list { + position: absolute; + top: 26px; + left: 0; width: 200px; - height: 161px; background-color: rgba(228, 232, 253, 1); border-radius: 10px; padding-left: 38px; + padding: 6px 0 6px 38px; + z-index: 6; .options-item { &:not(:last-of-type) { border-bottom: 1px dotted #c1c5d4; } + color: #555555; + font-size: 13px; + line-height: 22px; + padding: 8px 0; + position: relative; + cursor: pointer; + + &.pitch { + font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif; + font-weight: 650; + font-style: normal; + color: #000000; + .icon { + display: block; + } + } + + .icon { + display: none; + height: 6px; + width: 12px; + position: absolute; + top: 50%; + transform: translateY(-50%) rotate(270deg); + left: -21px; + } } } } diff --git a/html/contrastDetails.html b/html/contrastDetails.html index 79cf441..5632eee 100644 --- a/html/contrastDetails.html +++ b/html/contrastDetails.html @@ -12,7 +12,7 @@ -