zcloud-gbs-bi-react/src/pages/Container/Map/components/Content/index.less

66 lines
1.3 KiB
Plaintext
Raw Normal View History

2026-01-05 14:53:49 +08:00
.map_content_container{
&__content {
width: 410px;
position: absolute;
left: 35px;
top: 75px;
max-height: calc(100vh - 75px);
// 定义循环混合宏
.loop (@i: 1) when (@i <= 5) {
.line-@{i} {
// 第1行单行省略
& when (@i = 1) {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
// 第2-5行多行省略
& when not (@i = 1) {
display: -webkit-box !important;
overflow: hidden;
text-overflow: ellipsis;
word-break: break-all;
-webkit-line-clamp: @i;
-webkit-box-orient: vertical !important;
}
}
// 递归调用
.loop(@i + 1);
}
// 执行循环
.loop();
}
.collapse_menu {
width: 30px;
height: 89px;
position: absolute;
left: 445px;
top: 50%;
transform: translateY(-50%);
background-repeat: no-repeat;
background-size: 100% 100%;
cursor: pointer;
&.active {
left: 0;
top: 50vh;
img {
transform: translate(-50%, -50%) rotate(180deg);
}
}
img {
width: 10px;
height: 17px;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%) rotate(0);
}
}
}