press-pix
Version:
基于 PixUI 的 Press 组件库
166 lines (158 loc) • 4.17 kB
text/less
.sche-loop-list {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
overflow: hidden;
// 带侧边栏样式覆盖
&.sche-loop-list-has-nav {
.content-tab {
.content-tab-wrap {
margin-left: -.2rem;
}
}
.content {
margin-left: -.2rem;
}
}
.content-tab {
width: 100%;
overflow: hidden;
height: .7rem;
.content-tab-wrap {
height: .5rem;
flex-shrink: 0;
transition: left .5s ease-in-out;
position: relative;
.content-tab-item {
width: 3.62rem;
height: .5rem;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
position: relative;
flex-shrink: 0;
.content-tab-item-line {
width: 100%;
height: .01rem;
background-color: #C4D4FB;
position: absolute;
top: .12rem;
left: 0;
}
.content-tab-item-dot {
width: .18rem;
height: .18rem;
background: url(https://image-1251917893.file.myqcloud.com/Esports/schedule/dot1.png) no-repeat center center;
background-size: 100% 100%;
display: flex;
justify-content: center;
align-items: center;
border-radius: 50%;
overflow: hidden;
position: relative;
flex-shrink: 0;
z-index: 10;
}
.content-tab-item-text {
font-size: .2rem;
color: #8099D7;
font-family: GameFont;
position: relative;
top: .02rem;
display: flex;
flex-direction: row;
align-items: center;
}
.content-tab-item-tag {
width: .7rem;
height: .2rem;
background: #3DC1C9;
border-radius: .1rem 0 .1rem 0;
display: flex;
justify-content: center;
align-items: center;
flex-shrink: 0;
margin-left: .05rem;
.content-tab-item-tag-text {
font-size: .16rem;
color: #FFFFFF;
font-family: GameFont;
position: relative;
top: .01rem;
}
}
// 已结束
&.ended {
.content-tab-item-dot {
background: url(https://image-1251917893.file.myqcloud.com/Esports/schedule/dot2.png) no-repeat center center;
background-size: 100% 100%;
}
.content-tab-item-line {
background-color: #4F84FF;
}
.content-tab-item-text {
color: #15307F;
}
}
// 进行中
&.in-progress {
.content-tab-item-dot {
background: url(https://image-1251917893.file.myqcloud.com/Esports/schedule/dot3.png) no-repeat center center;
background-size: 100% 100%;
}
.content-tab-item-text {
color: #1255F0;
}
.content-tab-item-line {
background-color: #4F84FF;
}
}
}
}
}
.content {
flex-grow: 1;
overflow: scroll;
scrollbar-color: transparent;
scrollbar-width: 0;
.content-wrap {
flex-shrink: 0;
overflow: hidden;
width: 100%;
display: flex;
flex-direction: row;
transition: opacity 0.3s ease-in-out,
}
.content-item {
width: 3.62rem;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
margin-top: .28rem;
flex-shrink: 0;
.sche-item-line {
width: .02rem;
height: 100%;
position: absolute;
top: 0;
right: 0;
background-image: url(https://image-1251917893.file.myqcloud.com/Esports/schedule/tree-line1.png);
background-position: right top;
background-size: 25px 25px;
background-repeat: repeat;
}
.sche-item {
width: 3rem;
height: 1.5rem;
display: flex;
flex-direction: column;
flex-shrink: 0;
position: relative;
margin-bottom: .24rem;
}
}
}
}