@tarojs/components
Version:
53 lines (50 loc) • 903 B
CSS
html,
body {
height: 100%;
}
:root {
--taro-tabbar-height: 50px;
}
#app {
height: 100%;
}
.taro-tabbar__border-white::before {
border-top-color: #fff ;
}
.taro-tabbar__container {
display: flex;
overflow: hidden;
flex-direction: column;
height: 100%;
}
.taro-tabbar__panel {
overflow: auto;
position: relative;
flex: 1;
-webkit-overflow-scrolling: auto;
}
.taro-tabbar__tabbar {
position: relative;
width: 100%;
height: var(--taro-tabbar-height);
transition: bottom 0.2s, top 0.2s;
}
.taro-tabbar__tabbar-top {
top: 0;
}
.taro-tabbar__tabbar-bottom {
bottom: 0;
margin-bottom: constant(safe-area-inset-bottom);
margin-bottom: env(safe-area-inset-bottom);
}
.taro-tabbar__tabbar-hide {
display: none;
}
.taro-tabbar__tabbar-slideout {
top: -52px;
flex: 0 0;
}
.taro-tabbar__panel + .taro-tabbar__tabbar-slideout {
top: auto;
bottom: -52px;
}