@subtractHeight: 100px; .home { height: 100vh; display: flex; flex-direction: column; justify-content: space-between; background-color: #000; } .content { display: flex; flex-direction: column; justify-content: space-between; height: calc(100vh - @subtractHeight); .tabCards { display: flex; align-items: flex-end; border-radius: 0 0 20rpx 20rpx; background-color: rgba(255, 255, 255, 0.2); height: @subtractHeight; .tabItem { color: white; margin: 0 50rpx; } .tabItemActive { color: #43aaff; margin: 0 50rpx; } } .tabContent { height: calc(100vh - @subtractHeight - @subtractHeight); } } .subtract { position: relative; border-radius: 20rpx 20rpx 0 0; height: @subtractHeight; background-color: rgba(255, 255, 255, 0.2); margin-top: 50rpx; } .switch { width: 60px; height: 60px; background: #43aaff; display: flex; justify-content: center; align-items: center; border-radius: 50%; position: absolute; border: 4px solid rgba(0, 0, 0, 0.8); z-index: 500; left: calc(50% - 30px); top: -30px; } .switchActive { background: #979797; } .CombinedShape { width: 40px; height: 40px; }