html { width: 100%; height: 100%; margin: 0; } body { margin: 0; font-family: "Alibaba PuHuiTi R"; height: 98%; } /** 去除百度地图的水印和logo */ .BMap_cpyCtrl, .anchorBL { display: none; } .layout { display: flex; justify-content: center; align-items: center; } #main-box { position: relative; width: 100%; height: 100%; padding: 0 1% 0 1%; box-sizing: border-box; background-color: #fff; border-radius: 5px; font-weight: normal; } #map-box { position: absolute; top: 0; left: 0; right: 0; bottom: 0; } .scroll-box, .legend-box, .right-drawer-box { position: absolute; background: rgba(0, 0, 0, 0.6); color: #fff; z-index: 999; } /* 左上角滚动盒子 */ .scroll-box { top: 50px; left: 15px; width: 520px; height: 200px; display: none; } .scroll-box-title, .scroll-box-content { width: 100%; } .scroll-box-title { height: 40px; line-height: 40px; font-weight: bold; } .scroll-box-content { height: 160px; /* overflow-y: auto; */ overflow: hidden; } .flex-box { padding: 6px 0; display: flex; align-items: center; box-sizing: border-box; } .flex-box span:first-child { width: 20%; } .flex-box span:nth-child(2) { width: 30%; } .flex-box span:last-child { width: 50%; } .flex-box span { text-align: center; } .content-item { border-bottom: 1px solid rgb(45, 187, 223); font-size: 14px; } .content-item span { display: flex; align-items: center; justify-content: center; } .content-item span img { width: 18px; height: 18px; margin-right: 4px; } .content-item span:last-child { display: flex; flex-direction: column !important; justify-content: center !important; align-items: flex-start !important; } .content-item span i { padding: 1px 0; font-style: normal; white-space: nowrap; /* 禁止换行 */ overflow: hidden; /* 溢出隐藏 */ text-overflow: ellipsis; /* 显示省略号 */ display: inline-block; /* 必须设置宽度才能生效 */ max-width: 100%; /* 限制最大宽度,防止撑开容器 */ } /* 左下角图例 */ .legend-box { /* bottom: 15px; */ top: 50px; left: 15px; /* width: 140px; */ /* height: 280px; */ display: flex; flex-direction: column; justify-content: space-between; border-radius: 10px; visibility: visible; } .legend-box .legend-item { padding: 4px 8px; display: flex; align-items: center; justify-content: space-between; font-size: 16px; } .legend-item-name { margin: 0 6px; } .legend-box .legend-item img { width: 26px; height: 26px; } /* .legend-box .legend-item:nth-child(1) img, .legend-box .legend-item:nth-child(2) img, .legend-box .legend-item:nth-child(3) img, .legend-box .legend-item:nth-child(4) img, .legend-box .legend-item:nth-child(5) img, .legend-box .legend-item:nth-child(10) img { width: 10px; height: 18px; margin-left: 5px; } */ .map-container { background: rgba(0, 0, 0, 0.5); color: white; padding: 10px; border-radius: 4px; box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.3); /* min-width: 150px; */ font-family: Arial, sans-serif; } .map-container h4 { margin: 0 0 8px 0; font-size: 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.2); padding-bottom: 5px; } .map-container-item { padding: 4px 6px; display: flex; align-items: center; justify-content: space-between; font-size: 18px; } .map-container-item-ropeway { display: flex; font-size: 18px; } .map-container-item span:first-child { width: 160px; } .map-container-item span:last-child { min-width: 120px; text-align: right; } /* 左下角工程概况 */ .project-overview-box { position: absolute; bottom: 35px; left: 15px; width: 30%; padding: 10px; background: rgba(0, 0, 0, 0.6); border-radius: 10px; z-index: 999; visibility: hidden; /* display: flex; flex-direction: column; justify-content: space-around; */ } .project-overview-preview-box { width: 180px; background: rgba(0, 0, 0, 0.6); position: absolute; /* 定位使预览盒子在工程概况的右边 */ top: -85%; right: -105%; z-index: 1000; display: none; font-size: 16px; color: #fff; border-radius: 10px; padding: 10px; text-indent: 2em; } .project-overview-preview-box-arrow { width: 20px; height: 20px; position: absolute; bottom: 0; left: -20px; z-index: 1001; background: url("../../img/digitalSignage/qp.png") no-repeat center center; background-size: 100% 100%; } .project-overview-title { padding-bottom: 10px 0; font-size: 20px; font-weight: bold; text-align: center; color: #fff; } .project-overview-content { text-indent: 2em; /* max-height: 220px; */ color: #fff; font-size: 17px; letter-spacing: 1px; /* padding-bottom: 10px; */ /* 设置溢出隐藏显示... */ /* overflow: hidden; text-overflow: ellipsis; white-space: nowrap; */ /* display: -webkit-box; -webkit-line-clamp: 12; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; */ } /* 索道信息窗口样式 */ .map-container-item-ropeway span:first-child { padding-left: 16px; width: 100px; } .map-container-item-ropeway span:last-child { margin-left: 4px; width: 140px; white-space: nowrap; /* 禁止换行 */ overflow: hidden; /* 溢出隐藏 */ text-overflow: ellipsis; /* 显示省略号 */ display: inline-block; /* 必须设置宽度才能生效 */ } /* 交叉信息窗口样式 */ .map-container-cross { display: flex; } .map-container-cross .map-container-1 { width: 260px; padding: 10px; border-radius: 0; border-top-left-radius: 4px; border-bottom-left-radius: 4px; box-shadow: none; } .map-container-cross .map-container-2 { width: 220px; padding: 10px; border-radius: 0; border-top-right-radius: 4px; border-bottom-right-radius: 4px; box-shadow: none; } .map-container-cross .map-container-2 h4 { /* padding-left: 20px; */ } /* 右侧抽屉 */ .right-drawer-box { top: 50%; right: 0; width: 400px; height: 90%; transform: translateY(-50%); display: none; box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1); transition: right 0.3s ease-in-out; } /* 打开弹框的三角 */ .open-drawer-box { position: absolute; top: 50%; right: 0; transform: translateY(-50%); width: 0; height: 0; border-style: solid; border-width: 20px 20px 20px 0; border-color: transparent #d7d7d7 transparent transparent; z-index: 999; cursor: pointer; } /* 打开图例的三角 */ .legend-open-drawer-btn { position: absolute; top: 180px; left: 0; width: 0; height: 0; border-style: solid; border-width: 14px 14px 14px 0; border-color: transparent #d7d7d7 transparent transparent; z-index: 999; cursor: pointer; } .project-overview-open-drawer-btn { bottom: 40px; left: 0; position: absolute; width: 0; height: 0; border-style: solid; border-width: 14px 14px 14px 0; border-color: transparent #d7d7d7 transparent transparent; z-index: 999; cursor: pointer; transform: rotate(180deg); } .close-drawer-btn { position: absolute; top: 50%; left: 0; transform: translateY(-50%); width: 0; height: 0; border-style: solid; border-width: 20px 0px 20px 20px; border-color: transparent transparent transparent #d7d7d7; z-index: 999; cursor: pointer; } /* 当抽屉打开时,隐藏三角按钮 */ .right-drawer-box.open ~ .open-drawer-box { display: none; } .open { display: block; } .organization-tree-box { padding: 20px; height: calc(100% - 40px); overflow-y: auto; } .layui-tree-txt { color: #fff !important; } .layui-tree-icon .layui-icon { color: #fff !important; } .layui-tree-line .layui-tree-entry:hover .layui-tree-txt { color: #dfd8d8 !important; } .layui-tree-click { background-color: #54b4e2 !important; /* 浅蓝色背景 */ color: #1890ff !important; /* 蓝色文字 */ } .layui-icon { color: #fff !important; } .switch-btn-box { display: flex; justify-content: space-between; align-items: center; position: absolute; top: 50px; right: 60px; z-index: 999; } .switch-btn-item { width: 80px; height: 38px; line-height: 38px; text-align: center; border-radius: 5px; background-color: #fff; color: 000; cursor: pointer; } .switch-btn-box .switch-btn-item:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; } .switch-btn-box .switch-btn-item:last-child { border-top-left-radius: 0; border-bottom-left-radius: 0; } .active { background-color: #8ea8e0; color: #fff; } .full-screen-btn { position: absolute; top: 50px; right: 15px; z-index: 999; cursor: pointer; } .full-screen-btn img { width: 38px; height: 38px; } /* 中间标题 */ .center-title-box { /* position: absolute; top: 0; left: 50%; padding: 0 12px; transform: translateX(-50%); z-index: 999; font-size: 32px; font-weight: bold; color: #fff; letter-spacing: 6px; font-family: "Alibaba PuHuiTi R"; */ /* 加一个浅蓝色渐变背景颜色 */ /* background: linear-gradient(to right, #c9d6ff, #e2e2e2); color: #063268; border-radius: 2px; */ position: absolute; top: 0; left: 50% !important; transform: translateX(-50%) !important; z-index: 999; font-size: 38px; font-weight: bold; letter-spacing: 10px; font-family: "Alibaba PuHuiTi R"; background: linear-gradient(to right, #c9d6ff, #e2e2e2); color: #063268; border-radius: 2px; padding: 4px 12px; /* 内边距 */ /* 新增关键样式 */ max-width: 100%; /* 最大宽度不超过父盒子 */ min-width: 67%; box-sizing: border-box; /* 让 padding 计算在 max-width 内 */ white-space: nowrap; /* 防止文字换行(可选) */ overflow: hidden; /* 防止内容溢出(可选) */ text-overflow: ellipsis; /* 超出时显示省略号(可选) */ text-align: center; } .cesium-viewer-toolbar-left-bottom { width: 40px; position: absolute; right: 5px !important; bottom: 60px !important; left: unset !important; } .cesium-viewer-toolbar-left-bottom .cesium-baseLayerPicker-dropDown { right: 40px !important; left: unset !important; } .mars3d-compass { top: 25px !important; right: 25px !important; left: unset !important; bottom: unset !important; } /* .cesium-viewer-toolbar-left-bottom .cesium-sceneModePicker-wrapper .cesium-sceneModePicker-dropDown-icon:nth-child(3) { position: absolute; left: -40px; top: 0; } .cesium-viewer-toolbar-left-bottom .cesium-sceneModePicker-wrapper .cesium-sceneModePicker-dropDown-icon:last-child { position: absolute; left: -40px; top: 0; } */ .cesium-viewer-toolbar-left-bottom .cesium-sceneModePicker-wrapper button:nth-child(2) { position: absolute; left: -40px; top: 0; } .cesium-viewer-toolbar-left-bottom .cesium-sceneModePicker-wrapper button:nth-child(3) { position: absolute; left: -40px; top: 0; } .cesium-viewer-toolbar-left-bottom .cesium-sceneModePicker-wrapper button:last-child { position: absolute; left: -80px; top: 0; } .cesium-viewer-toolbar-left-bottom .cesium-navigationHelpButton-wrapper .cesium-navigation-help { right: 40px !important; left: unset !important; } .tower-label { color: #fff; padding: 1px; background: rgba(0, 0, 0, 0.7); font-size: 10px; }