Skip to content

Commit

Permalink
feat: 样式优化
Browse files Browse the repository at this point in the history
  • Loading branch information
weifang.jiagweifan committed Sep 20, 2024
1 parent d212287 commit c825fd1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 38 deletions.
27 changes: 8 additions & 19 deletions compiled/alipay/src/IndexBar/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -30,28 +30,17 @@
}
&-tip {
position: absolute;
left: -210 * @rpx;
bottom: -36 * @rpx;
width: 100 * @rpx;
height: 100 * @rpx;
border-radius: 100 * @rpx;
line-height: 100 * @rpx;
left: -158 * @rpx;
top: 50%;
transform: translateY(-50%);
width: 94 * @rpx;
height: 94 * @rpx;
border-radius: 94 * @rpx;
line-height: 94 * @rpx;
text-align: center;
background: @COLOR_TEXT_WEAK;
color: @COLOR_WHITE;
font-size: 56 * @rpx;
&::after {
content: '';
position: absolute;
top: -30 * @rpx;
right: -60 * @rpx;
display: block;
margin: 40 * @rpx auto;
width: 0;
height: 0;
border: 40 * @rpx solid transparent;
border-left-color: @COLOR_TEXT_WEAK;
}
font-size: 50 * @rpx;
}
}
&-active {
Expand Down
27 changes: 8 additions & 19 deletions src/IndexBar/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -30,28 +30,17 @@
}
&-tip {
position: absolute;
left: -210 * @rpx;
bottom: -36 * @rpx;
width: 100 * @rpx;
height: 100 * @rpx;
border-radius: 100 * @rpx;
line-height: 100 * @rpx;
left: -158 * @rpx;
top: 50%;
transform: translateY(-50%);
width: 94 * @rpx;
height: 94 * @rpx;
border-radius: 94 * @rpx;
line-height: 94 * @rpx;
text-align: center;
background: @COLOR_TEXT_WEAK;
color: @COLOR_WHITE;
font-size: 56 * @rpx;
&::after {
content: '';
position: absolute;
top: -30 * @rpx;
right: -60 * @rpx;
display: block;
margin: 40 * @rpx auto;
width: 0;
height: 0;
border: 40 * @rpx solid transparent;
border-left-color: @COLOR_TEXT_WEAK;
}
font-size: 50 * @rpx;
}
}
&-active {
Expand Down

0 comments on commit c825fd1

Please sign in to comment.