nicecode-v2/packages/map/src/tools/index.less

66 lines
1.1 KiB
Plaintext

.zhst-map-tools {
position: absolute;
display: flex;
align-items: center;
top: 16px;
right: 16px;
z-index: 1;
&-navs {
display: none;
position: relative;
left: 24px;
margin: 0;
margin-right: 12px;
padding-left: 0;
list-style: none;
font-size: 0;
white-space: nowrap;
background-color: #fff;
border: 1px solid #09f;
border-radius: 3px;
opacity: 0;
transition: .3s ease all;
&_active {
display: block;
left: 0;
opacity: 1;
}
&-item {
position: relative;
padding: 6px 12px;
display: inline-flex;
align-items: center;
font-size: 12px;
cursor: pointer;
&:hover {
color: #09f;
}
&::after {
position: absolute;
content: '';
width: 1px;
height: 36%;
right: 0;
top: 50%;
background-color: #f0f0f0;
transform: translateY(-50%);
}
&:last-child {
&::after {
display: none;
}
}
&-icon {
font-size: 24px;
}
}
}
}