吉安感知网项目-前端
张含笑
2026-01-15 3c19d8e89a48137bdabee24e9bb1187e748618fc
1
2
3
4
5
6
7
8
9
10
11
12
$sidebar_width: 230px;
$sidebar_collapse: 60px;
$top_height: 50px;
 
 
@function half($px) {
  @if unitless($px) {
    @return ($px / 2) * 1px; // 无单位时附加 px
  } @else {
    @return ($px / 2); // 带单位时直接计算
  }
}