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.5); color: #fff; z-index: 999; } /* 左上角滚动盒子 */ .scroll-box { top: 15px; left: 15px; width: 460px; height: 180px; } .scroll-box-title, .scroll-box-content { width: 100%; } .scroll-box-title { height: 30px; line-height: 30px; font-weight: bold; } .scroll-box-content { height: 150px; /* overflow-y: auto; */ overflow: hidden; } .flex-box { padding: 6px 0; display: flex; 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; flex-direction: column; align-items: center; justify-content: center; } .content-item span i { padding: 1px 0; font-style: normal; } /* 左下角图例 */ .legend-box { bottom: 15px; left: 15px; width: 140px; height: 252px; display: flex; flex-direction: column; justify-content: space-around; border-radius: 10px; } .legend-box .legend-item { display: flex; align-items: center; justify-content: space-around; font-size: 13px; } .legend-box .legend-item img { width: 18px; height: 18px; } .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: 16px; 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: 14px; } .map-container-item span:first-child { width: 160px; } .map-container-item span:last-child { min-width: 120px; text-align: right; } /* 索道信息窗口样式 */ .map-container-item-ropeway span:first-child { padding-left: 16px; } .map-container-item-ropeway span:last-child { margin-left: 4px; min-width: 120px; } /* 交叉信息窗口样式 */ .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; } .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; }