nicecode-v2/packages/map/src/components/marker/index.less
2024-05-29 14:43:41 +08:00

36 lines
659 B
Plaintext

.zhst--map-marker {
position: relative;
cursor: pointer;
&-checkbox {
position: absolute;
top: -6px;
right: -6px;
z-index: 1;
}
&-title {
padding: 3px 6px;
position: absolute;
left: 50%;
bottom: -36px;
transform: translateX(-50%);
white-space: nowrap;
background-color: #fff;
border-radius: 3px;
box-shadow: 3px 3px 6px 3px rgba(0, 0, 0, 20%);
&::after {
position: absolute;
top: -12px;
left: 50%;
transform: translateX(-50%);
content: '';
width: 0;
height: 0;
border: 6px solid;
border-color: transparent transparent #fff;
}
}
}