From e3a52e98105434d0be6a12a7db9ef1093c0c2ab2 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Thu, 14 Nov 2024 18:13:42 +0800
Subject: [PATCH] 突发事件模拟相关
---
src/styles/base/dc-base.scss | 93 ++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 93 insertions(+), 0 deletions(-)
diff --git a/src/styles/base/dc-base.scss b/src/styles/base/dc-base.scss
index ea55d4b..e63dfb3 100644
--- a/src/styles/base/dc-base.scss
+++ b/src/styles/base/dc-base.scss
@@ -70,4 +70,97 @@
height: 24px;
}
}
+}
+
+@keyframes pulse-glow {
+ 0% {
+ box-shadow: 0 0 4px red, inset 0 0 4px red;
+ }
+
+ 50% {
+ box-shadow: 0 0 8px red, inset 0 0 8px red;
+ }
+
+ 100% {
+ box-shadow: 0 0 4px red, inset 0 0 4px red;
+ }
+}
+
+.dynamic-map-popup {
+ 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: '';
+ 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: '';
+ 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 {
+ 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;
+ }
+}
+
+.widget.location-bar {
+ position: absolute;
+ left: 620px !important;
+ bottom: 120px !important;
+ font-size: 14px;
+ color: #fff;
+ background: #0009;
+ padding: 2px 5px;
+ border-radius: 2px;
+ user-select: none;
+ display: flex;
}
\ No newline at end of file
--
Gitblit v1.9.3