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

132 lines
2.2 KiB
Plaintext
Raw Normal View History

2026-01-07 16:38:01 +08:00
.map_content_container {
2026-01-08 14:57:25 +08:00
// 定义循环混合宏
.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();
2026-01-05 14:53:49 +08:00
&__content {
2026-01-08 11:27:19 +08:00
width: 430px;
2026-01-05 14:53:49 +08:00
position: absolute;
2026-01-08 11:27:19 +08:00
2026-01-08 14:57:25 +08:00
&.port {
2026-01-08 11:27:19 +08:00
top: 75px;
max-height: calc(100vh - 75px);
}
2026-01-08 14:57:25 +08:00
&.branch_office {
2026-01-08 11:27:19 +08:00
top: 70px;
max-height: calc(100vh - 70px);
}
2026-01-05 14:53:49 +08:00
}
.collapse_menu {
position: absolute;
2026-01-07 13:51:33 +08:00
top: calc(50vh - 44.5px);
2026-01-05 14:53:49 +08:00
background-repeat: no-repeat;
background-size: 100% 100%;
cursor: pointer;
2026-01-08 14:57:25 +08:00
&.left {
left: 465px;
&.active {
left: 0;
img {
transform: translate(-50%, -50%) rotate(180deg);
}
}
2026-01-05 14:53:49 +08:00
img {
2026-01-08 14:57:25 +08:00
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%) rotate(0);
2026-01-05 14:53:49 +08:00
}
2026-01-08 14:57:25 +08:00
&.port {
width: 30px;
height: 89px;
2026-01-07 16:38:01 +08:00
2026-01-08 14:57:25 +08:00
img {
width: 10px;
height: 17px;
}
}
&.branch_office {
width: 33px;
height: 116px;
2026-01-07 16:38:01 +08:00
2026-01-08 14:57:25 +08:00
img {
width: 13px;
height: 34px;
}
2026-01-07 16:38:01 +08:00
}
}
2026-01-08 14:57:25 +08:00
&.right {
right: 465px;
&.active {
right: 0;
img {
transform: translate(-50%, -50%) rotate(180deg);
}
}
img {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%) rotate(0);
}
&.port {
width: 30px;
height: 89px;
transform: rotate(180deg);
2026-01-07 16:38:01 +08:00
2026-01-08 14:57:25 +08:00
img {
width: 10px;
height: 17px;
}
}
&.branch_office {
width: 33px;
height: 116px;
transform: rotate(180deg);
img {
width: 13px;
height: 34px;
}
2026-01-07 16:38:01 +08:00
}
}
2026-01-05 14:53:49 +08:00
}
}