zcloud-gbs-bi-react/src/pages/Container/Bi/index.less

818 lines
13 KiB
Plaintext
Raw Normal View History

/* 顶部标题区域样式 */
.top-title-area {
box-sizing: border-box;
width: 100%;
height: 75px;
.top-title-area__back {
width: 65px;
height: 32px;
display: flex;
justify-content: center;
align-items: center;
gap: 6px;
position: absolute;
top: 30px;
left: 17px;
color: #fff;
font-size: 17px;
cursor: pointer;
.icon-arrow__left {
font-size: 20px;
}
}
.top-title-area__img {
width: 100%;
height: 100%;
text-align: center;
line-height: 80px;
position: relative;
background-origin: border-box;
background-repeat: no-repeat;
background-size: 100% 100%;
.top-title-area__img__text {
user-select: none;
background-image: linear-gradient(to bottom, #5bb4f7, #ffffff);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
font-size: 40px;
font-weight: bold;
}
.top-title-area__img__box {
position: absolute;
top: 53px;
left: 50%;
}
.top-title-area__right {
position: absolute;
top: 30px;
right: 17px;
width: 110px;
height: 32px;
cursor: pointer;
background-image: url("../../../assets/images/public/bigScreen/bg7.png");
background-origin: border-box;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
color: #fff;
.top-title-area__right__text {
user-select: none;
width: 60px;
position: absolute;
top: -24px;
left: 40px;
height: 32px;
}
}
.top-title-area__img__guang {
animation: scale 2s infinite;
}
}
}
@keyframes scale {
0% {
transform: translateX(-50%) scale(1.2);
}
50% {
transform: translateX(-50%) scale(0.6);
}
100% {
transform: translateX(-50%) scale(1.2);
}
}
/* 主容器样式 */
.screen-container {
background-origin: border-box;
background-repeat: no-repeat;
position: relative;
background-size: 100% 100%;
width: 100%;
height: 100%;
}
.screen-body {
box-sizing: border-box;
padding-top: 10px;
width: 100%;
display: grid;
grid-template-columns: 422px 1fr 450px;
gap: 8px;
}
/* 地图点位样式 */
.center-area__point {
position: absolute;
.img {
cursor: pointer;
animation: moveUpDown 1.3s infinite ease-in-out;
position: relative;
img:nth-child(1) {
width: 52px;
height: 54px;
position: absolute;
top: -52px;
left: 21px;
}
img:nth-child(2) {
width: 96px;
height: 31px;
position: absolute;
top: 0;
left: 0;
}
}
.bubble-box {
width: 380px;
position: absolute;
top: 0;
left: 45px;
}
}
/* 左侧面板样式 */
.left-panel {
display: flex;
flex-direction: column;
gap: 5px;
z-index: 100;
}
/* 通用卡片样式 */
.card {
width: 100%;
background: rgba(4, 24, 52, 0);
overflow: hidden;
}
.card-header {
width: 100%;
background-origin: border-box;
background-position: left;
background-repeat: no-repeat;
background-size: contain;
}
.card-header__text {
line-height: 35px;
padding-left: 30px;
font-size: 14px;
font-weight: bold;
color: #fff;
}
.weather-card__content {
padding: 5px 20px;
padding-bottom: 0;
}
.weather-main {
display: flex;
align-items: center;
gap: 45px;
margin-bottom: 15px;
}
.weather-icon {
width: 62px;
height: 53px;
text-align: center;
.buttom {
width: 100%;
height: 20%;
color: #fff;
font-size: 12px;
text-align: center;
}
}
.weather-info {
display: flex;
justify-content: flex-start;
align-items: center;
gap: 45px;
.weather-info__item {
display: flex;
justify-content: space-around;
align-items: center;
gap: 8px;
&>img {
animation: zooming 1.3s infinite ease-in-out;
}
.weather-info__text {
color: #fff;
&>p:nth-child(1) {
font-size: 12px;
margin: 0;
}
&>p:nth-child(2) {
font-size: 18px;
color: #00e7ff;
margin: 0;
}
}
}
}
.temperature {
display: flex;
align-items: baseline;
gap: 5px;
}
.temp-value {
font-size: 36px;
font-weight: bold;
color: #fff;
}
.temp-unit {
font-size: 18px;
color: #fff;
}
.wind-speed {
display: flex;
align-items: center;
gap: 10px;
}
.wind-label {
font-size: 14px;
color: #fff;
}
.wind-value {
font-size: 24px;
font-weight: bold;
color: #05e3fb;
}
.weather-alert {
border-radius: 4px;
}
.weather-alert p {
margin: 0;
font-size: 14px;
color: #FE9E00;
}
.alert-control-card {
.card-body {
margin: 0 18px;
padding: 0 10px;
border: 2px solid transparent;
border-image: linear-gradient(to bottom, #24529B, transparent) 1 1;
}
}
.table-header {
display: flex;
justify-content: space-between;
padding: 4px 0;
border-bottom: 1px solid #42698f;
font-weight: bold;
color: #fff;
font-size: 12px;
}
.table-header span:first-child {
width: 30%;
}
.table-header span:nth-child(2) {
width: 20%;
text-align: center;
}
.table-header span:last-child {
width: 50%;
padding-left: 30px;
text-align: left;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.table-body {
margin-top: 10px;
height: 70px;
overflow: hidden;
position: relative;
}
.table-row {
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid rgba(66, 105, 143, 0.3);
font-size: 12px;
color: #fff;
}
.table-row span:first-child {
width: 30%;
}
.table-row span:nth-child(2) {
width: 20%;
text-align: center;
}
.table-row span:last-child {
width: 50%;
padding-left: 30px;
text-align: right;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.status-done {
color: #52c41a;
padding: 2px 8px;
border-radius: 10px;
}
.status-processing {
color: #faad14;
padding: 2px 8px;
border-radius: 10px;
}
.status-pending {
color: #ff4d4f;
padding: 2px 8px;
border-radius: 10px;
}
/* 重大危险源样式 */
.hazards-card {
.card-body {
margin: 5px 18px;
padding: 0 10px;
}
}
.hazard-item {
display: flex;
align-items: center;
gap: 10px;
padding: 5px 10px;
background: rgba(19, 47, 112, 0.1);
border: 1px solid #ff4d4f;
border-radius: 4px;
cursor: pointer;
margin-bottom: 8px;
color: #fff;
}
.hazard-icon {
font-size: 20px;
}
.hazard-name {
font-size: 14px;
}
.selected-hazard {
margin-bottom: 5px;
}
/* 危险源等级统计 */
.hazard-levels {
display: flex;
gap: 15px;
margin-bottom: 5px;
}
.hazard-level {
flex: 1;
background: rgba(19, 47, 112, 0.1);
border: 1px solid #42698f;
border-radius: 4px;
padding: 5px 10px;
}
.hazard-level__title {
font-size: 14px;
font-weight: bold;
color: #05e3fb;
margin-bottom: 8px;
}
.hazard-level__content {
display: flex;
flex-direction: column;
gap: 4px;
}
.hazard-level__item {
font-size: 12px;
color: #fff;
}
.tank-status-scroller {
height: 114px;
overflow: hidden;
position: relative;
}
.tank-status-scroll-content {
animation: scroll-up 10s linear infinite;
}
@keyframes scroll-up {
0% {
transform: translateY(0);
}
100% {
transform: translateY(-50%);
}
}
.tank-status-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 10px;
background: rgba(19, 47, 112, 0.1);
border-bottom: 1px solid rgba(66, 105, 143, 0.3);
font-size: 12px;
color: #fff;
// height: 38px;
box-sizing: border-box;
flex-shrink: 0;
}
.tank-status-item:last-child {
border-bottom: none;
}
.tank-status.normal {
color: #52c41a;
padding: 2px 8px;
border-radius: 10px;
font-weight: bold;
}
.tank-status.warning {
color: #faad14;
padding: 2px 8px;
border-radius: 10px;
font-weight: bold;
}
/* 储罐状态和报警处置情况容器 */
.tank-alarm-container {
display: flex;
gap: 15px;
}
.tank-status-list {
flex-basis: 50%;
}
/* 报警处置情况 */
.alarm-handling {
flex-basis: 50%;
background: rgba(19, 47, 112, 0.1);
border: 1px solid #42698f;
border-radius: 4px;
padding: 5px 10px;
}
.alarm-handling__title {
font-size: 14px;
font-weight: bold;
color: #05e3fb;
margin-bottom: 8px;
}
.alarm-handling__content {
display: flex;
flex-direction: column;
gap: 6px;
}
.alarm-handling__item {
display: flex;
justify-content: space-between;
font-size: 12px;
color: #fff;
}
.item-label {
color: #c0c0c0;
}
.item-value {
color: #fff;
font-weight: bold;
}
.stat-label {
font-size: 13px;
margin-bottom: 5px;
}
.stat-value {
font-size: 24px;
font-weight: bold;
color: #05e3fb;
}
.tank-stats {
display: flex;
gap: 20px;
}
.tank-group {
flex: 1;
padding: 10px;
background: rgba(66, 105, 143, 0.2);
border: 1px solid #42698f;
border-radius: 4px;
}
.tank-group-label {
font-size: 14px;
font-weight: bold;
color: #fff;
margin-bottom: 10px;
text-align: center;
}
.tank-info {
display: flex;
flex-direction: column;
gap: 5px;
color: #fff;
font-size: 13px;
}
/* 储罐状态样式 */
.tank-status-card {
@extend .card;
}
.tank-list {
margin-bottom: 15px;
}
.tank-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 0;
border-bottom: 1px solid rgba(66, 105, 143, 0.3);
color: #fff;
font-size: 14px;
}
.tank-status {
padding: 2px 12px;
border-radius: 10px;
font-size: 12px;
}
.tank-status.normal {
color: #52c41a;
background: rgba(82, 196, 26, 0.2);
}
.tank-status.warning {
color: #faad14;
background: rgba(250, 173, 20, 0.2);
}
.handling-status {
padding: 12px;
background: rgba(66, 105, 143, 0.2);
border: 1px solid #42698f;
border-radius: 4px;
}
.handling-header h4 {
margin: 0 0 10px 0;
font-size: 14px;
color: #fff;
}
.handling-list {
display: flex;
flex-direction: column;
gap: 8px;
}
.handling-item {
display: flex;
justify-content: space-between;
align-items: center;
color: #fff;
font-size: 13px;
}
.flow-machine-tooltip {
background: rgba(35, 53, 93, 0.95);
border: 1px solid #42698f;
border-radius: 4px;
padding: 10px;
color: #fff;
font-size: 13px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.tooltip-content {
display: flex;
flex-direction: column;
gap: 5px;
}
.tooltip-title {
font-weight: bold;
margin-bottom: 5px;
color: #05e3fb;
}
.operation-status-card .table-header span {
width: 20%;
text-align: center;
}
.operation-status-card .table-row span {
width: 20%;
text-align: center;
font-size: 12px;
}
/* 右侧面板样式 */
.right-panel {
height: 100%;
display: flex;
flex-direction: column;
gap: 20px;
z-index: 100;
}
/* 气泡样式 */
.bubble-wrap {
width: 100%;
z-index: 1500;
.bubble-box {
width: 100%;
border-radius: 4px;
border: 1px solid #42698f;
background-color: rgb(35 53 93 / 74%);
animation: slide-in-elliptic-bottom-fwd 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
.bubble-wrap__header {
display: flex;
padding: 10px 14px;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid #42698f;
.bubble-wrap__title {
text-align: start;
font-size: 16px;
font-weight: bold;
color: #ffffff;
}
.bubble-wrap__close {
width: 12px;
height: 12px;
background-repeat: no-repeat;
background-size: 100% 100%;
cursor: pointer;
}
}
.bubble-wrap__content {
background-color: rgb(74 101 161 / 38%);
padding: 25px 10px;
display: flex;
justify-content: space-between;
align-items: flex-start;
color: #fff;
font-size: 14px;
.content__label {
width: 110px;
color: #fff;
font-size: 14px;
}
.content__text {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
overflow: hidden;
text-overflow: ellipsis;
white-space: normal;
height: 48px;
}
}
.bubble-wrap__footer {
background-color: rgb(74 101 161 / 38%);
padding: 10px 14px;
text-align: right;
.footer__text {
color: #05e3fb;
font-size: 14px;
cursor: pointer;
margin: 0;
display: inline-flex;
align-items: center;
&:hover {
text-decoration: underline;
}
}
}
}
}
/* 动画效果 */
@keyframes moveUpDown {
0%,
100% {
transform: translateY(0);
}
50% {
transform: translateY(-5px);
}
}
@keyframes moveUpDown__2 {
0%,
100% {
transform: translateX(12px) translateY(-10px);
}
50% {
transform: translateX(12px) translateY(-15px);
}
}
@keyframes zooming {
0%,
100% {
transform: scale(1);
}
50% {
transform: scale(1.1);
}
}
@keyframes slide-in-elliptic-bottom-fwd {
0% {
transform: translateY(600px) rotateX(30deg) scale(0);
transform-origin: 50% 100%;
opacity: 0;
}
100% {
transform: translateY(0) rotateX(0) scale(1);
transform-origin: 50% 100%;
opacity: 1;
}
}