智慧园区前端大屏
linwe
2024-11-20 e2b519bd1011d2ffba8f47a6f59ed9d9a0551d4f
src/styles/base/dc-base.scss
@@ -72,7 +72,22 @@
  }
}
.fxy-box {
.fxy-ordinary {
  &::after {
    background: linear-gradient(to bottom, rgba(255, 201, 0, 0.8), rgba(255, 201, 0, 0.2));
  }
  .map-name {
    color: rgba(255, 201, 0, 1);
  }
  .map-icon {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3) 20%, rgba(255, 201, 0, 0.9) 100%);
    box-shadow: 0px 0px 10px rgb(255, 201, 0);
  }
}
.fxy-larger {
  &::after {
    background: linear-gradient(to bottom, rgba(255, 0, 0, 0.8), rgba(255, 0, 0, 0.2));
  }
@@ -99,6 +114,53 @@
  .map-icon {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3) 20%, rgba(0, 136, 255, 0.9) 100%);
    box-shadow: 0px 0px 10px rgba(0, 136, 255, 1);
  }
}
.xfs-box {
  &::after {
    background: linear-gradient(to bottom, rgba(255, 197, 90, 0.8), rgba(255, 197, 90, 0.2));
  }
  .map-name {
    color: #ffc55a;
  }
  .map-icon {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3) 20%, rgba(255, 197, 90, 0.9) 100%);
    box-shadow: 0px 0px 10px rgb(255, 197, 90);
  }
}
.yjb-box,
.ysf-box,
.sk-box {
  &::after {
    background: linear-gradient(to bottom, rgba(15, 125, 254, 0.8), rgba(15, 125, 254, 0.2));
  }
  .map-name {
    color: #FFEB3B;
  }
  .map-icon {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3) 20%, rgba(15, 125, 254, 0.9) 100%);
    box-shadow: 0px 0px 10px rgba(15, 125, 254, 1);
  }
}
.yjc-box {
  &::after {
    background: linear-gradient(to bottom, rgba(15, 254, 71, 0.8), rgba(15, 254, 71, 0.2));
  }
  .map-name {
    color: #FFEB3B;
  }
  .map-icon {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3) 20%, rgba(15, 254, 71, 0.9) 100%);
    box-shadow: 0px 0px 10px rgba(15, 254, 71, 1);
  }
}
@@ -182,6 +244,89 @@
  }
}
.dynamic-event-profile-map-popup {
  padding: 32px 30px;
  position: absolute;
  left: 100%;
  bottom: 0;
  width: 320px;
  font-weight: bold;
  font-style: italic;
  .arrow {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 45px;
    height: 2px;
    transform: rotate(-45deg);
    background: red;
    transform-origin: left bottom;
  }
  .content-wrap {
    position: relative;
    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: '';
      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;