Agriculture-front-end/public/Cesium/Widgets/InfoBox/InfoBox.css

93 lines
1.9 KiB
CSS
Raw Normal View History

2023-04-23 09:41:12 +08:00
/* packages/widgets/Source/InfoBox/InfoBox.css */
2023-04-16 22:33:44 +08:00
.cesium-infoBox {
2023-04-23 09:41:12 +08:00
display: block;
position: absolute;
top: 50px;
right: 0;
width: 40%;
max-width: 480px;
background: rgba(38, 38, 38, 0.95);
color: #edffff;
border: 1px solid #444;
border-right: none;
border-top-left-radius: 7px;
border-bottom-left-radius: 7px;
box-shadow: 0 0 10px 1px #000;
transform: translate(100%, 0);
visibility: hidden;
opacity: 0;
transition:
visibility 0s 0.2s,
opacity 0.2s ease-in,
transform 0.2s ease-in;
2023-04-16 22:33:44 +08:00
}
.cesium-infoBox-visible {
2023-04-23 09:41:12 +08:00
transform: translate(0, 0);
visibility: visible;
opacity: 1;
transition: opacity 0.2s ease-out, transform 0.2s ease-out;
2023-04-16 22:33:44 +08:00
}
.cesium-infoBox-title {
2023-04-23 09:41:12 +08:00
display: block;
height: 20px;
padding: 5px 30px 5px 25px;
background: rgba(84, 84, 84, 1);
border-top-left-radius: 7px;
text-align: center;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
box-sizing: content-box;
2023-04-16 22:33:44 +08:00
}
.cesium-infoBox-bodyless .cesium-infoBox-title {
2023-04-23 09:41:12 +08:00
border-bottom-left-radius: 7px;
2023-04-16 22:33:44 +08:00
}
button.cesium-infoBox-camera {
2023-04-23 09:41:12 +08:00
display: block;
position: absolute;
top: 4px;
left: 4px;
width: 22px;
height: 22px;
background: transparent;
border-color: transparent;
border-radius: 3px;
padding: 0 5px;
margin: 0;
2023-04-16 22:33:44 +08:00
}
button.cesium-infoBox-close {
2023-04-23 09:41:12 +08:00
display: block;
position: absolute;
top: 5px;
right: 5px;
height: 20px;
background: transparent;
border: none;
border-radius: 2px;
font-weight: bold;
font-size: 16px;
padding: 0 5px;
margin: 0;
color: #edffff;
2023-04-16 22:33:44 +08:00
}
button.cesium-infoBox-close:focus {
2023-04-23 09:41:12 +08:00
background: rgba(238, 136, 0, 0.44);
outline: none;
2023-04-16 22:33:44 +08:00
}
button.cesium-infoBox-close:hover {
2023-04-23 09:41:12 +08:00
background: #888;
color: #000;
2023-04-16 22:33:44 +08:00
}
button.cesium-infoBox-close:active {
2023-04-23 09:41:12 +08:00
background: #a00;
color: #000;
2023-04-16 22:33:44 +08:00
}
.cesium-infoBox-bodyless .cesium-infoBox-iframe {
2023-04-23 09:41:12 +08:00
display: none;
2023-04-16 22:33:44 +08:00
}
.cesium-infoBox-iframe {
2023-04-23 09:41:12 +08:00
border: none;
width: 100%;
width: calc(100% - 2px);
2023-04-16 22:33:44 +08:00
}