@ohu-mobile/core
Version:
109 lines • 2.21 kB
CSS
.ohu-index-list {
position: relative;
}
.ohu-index-list .ohu-list.is-scroll {
height: 100%;
overflow: scroll;
}
.ohu-index-list__bar {
box-sizing: border-box;
position: absolute;
top: 0;
bottom: 0;
right: 0.05333rem;
height: 100%;
z-index: 3;
width: 0.64rem;
display: flex;
flex-flow: column;
justify-content: center;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
.ohu-index-list__bar::before {
content: "";
position: absolute;
top: 0;
right: 100%;
width: 0.53333rem;
height: 100%;
}
.ohu-index-list__bar.is-fixed {
position: fixed;
}
.ohu-index-list__bar > ul {
list-style: none;
margin: 0;
padding: 0;
border: 0;
width: 100%;
border-radius: 0.64rem;
background: transparent;
display: flex;
flex-flow: column;
align-items: center;
padding: 0.32rem 0;
}
.ohu-index-list__bar > ul li {
margin: 0;
padding: 0;
border: 0;
}
.ohu-index-list__bar > ul li {
box-sizing: content-box;
padding-top: 0.05333rem;
padding-bottom: 0.05333rem;
width: 1.5em;
height: 1.5em;
line-height: 1.5em;
font-size: 0.37333rem;
color: #999;
cursor: pointer;
}
.ohu-index-list__bar > ul li span {
display: block;
text-align: center;
background: transparent;
}
.ohu-index-list__bar > ul li.is-active, .ohu-index-list__bar > ul li.is-enter {
color: #2d7eff;
}
.ohu-index-list__bar > ul li.is-pressed span {
background: transparent;
border-radius: 1.5em;
color: #2d7eff;
}
.ohu-index-list__bar__label {
position: absolute;
top: -0.48rem;
left: -0.192rem;
padding: 0 0.24rem;
height: 0.96rem;
border-radius: 0.96rem;
background: #2d7eff;
color: #fff;
display: flex;
flex-flow: row;
align-items: center;
justify-content: center;
font-size: 0.42667rem;
}
.ohu-index-list__bar__label:after {
position: absolute;
right: -0.16533rem;
top: 0.144rem;
content: "";
width: 0;
height: 0;
border-style: solid;
border-color: transparent transparent transparent #2d7eff;
border-width: 0.336rem 0 0.336rem 0.336rem;
}
.ohu-index-list__bar__label span {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
min-width: 0.48rem;
text-align: center;
}