智慧园区前端大屏
shuishen
2024-11-20 8b6d3c203ce6d4aa68e8784cc42ecdd7a0a4b6a4
突发事件模拟弹窗样式调整
1 files modified
89 ■■■■■ changed files
src/styles/base/dc-base.scss 89 ●●●●● patch | view | raw | blame | history
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;
    }
  }
}