UNPKG

press-pix

Version:
490 lines (473 loc) 12.3 kB
.sche-tree { position: fixed; left: 0; top: 0; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 90; background-color: #fff; background-image: url(https://image-1251917893.file.myqcloud.com/Esports/pix/img/record/record-list-bg.jpg?t=1); background-size: cover; background-repeat: no-repeat; background-position: center center; .sche-tree-wrap { width: 15.6rem; height: 7.2rem; display: flex; flex-direction: column; } // 带侧边栏样式覆盖 .sche-tree-wrap-nav { .content-tab { .content-tab-wrap { margin-left: -.46rem; } } .content { margin-left: -.46rem; } } .header { display: flex; flex-direction: row; align-items: center; justify-content: space-between; height: .52rem; margin-bottom: .2rem; margin-top: .16rem; .header-left { display: flex; flex-direction: row; align-items: center; margin-left: .89rem; } .btn-back{ width: .62rem; height: .3rem; background-image: url(https://image-1251917893.file.myqcloud.com/Esports/pix/img/velentine-back-h.png); background-size: 100% 100%; background-repeat: no-repeat; margin-right: .23rem; } .title { font-size: .28rem; font-family: GameFont; position: relative; top: .02rem; } .btn-my-sche { height: .31rem; border: 1px solid #547FE6; padding: 0 .13rem; display: flex; flex-direction: row; align-items: center; .btn-my-sche-text { font-size: .2rem; color: #0c32a6; font-family: GameFont; position: relative; top: .02rem; .btn-my-sche-text-number { color: #de6707; } } .btn-my-sche-icon { width: .12rem; height: .2rem; margin-left: .08rem; } .btn-subscribe-icon { width: .2rem; height: .2rem; margin-right: .08rem; position: relative; top: .01rem; } } } .sche-tree-content-wrap { flex-grow: 1; display: flex; flex-direction: row; align-items: center; justify-content: center; .reward-page-bar { width: 2.01rem; height: 100%; display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; background-image: url(https://image-1251917893.file.myqcloud.com/Esports/pix/img/solo/bar-bg2.png); background-repeat: no-repeat; background-size: contain; padding-top: .46rem; margin-right: .46rem; overflow: scroll; scrollbar-color: transparent; scrollbar-width: 0; .reward-page-bar-item { width: 1.89rem; height: .9rem; display: flex; flex-direction: row; align-items: center; justify-content: flex-end; font-size: .24rem; color: #294391; padding-right: .29rem; position: relative; padding-top: .06rem; flex-shrink: 0; .reward-page-bar-text { font-family: GameFont; position: relative; top: .02rem; } &.item-active { color: #FFFFFF; &::before { content: ''; position: absolute; width: 1.89rem; height: 1.12rem; background-image: url(https://image-1251917893.file.myqcloud.com/Esports/pix/img/solo/bar-active.png); background-repeat: no-repeat; background-size: 100% 100%; } } } } .tab-switch-right { max-width: 13.8rem; flex-grow: 1; height: 100%; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; } } .tab-switch-wrap{ display: flex; flex-direction: row; align-items: center; width: 100%; flex-shrink: 0; .tab-switch { display: flex; flex-direction: row; margin-bottom: .19rem; flex-shrink: 0; .tab-item { width: 3.35rem; height: .34rem; display: flex; justify-content: center; align-items: center; background: rgba(169, 191, 242, .3); .tab-item-text { font-size: .22rem; color: #6B89DF; font-family: GameFont; position: relative; top: .02rem; } &.tab-active { background: url(https://image-1251917893.file.myqcloud.com/Esports/schedule/sche-type-bg.png) no-repeat; background-size: 100% 110%; background-position: center center; .tab-item-text { color: #060B19; } } } } } .group-tab-switch-wrap{ display: flex; flex-direction: row; align-items: center; width: 100%; flex-shrink: 0; overflow: scroll; scrollbar-color: transparent; scrollbar-width: 0; .group-tab-switch { display: flex; flex-direction: row; margin-bottom: .19rem; flex-shrink: 0; .group-tab-item { width: 1.54rem; height: .34rem; display: flex; justify-content: center; align-items: center; background: rgba(169, 191, 242, .3); .group-tab-item-text { font-size: .22rem; color: #6B89DF; font-family: GameFont; position: relative; top: .02rem; } &.group-tab-active { background: url(https://image-1251917893.file.myqcloud.com/Esports/schedule/sche-type-bg.png) no-repeat; background-size: 100% 110%; background-position: center center; .group-tab-item-text { color: #060B19; } } } } } .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: 4.33rem; 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: 4.33rem; height: 100%; display: flex; flex-direction: column; align-items: center; margin-top: .28rem; flex-shrink: 0; .sche-item { width: 3rem; height: 1.5rem; display: flex; flex-direction: column; flex-shrink: 0; position: relative; .sche-item-line { width: .525rem; height: 1.5rem; position: absolute; top: -.16rem; left: -1.2rem; border-image: url(https://image-1251917893.file.myqcloud.com/Esports/schedule/tree-line1.png) 5 5 5 5 repeat fill; display: none; .sche-item-line-inner { position: absolute; top: 50%; left: 100%; width: .52rem; height: .04rem; background: url(https://image-1251917893.file.myqcloud.com/Esports/schedule/tree-line2.png) no-repeat center center; background-size: 100% 100%; } } } &:nth-child(1) { .sche-item { margin-top: 0; margin-bottom: 0; .sche-item-line { display: none; } } } &:nth-child(2) { .sche-item { margin-top: .7rem; margin-bottom: .8rem; .sche-item-line { display: block; height: 1.5rem; top: -.16rem; } } } &:nth-child(3) { .sche-item { margin-top: 2.1rem; margin-bottom: 2.4rem; .sche-item-line { height: 3rem; top: -.9rem; display: block; } } } } } .group-slider { width: .33rem; height: 3.7rem; display: flex; flex-direction: column; align-items: center; justify-content: space-between; position: absolute; right: .3rem; bottom: .4rem; .group-slider-list { width: .1rem; height: 3.3rem; display: flex; flex-direction: column; align-items: center; border-radius: .05rem; background: #5b83df; position: relative; .group-slider-item { width: 300%; height: 1.01rem; display: flex; flex-direction: column; justify-content: center; align-items: center; position: absolute; top: 0; .group-slider-item-inner { width: .1rem; height: 100%; border-radius: .05rem; background: #b3caff; display: flex; flex-direction: column; justify-content: center; align-items: center; } .group-slider-item-text { width: .22rem; height: .22rem; font-size: .18rem; color: #294391; display: flex; flex-direction: row; justify-content: center; align-items: center; background: #b3caff; border-radius: 50%; } } } .group-slider-number { width: .83rem; height: .26rem; border-radius: .13rem; background: #b3caff; font-size: .18rem; color: #294391; display: flex; justify-content: center; align-items: center; } } }