@ohu-mobile/core
Version:
109 lines • 2.13 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: 4px;
height: 100%;
z-index: 3;
width: 48px;
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: 40px;
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: 48px;
background: transparent;
display: flex;
flex-flow: column;
align-items: center;
padding: 24px 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: 4px;
padding-bottom: 4px;
width: 1.5em;
height: 1.5em;
line-height: 1.5em;
font-size: 28px;
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: -36px;
left: -14.4px;
padding: 0 18px;
height: 72px;
border-radius: 72px;
background: #2d7eff;
color: #fff;
display: flex;
flex-flow: row;
align-items: center;
justify-content: center;
font-size: 32px;
}
.ohu-index-list__bar__label:after {
position: absolute;
right: -12.4px;
top: 10.8px;
content: "";
width: 0;
height: 0;
border-style: solid;
border-color: transparent transparent transparent #2d7eff;
border-width: 25.2px 0 25.2px 25.2px;
}
.ohu-index-list__bar__label span {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
min-width: 36px;
text-align: center;
}