Commit 7c798701f2e0f480e8c7c2a1635b1cd3674d0ce2
1 parent
ccd74b6b
Exists in
master
[修改] 优化导航栏底部边框
Showing
1 changed file
with
14 additions
and
1 deletions
Show diff stats
packages/navBar/index.css
| @@ -17,7 +17,20 @@ | @@ -17,7 +17,20 @@ | ||
| 17 | vertical-align: middle; | 17 | vertical-align: middle; |
| 18 | } | 18 | } |
| 19 | .zui-nav-bar--border-bottom { | 19 | .zui-nav-bar--border-bottom { |
| 20 | - border-bottom: 0.0625rem solid #E2E4EA; | 20 | + position: relative; |
| 21 | +} | ||
| 22 | +.zui-nav-bar--border-bottom:after { | ||
| 23 | + content: ''; | ||
| 24 | + position: absolute; | ||
| 25 | + left: 0; | ||
| 26 | + top: 0; | ||
| 27 | + background: #E2E4EA; | ||
| 28 | + right: 0; | ||
| 29 | + height: 1px; | ||
| 30 | + -webkit-transform: scaleY(0.5); | ||
| 31 | + transform: scaleY(0.5); | ||
| 32 | + -webkit-transform-origin: 0 0; | ||
| 33 | + transform-origin: 0 0; | ||
| 21 | } | 34 | } |
| 22 | .zui-nav-bar--fixed { | 35 | .zui-nav-bar--fixed { |
| 23 | position: fixed; | 36 | position: fixed; |