From 8b6d3c203ce6d4aa68e8784cc42ecdd7a0a4b6a4 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Wed, 20 Nov 2024 17:30:06 +0800
Subject: [PATCH] 突发事件模拟弹窗样式调整
---
src/styles/base/dc-base.scss | 89 ++++++++++++++++++++++++++------------------
1 files changed, 53 insertions(+), 36 deletions(-)
diff --git a/src/styles/base/dc-base.scss b/src/styles/base/dc-base.scss
index 40a4d61..ccac8f1 100644
--- a/src/styles/base/dc-base.scss
+++ b/src/styles/base/dc-base.scss
@@ -179,49 +179,44 @@
}
.dynamic-map-popup {
+ padding: 32px 30px;
+
position: absolute;
right: 100%;
bottom: 0;
width: 320px;
- color: #fff;
- background: rgba(255, 0, 0, 0.2);
font-weight: bold;
font-style: italic;
- &::after {
- content: '';
+ .arrow {
position: absolute;
- top: -0.8px;
- /* 调整以匹配所需的发光区域 */
- left: 0px;
- /* 同上 */
- right: 0px;
- bottom: calc(100% - 0.8px);
- background: white;
- box-shadow: 0 0 8px red, inset 0 0 8px red;
- animation: pulse-glow 3s infinite;
+ right: 0;
+ bottom: 0;
+ width: 45px;
+ height: 2px;
+ transform: rotate(45deg);
+ background: red;
+ transform-origin: right bottom;
}
- &::before {
- content: '';
- position: absolute;
- top: calc(100% - 0.8px);
- /* 调整以匹配所需的发光区域 */
- left: 0px;
- /* 同上 */
- right: 0px;
- bottom: -0.8px;
- background: white;
- box-shadow: 0 0 8px red, inset 0 0 8px red;
- animation: pulse-glow 3s infinite;
- }
-
- .title {
+ .content-wrap {
position: relative;
- height: 30px;
- line-height: 30px;
- font-size: 18px;
+ color: #fff;
+ background: rgba(255, 0, 0, 0.2);
+ &::after {
+ content: '';
+ position: absolute;
+ top: -0.8px;
+ /* 调整以匹配所需的发光区域 */
+ left: 0px;
+ /* 同上 */
+ right: 0px;
+ bottom: calc(100% - 0.8px);
+ background: white;
+ box-shadow: 0 0 8px red, inset 0 0 8px red;
+ animation: pulse-glow 3s infinite;
+ }
&::before {
content: '';
@@ -230,17 +225,39 @@
/* 调整以匹配所需的发光区域 */
left: 0px;
/* 同上 */
- right: 40%;
+ right: 0px;
bottom: -0.8px;
background: white;
box-shadow: 0 0 8px red, inset 0 0 8px red;
animation: pulse-glow 3s infinite;
}
- }
- .content {
- text-indent: 2em;
- line-height: 28px;
+ .title {
+ position: relative;
+ height: 30px;
+ line-height: 30px;
+ font-size: 18px;
+
+
+ &::before {
+ content: '';
+ position: absolute;
+ top: calc(100% - 0.8px);
+ /* 调整以匹配所需的发光区域 */
+ left: 0px;
+ /* 同上 */
+ right: 40%;
+ bottom: -0.8px;
+ background: white;
+ box-shadow: 0 0 8px red, inset 0 0 8px red;
+ animation: pulse-glow 3s infinite;
+ }
+ }
+
+ .content {
+ text-indent: 2em;
+ line-height: 28px;
+ }
}
}
--
Gitblit v1.9.3